* as/hc08/lkaomf51.c (OutputName),
[fw/sdcc] / ChangeLog
1 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2
3         * as/hc08/lkaomf51.c (OutputName),
4         * as/mcs51/lkaomf51.c (OutputName),
5         * as/z80/asmain.c (asmbl),
6         * src/ds390/main.c (asmLineNodeFromLineNode),
7         * src/hc08/ralloc.c (hc08_assignRegisters),
8         * src/mcs51/main.c (asmLineNodeFromLineNode),
9         * src/xa51/ralloc.c (checkRegMask),
10         * src/xa51/gen.c (emitcode),
11         * src/z80/gen.c (_emit2),
12         * src/SDCCast.c (searchLitOp),
13         * src/SDCCglobl.h,
14         * support/packihx/packihx.c,
15         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
16         * src/ds390/gen.c (aopPutUsesAcc),
17         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
18         * support/regression/tests/libmullong.c (mullong_wrapper),
19         * src/SDCCsymt.c (powof2),
20         * src/SDCCast.c,
21         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
22         * src/SDCCsymt.h: added TYPE_TARGET_*
23         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
24         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
25         SDCCast because 1) header problems 2) this is the right place
26         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
27         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
28         prototype
29
30 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
31
32         * src/SDCCicode.h: removed buggy semicolon in unused macro
33         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
34         search for previous definiton of auto symbols too,
35         (findPrevUse): fixed logic of emitWarnings
36
37 2006-06-26 Raphael Neider <rneider AT web.de>
38
39         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
40           PCLATH and PCLATU on interrupts, potentially fixes #1505141
41
42 2006-06-25 Raphael Neider <rneider AT web.de>
43
44         * device/lib/pic/libm: NEW, added math library functions
45         * device/lib/pic/libsdcc: NEW; added float support functions
46         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
47         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
48           NEW, added math related headers
49         * device/include/asm/pic/features.h: NEW
50         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
51           (popGet): allow larger offsets for AOP_PCODE,
52           (genDataPointerSet): handle literals explicitly, more debug output,
53           (genAssign): fixed for float using aopLiteral ;-)
54         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
55           GOTO initialisation routine
56         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
57           flag on registers, fixes #1469043 (local variables do not work)
58         * src/pic/main.c (_pic14_do_link),
59         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
60           available
61
62 2006-06-25 Borut Razem <borut.razem AT siol.net>
63
64         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
65           characters printed (not including the trailing '\0' used to end
66           output to strings). Problem detected in regression test bug-927659.c.
67           NOTE: printf() family functions should return int instead
68           unsigned int!
69         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
70           specifier are printed as themselves
71         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
72           support flags, width and precision specifiers
73
74 2006-06-24 Borut Razem <borut.razem AT siol.net>
75
76         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
77           to the list of sdcc tagrets not supporting bit type
78         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
79           testfor pic16 due to bug:
80           [ 1511794 ] pic16: regression test bug-895992.c fails
81
82 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
85         * src/SDCCglue.c (initPointer), fixed bug 1496419
86         * support/regression/tests/bug1496419.c: new, added
87
88 2006-06-22 Borut Razem <borut.razem AT siol.net>
89
90         * support/regression/ports/pic16/support.c: use gpsim usart module from
91           libgpsim_modules library
92
93 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
94
95         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
96         IP0H to IPH0.
97
98 2006-06-19 Raphael Neider <rneider AT web.de>
99
100         * src/pic/glue.h,src/pic16/glue.h: added prototypes
101         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
102           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
103           (pic14printExterns,pic14printPublics,pic16printPublics,
104           pic16_printExterns): use new functions to emit symbols
105           (picglue,pic16glue): emit publics before emitting externs
106         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
107           locally defined functions to avoid bug #1443651
108         * support/regression/tests/bug-716242.c: removed pic16 workaround
109         * support/regression/ports/pic16/spec.mk: ignore errors during build
110
111 2006-06-19 Raphael Neider <rneider AT web.de>
112
113         * src/pic/glue.h: added pic14aopLiteral prototype
114         * src/pic/glue.c (pic14aopLiteral): return unsigned int
115         * src/pic/gen.c: removed stdint.h dependency
116           (aopGet): use Safe_strdup()
117           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
118           (genDataPointerSet): use pic14aopLiteral()
119         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
120           for pic16; thanks to Bernhard and Maarten
121
122 2006-06-18 Borut Razem <borut.razem AT siol.net>
123
124         * support/regression/tests/structflexarray.c: flexible array members
125           not supported by gcc < 3
126         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
127           GUI tool by default
128         * src/pic/gen.c: don't include [p]strdin.h on solaris
129         * support/Util/pstdint.h: addad svn attributes
130         * support/regression/tests/constantRange.c,
131           support/regression/tests/rotate.c: include inttypes.h instead
132           stdint.h on solaris, addad svn attributes
133
134 2006-06-18 Raphael Neider <rneider AT web.de>
135
136         * src/SDCCsymt.c (initCSupport): change return type of divschar to
137           int for PIC16
138         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
139           (pic16_genMinusBits): simplified sign-extension
140           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
141             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
142             adjusted to correctly handle mixed-signed operands, disabled
143             now unused multiplciation routines
144         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
145           (assignResultValue): added argument denoting the size of the result
146             as returned by the function (fixes upcasts in assigning from
147             function calls: char foo(); int i = foo();)
148           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
149             function result to assignResultValue
150           (genMult): disabled inlined multiplication code
151           (genDiv): augmented to also handle the modulus operator, fixed to
152             handle mixed-signed operands correctly
153           (genMod): simply call genDiv, disabled unused code
154           (genAssign): fixed missing (sign-)extension on result
155         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
156             valid char operands, allow signed operands for native code, added
157             division and modulo operator handling
158         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
159
160         As a consequence, onebyte.c (if split into two files) and muldiv.c
161         pass regression tests.
162
163 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
164
165         * doc/Makefile.in: two runs of makeindex seem needed to get
166         correct page references in the index of sdccman.pdf
167         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
168
169 2006-06-17 Borut Razem <borut.razem AT siol.net>
170
171         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
172
173 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
174
175         * doc/sdccman.lyx: updated, added (porting source code, debugging),
176         mentioned ec2drv and paulmon
177
178 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
179
180         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
181           consecutive abs areas
182           (find_empty_space, allocate_space): added map to handle codemap or
183            xdatamap,
184           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
185            absolute idata and xdata
186         * as/mcs51/lkmem.c (summary2): updated legend
187
188 2006-06-16 Raphael Neider <rneider AT web.de>
189
190         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
191
192 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
193
194         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
195           1208515
196         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
197
198 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
199
200         * src/port.h (struct PORT): added field gp_tags, to hold the tag
201         value of generic pointers,
202         * src/avr/main.c,
203           src/ds390/main.c,
204           src/hc08/main.c,
205           src/izt/i186.c,
206           src/izt/tlcs900h.c,
207           src/mcs51/main.c,
208           src/pic/main.c,
209           src/pic16/main.c,
210           src/xa51/main.c,
211           src/z80/main.c: PORT structure, added elements for gp_tags field,
212         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
213         fields in the PORT structure of each port,
214         * src/SDCCast.c (decorateType): allow processing of generic pointers
215         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
216         S_FIXED symbols
217
218 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
219
220         * link/z80/lkgb.c,
221         * link/z80/lkgg.c,
222         * src/pic16/gen.c,
223         * src/pic16/main.c,
224         * src/pic16/pcode.c,
225         * src/pic/main.c,
226         * src/pic/pcoderegs.c,
227         * src/SDCCicode.c,
228         * src/SDCCmain.c,
229         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
230           bug 1504689 on minGW
231
232 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
233
234         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
235
236 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
237
238         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
239
240 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
241
242         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
243           for optimization
244
245 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
246
247         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
248         to a char variable. Fixed bug #1504211
249         * device/include/pic16/adc.h,
250         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
251         and fixed bug #1364390
252
253 2006-06-10 Borut Razem <borut.razem AT siol.net>
254
255         * CVSROOT: removed the CVS left-over
256
257 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
258
259         * as/hc08/asmain.c (asexit),
260         * as/hc08/lkmain.c (lkexit),
261         * as/mcs51/asmain.c (asexit),
262         * as/mcs51/lkmain.c (lkexit),
263         * src/SDCCglue.c (DEFSETFUNC),
264         * src/SDCCmain.c (linkEdit, assemble),
265         * support/librarian/sdcclib.c (AddRel),
266           replaced unlink() by standard C remove()
267         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
268         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
269           gatherImplicitVariables): new, added to fix bug 608752,
270           (createFunction): added gatherImplicitVariables()
271         * src/SDCCast.h: added createRMW prototype
272         * src/SDCCsymt.h (struct symbol): added infertype
273         * support/regression/tests/bug608752.c: new, added
274
275 2006-06-10 Raphael Neider <rneider AT web.de>
276
277         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
278           multibyte dummy reads (fixes #1503234)
279
280 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * device/include/mcs51/compiler.h: new, added header file to enable
283           creating common sfr definition header files for different compilers
284
285 2006-06-05 Raphael Neider <rneider AT web.de>
286
287         * src/pic16/{pcode.h,genarith.c}:
288           introduced pCodeOp combining any two pCodeOps (previously only
289           two register operands could be combined), removed pcop2 from
290           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
291         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
292         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
293           rewritten to use new PO_TWO_OPS
294         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
295         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
296           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
297           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
298           (pic16_get_op): embraced return arg to allow #define return(x),
299             added new case for combined opcodes
300           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
301           (pic16_pCode2str,pic16_getRegFrompCodeOp,
302            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
303
304 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
305
306         * src/SDCCval.c (checkConstantRange): added
307         * src/SDCCval.h: added checkConstantRange
308         * support/Util/SDCCerr.c,
309         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
310         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
311         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
312         * src/SDCCast.c (decorateType): added checkConstantRange,
313         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
314         can be emitted with the correct always true/false warning,
315         added optimization for double '!';
316         result of decorateType() must be assigned back to the tree, because
317         decorateType() can change the tree
318         * src/SDCCicode.c (geniCodeLogic),
319         (geniCodeAssign): replaced new checkConstantRange, added warnings,
320         (checkConstantRange): removed, it was only a fragment which never
321         emitted a warning
322         * src/SDCCsymt.c (computeType): fixed promotion for
323         "-1 < (unsigned bit) b"
324         * src/pic/ralloc.c (packRegsForAssign),
325         * src/pic16/ralloc.c (packRegsForAssign),
326         * src/hc08/ralloc.c (packRegsForAssign),
327         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
328         from mcs51
329         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
330         * support/regression/tests/constantRange.c: added
331         * support/valdiag/tests/constantRange.c: added
332         * support/valdiag/valdiag.py: added -DPORT_HOST=1
333
334 2006-06-02 Borut Razem <borut.razem AT siol.net>
335
336         * support/regression/ports/pic16/support.c: increase stack size
337           to 255 bytes
338         * support/regression/Makefile.in: sort tests by name so that the
339           resutlts can be compared on different machines / platforms
340
341 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
342
343         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
344         * src/ds390/gen.c (emitLabel): new, added,
345           (genDjnz): fixed stack overflow bug,
346           (throughout): cosmetic changes to sync with mcs51/gen.c,
347           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
348         * src/mcs51/gen.c (genEndFunction): small optimization,
349           (throughout): cosmetic changes to sync with ds390/gen.c
350
351 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
352
353         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
354           (_print_format): fixed printing pointers
355         * src/mcs51/gen.c (emitLabel, movb): new, added,
356           (genAssign): small optimization,
357           (genDjnz): fixed stack overflow bug,
358           (throughout): replaced sprintf with SNPRINTF,
359           replaced mcs51_regWithIdx with REG_WITH_INDEX,
360           replaced emitcode("mov", "b,...") with MOVB(...),
361           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
362           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
363         * src/mcs51/peeph.def: added rules 140 and 264
364         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
365           so they may get optimized into registers
366
367 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
368
369         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
370           immediately when encountered,
371           (printUsage): always use stderr even on windows
372
373 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
374
375         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
376         (processParms): fixed bug #1247551
377         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
378         parseCmdLine, main): print '--version' to stdout,
379         print 'help' to stdout if --help is given,
380         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
381         arguments are given; fixed --help
382
383 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
384
385         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
386         * support/regression/tests/bug-1493710.c: added
387
388 2006-05-27 Borut Razem <borut.razem AT siol.net>
389
390         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
391           static instead auto
392         * support/regression/ports/pic16/support.c: increase stack size
393           from default 64 bytes to 128 bytes
394         * support/regression/tests/staticinit.c,
395           support/regression/tests/float.c: regression tests fully enabled
396           for pic16 port by putting the initialized data arrays into the code
397           section
398         * support/regression/ports/pic16/spec.mk: don't link default libraries.
399           This was changed by mistake in the previous version.
400
401 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
402
403         * src/pic16/gen.c (genFunction, genEndFunction): some
404         beautifications, fixed bug with falsely restoring FSR2 in large
405         stack model, thanks to Beau E. Cox for reporting the bug
406
407 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
408
409         * debugger/mcs51/break.c,
410         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
411           use %p to print pointers, made address variables unsigned
412         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
413         * debugger/mcs51/symtab.c (parseSymbol): must return something
414         * src/mcs51/gen.c (aopForSym): small optimization,
415            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
416           (freeAsmop): added missing break,
417           (aopPut): removed parameter bvolatile, determine it inside the function,
418           (saveRegisters, unsaveRegisters): small optimization,
419           (genIpush): removed pointless check,
420           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
421           replaced sprintf with SNPRINTF,
422           replaced strcpy with strncpyz,
423           updated aopPut calls,
424           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
425         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
426
427 2006-05-24 Borut Razem <borut.razem AT siol.net>
428
429         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
430           modification of test for the pic16 port, put the array to the code
431           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
432
433 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
434
435         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
436         * support/Util/pstdint.h: added
437
438 2006-05-22 Borut Razem <borut.razem AT siol.net>
439
440         * src/regression/Makefile: removed bool2.c test, added -q linker option
441         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
442           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
443           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
444           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
445           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
446           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
447           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
448           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
449           define SUPPORT_BIT_TYPES 0, removed unused bit variables
450
451 2006-05-22 Raphael Neider <rneider AT web.de>
452
453         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
454           bug #1492360 (problematic due to generic pointers, see code)
455
456 2006-05-22 Borut Razem <borut.razem AT siol.net>
457
458         * support/regression/ports/pic16/specs.mk: removed stack size linker
459           directive
460         * support/regression/tests/array.c,
461           support/regression/tests/bitopcse.c,
462           support/regression/tests/bug-908454.c,
463           support/regression/tests/malloc.c: modified for pic16 regression test
464         * support/regression/tests/bitfields.c:
465           pic16 - excluded bitfileds of size > 8
466         * support/regression/tests/bp.c: pic16 - reduced data size
467         * support/regression/tests/bug-221100.c: pic16 - reduced data size
468         * support/regression/tests/bug-460010.c:
469           pic16 - used the absolute address the fits in memory
470         * support/regression/tests/bug-716242.c:
471           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
472         * support/regression/tests/float.c:
473           pic16 - excluded - data size too big
474         * support/regression/tests/onebyte.c:
475           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
476         * support/regression/tests/shifts.c:
477           pic16 - function names probably have to differ in first X characters
478           (gpasm limitation?)
479         * support/regression/tests/staticinit.c:
480           pic16 - excluded some tests due error: no target memory available for
481           section ".idata"
482
483 2006-05-22 Borut Razem <borut.razem AT siol.net>
484
485         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
486           second try. Thanks Stas Sergeev once more.
487
488 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
489
490         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
491           (genLeftShift, genRightShift): fixed bug 1491627
492         * src/hc08/peeph.def (rules 7, 8.x): added
493         * support/regression/tests/shifts.c (ShiftLeftByParam,
494           ShiftRightByParam, testShiftByParam): added to test variable shifting
495
496 2006-05-20 Raphael Neider <rneider AT web.de>
497
498         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
499         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
500           (allocReg): add only new registers to dynAllocRegs,
501           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
502             #1489055, #1445850, and probably #1483693
503
504 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
505
506         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
507         bug in for-loop that didn't emit the last of CONFIG and ID registers
508
509 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
510
511         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
512           with offset
513         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
514           1489016, 1434401 and 1490124
515         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
516           1489016, 1434401 and 1490124
517
518 2006-05-17 Borut Razem <borut.razem AT siol.net>
519
520         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
521           thanks Stas Sergeev
522
523 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
524
525         * device/include/mcs51/P89c51RD2.h,
526         * device/include/mcs51/P89LPC901.h,
527         * device/include/mcs51/P89LPC922.h,
528         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
529
530 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
531
532         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
533         to fix missing stack pragma in compiled binary object file,
534
535 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
536
537         * support/packihx/configure.in,
538         * support/packihx/configure: removed warning, autoconf >= 2.5x can
539         determine sizeof basic types even while cross compiling
540
541 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
542
543         * src/avr/gen.c (aopop),
544         * src/ds390/gen.c (aopOp),
545         * src/hc08/gen.c (aopOp),
546         * src/mcs51/gen.c (aopop),
547         * src/pic16/gen.c (pic16_aopOp),
548         * src/pic/gen.c (aopOp),
549         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
550         if size of operand is smaller than spill location
551
552 2006-05-12 Borut Razem <borut.razem AT siol.net>
553
554         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
555           have to have CR/LF line endings even if they are checked out on *nix
556           or on WIN32 in cygwin binmode
557
558 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
559
560         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
561         * device/include/ds80c390.h: added sfr16 definitions
562         * src/ds390/gen.c,
563         * src/ds390/gen.h,
564         * src/ds390/main.c,
565         * src/ds390/ralloc.c,
566         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
567           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
568           bit returning functions
569         * support/regression/tests/sfr16.c: enabled test on ds390
570
571 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
572
573         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
574         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
575
576 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
577
578         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
579         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
580           (cl_address_space constructor): removed expensive initialization,
581           (cl_address_space::get_cell): extended for late initialization,
582           (cl_address_space::*): use late initialization,
583           (cl_address_decoder::activate): removed expensive initialization,
584           This reduced regression test running time by 25%
585
586 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
587
588         * packihx/,
589         * configure.in,
590         * configure,
591         * sdcc.dsw,
592         * Makefile.bcc,
593         * Makefile.in,
594         * support/packihx/Makefile.in,
595         * support/packihx/clean.mk,
596         * support/packihx/Makefile.bcc,
597         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
598
599 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
600
601         * src/SDCCval.c (valNot): fix for regression test failure
602           of not.c on big endian hosts
603
604 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
605
606         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
607
608 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
609
610         * device/lib/mcs51/Makefile.in: changed string comparison operator
611           to = for POSIX compliance; == is bash extension
612
613 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
614
615         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
616           kosmonaut_pirx
617
618 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
619
620         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
621         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
622         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
623         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
624         bug report #1478657,
625
626 2006-05-05 Borut Razem <borut.razem AT siol.net>
627
628         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
629           making the html
630
631 2006-05-02 Borut Razem <borut.razem AT siol.net>
632
633         * doc/Makefile.in: removed *.ind dependency since there is no rule to
634           create *.ind, which made make to fail if invoked with -j 2
635
636 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
639           Hubert Sack for patch 1479782
640
641 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
642
643         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
644
645 2006-05-01 Raphael Neider <rneider AT web.de>
646
647         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
648           (create_pic): store only prefix-free device name,
649           (init_pic): check for device names with "16" prefix,
650           (list_valid_pics),
651         * src/pic/device.h (struct PIC_device),
652         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
653             stored device name,
654         * device/include/pic/pic12f{635,675,629,683}.h,
655         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
656         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
657         * device/include/pic/pic16f505.h,
658         * device/lib/pic/libdev/pic16f505.c: removed
659         * device/include/pic/pic14devices.txt: added support for pic12f
660             devices, removed unsupported non 16-bit devices
661             [above changes provided by patch from Zik Saleeba]
662         * src/pic/*, src/pic16/*, device/include/pic16/*,
663           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
664
665 2006-05-01 Borut Razem <borut.razem AT siol.net>
666
667         * configure.in, configure, doc/Makefile.in:
668           sync with nightly build makefile - latex, dvipdf and dvips
669           not needed any more
670
671 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
672
673         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
674         in the library source
675
676 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
677
678         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
679
680 2006-04-28 Raphael Neider <rneider AT web.de>
681
682         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
683         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
684           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
685         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
686
687 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
688
689         * device/lib/pic/libdev/Makefile.in,
690         * device/lib/hc08/Makefile.in,
691         * device/lib/gbz80/Makefile.in,
692         * device/lib/z80/Makefile.in,
693         * device/lib/ds390/Makefile.in,
694         * device/lib/ds400/Makefile.in: added srcdir to include search path,
695         thanks to Borut for the bug report
696         * configure.in,
697         * configure: always create doc/Makefile independent from --enable-doc
698         * Makefile.in: always install from directory doc independent from
699         --enable-doc
700         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
701         removed
702         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
703         * doc/Makefile.in: install *.txt if present
704         * device/include/Makefile.in (install): added installation of pic/*.inc
705         and pic/*.txt files again, they were erroneously removed
706
707 2006-04-28 Raphael Neider <rneider AT web.de>
708
709         * src/pic/{gen.c,main.h,pcode.c},
710         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
711             concerning signedness with casts
712
713 2006-04-28 Raphael Neider <rneider AT web.de>
714
715         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
716             definition of an interrupt handler,
717         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
718             interrupt handler stuff from picglue() to separate routine,
719           (picglue): enabled definition of intr handlers in files w/o main()
720
721 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
722
723         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
724           compilation with MSVC 2005 Express Edition (VC8)
725
726 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
727
728         * device/lib/Makefile: fixed build of gbz80 lib
729
730 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
731
732         * support/regression/tests/bug-460010.c,
733         * support/regression/tests/bug-524691.c,
734         * support/regression/tests/bug-716242.c: removed conditional defines
735           that are already in testfwk.h
736
737 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
738
739         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
740           (AccAXRsh1): added, shift right by 1,
741           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
742            AccAXLrl1
743         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
744
745 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
746
747         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
748         remove cast to same type
749         * src/SDCCast.c (decorateType): fix for RFE 1475742,
750         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
751         * as/z80/Makefile,
752         * link/z80/Makefile: removed, they have moved to
753         Makefile.in files
754         * configure,
755         * configure.in: replaced duplicate message about ucsim by missing sdcpp
756         * install-sh: fix bug #1204398 by setting umask 0022
757         * device/lib/Makefile: separate build of z80 and gbz80 lib
758
759 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
760
761         Enabled VPATH feature: changed nearly all Makefiles (149 files).
762         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
763
764         One basic decision: e.g. src/clean.mk includes further files. In order
765         to make this work there are two solutions:
766         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
767           run configure on them. This way they can use
768           'include $(srcdir)/port-clean.mk'
769         - always include clean.mk by the Makefile at the same level. To avoid
770           that `make clean` tries to include and build Makefile.dep the
771           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
772           implemented, because now even `make uninstall` doesn't create
773           Makefile.in. clean.mk could be eliminated by pasting it in
774           Makefile.in.
775
776         * debugger/mcs51/Makefile.in: build own objects from library sources
777         (SLIB, SDCC) in current directory
778
779         * configure, configure.in: renamed --disable-device-lib-build in
780         --disable-device-lib; added --enable-doc, the required tools are
781         searched by configure; added result message; the toolchain for the
782         belonging ports are now only built, if the port is enabled.
783
784         * support/regression/*: all output is written in directory gen, because
785         the fwk and ports directories don't livet in the build tree using vpath
786
787         * doc/sdccman.lyx: renamed --disable-device-lib-build to
788         --disable-device-lib, added --enable-doc, added section VPATH
789
790         * sim/ucsim/configure.in,
791         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
792         z80 are enabled by default
793
794 2006-04-24 Raphael Neider <rneider AT web.de>
795
796         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
797             to config word, "pic14_"-prefixed some extern functions
798           (pic14_emitConfigWord): emit __config directive(s) if assignment to
799             config word has been found
800         * src/pic/device.h: added prototypes
801         * src/pic/pcode.c: added "pic14_"-prefix where needed
802         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
803             fixup
804         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
805             words,
806           (pic14emitRegularMap): ignore config words,
807           (pic14createInterruptVect): moved generating __config directives away
808           (picglue): have __config directives emitted
809
810 2006-04-24 Borut Razem <borut.razem AT siol.net>
811
812         * doc/Makefile: sync with nightly build makefile
813
814 2006-04-24 Raphael Neider <rneider AT web.de>
815
816         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
817             registers that have not been assigned proper liveranges,
818             fixes #1469504 and #1474602,
819           (pCodeRegOptimizeRegUsage): fixed typo in comment
820
821 2006-04-24 Borut Razem <borut.razem AT siol.net>
822
823         * device/examples/main8051.c: deleted - it was removed from CVS
824           24.mar.2000 and after that modified 18.feb.2001, so it reappered
825           after the transition to Subversion
826         * src/SDCCalloc.h: deleted - it was removed  from CVS
827           3.feb.2001 and after that modified 18.feb.2001, so it reappered
828           after the transition to Subversion
829         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
830           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
831           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
832           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
833
834 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
835
836         * as/asx8051.dsp: added mcs51/strcmpi.h
837         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
838         * as/hc08/aslink.h: updated lnksect prototype
839         * as/hc08/asm.h,
840         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
841         * as/hc08/asmain.c,
842         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
843           (newdot): handle A_ABS
844         * as/hc08/asout.c,
845         * as/mcs51/asout.c (outarea): output address
846         * as/hc08/lkaomf51.c,
847         * as/mcs51/lkaomf51.c: disabled unused array UsageType
848         * as/hc08/m08pst.c,
849         * as/mcs51/i51pst.c,
850         * as/z80/z80pst.c: "ABS" is not A_OVR
851         * as/hc08/lkarea.c (newarea): read a_addr,
852           (lnkarea): added codemap array, sort absolute areas to the front,
853            combine all GSINITx/GSFINAL,
854           (find_empty_space, allocate_space): new functions,
855           (lnksect): return next address, handle absolute sections
856         * as/mcs51/lkarea.c (newarea): read a_addr,
857           lnksect2 prototype changed,
858           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
859           (find_empty_space, allocate_space): new, factored out of lnksect2,
860           (lnksect2): return next address, handle absolute sections
861         * as/hc08/lkhead.c,
862         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
863         * as/hc08/lklibr.c (addfile, fndsym),
864         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
865           index out of range and detect both '\' and '/'
866         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
867         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
868           regression tests (ds390 cannot return bool yet)
869         * doc/sdccman.lyx: changed version number, document changed --no-peep,
870           document critical interrupts on z80, document changed SDCC define
871         * src/asm.c (_asxxxx_mapping): fixed .org directive,
872           (_a390_mapping): added .org directive
873         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
874           (genMultOneByte): fixed warnings
875         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
876           ones
877         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
878         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
879           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
880         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
881         * src/pic16/main.c: removed newReg prototype
882         * src/pic16/pcode.c,
883         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
884           warnings
885         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
886           ones
887         * src/pic16/ralloc.c
888         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
889           to fix warnings
890         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
891           from short to PIC_OPTYPE
892         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
893         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
894           optype from short to PIC_OPTYPE
895         * src/port.h: made int_size unsigned to fix warnings
896         * src/SDCC.y: fixed warning on MSVC
897         * src/SDCCicode.c (getArraySizePtr): return unsigned int
898         * src/SDCCopt.c (convertToFcall): fixed warnings
899         * src/SDCCsymt.h: removed double prototype for genSymName
900         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
901           offset int to fix warnings
902
903 2006-04-22 Borut Razem <borut.razem AT siol.net>
904
905         * doc/sdccman.lyx, */Makefile, */Makefile.in:
906           references to CVS replaced with Subversion
907
908 2006-04-21 Borut Razem <borut.razem AT siol.net>
909
910         * doc/sdccman.lyx, */Makefile, */Makefile.in:
911           references to CVS replaced with Subversion
912
913 2006-04-19 Borut Razem <borut.razem AT siol.net>
914
915         * src/version.awk: adapted for svn
916         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
917           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
918           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
919           /binutils-avr/etc/*.vi, *.jin: removed all properties
920           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
921
922 2006-04-19 Borut Razem <borut.razem AT siol.net>
923
924         * CVS to Subversion migration completed
925
926 2006-04-18 Borut Razem <borut.razem AT siol.net>
927
928         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
929           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
930
931 2006-04-17 Borut Razem <borut.razem AT siol.net>
932
933         * device/include/Makefile.in: added pic/*.inc to the installation
934
935 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
936
937         * support/regression/collate-results.py: fixed output in case of
938         a valdiag error
939         * support/regression/generate-cases.py: fixed splitting of pathnames
940         with dots
941         * as/hc08/lklibr.c (addfile),
942         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
943
944 2006-04-11 Raphael Neider <rneider AT web.de>
945
946         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
947         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
948         * src/pic16/pcode.c (assignValnums): fixed #1460578
949
950 2006-04-11 Raphael Neider <rneider AT web.de>
951
952         * device/lib/pic/libdev/*.c,
953         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
954           fixes #1468739, enables compilation in --std-c99 mode
955         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
956
957 2006-04-11 Raphael Neider <rneider AT web.de>
958
959         * src/pic/device.c (find_device): removed debug output
960           (list_valid_pics): enabled verbose listing of supported devices
961         * device/include/stdbool.h: define bool as char for pic14/16 as well
962
963 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
964
965         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
966
967 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
968
969         * .version: bumped version to 2.5.6
970         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
971
972 2006-04-06 Raphael Neider <rneider AT web.de>
973
974         * .version: bumped version to 2.5.6 (pic14 ABI changed)
975         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
976         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
977           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
978             pic14_constructAbsMap
979           (pic14printPublics): declare absolute global symbols as global
980           (pic14createInterruptVect),
981         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
982           (newReg): assume new registers unused, use correct name in
983             hashtable (reg->name instead of name), more debugLog output
984         * src/pic/device.h (PIC_device): added fields for verbose output
985         * src/pic/device.c: moved device definition to pic14devices.txt,
986             added routines for runtime parsing of pic14devices.txt,
987             added support for second config word
988         * src/pic/main.c (_process_pragma): removed #pragma maxram,
989           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
990           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
991           (_pic14_parseOptions): moved pCodeInitRegisters here
992           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
993         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
994           (pCodeInitRegisters): rewrapped comments, perpared new approach to
995             handling the pseudo stack
996         * device/lib/Makefile.in: ignore failures in objects-pic16,
997         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
998         * device/lib/pic/NEWS: document new dependency on picXXX.lib
999         * device/lib/pic/Makefile.subdir,
1000         * device/lib/pic16/Makefile.subdir: improved clean rules
1001         * device/lib/pic/libdev/: NEW, pic14 device libraries
1002         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1003         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1004         * device/include/Makefile.in: create subdir and install pic14 headers
1005         * device/include/pic/p16f_common.inc: removed unused declarations
1006         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1007             PICs from inc2h.pl v1.6,
1008             replaced BIT_AT macros with struct declarations
1009         * device/include/pic/pic14devices.txt: definition of supported devices,
1010             all above improvements contributed by Zik Saleeba, thanks
1011         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1012         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1013             headers
1014
1015 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1016
1017         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1018         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1019           thanks to Charles Olds
1020
1021 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1022
1023         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1024
1025 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1026
1027         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1028         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1029         * support/regression/bug1464657.c: added, new test
1030
1031 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1032
1033         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1034           version number
1035
1036 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1037
1038         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1039           --no-peep and --peep-file <file> are used don't use default rules but
1040           do use the <file>
1041
1042 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1043
1044         * src/mcs51/gen.c (genCall): fixed bug 1457608
1045
1046 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1047
1048         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1049         changes seem to cause (trigger?) problems with the build system.
1050
1051 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1052
1053         * src/SDCCpeeph.c (operandsLiteral): new, added,
1054           (callFuncByName): inserted operandsLiteral
1055         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1056
1057 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1058
1059         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1060         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1061
1062 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1063
1064         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1065           implemented patch 1120823 Thanks to Willy De la Court (normal
1066           interrupts need an interrupt number now if they are made critical),
1067           and enabled nesting of critical functions though not for gbz80
1068           (genCritical, genEndCritical): added functions
1069           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1070         * src/z80/mappings.i: added "ei" to all mappings
1071
1072 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1073
1074         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1075         submitted by the Debian SDCC maintainer Aurelien Jarno:
1076         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1077         archive with gcc 4.1 on mips and wrote the patch"
1078
1079 2006-03-16 Raphael Neider <rneider AT web.de>
1080
1081         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1082           the left operand is shorter than the result (c* = lit-c* + int),
1083           fixes bug #1450796
1084         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1085           OP_SYMBOL
1086
1087 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1088
1089         * src/.version: increased version number to 2.5.5
1090         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1091         linking is done manually in pic16 port's _linkEdit,
1092         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1093         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1094         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1095         allocate asmop as AOP_ACC,
1096         (aopForRemat): added parameter 'bool result' in function declaration,
1097         (pic16_aopGet): return AOP_ACC when accessing WREG,
1098         (pic16_popGetTempReg): minor modification,
1099         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1100         'pic16_allocWithIdx',
1101         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1102         calling function in absolute addresses,
1103         (genAssign): take into account AOP_ACC asmop,
1104         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1105         * src/pic16/pcoderegs.c: some debug functions and lines added,
1106         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1107         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1108         register too,
1109         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1110         call to allocReg, not by manually allocating a new one,
1111         (pic16_assignRegisters): now before going through the register
1112         allocating functions mark all registers as free. This eliminates some
1113         side effects resulting from peephole parser done earlier in the backbone
1114
1115 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1116
1117         * src/SDCCicode.c (geniCodeLogic),
1118         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1119
1120 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1121
1122         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1123           (genSend): bugfix, do not allocate and free twice,
1124           (shiftRLong): handle partially overlapping aops
1125         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1126
1127 2006-03-08 Borut Razem <borut.razem AT siol.net>
1128
1129         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1130           for pic16
1131
1132 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1133
1134         * support/regression/tests/bug1409955.c: new, added
1135         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1136         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1137           (aopForSym, aopOp): increment asmop.allocated if reused,
1138           (freeAsmop): decrement asmop.allocated and check for zero instead of
1139           using asmop.freed,
1140           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1141           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1142            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1143            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1144            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1145            genSignedRightShift, genRightShift, genDataPointerGet,
1146            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1147            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1148             in reverse order from allocation,
1149           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1150             added swappedLR to keep track
1151         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1152           pdata & code for GCC, z80, gbz80 & hc08
1153         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1154
1155 2006-03-08 Raphael Neider <rneider AT web.de>
1156
1157         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1158
1159 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1160
1161         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1162         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1163         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1164
1165 2006-03-06 Borut Razem <borut.razem AT siol.net>
1166
1167         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1168           made the linker quiet
1169
1170 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1171
1172         * src/pic16/gen.c (genPcall): fixed bug #1443644
1173         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1174         which dumps before the function entry point a data byte which represents
1175         the number of the local variables used by the specified function, added
1176         'xinst' for initial support for Extended Instruction Support,
1177         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1178         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1179         port->fun_prefix anymore (may change later),
1180         (genFunction, genEndFunction): do not store/restore local registers for
1181         _main (this should take care the --main-return command line option in
1182         the future),
1183         (genOr): removed some legacy pic-port instructions,
1184         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1185         performing operations with SFR's causes data to be written more than
1186         once to each SFR. Perhaps SFRs should be handled in special cases...
1187         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1188         pcode.h
1189         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1190         into account for stack starting position,
1191         (struct OPTIONS pic16_optionsTable): added command line argument
1192         --extended or -y for Extended Instruction Support,
1193         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1194         (deassignLRs): *** perhaps the most important change, old 'for' code
1195         (commented out for reference), didn't account for some registers which
1196         were left marked 'not free' after a pointer operation. The change
1197         reduces register usage a lot in some cases
1198
1199 2006-03-04 Borut Razem <borut.razem AT siol.net>
1200
1201         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1202           _clean
1203         * support/regression/tests/bug-524697.c: decreased array size for
1204           mcs51 to fit into the internal RAM
1205         * support/regression/Makefile.in: a little bit more verbose
1206
1207 2006-03-03 Borut Razem <borut.razem AT siol.net>
1208
1209         * support/regression/fwk/lib/testfwk.c,
1210           support/regression/fwk/include/testfwk.h: introduced function
1211           _prints(), nonrecursive _printn(), call _initEmu() from main()
1212         * support/regression/ports/gbz80/support.asm,
1213           support/regression/ports/ucz80/support.asm,
1214           support/regression/ports/z80/support.asm,
1215           support/regression/ports/ds390/support.c,
1216           support/regression/ports/hc08/support.c,
1217           support/regression/ports/host/support.c,
1218           support/regression/ports/mcs51/support.c,
1219           support/regression/ports/xa51/support.c: added empty _initEmu()
1220           function
1221         * support/regression/ports/pic16/gpsim.cmd,
1222           support/regression/ports/pic16/spec.mk,
1223           support/regression/ports/pic16/support.c,
1224           support/regression/Makefile.in: added pic16 regression test
1225
1226 2006-03-01 Raphael Neider <rneider AT web.de>
1227
1228         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1229           genConstPointerGet): use safe way of generating MOVFF to cover
1230             literals as well as registers, fixes bug #1440527
1231         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1232             dereference
1233           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1234             more correctly, fixes bug #1232186
1235           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1236         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1237             gplink guess the correct processor in more cases, applied patch
1238             from Till Riedel attached to and fixing bug #1436552
1239
1240 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1241
1242         * support/regression/tests/array.c: added, contains check for #1434401
1243         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1244
1245 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1246
1247         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1248         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1249         * device/include/mcs51/c8051f326.h,
1250         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1251         * device/include/mcs51/c8051f000.h,
1252         * device/include/mcs51/c8051f018.h,
1253         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1254           PCON_IDLE,PCON_STOP and added sfr16 definitions
1255
1256 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1257
1258         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1259           genGetWord): fixed bug 1409955
1260
1261 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1262
1263         * device/include/hc08/mc68hc908gp32.h,
1264         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1265
1266 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1267
1268         * src/SDCCast.c (constExprValue): return NULL if not a value
1269         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1270         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1271         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1272
1273 2006-02-13 Borut Razem <borut.razem AT siol.net>
1274
1275         * src/regression/ptrarg.c: added, fails due to bug #1430967
1276         * src/regression/Makefile: ptrarg.c added, ...
1277
1278 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1279
1280         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1281         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1282
1283 2006-02-11 Borut Razem <borut.razem AT siol.net>
1284
1285         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1286           print "Processor: xxx" message to stdout only if --verbose
1287
1288 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1289
1290         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1291         * support/regression/tests/bug1426356.c: added
1292         * support/regression/tests/bitfields.c: removed 2 tests
1293
1294 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1295
1296         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1297         * device/include/mcs51/c8051f330.h,
1298         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1299           PCON_IDLE,PCON_STOP and added sfr16 definitions
1300         * device/lib/_divsint.c,
1301         * device/lib/_divuint.c,
1302         * device/lib/_divulong.c,
1303         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1304           register bank bug for small stackauto
1305
1306 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1307
1308         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1309
1310 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1311
1312         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1313         * all.dsp: corrected several bin paths
1314         * device/include/mcs51/c8051f120.h,
1315         * device/include/mcs51/c8051f300.h,
1316         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1317           to PCON_IDLE,PCON_STOP
1318         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1319         * device/lib/printf_large.c (output_float): fixed bug 1388703
1320         * support/regression/tests/bug1057979.c: added test for bug 1388703
1321
1322 2006-02-08 Raphael Neider <rneider AT web.de>
1323
1324         * src/pic/pcode.c (pciTRIS): fixed typo,
1325           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1326           (LinkFlow): fixed handling of flows that end in a call,
1327           (ReuseReg): perform safety check earlier
1328         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1329             to work with flows at the beginning of a pBlock,
1330             fixes #1426557 (Symbol not previously defined),
1331           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1332             usage information
1333           (RemoveUnusedRegisters): update register usage info
1334         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1335             created, reuse existing ones instead
1336         * src/pic/gen.c (genPcall): fixed #1424719
1337
1338 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1339
1340         * link/z80/lkmain.c,
1341         * link/z80/lklex.c,
1342         * link/z80/lkdata.c,
1343         * link/z80/aslink.h: fixed build on current cygwin:
1344         replaced getline() by lk_getline()
1345
1346 2006-02-01 Borut Razem <borut.razem AT siol.net>
1347
1348         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1349           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1350           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1351           src/regression/bool1.c, src/regression/bool2.c,
1352           src/regression/bool3.c, src/regression/call1.c,
1353           src/regression/compare.c, src/regression/compare10.c,
1354           src/regression/compare2.c, src/regression/compare3.c,
1355           src/regression/compare4.c, src/regression/compare5.c,
1356           src/regression/compare6.c, src/regression/compare7.c,
1357           src/regression/compare8.c, src/regression/compare9.c,
1358           src/regression/configword.c, src/regression/for.c,
1359           src/regression/inline.c, src/regression/mult1.c,
1360           src/regression/nestfor.c, src/regression/or1.c,
1361           src/regression/pointer1.c, src/regression/ptrfunc.c,
1362           src/regression/rotate1.c, src/regression/rotate2.c,
1363           src/regression/rotate3.c, src/regression/rotate4.c,
1364           src/regression/rotate5.c, src/regression/rotate6.c,
1365           src/regression/rotate7.c, src/regression/string1.c,
1366           src/regression/struct1.c, src/regression/sub.c,
1367           src/regression/sub2.c, src/regression/switch1.c,
1368           src/regression/while.c, src/regression/xor.c,
1369           src/regression/create_stc, src/regression/simulate,
1370           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1371           regression tests
1372         * src/regression/gpsim_assert.h: added
1373
1374 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1375
1376         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1377         ((void (code *) (void)) 0) ();
1378         * as/hc08/aslex.c,
1379         * as/hc08/aslink.h,
1380         * as/hc08/asm.h,
1381         * as/hc08/asmain.c,
1382         * as/hc08/lkdata.c,
1383         * as/hc08/lklex.c,
1384         * as/hc08/lkmain.c,
1385         * as/mcs51/aslex.c,
1386         * as/mcs51/aslink.h,
1387         * as/mcs51/asm.h,
1388         * as/mcs51/asmain.c,
1389         * as/mcs51/lkdata.c,
1390         * as/mcs51/lklex.c,
1391         * as/mcs51/lkmain.c,
1392         * as/z80/aslex.c,
1393         * as/z80/asm.h,
1394         * as/z80/asmain.c: fixed build on current cygwin:
1395         replaced getline() by as_getline()
1396
1397 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1398
1399         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1400         declarator in the symbol chain
1401         * src/SDCCsymt.h,
1402         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1403         parameter list for function pointers
1404         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1405         * support/regression/tests/bug-716242.c: added
1406
1407 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1408
1409         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1410         offset if possible
1411         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1412
1413 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1414
1415         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1416         inifinitely recurseable, added static
1417         * support/regression/tests/bug-1408066.c: added
1418
1419 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1420
1421         * src/SDCCicode.h,
1422         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1423         renamed, added possibility to create "postLoopLbl"-labels
1424         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1425         newiTempLoopHeaderLabel
1426         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1427         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1428         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1429         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1430         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1431         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1432         (basicInduction): fixed bug #136564, made static,
1433         (loopInduction): changed parameter of basicInduction, made static,
1434         (addPostLoopBlock): added
1435         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1436         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1437         findLoopEndSeq
1438         * support/regression/tests/bug-136564.c: added
1439         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1440         --std-sdcc99 to LIBSDCCFLAGS
1441
1442 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1443
1444         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1445         while loop
1446         * support/regression/tests/bug-1406131.c: added
1447
1448 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1449
1450         * src/SDCCast.c (decorateType): fix promotion of unary minus
1451         * src/SDCCsymt.c (computeType): beautified
1452         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1453         (valUnaryPM, valComplement): fix sign and promotion,
1454         (valNot): ANSI: result type is int (SDCC: unsigned char)
1455         * support/regression/tests/uminus.c: speedup by removing superflous
1456         test case 'int'
1457         * support/regression/tests/onebyte.c: added promotion and signedness
1458         tests for unary minus
1459         * support/regressions/tests/bug-477927.c: disable warning about
1460         uninitialized variables
1461         * support/regression/tests/not.c: added
1462
1463 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1464
1465         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1466         * src/mcs51/gen.c (gen51Code): show final register usage after
1467         fillGaps in asm with --i-code-in-asm
1468         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1469         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1470         incUsed, rliveClear, adjustIChain): made static,
1471         (setFromRange): excluded because it's unused,
1472         (findPrevUseSym, markWholeLoop): added,
1473         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1474         through all branches of predecessors enables sdcc to emit the warning
1475         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1476         (rlivePoint): made static, added parameter emitWarnings which is only
1477         true during the first run out of two,
1478         (findRecursiveSucc, findRecursivePred): removed,
1479         (computeLiveRanges): made static, added parameter emitWarnings,
1480         (dumpIcRlive): added for debugging only
1481         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1482         removed prototype of setFromRange()
1483         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1484         in call of computeLiveRanges()
1485         * support/regression/tests/bug-895992.c: added
1486         * support/regression/tests/bug-971834.c: added
1487         * support/valdiag/tests/bug-895992.c: added
1488         * support/valdiag/tests/bug-971834.c: added
1489
1490 2005-12-18 Raphael Neider <rneider AT web.de>
1491
1492         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1493           (genUnpackBits): improved code for direct operands,
1494           (genPackBits): improved code for literal assignment to bitfields
1495             and for direct destination operands (no FSR indirection),
1496             prevented redundant AND, fixes #1362800,
1497           (AccLsh): added parameter to disable masking of the result
1498         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1499           skip instructions with side-effects (like incfsz),
1500           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1501         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1502         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1503           fixes #1375263
1504
1505 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1506
1507         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1508         volatile variables as spill location
1509
1510 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1511
1512         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1513         replacing literals
1514         * support/regression/tests/bug-1376320.c: added
1515
1516 2005-12-08 Raphael Neider <rneider AT web.de>
1517
1518         * src/pic/device.c: renamed is_shared to pic14_is_shared
1519         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1520         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1521           (is_valid_identifier): added for above workaround
1522
1523 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1524
1525         * device/lib/Makefile.in: fixed to enable port-specific-objects
1526         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1527           char, thanks Hubert Sack
1528         * doc/sdccman.lyx: documented --xstack-loc,
1529           elaborated a bit more on interrupts and pitfalls,
1530           removed "setjmp/longjmp unsupported",
1531           documented some unsupported C99 features
1532         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1533         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1534           if, thanks Hubert Sack
1535         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1536         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1537           make make_library
1538         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1539           regression tests can report resource usage (rfe 700441)
1540         * support/regression/collate-results.py: report resource usage
1541         * support/regression/ports/ds390/spec.mk,
1542         * support/regression/ports/hc08/spec.mk,
1543         * support/regression/ports/mcs51/spec.mk,
1544         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1545         * support/regression/ports/ds390/uCsim.cmd,
1546         * support/regression/ports/hc08/uCsim.cmd,
1547         * support/regression/ports/mcs51/uCsim.cmd,
1548         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1549         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1550           library, use the default one
1551         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1552           building the library
1553
1554 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1555
1556         * config.dsp: added dependency on .version and configure_vc.awk
1557         * device/include/setjmp.h: updated for --stack-auto and --xstack
1558         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1559         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1560         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1561         * device/lib/libsdcc.lib: added _setjmp
1562         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1563           (decorateType): fixed bug 1372851,
1564           (optimizeGetHbit): fixed warning
1565         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1566           array initialisation
1567         * support/regression/tests/bug1057979.c: added test for bug 1358192
1568         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1569
1570 2005-12-03 Borut Razem <borut.razem AT siol.net>
1571
1572         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1573           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1574
1575 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1576
1577         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1578         createIval): implement symbol independant "flexible array member",
1579         (createIvalCharPtr): implemented flexible array initialisation with a
1580         string
1581         * src/SDCCsymt.c (copyStruct): removed,
1582         (getSize): fixed misleading comment,
1583         (getAllocSize): removed, the additional allocation size is now in
1584         sym->flexArrayLength,
1585         (checkStructFlexArray): new, syntax checks for flexible array members,
1586         (compStructSize): added syntax checks for "flexible array members"
1587         (copyStruct): removed,
1588         (copyLinkChain): removed inefficient fix for bug 770487
1589         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1590         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1591         symbol->flexArrayLength
1592         * src/SDCCerr.c,
1593         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1594         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1595         * support/regression/tests/structflexarray.c: added
1596         * support/valdiag/tests/structflexiblearray.c: added
1597
1598 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1599
1600         * src/SDCCast.c (decorateType): fixed bug 1368489
1601         * support/Util/SDCCerr.c,
1602         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1603
1604 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1605
1606         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1607           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1608
1609 2005-11-27 Borut Razem <borut.razem AT siol.net>
1610
1611         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1612           support/cpp2/mkdeps.h: added command line option
1613           -obj-ext=<extension> to SDCPP to define object file externion, used
1614           for generation of make dependencies (-M)
1615         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1616
1617 2005-11-26 Borut Razem <borut.razem AT siol.net>
1618
1619         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1620           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1621           added pic and pic16 libraries
1622
1623 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1624
1625         * device/include/float.h: Corrected typo in prototype of __fsgt
1626
1627 2005-11-25 Borut Razem <borut.razem AT siol.net>
1628
1629         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1630           added creation of model-mcs51-stack-auto libraries
1631
1632 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1633
1634         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1635         and fields-list too
1636         * src/SDCCast.c (createIvalArray): removed obsolete comment
1637
1638 2005-11-24 Borut Razem <borut.razem AT siol.net>
1639
1640         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1641           added missing device/lib/mcs51/crt*.asm sources
1642
1643 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1644
1645         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1646
1647 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1648
1649         * device/lib/_fs2schar.c,
1650         * device/lib/_fs2sint.c,
1651         * device/lib/_fs2slong.c: optimized inline asm
1652
1653 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1654
1655         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1656           Better handling of floats between -1.0 and 0.0.
1657
1658 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1659
1660         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1661           (the missing "if"s prohibited removal of redundant labels)
1662
1663 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1664
1665         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1666           Properly convert floats between -1.0 and 0.0 to long, int, and char
1667           types (max integer value of negative floats tends to zero).
1668         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1669           Removed changes made so to work properly with floats between
1670           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1671           and _fs2char.c
1672
1673 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1674
1675         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1676         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1677         (genCast) cosmetic change
1678         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1679         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1680         from mcs51
1681         * support/regression/tests/bitfields (testSignedBitfields): added
1682
1683 2005-11-18 Borut Razem <borut.razem AT siol.net>
1684
1685         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1686         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1687           introduced SILENT option to make building of pic16 libraries less
1688
1689 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1690
1691         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1692           Now they work properly with floats between -1.0 and 0.0
1693         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1694
1695 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1696
1697         * src/SDCCicode.c (printOperand): added missing else
1698
1699 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1700
1701         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1702         reformatted for better readability
1703         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1704         signed bitfields
1705
1706 2005-11-17 Borut Razem <borut.razem AT siol.net>
1707
1708         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1709           introduced SILENT option to make building of pic16 libraries less
1710           verbose - used for nightly snapshot build
1711         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1712           available on Win32 platforms.
1713         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1714           medium, large, pic and pic16
1715
1716 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1717
1718         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1719           printf("%f"...) sets fraction to zero.
1720
1721 2005-11-16 Raphael Neider <rneider AT web.de>
1722
1723         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1724           fixes #1357221
1725         * src/pic/gen.c (genIfx): implemented for CARRY bit
1726         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1727           to generic pointers, fixes #1357332,
1728           (pic16_movLit2f): NEW,
1729           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1730
1731 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1732
1733         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1734
1735 2005-11-11 Raphael Neider <rneider AT web.de>
1736
1737         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1738         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1739           compute pointer's type from operand,
1740           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1741           improved single bit reads, fixes bug #1353379
1742
1743 2005-11-09 Borut Razem <borut.razem AT siol.net>
1744
1745         * support/scripts/sdcc.nsi: added lib/pic to the package
1746
1747 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1748
1749         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1750
1751 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * support/regression/tests/bug1348008.c: added
1754         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1755         * support/regression/tests/bug1337835.c: updated comment
1756
1757 2005-11-06 Borut Razem <borut.razem AT siol.net>
1758
1759         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1760           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1761           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1762           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1763           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1764           dynamic construction of cl_error_class and derivates - 2.nd try
1765
1766 2005-11-05 Borut Razem <borut.razem AT siol.net>
1767
1768         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1769           bug, which caused Bus Errors on sparc solaris
1770
1771 2005-11-04 Borut Razem <borut.razem AT siol.net>
1772
1773         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1774           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1775           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1776           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1777           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1778           and derivates to resolve the initialization problem on OSX
1779
1780 2005-11-02 Borut Razem <borut.razem AT siol.net>
1781
1782         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1783           corrected typo - #include <winsock2.h>
1784
1785 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1786
1787         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1788           (_asxxxx_mapping): added org directive for future enhancements
1789
1790 2005-11-01 Borut Razem <borut.razem AT siol.net>
1791
1792         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1793           enabled sockets on WIN32
1794         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1795
1796 2005-10-31 Borut Razem <borut.razem AT siol.net>
1797
1798         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1799           WIN32 backslash path delimiters should be escaped when used in C strings
1800         * support/regression/tests/bitfields.c: exclude failing assertions for
1801           __CYGWIN32__ and __MINGW32__ hosts
1802
1803 2005-10-30 Borut Razem <borut.razem AT siol.net>
1804
1805         * src/SDCCutil.c: corrected double comparison typo
1806
1807 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1808
1809         * device/lib/medium/Makefile: added for new memory model medium
1810         * device/include/asm/mcs51/features.h: updated for medium/pdata
1811         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1812           added Multiply & Accumulate sbit's and MAC0_PAGE define
1813         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1814         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1815         * device/lib/_mullong.c: update for medium model
1816         * device/lib/incl.mk: added medium model
1817         * doc/sdccman.lyx: documented medium model
1818         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1819         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1820         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1821         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1822           (allocParms): set SCLS and OCLS to pdata for medium model
1823         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1824           for pdata,
1825           (powof2): return <0 if not power of 2
1826         * src/avr/gen.c (genBitWise): use updated powof2
1827         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1828           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1829           (shiftLLeftOrResult): use B if necessary
1830         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1831         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1832         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1833         * support/regression/Makefile.in: added test-mcs51-medium
1834         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1835
1836 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1837
1838         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1839         specifier unsigned
1840         * device/lib/time.c (mktime): fixed bug 1334315
1841
1842 2005-10-28 Raphael Neider <rneider AT web.de>
1843
1844         * device/include/pic/p16f_common.inc: added common declarations
1845         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1846
1847 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1850           (aopPutUsesAcc): added to predict accumulator use,
1851           (assignResultValue): save acc if necessary,
1852           (genMinusDec): store result if indirectly addressed,
1853           (genDivOneByte):  save acc if necessary,
1854           (movLeft2Result): bugfix if left already in acc,
1855           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1856             attention to accumulator use (esp. pdata),
1857           (genReceive): receive pdata correctly
1858         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1859         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1860
1861 2005-10-27 Raphael Neider <rneider AT web.de>
1862
1863         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1864
1865 2005-10-27 Raphael Neider <rneider AT web.de>
1866
1867         * .version: changed version to 2.5.4
1868         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1869         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1870           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1871             arithmetics support routines
1872         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1873         * device/lib/Makefile.in: also create installdir for pic
1874
1875         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1876           pic14 port as well
1877         * src/pic/device.c (dump_sfr): rewritten to delegate register
1878           placement to the linker (use `extern sym' rather than sym EQU addr),
1879           (validAddress): fixed to check last specified address
1880         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1881           (popGetLit): truncate literal value to 8 bit,
1882           (popGet): moved assert to more appropriate place
1883           (popGetExternal): create pCode operand from and mark the according
1884             symbol as being `extern'
1885           (popGetAddr): added sanity check on immediate's offset, provide
1886             GPOINTER tag on demand
1887           (aopPut): fixed for immediates,
1888           (mov2w_op): move operand's address or contents to WREG (depending on
1889             operand type), safer variant of mov2w,
1890           (movwf,call_libraryfunc): NEW, handy abbreviations,
1891           (get_argument_pcop,get_return_val_pcop,pass_argument,
1892           get_returnvalue): interface for accessing function parameters and
1893             return values,
1894           (assignResultValuei,genRet): use new parameter/return value interface
1895           (pic14_getDataSize): back to old version handling generic pointers,
1896           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1897             provided implementation and/or fixed old one,
1898           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1899             calls, removed legacy 8051 reference code
1900           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1901           (loadSignToC): NEW, move the operands sign bit to CARRY,
1902           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1903             genRightShiftSigned, accepts negative shift counts,
1904           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1905           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1906             generic pointers, __data pointers and __code pointers,
1907           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1908             and signed bitfields, limit bitfields to 8 bit,
1909           (genDataPointerGet): fixed number of bytes read,
1910           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1911           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1912             pointers to constant data are no longer assumed to point to __code
1913             space, removed invalid pointer types,
1914           (bitpatternFromVal): retrieve the PICs representation of an integer
1915             or float literal,
1916           (genDataPointerSet): fixed assigning to po_immediate operands,
1917           (genGenPointerSet): implemented as library call,
1918           (genIfx): fixed incorrect condition,
1919           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1920             provide GPOINTER tag according to destination's storage class,
1921           (genCast): added code to handle casting to generic pointers, added
1922             sign-/zero extension of the result
1923           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1924         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1925         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1926           extend the result
1927         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1928           address/register resides in the shared banks
1929           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1930             put all variables into separate sections (have the linker arrange
1931             them)
1932           (picglue): put init code and interrupt handlers in separate sections
1933         * src/pic/main.c: added port specific options table, modified to PORT
1934           structure to make GPOINTERs 3 byte, added pic14_options
1935           (_pic14_do_link): private linking routine (update paths to libraries,
1936             add libsdcc.lib by default)
1937         * src/pic/main.h: declare pic14_options
1938         * src/pic/pcode.c: fixed instructions i/o relations,
1939           (RegCond): reverted to correct version,
1940           (newpCodeOpLit): truncate literals to 8 bit,
1941           (genericPrint): added debug output,
1942           (getRegFromInstruction): fixed for various operand types, simplified
1943           (BuildFlow): fixed broken handling of isntructions with labels
1944           (LinkFlow): start at last instruction in flow (skip trailing comments),
1945             pass the flow on to the next instruction after CALL
1946           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1947           (insertPCodeInstruction): fixed inserting after a skip instruction,
1948           (DoBankSelect): fixed for labeled instructions
1949           (OptimizepBlock): honor --nopeep switch
1950           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1951         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1952         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1953           (pCodeOptime2pCodes): allow disabling this optimization via
1954             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1955             but is still buggy), started implementation of a dataflow based
1956             pCode optimization (CSE + dead code elimination)
1957           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1958         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1959           names are independant of the stack location and therefore portable across
1960           devices
1961
1962 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1963
1964         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1965           (selectSpil): fixed bug 1337835 by not spilling bit variables
1966         * support/regression/tests/bug1337835.c: added test for this bug
1967         * src/mcs51/peeph.def: restart after rule 3.c,
1968           addded rules 263.x to optimize loading constants
1969
1970 2005-10-26 Raphael Neider <rneider AT web.de>
1971
1972         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1973         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1974           (genAssign): emit warning when casting literals to generic pointer
1975             type, also applies when taking the address of a fixed variable,
1976           (genCast): improved casting to generic pointers
1977         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1978           extern variables, added verbose error message
1979         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1980
1981 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1982
1983         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1984         carry must be complemented too
1985         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1986         could be emitted by genMinus
1987         * src/SDCCval.c (constVal): fixed bug 1305065
1988
1989 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1990
1991         * src/SDCCast.c (addCast): added promotion for bit variables
1992         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1993         promotion casts + optimisation
1994         (optimizeGetWord): fix warning 'i' might be used uninitialized
1995         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1996         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1997
1998 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1999
2000         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2001         all chars are promoted to int; promotion should be handled in SDCCast.c
2002
2003 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2004
2005         * device/lib/_strcmp.c: Fixed bug 1326457
2006
2007 2005-10-11 Raphael Neider <rneider AT web.de>
2008
2009         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2010         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2011
2012 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2013
2014         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2015         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2016
2017 2005-10-04 Raphael Neider <rneider AT web.de>
2018
2019         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2020           device/lib/pic16/pics.all: added pic18f1320
2021         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2022
2023 2005-09-30 Raphael Neider <rneider AT web.de>
2024
2025         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2026         * src/pic16/devices.inc: NEW, provides device descriptions
2027         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2028
2029 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2030
2031         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2032           GETHBIT
2033
2034 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2035
2036         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2037           documented Any Order Bit, Higher Order Byte and Higher Order Word
2038         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2039         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2040           (optimizeGetAbit): new, to get any bit, not only the high bit,
2041           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2042           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2043           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2044           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2045             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2046             GETABIT, GETBYTE, GETWORD: decorate them,
2047           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2048           (ast_print): added GETABIT, GETBYTE, GETWORD
2049         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2050         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2051           (geniCodeBinary): new generic binary icode,
2052           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2053         * src/port.h: updated comment for PORT.hasExtBitOp
2054         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2055           (genGetByte): new, to get a single byte,
2056           (genGetWord): new, to get a word from a long,
2057           (gen51Code): added GETABIT, GETBYTE, GETWORD
2058         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2059
2060 2005-09-23 Raphael Neider <rneider AT web.de>
2061
2062         * configure.in, configure: have device/lib/pic configured
2063         * device/lib/Makefile.in: added model-pic14
2064         * device/lib/clean.mk: added pic/ to clean rule
2065         * device/lib/pic: added rudimentary pic14 library providing support
2066           functions for multiplication/division/generic pointer access
2067         * src/SDCCopt.c (convilong): mark support functions as extern
2068           for pic14 port as well
2069         * src/pic/gen.c (genMult): added assertions,
2070           (genpic14Code): emit warning on unhandled iCodes
2071         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2072         * src/pic/pcode.c (pCodeOpCopy),
2073         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2074           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2075           SFR_REGISTER}), made safe for future extensions
2076         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2077           instructions even if preceeded by SKIP instructions (also remove
2078           them); removed unused code
2079         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2080           prevents leaving parts of the structure uninitialized after copying
2081
2082 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2083
2084         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2085           ago by me
2086         * support/regression/tests/addsub.c: added test for the bug
2087
2088 2005-09-21 Raphael Neider <rneider AT web.de>
2089
2090         * device/include/pic16/pic18f1220.h,
2091           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2092         * device/lib/pic16/Makefile.rules: added missing opening paren
2093         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2094           are provided in genutils.c,
2095           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2096           operand/result sizes,
2097           (genCmp): assert on NULL pointers first, then check deref'ed values
2098         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2099           result size
2100
2101 2005-09-18 Raphael Neider <rneider AT web.de>
2102
2103         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2104           as these are now unused,
2105           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2106         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2107           local, avoids uninitialized pointer dereference on r->name
2108         * src/pic16/ralloc.c (newReg): fixed indentation
2109
2110 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2111
2112         * src/SDCCval.c (constVal): fixed bug 730366
2113         * support/Util/SDCCerr.c,
2114         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2115
2116 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2117
2118         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2119
2120 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2121
2122         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2123
2124 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2125
2126         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2127           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2128         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2129           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2130         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2131         * packihx/packihx.c (hexDigit): made c unsigned char
2132         * as/mcs51/lklibr.c (fndsym),
2133         * link/z80/lkgb.c (gb),
2134         * link/z80/lklibr.c (fndsym),
2135         * link/z80/lkrloc.c (relr),
2136         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2137         * src/SDCC.lex (checkCurrFile, process_pragma),
2138         * src/SDCCglue.c (spacesToUnderscores),
2139         * src/SDCCmain.c (setParseWithComma, processFile),
2140         * src/asm.c (tvsprintf, printCLine),
2141         * src/avr/gen.c (emitcode, aopPut),
2142         * src/ds390/gen.c (emitcode),
2143         * src/hc08/gen.c (emitcode, emitinline),
2144         * src/mcs51/gen.c (emitcode, genInline),
2145         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2146           tokenizeLineNode),
2147         * src/pic/ralloc.c (debugLog),
2148         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2149           tokenizeLineNode),
2150         * src/pic16/ralloc.c (debugLog),
2151         * src/z80/main.c (_process_pragma):
2152            made all ctype.h function calls safe
2153         * src/SDCCopt.c: include math.h for fabs
2154         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2155           and used them throughout the code to make ctype.h function calls safe
2156         * src/ds390/main.c (asmLineNodeFromLineNode),
2157         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2158         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2159            unsigned char*
2160         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2161           (newpCodeAsmDir): made ctype.h function calls safe
2162         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2163           pic16_emitcode):  made lbp unsigned char*
2164         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2165           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2166         * src/xa51/gen.c (emitcode),
2167         * src/z80/gen.c (_emit2): made lbp unsigned char*
2168         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2169            char*
2170
2171 2005-09-05 Raphael Neider <rneider AT web.de>
2172
2173         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2174           access bank splitpoint
2175
2176 2005-09-05 Raphael Neider <rneider AT web.de>
2177
2178         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2179
2180 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2181
2182         * .version: changed to version 2.5.3
2183         * doc/sdccman.lyx: changed version to 2.5.3,
2184           documented --codeseg and --constseg and pragma codeseg and constseg,
2185           documented bit parameters (reentrant) and bit returning
2186         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2187            currFunc->recvSize, but is this ok for all ports?
2188           (ast2iCode): result of ~ on unsigned char must be cast to int for
2189            bool to work
2190         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2191           function pointers in bit space
2192         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2193           (processFuncArgs): call port.reg_parm() with reentrancy info
2194         * src/port.h,
2195         * src/avr/main.c,
2196         * src/ds390/main.c,
2197         * src/hc08/main.c,
2198         * src/pic/main.c,
2199         * src/pic16/main.c,
2200         * src/xa51/main.c,
2201         * src/z80/main.c: port.reg_parm prototype extended with
2202           "bool reentrant" parameter
2203         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2204           options.stackAuto for allocating bit register parameters
2205         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2206           (genSend): set BitBankUsed if it is,
2207           (selectRegBank): factored out of genCall for use in genPcall,
2208           (genCall): removed redundant dtype assignmen, use selectRegBank,
2209           (genPcall): handle returning in Carry properly, save in F0 if needed,
2210           (genReceive): handle bit register parameters
2211         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2212           (mcs51_assignRegisters): enable bit registers for all reentrant
2213            functions and don't set BitBankUsed unconditionally
2214         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2215         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2216         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2217
2218 2005-08-27 Borut Razem <borut.razem AT siol.net>
2219
2220         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2221         ppc-osx (Darwin) does not support -u option. It seems that it is
2222         supported only on Linux - GNU cp
2223
2224 2005-08-25 Borut Razem <borut.razem AT siol.net>
2225
2226         * sim/ucsim/gui.src/serio.src/Makefile.in,
2227           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2228           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2229           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2230           install and strip, since the strip at /usr/ccs/bin should be used
2231           on solaris
2232
2233 2005-08-24 Borut Razem <borut.razem AT siol.net>
2234
2235         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2236
2237 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2238
2239         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2240         ffffffffu
2241
2242 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2243
2244         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2245         * as/mcs51/lkmain.c (link_main): fixed warning
2246         * device/include/stdbool.h: ds390 has no advanced bit support yet
2247         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2248         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2249         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2250           and updated their macros
2251         * src/SDCCval.c (constVal): updated comment for renamed b_long
2252
2253 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2254
2255         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2256         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2257           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2258           (oprio): set priority for '['
2259         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2260            and adb_24_bit
2261         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2262         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2263         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2264         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2265           added overlayable BIT_BANK area
2266         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2267           (summary2): explain 'T' in legenda
2268         * as/mcs51/lkrloc.c: replaced old K&R style,
2269           (relr): added R_BIT processing,
2270           (errmsg): added "Bit-addressable relocation error",
2271           (adb_bit): added for converting from byte- to bit-addressable space,
2272           (adb_24_bit): added for converting from byte- to bit-addressable space
2273         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2274            used in reentrant functions now even as return value
2275         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2276         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2277           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2278         * src/SDCCglobl.h: added indicator BitBankUsed
2279         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2280            the bit registers b0-b7
2281         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2282           (geniCodeCast): fixed bug 1263853,
2283           (geniCodeLogicAndOr): put result in bool or char,
2284           (geniCodeReceive): added parameter func for accessing the return type,
2285           (geniCodeFunctionBody): pass func to geniCodeReceive
2286         * src/SDCCmain.c: added indicator BitBankUsed
2287         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2288         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2289           (checkSClass): don't put automatic bool/bit on stack,
2290           (checkFunction): removed check on function cannot return bit
2291         * src/SDCCsymt.h: added newBoolLink prototype
2292         * src/mcs51/gen.c (rb1regs): added bit registers,
2293           (movc): created for assigning to carry,
2294           (pushReg, popReg): created for pushing registers,
2295           (sameRegs): check both AOP_REG and AOP_CRY types,
2296           (aopOp): handle bit registers,
2297           (aopPut): optimization no self-assign,
2298           (saveRegisters): push reg->base (bits) only once for bit registers,
2299            and use pushReg,
2300           (unsaveRegisters): pop reg->base only once and use popReg,
2301           (assignResultValue): added parameter func and return in carry for bits,
2302           (genIpush): optimization no reload in A if not changed,
2303           (genSend): bit parameters in reentrant functions are passed in bit
2304            registers by first assigning to bits in B, then save registers and
2305            copy B to bits,
2306           (genCall): handle returning in Carry properly, save it in F0 if needed,
2307           (genPcall): updated assignResultValue call, this is not safe yet for bit
2308            returning function !!!
2309           (genFunction): don't generate equ's for bit registers and use pushReg,
2310           (genEndFunction): take care of bit returning functions and use popReg,
2311           (genRet): return bit in Carry,
2312           (genIfx): optimize bit registers and other directly addressable bits,
2313           (genReceive): updated assignResultValue call
2314         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2315           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2316            registers when using stack-auto
2317         * src/mcs51/ralloc.c (_G): added allBitregs,
2318           (regs8051): added the bit registers,
2319           (createStackSpil): use macro IS_BIT,
2320           (getRegBit): added to allocate a bit register, else spill,
2321           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2322           (updateRegUsage): factored out to ease stepping while debugging,
2323           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2324            also allocate bit registers,
2325           (fillGaps): handle bit registers,
2326           (findAllBitregs): added to create bit vector with all bit registers,
2327           (mcs51_allBitregs): returns this bit vector,
2328           (mcs51_assignRegisters): when using stack-auto use bit registers for
2329            passing parameters and creating local variables
2330         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2331
2332 2005-08-22 Borut Razem <borut.razem AT siol.net>
2333
2334         * device/lib/Makefile.in: replaced find option -or with -o
2335           to make it run on solaris
2336
2337 2005-08-22 Raphael Neider <rneider AT web.de>
2338
2339         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2340           fixes #1265442 (crash on Solaris)
2341
2342 2005-08-20 Borut Razem <borut.razem AT siol.net>
2343
2344         * configure, configure.in: added tests for libsocket and libnsl libraries,
2345           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2346           from support/regression/Makefile.in
2347         * support/regression/Makefile.in: added
2348         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2349         * sim/ucsim/libtool: regenerated on sparc-solaris
2350         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2351           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2352           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2353           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2354           sparc-solaris, which doesn't use GNU ld linker
2355         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2356         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2357
2358 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2359
2360         * src/mcs51/peeph.def: updated comments
2361
2362 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2363
2364         * device/lib/_gptrget.c,
2365         * device/lib/_gptrput.c: slightly shorter
2366         * doc/sdccman.lyx: incremented version
2367         * src/mcs51/peeph.def: moved peephole comments to the line of first
2368           change to better keep line correlation, reanimated 186.e
2369         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2370
2371 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2372
2373         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2374           David Saxton with quotes around file name.
2375
2376 2005-08-15 Borut Razem <borut.razem AT siol.net>
2377
2378         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2379           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2380           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2381           make tests run on x86_64 platform
2382
2383 2005-08-13 Raphael Neider <rneider AT web.de>
2384
2385         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2386           as it might be executed DURING a build (parallel make is wonderful)
2387
2388 2005-08-13 Raphael Neider <rneider AT web.de>
2389
2390         * device/lib/Makefile.in (port-specific-objects-pic16):
2391           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2392         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2393           dependency
2394         * device/lib/pic16/Makefile.rules: build subdirs before creating
2395           the library, removed builddir rule, create $(builddir) early in
2396           recurse rule, use empty recurse rule for leaf directories
2397         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2398           mkdir errors (race condition), removed duplicate suffix "hex"
2399           from clean rules
2400         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2401         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2402           prevents mkdir -p from aborting on Alpha
2403
2404 2005-08-12 Raphael Neider <rneider AT web.de>
2405
2406         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2407           db-statements in order to allow for arrays of pointers in code
2408           sections to be placed without interspersed 0-padding, fixes
2409           bug #1256215
2410         * (emitStatistics): fixed division by zero for pic18f1220
2411         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2412           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2413         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2414         * (pic16_pCodeConstString): keep track of already emitted string
2415           literals to prevent "duplicate definitions of symbol _str_NR"
2416         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2417           debug message
2418         * device/lib/Makefile.in: ignore failing PIC16 library builds
2419         * device/lib/pic16/Makefile: do not build if gputils are missing
2420         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2421
2422 2005-08-10 Raphael Neider <rneider AT web.de>
2423
2424         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2425           my last commit)
2426
2427 2005-08-10 Raphael Neider <rneider AT web.de>
2428
2429         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2430           Rokas' patch to add the new fixed point type "__fixed16x16"
2431         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2432           functions for __fixed16x16 arithmetics
2433         * device/lib/pic16: reimplemented the build system to support
2434           a separate build directory, better handling of libio (create
2435           the library in a separate subdir for each architecture) and
2436           easier configuration (centralized in Makefile.common)
2437
2438 2005-08-07 Raphael Neider <rneider AT web.de>
2439
2440         * src/pic16/gen.c (genrshTwo): fixed sign extension
2441         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2442         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2443           added T0CONbits
2444         * device/include/pic16/pic18f4220.h: NEW, header for
2445           pic18f4220 and pic18f4320
2446         * device/include/pic16/pic18fregs.h: added new devices,
2447           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2448         * device/include/pic16/signal.h: resolved name clashes
2449           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2450           to also allow testing for interrupt enable bits, added
2451           comments on how to use the macros
2452         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2453         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2454           register definitions for the devices
2455         * device/lib/pic16/pics.all: added new devices
2456         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2457           allocated memory
2458         * device/lib/pic16/libc/stdlib/memfree: do not count
2459           the block header as free memory
2460         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2461           simplified and added missing end-of-blocklist-marker
2462           (reported by Peter Onion, fixes #1252814)
2463         * (_mergeHeapBlock): fixed loop condition
2464         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2465           len==0, restructured code
2466         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2467           up a bit, reduced bitfield accesses, prevent endless loops
2468           in case of heap corruption
2469         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2470           "unreferenced arguments/must return a value" warnings
2471         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2472           replaced BAUDREG with SPBRG
2473         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2474           device/lib/pic16/debug/gstack/gstack.c: replaced
2475           _naked, _asm, _endasm with __naked, __asm, __endasm
2476
2477 2005-08-05 Raphael Neider <rneider AT web.de>
2478
2479         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2480           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2481
2482 2005-08-05 Borut Razem <borut.razem AT siol.net>
2483
2484         * device/lib/Makefile.in: added missing ';'
2485         * configure: removed ^M characters
2486
2487 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2488
2489         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2490           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2491           License
2492
2493 2005-08-04 Borut Razem <borut.razem AT siol.net>
2494
2495         * configure.in: pic16 libraries build 2nd try - enable running
2496           configure in device/lib/pic16
2497         * configure: regenerated from configure.in
2498         * device/lib/Makefile.in: create $(PORT)/bin directory
2499
2500 2005-08-03 Raphael Neider <rneider AT web.de>
2501
2502         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2503           to get/set values via pointers
2504         * (genUnpackBits,genPackBits): changed detection of
2505           ptr->bitfield vs. sym.bitfield, fixed access via generic
2506           pointers, removed dead (wrong) code for multibyte bitfields
2507         * (genNearPointerGet, genGenPointerGet): removed useless code,
2508           fixed bitfield detection, fixes #1250594
2509         * (genNearPointerSet): removed useless code
2510         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2511           and introduced macro pic16_emitpcode that conditionally emits
2512           the origin of the following pCode (useful for debugging SDCC)
2513         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2514         * (createDefmap): fixed handling of LFSR for --optimize-df
2515
2516 2005-08-02 Borut Razem <borut.razem AT siol.net>
2517
2518         * device/lib/Makefile.in: pic16 libraries build enabled since
2519           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2520
2521 2005-08-02 Raphael Neider <rneider AT web.de>
2522
2523         * src/pic16/gen.c (genPackBits): removed deprecated warning
2524         * (genGenPointerSet): fixed bitfield detection
2525
2526 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2527
2528         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2529
2530 2005-07-31 Raphael Neider <rneider AT web.de>
2531
2532         * device/lib/pic16/libdev/pic18f458.c,
2533           device/include/pic16/pic18f458.h: added missing T0CONbits
2534
2535 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2536
2537         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2538
2539 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2540
2541         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2542
2543 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2544
2545         * device/include/mcs51/at89c51ed2.h: added.
2546
2547 2005-07-23 Raphael Neider <rneider AT web.de>
2548
2549         * src/pic/gen.h: added emitpcode macro for debugging
2550         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2551           and replace by macro adding debug information on demand
2552         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2553         * (gencjne): tried to fix; replaced with correct (slower) code
2554         * (gen{Unp,P}ackBits): fixed single bit access
2555         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2556         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2557           previous instruction
2558         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2559           register has to be handled with care (forbidding movement
2560           of assignments/uses, removing assignments completely, ...)
2561         * (pCodeOptime2pCodes): make use of regIsSpecial
2562         * added lots of debugging output (commented out)
2563         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2564           from being reused as result UNLESS it is known to work
2565
2566 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2567
2568         * support/Util/dbuf.h: include <stddef.h> for size_t
2569         * .version: changed to version 2.5.2
2570
2571 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2572
2573         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2574
2575 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2576
2577         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2578           (genModOneByte): removed needless psha/pula
2579
2580 2005-07-22 Raphael Neider <rneider AT web.de>
2581
2582         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2583           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2584         * src/pic/gen.c (resolveIfx): do not "invent" labels
2585         * (genSkipc): changed to positive logic
2586         * (genSkipCond): removed as no longer needed
2587         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2588           backport from PIC16
2589         * (genLeftShift): check operands are in different registers
2590         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2591           INCF does not update CARRY...
2592         * src/pic/main.c: fixed _linkCmd
2593         * src/pic/pcode.c (unlinkpCode): added inactive code
2594         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2595           alive (do not assign result and operand overlapping registers)
2596
2597 2005-07-22 Raphael Neider <rneider AT web.de>
2598
2599         * src/pic/device.c (dump_sfr): replaced register declaration with
2600           call to emitSymbolToFile() to avoid duplicate symbols
2601         * (assignRelocatableRegisters): do not declare external symbols
2602         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2603           right (take size of type, not etype)
2604         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2605         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2606         * (packRegsForAccUse): disabled assignment of WREG as
2607           the result reg to prevent occurence of just fixed #1235003,
2608           fixes #1242954
2609         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2610           symbols (avoids duplicate symbols in .asm file)
2611         * (pic14emitRegularMap): use emitSymbolToFile()
2612         * src/pic/gen.c (aopOp): fixed spillLocation handling
2613         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2614         * (genDataPointerSet): removed unneccessary variables/output
2615
2616 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2617
2618         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2619         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2620
2621 2005-07-21 Raphael Neider <rneider AT web.de>
2622
2623         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2624           architecture cannot handle them efficiently, fixes bug #1235003
2625         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2626           check for empty sets before using them (fixes bug #1232190)
2627
2628 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2631           (lnksect2): generate warnings for memory overlap
2632         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2633           constseg to set the name of these segments so you can instruct the linker
2634           to place them in banks
2635         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2636         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2637           added code_seg and const_seg to options
2638         * src/SDCCglue.c (emitMaps): use options.const_seg,
2639           (createInterruptVect): put interrupt vectors in segment HOME,
2640           (glue): put HOME before static segment and put the main glue in HOME,
2641           (glue): use options.code_seg
2642         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2643         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2644           these segments so you can instruct the linker to place them in banks
2645           (linkEdit): use code_loc for HOME segment which should be the first
2646           segment in code memory now
2647         * src/SDCCmem.c: fixed more stuff like bug 1238386
2648         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2649           (changePointer): don't change function pointers to code pointers for
2650           banked functions,
2651           (compareType): added exceptional check for banked function pointers
2652         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2653         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2654           after static in code memory
2655         * src/mcs51/gen.c: added aopLiteralLong prototype,
2656           (aopForSym): use getSize for functions,
2657           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2658           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2659           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2660           the segment,
2661           (genPcall): use call for literal function pointers and generate banked
2662           calls over the one trampoline so there's only one place for the user to
2663           modify according to his/hers hardware,
2664           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2665           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2666         * src/mcs51/main.c: added keyword banked,
2667           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2668         * support/Util/SDCCerr.c,
2669         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2670           needed for passing the bank and address to the trampoline
2671         * device/lib/mcs51/crtbank.asm: added for bankswitching
2672         * device/lib/mcs51/Makefile: added crtbank
2673
2674 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2675
2676         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2677           for fields at offset 0 of a struct or union as reported
2678           on 2005-07-07 in the developer mailing list.
2679
2680 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2681
2682         * src/SDCCmem.c: fixed bug 1238386
2683
2684 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2685
2686         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2687           (patch #1144962), added peephole 300, enabled 259.x
2688         * doc/sdccman.lyx: removed screenshot and provided link instead
2689
2690 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2691
2692         * doc/sdccman.lyx: added section about debugging with ddd
2693         * doc/figures/ddd_example.eps: screenshot of debugging session
2694
2695 2005-07-04 Raphael Neider <rneider AT web.de>
2696
2697         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2698           like CODE pointers, fixes #1115683
2699         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2700           call, fixes bugs #1232211, #1228110,
2701           fixed wrong casts to pCodeFlow from pCodeInstructions
2702
2703 2005-07-04 Raphael Neider <rneider AT web.de>
2704
2705         * src/pic/gen.c (popGet): changed assert to allow for
2706           bit operands
2707         * (popGetAddr): changed signature to provide
2708           an additional index, patched all call sites
2709         * (genCmpEq): handle literal-like operands correctly
2710         * (genAddrOf): added sanity checks on __code/__data pointers
2711         * (genAssign): added handling of symbols from __code section
2712         * (gencjne): do not generate code for comparisons whose result
2713           is neither stored nor used, fixes bug #1171114
2714         * (AccLsh, AccRsh): operate on operand instead of WREG
2715         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2716           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2717           by known count
2718         * rewrote complete shift-by-literal logic, commented unused
2719           functions out
2720         * (genConstPointerGet): get multiple bytes (if result size > 1),
2721           fixed handling of non-immediate addresses
2722         * (genPointerGet): handle CODE pointers like CONST pointers
2723         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2724         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2725           operand is to be treated as a literal or not
2726         * (mov2w,genPcall,genCmpEq),
2727           src/pic/genarith.c: use aop_isLitLike() to decide between
2728           literal/register contents
2729         * (addSign): added missing offset
2730         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2731           only emit comment in debug-mode,
2732           use {aop,op}_isLitLike throughout the file
2733         * src/pic/glue.c: fix initializers for pointers (work in progress)
2734         * src/pic/pcode.c (get_op): honor index on _const symbols
2735         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2736         * (dumppBlock): added pCode size estimation
2737         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2738           check for IS_SYMOP before OP_SYMBOL'ing
2739         * fixed indentation, compacted switch-statements
2740         * (allocReg): find free register and allocate it instead of
2741           allocating new registers all the time
2742         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2743           registers as its operands (necessary only for multibyte GETs)
2744
2745 2005-07-01 Raphael Neider <rneider AT web.de>
2746
2747         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2748           debugging .asm-output macros FENTRY + FEXIT
2749         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2750           way... I wonder...
2751         * (emitpComment): NEW, printf to pCode
2752         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2753           offset handling
2754         * (popGetAddr): NEW, variant of popGet to access an immediates
2755           high(er) bytes instead of the n'th byte of memory they reference,
2756           replaced popGet with popGetAddr where neccessary
2757         * (genDataPointerGet): reactivated and fixed implementation
2758         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2759           accesses
2760         * (genDataPointerSet): fixed multibyte assignments
2761         * (genpic14Code): fixed --i-code-in-asm handling
2762         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2763         * (genPlus): fixed index-out-of-bounds error
2764         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2765         * src/pic/ralloc.c: added debugging output macro FENTRY2
2766         * (spillThis): fixed indentation, enbraced for-body for clarity
2767         * (rematStr): commented out as now unused
2768         * (regTypeNum): commented out special spill case (overwrites
2769           arbitrary values)
2770         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2771
2772 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2773
2774         * doc/sdccman.lyx: documented sfr16/sfr32,
2775           added example for using storage class with function pointers
2776         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2777
2778 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2779
2780         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2781         * device/lib/_itoa.c,
2782         * device/lib/_ltoa.c: optimized codesize
2783         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2784           but don't know how to suppress the double warning.
2785         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2786         * support/Util/SDCCerr.c,
2787         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2788
2789 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2790
2791         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2792           fixed old K&R prototypes
2793         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2794         * device/lib/_gptrget.c,
2795         * device/lib/_gptrgetc.c,
2796         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2797           also new versions for small generic pointers and banked generic pointers
2798         * src/port.h: added const_name
2799         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2800         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2801         * src/SDCCcse.c (findPrevIc): check all associative operators
2802         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2803         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2804         * src/SDCCmem.c: updated comments,
2805           set far-space to 0 for pdata, results in optimized code
2806         * src/SDCCmem.h: added macro CONST_NAME
2807         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2808           moving the info into the highest bits, see also gptrget/gptrput
2809         * src/src.dsp: added sdcc.ico to project files
2810         * src/avr/gen.c (genCast): fixed bug 0x%d
2811         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2812         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2813           relation between ptr_type and DCL_TYPE,
2814           (genCast): fixed bug 0x%d
2815         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2816           (CODE)" for const_name
2817         * src/hc08/gen.c (genCast): fixed bug 0x%d
2818         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2819           (hc08_port): added "CONST (CODE)" for const_name
2820         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2821           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2822           between ptr_type and DCL_TYPE,
2823           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2824           operand* and took AOP() inside function so sfr-ness can be checked,
2825           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2826           new prototype,
2827           (genFunction, genEndFunction): optimized stack setup,
2828           (genMinus): optimized for literals with ending zeroes (in bytes),
2829           (genCast): fixed bug 0x%d
2830         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2831           (mcs51_port): added "CONST (CODE)" for const_name
2832         * src/mcs51/peeph.def: made rule 226 more generic
2833         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2834         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2835         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2836         * src/z80/main.c (z80_port): added NULL for const_name,
2837           (gbz80_port): added NULL for const_name
2838         * support/regression/tests/bug663539.c,
2839         * support/regression/tests/sfr16.c: new tests
2840
2841 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2842
2843         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2844
2845 2005-06-24 Raphael Neider <rneider AT web.de>
2846
2847         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2848           corrected typos...
2849         * device/include/pic16/signal.h: added USBIF
2850           and SIG_USB
2851
2852 2005-06-24 Raphael Neider <rneider AT web.de>
2853
2854         * device/lib/pic16/libdev/pic18f2455.c,
2855           device/include/pic16/pic18f2455.h: NEW
2856         * device/include/pic16/pic18fregs.h,
2857           device/lib/pic16/pics.all,
2858           src/pic16/device.c: added 18f2455
2859         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2860           device/include/pic16/{pic18f[68][567].h,usart.h}:
2861           replaced MULTIPLE_USARTS define with more relaible
2862           compatibility sfrs (for USART access)
2863
2864 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2865
2866         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2867           and the output asm file line is printed on two lines.
2868
2869 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2870
2871         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2872           BGT, BLE, BHI, and BLS instructions
2873         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2874           genCmpEq): removed
2875         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2876           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2877           fixes bug #1216342
2878         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2879
2880 2005-06-15 Raphael Neider <rneider AT web.de>
2881
2882         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2883         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2884         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2885           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2886           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2887
2888 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2889
2890         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2891           Marcel Telka in bug #1215704
2892
2893 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2894
2895         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2896           located in shared memory bank.
2897
2898 2005-05-31 Raphael Neider <rneider AT web.de>
2899
2900         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2901           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2902           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2903
2904 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2905
2906         * device/lib/_strncpy.c: fixed the fix
2907
2908 2005-05-26 Raphael Neider <rneider AT web.de>
2909
2910         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2911           initializers with \0, bug #1208187
2912         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2913           intializers with \0, bug #1208187
2914
2915 2005-05-26 Raphael Neider <rneider AT web.de>
2916
2917         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2918           initializers with \0, bug #1208187
2919         * src/pic16/main.c (_process_pragma): added sanity checks
2920           for stack position and size, emit warnings when appropriate
2921
2922 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2923
2924         * device/lib/_strncpy.c: fixed not filling with \0
2925
2926 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2927
2928         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2929           createFunction),
2930         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2931           compound_statement),
2932         * src/SDCCsymt.h,
2933         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2934
2935 2005-05-24 Raphael Neider <rneider AT web.de>
2936
2937         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2938
2939 2005-05-24 Raphael Neider <rneider AT web.de>
2940
2941         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2942           TRISE definitions, closes bug #1162453
2943
2944 2005-05-22 Raphael Neider <rneider AT web.de>
2945
2946         * src/pic16/main.c (_process_pragma): check for missing
2947           arguments to pragmas code and udata
2948         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2949           consistency fixes to match other headers (thanks to Jim Paris)
2950         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2951
2952 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2953
2954         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2955
2956 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2957
2958         * support/regression/tests/bug1198642.c: new test
2959         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2960         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2961         * support/scripts/resource.h,
2962         * support/scripts/resource.rc,
2963         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2964         * support/scripts/sdcc.ico: added 32x32 icon
2965
2966 2005-05-18 Raphael Neider <rneider AT web.de>
2967
2968         * device/lib/pic16/libdev/pic18f*.c,
2969         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2970           keywords to "__sfr" and "__at (X)"
2971         * device/include/pic16/pic18fregs.h: added pic18f4520
2972         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2973           #1203088 (MPLAB compatibility)
2974
2975 2005-05-17 Raphael Neider <rneider AT web.de>
2976
2977         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2978         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2979         * device/lib/pic16/pics.all: added new devices
2980         * src/pic16/device.c: added support for pic18f4520
2981
2982 2005-05-16 Raphael Neider <rneider AT web.de>
2983         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2984         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2985         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2986           convenience function for bit access
2987
2988 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2989
2990         * device/lib/printf_large.c: fixed bug 1193299
2991         * support/regression/tests/bug1057979.c: added test %3.3s
2992
2993 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2994
2995         * device/include/mcs51/8051.h,
2996         * device/include/mcs51/8052.h: made parseable with lint
2997         * device/include/mcs51/lint.h: added include file for (sp)lint
2998         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2999         * doc/cdbfileformat.lyx,
3000         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3001
3002 2005-05-14 Raphael Neider <rneider AT web.de>
3003
3004         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3005         * device/lib/pic16/libc/stdlib/itoa.c (new)
3006         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3007         * device/lib/pic16/libio/Makefile: exclude subdir according to
3008           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3009         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3010         * src/pic16/gen.c (genFunction): prevent annoying warning
3011         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3012           nameclashes on BeOS
3013         * support/cpp2/cppmain.c (cpp_output_string): new
3014         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3015           fixes bug 1116802
3016
3017 2005-05-13 Borut Razem <borut.razem AT siol.net>
3018
3019         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3020
3021 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3022
3023         * .version: changed to version 2.5.1; back to bleeding edge development
3024
3025 2005-05-11 Borut Razem <borut.razem AT siol.net>
3026
3027         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3028           generate PDF version 1.3 documents
3029
3030 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3031
3032         * .version: changed to version 2.5.0
3033
3034 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3035
3036         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3037
3038 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3039
3040         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3041         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3042         well as many smaller updates.
3043         * .version: changed to version 2.5.0-pre1
3044
3045 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3046
3047         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3048
3049 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3050
3051         * support/regression/tests/bug1185672.c: added
3052         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3053           bug 1185672
3054         * src/mcs51/gen.c (genCall): added comments, made it look safer
3055         * src/mcs51/gen.c (genEndFunction): simplified
3056
3057 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3058
3059         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3060
3061 2005-04-14 Borut Razem <borut.razem AT siol.net>
3062
3063         * fixed bug 1045046 - SIGSEGV with really simple code?:
3064           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3065           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3066
3067 2005-04-14 Borut Razem <borut.razem AT siol.net>
3068
3069         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3070           src/pic16/device.h: temporarily disabled experimental #inline pragma
3071           for 2.5.0 release
3072
3073 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3074
3075         * device/include/z80/stdio.h,
3076         * device/include/z80/string.h: removed these highly incomplete files so
3077           SDCC can use the default ones in device/include/
3078
3079 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3080
3081         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3082         gcc warning.
3083         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3084         fix sdcpp warnings.
3085
3086 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3087
3088         * device/include/malloc.h: removed redundant __reentrant prototypes
3089         * device/lib/_mullong.c: added working xstack variant in asm (C version
3090           doesn't pass regression tests)
3091         * device/lib/bpx.c: used __data and made bpx char for mcs51
3092         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3093           (createFunction): fixed bug with xstackPtr
3094         * src/SDCCcse.c: corrected comments
3095         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3096           (killDeadCode, eBBlockFromiCode): removed unused code
3097         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3098           corrected comments
3099         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3100           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3101           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3102           (genModOneByte): fixed warning in MSVC
3103         * src/mcs51/main.c (): added comments
3104         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3105
3106 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3107
3108         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3109
3110 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3111
3112         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3113
3114 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3115
3116         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3117         characters arrays of larger size than the declared one.
3118
3119 2005-04-10 Borut Razem <borut.razem AT siol.net>
3120
3121         * src/pic/gen.c (genInline),
3122           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3123           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3124           (findNextInstruction), (findPrevInstruction),
3125           (findInstructionUsingLabel),
3126           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3127         * src/pic/pcode.c (findLabel): added missing '\n'
3128         * src/src.dsp: added SDCCdwarf2.c to the project
3129
3130 2005-04-09 Borut Razem <borut.razem AT siol.net>
3131
3132         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3133
3134 2005-04-08 Raphael Neider <rneider AT web.de>
3135
3136         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3137           into the chain after a given one) and mergeDefmapSymbols (combine
3138           defmap entries for each symbol per pcode)
3139         * (createDefmap): have defmap entries merged in the end
3140         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3141           a symbol before replacing one access type's symbol, merge symbols in
3142           the end (replacement symbol might already have an entry)
3143         * (assignValnums): keep reference to written WREG intact
3144
3145 2005-04-08 Raphael Neider <rneider AT web.de>
3146
3147         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3148           Alpha)
3149
3150 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3151
3152         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3153         bytes
3154
3155 2005-04-07 Raphael Neider <rneider AT web.de>
3156
3157         * device/include/pic16/usart.h: added compatibility defines for
3158           devices with more than one USART
3159         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3160
3161 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3162
3163         * device/lib/Makefile.in: updated for port specific include
3164
3165 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3166
3167         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3168
3169 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3170
3171         * device/include/8051.h,
3172         * device/include/8052.h,
3173         * device/include/at89S8252.h,
3174         * device/include/at89c55.h,
3175         * device/include/at89x051.h,
3176         * device/include/at89x51.h,
3177         * device/include/at89x52.h,
3178         * device/include/mcs51reg.h,
3179         * device/include/reg51.h,
3180         * device/include/reg764.h,
3181         * device/include/regc515c.h,
3182         * device/include/sab80515.h: (re)moved these 12 files
3183         * device/include/mcs51/8051.h,
3184         * device/include/mcs51/8052.h,
3185         * device/include/mcs51/at89S8252.h,
3186         * device/include/mcs51/at89c55.h,
3187         * device/include/mcs51/at89x051.h,
3188         * device/include/mcs51/at89x51.h,
3189         * device/include/mcs51/at89x52.h,
3190         * device/include/mcs51/mcs51reg.h,
3191         * device/include/mcs51/reg51.h,
3192         * device/include/mcs51/reg764.h,
3193         * device/include/mcs51/regc515c.h,
3194         * device/include/mcs51/sab80515.h: and added them here
3195
3196 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3197
3198         * device/include/stdarg.h: changed SDCC specific keywords to double
3199           underlined form.
3200         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3201           mcs51 and ds390.
3202         * device/include/hc08/mc68hc908gp32.h,
3203         * device/include/hc08/mc68hc908jb8.h,
3204         * device/include/hc08/mc68hc908jkjl.h,
3205         * device/include/hc08/mc68hc908qy.h: fixed comments
3206         * device/include/mcs51/README: updated
3207         * device/include/mcs51/c8051f120.h: added PINRSF
3208         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3209         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3210           amidst code. Also inline is not supported.
3211
3212 2005-04-06 Raphael Neider <rneider AT web.de>
3213
3214         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3215         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3216           callers stack/frame pointers
3217
3218 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3219
3220         * device/include/pic16/usart.h: added, missing in previous commit,
3221         * device/include/pic16/adc.h: fixed typo,
3222         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3223         commit,
3224         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3225         <p18fxxx.inc>
3226         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3227         uninitialized because a bug appears with gplink
3228         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3229         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3230         complains for unrecognised option
3231
3232 2005-04-05 Raphael Neider <rneider AT web.de>
3233
3234         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3235           structs as well (using memcpy)
3236         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3237           on ISRs (GOTO has no label)
3238         * src/pic16/device.h: added OF_OPTIMIZE_DF
3239         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3240           new data flow analysis/optimization
3241         * src/pic16/pcode.c: added (prototypes for and implementation of)
3242           dataflow analysis functions, fixed pCodeInstructions' inCond and
3243           outCond values, made RCALL a branch instruction
3244         * (pic16_unlinkpCode): keep C line if possible
3245         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3246           C line moved if possible
3247         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3248         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3249           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3250         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3251           new flow)
3252         * (pic16_getJumptabpCode): NEW, needed in...
3253         * (LinkFlow): fixed handling of jumptables, calls and conditional
3254           branches
3255         * (pic16_InsertCommentAfter): NEW
3256         * (pic16_pCodeReplace): made verbose and flow preserving
3257         * (AnalyzeFlow): added call to data flow analysis
3258         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3259         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3260         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3261
3262 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3263
3264         * src/SDCCast.c (decorateType): fixed bug #1105626
3265
3266 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3267
3268         * device/include/asm/pic16/features.h,
3269         * pic18f*.h headers,
3270         * device/include/pic16/adc.h,
3271         * device/include/pic16/delay.h,
3272         * device/include/pic16/i2c.h,
3273         * device/include/pic16/malloc.h,
3274         * device/include/pic16/stdio.h,
3275         * device/include/pic16/stdlib.h,
3276         * device/include/pic16/string.h,
3277         * device/lib/pic16/libc/stdio/printf_tiny.c,
3278         * device/lib/pic16/libc/stdio/printf_small.c,
3279         * device/lib/pic16/libc/stdio/strmgpsim.c,
3280         * device/lib/pic16/libc/stdio/strmmssp.c,
3281         * device/lib/pic16/libc/stdio/strmusart.c,
3282         * device/lib/pic16/libc/stdio/vfprintf.c,
3283         * device/lib/pic16/libc/stdlib/ltoa.c,
3284         * device/lib/pic16/libc/stdlib/putchar.c,
3285         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3286         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3287         * device/lib/pic16/libc/stdlib/memchrram.c,
3288         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3289         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3290         * device/lib/pic16/libio/adc/adcbusy.c,
3291         * device/lib/pic16/libio/adc/adcread.c,
3292         * device/lib/pic16/libio/adc/adcsetch.c,
3293         * device/lib/pic16/libio/usart/ubaud.c,
3294         * device/lib/pic16/libio/usart/ubusy.c,
3295         * device/lib/pic16/libio/usart/udrdy.c,
3296         * device/lib/pic16/libio/usart/uopen.c,
3297         * device/lib/pic16/libio/usart/uputc.c,
3298         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3299         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3300         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3301         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3302         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3303         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3304         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3305         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3306         specific keywords to double underlined form,
3307         * device/lib/pic16/libc/Makefile.rules,
3308         * device/lib/pic16/libsdcc/Makefile.rules,
3309         * device/lib/pic16/libm/Makefile,
3310         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3311         to compile with C standard set in Makefile.common
3312         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3313         rand.c and crc.c in compilation process,
3314         * device/lib/pic16/libsdcc/int/divuint.c,
3315         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3316         `c' from signed to unsigned,
3317         * device/lib/pic16/startup/crt0.c,
3318         * device/lib/pic16/startup/crt0i.c,
3319         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3320         keywords to double underlined form, bug fixes in _do_cinit function
3321         which prevented the correct initialization of the .idata segment,
3322         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3323         core to enter a infinite loop
3324         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3325
3326 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3327
3328         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3329
3330 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3331
3332         * device/include/Makefile.in: add support for hc08 subdirectory
3333         * device/include/hc08/: new subdirectory
3334         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3335         Lucas Loizaga, thanks!
3336         * device/include/hc08/mc68hc908qy.h,
3337         * device/include/hc08/mc68hc908gp32.h,
3338         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3339         their own directory. Changed internal macro names to use the compiler
3340         reserved namespace. Changed SDCC specific keywords to double
3341         underlined form.
3342         * device/include/math.h,
3343         * device/include/malloc.h,
3344         * device/include/stdarg.h,
3345         * device/include/stdbool.h
3346         * device/include/string.h,
3347         * device/include/tinibios.h,
3348         * device/include/ds400rom.h,
3349         * device/include/8051.h,
3350         * device/include/8052.h,
3351         * device/include/80c51xa.h,
3352         * device/include/at89c55.h,
3353         * device/include/at89S8252.h,
3354         * device/include/at89x51.h,
3355         * device/include/at89x52.h,
3356         * device/include/ds80c390.h,
3357         * device/include/reg764.h,
3358         * device/include/regc515c.h,
3359         * device/include/sab80515.h,
3360         * device/include/mcs51/c8051f000.h,
3361         * device/include/mcs51/c8051f018.h,
3362         * device/include/mcs51/c8051f020.h,
3363         * device/include/mcs51/c8051f040.h,
3364         * device/include/mcs51/c8051f060.h,
3365         * device/include/mcs51/c8051f120.h,
3366         * device/include/mcs51/c8051f300.h,
3367         * device/include/mcs51/c8051f310.h,
3368         * device/include/mcs51/c8051f320.h,
3369         * device/include/mcs51/c8051f330.h,
3370         * device/include/mcs51/c8051f350.h,
3371         * device/include/z180.h: Changed SDCC specific keywords to double
3372         underlined form.
3373
3374 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3375
3376         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3377         18F4455,
3378         * (pic16_assignConfigWordValue): disable testing of configuration
3379         register value with config mask,
3380         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3381         function with port->fun_prefix,
3382         * (genFunction): when generating a naked interrupt function never
3383         create an absolute segment placed in interrupt vector address, place
3384         the actual interrupt function at IVA instead, when an interrupt
3385         function is generated with unspecified interrupt then do not create
3386         the absolute section,
3387         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3388         code for generating a call to generic pointer get/put function with
3389         a call to function pic16_callGenericPointer(),
3390         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3391         the call to the generic pointer get/put functions with prefixing the
3392         function name with port->fun_prefix,
3393         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3394         * src/pic16/main.c (_process_pragma): prefix function with
3395         port->fun_prefix,
3396         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3397         calling assembler, old 18Fxxxx macro is deprecated,
3398         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3399         PC_ASMDIR in while condition,
3400         * (findInstruction): add PC_ASMDIR in while condition,
3401         * (buildCallTree): prefix main with port->fun_prefix,
3402         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3403         identifier for variable with banked access in instructions BTFSS,
3404         BTFSC, BCF, BSF, BTG
3405         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3406         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3407         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3408         perform optimization when enviroment variable NO_REG_OPT is set,
3409         * (insideLRBlock): NEW, return 1 if register is inside an
3410         INF_LOCALREGS block,
3411         * (RemoveRegFromLRBlock): remove a register that is completely
3412         eliminated by register optimization, but it is still left in local
3413         register store/restore in/from stack block,
3414         * (Remove2pcodes): after removing register, check to see if it
3415         should be removed from local register store/restore in/from stack
3416         block,
3417         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3418         DUMMY_READ_VOLATILE,
3419
3420         * device/include/pic16/adc.h: minor prototype modifications and
3421         update,
3422         * device/include/pic16/malloc.h: added GPL notice various
3423         modifications,
3424         * device/include/pic16/stdint.h: NEW, standard header for ints
3425         * device/include/pic16/delay.h: NEW, header for delay functions,
3426         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3427         delay1mtcy,
3428         * device/include/pic16/signal.h: NEW, header providing helper macros
3429         for implementing signal handlers,
3430         * device/include/pic16/stdio.h: added prototypes for functions,
3431         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3432         prototypes for stdin and stdout, added macro PUTCHAR to
3433         automatically implement putchar function prototype,
3434         * device/include/pic16/usart.h: modified and updated USART library,
3435         * device/lib/pic16/libio/adc/,
3436         * device/lib/pic16/libio/i2c: some modifications to improve library
3437         performance,
3438         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3439         family of functions,
3440         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3441         family of functions and other sources,
3442         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3443         of the PIC18Fxx[28] devices,
3444         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3445         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3446         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3447         _do_cinit function, because the previous failed when local variables
3448         where not placed in the same memory bank,
3449         * device/lib/pic16/libsdcc/char/: various modifications to improve
3450         library performance,
3451         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3452         information on the new functions of the c library and more...
3453
3454 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3455
3456         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3457
3458 2005-03-26 Raphael Neider <rneider AT web.de>
3459
3460         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3461           if condition == CARRY)
3462         * (genCmp): adapted to new genSkipc semantics
3463         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3464           on rIfx (genCmp was broken)
3465
3466 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3467
3468         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3469         * src/z80/main.c (_keywords[]),
3470         * src/SDCCglobal.h (struct options),
3471         * src/SDCC.y,
3472         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3473         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3474         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3475         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3476         always available in leading double underscore form. The C99 support is
3477         mostly missing, but it's a start.
3478         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3479         reserved identifier "__data".
3480
3481 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * src/mcs51/peeph.def: fixed bug 1170013
3484
3485 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3486
3487         * device/include/mcs51reg.h: fixed bug 842007
3488
3489 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3490
3491         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3492         last time.
3493
3494 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3495
3496         * src/port.h (struct PORT),
3497         * src/avr/ralloc.c (avr_assignRegisters),
3498         * src/avr/main.c,
3499         * src/ds390/ralloc.c (ds390_assignRegisters),
3500         * src/ds390/main.c,
3501         * src/hc08/ralloc.c (hc08_assignRegisters),
3502         * src/hc08/main.c,
3503         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3504         * src/mcs51/main.c,
3505         * src/pic/ralloc.c (pic14_assignRegisters),
3506         * src/pic/main.c,
3507         * src/pic16/ralloc.c (pic16_assignRegisters),
3508         * src/pic16/main.c,
3509         * src/xa51/ralloc.c (xa51_assignRegisters),
3510         * src/xa51/main.c,
3511         * src/z80/ralloc.c (z80_assignRegisters),
3512         * src/z80/ralloc.h,
3513         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3514         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3515         * src/SDCCcse.h,
3516         * src/SDCCdflow.c (computeDataFlow),
3517         * src/SDCCdflow.h,
3518         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3519         * src/SDCCloop.h,
3520         * src/SDCCcflow.c (*),
3521         * src/SDCCcflow.h,
3522         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3523         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3524         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3525         immedDom() returning wrong block; probably fixes bug #1160833)
3526
3527 2005-03-20 Borut Razem <borut.razem AT siol.net>
3528
3529         * support/scripts/inc2h.pl: WIN32 port
3530
3531 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3532
3533         * device/lib/makefile.in: added abs.c and labs.c
3534
3535 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3536
3537         * device/include/stdint.h: added
3538         * device/lib/abs.c: added
3539         * device/lib/labs.c: added
3540         * device/include/stdlib.h: added abs() and labs() prototypes
3541         * device/lib/libsdcc.lib: added abs and labs
3542         * device/include/float.h,
3543         * device/lib/_fsmul.c,
3544         * device/lib/printf_fast.c,
3545         * device/lib/printf_tiny.c: updated comments
3546
3547 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3548
3549         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3550         bug #1164313
3551
3552 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3553
3554         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3555         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3556
3557 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3558
3559         * device/lib/printf_large.c: removed inline assembly for portability and
3560           readability. Use printf_fast if speed or size are more important.
3561         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3562         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3563
3564 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3565
3566         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3567         prevent compiler warning
3568
3569 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3570
3571         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3572         moved to level 0 and declared as static. Also they are explicit
3573         placed in access bank. This was necessery because some times they
3574         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3575         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3576         optimizations. Currently only compare to unsigned char is implemented,
3577         * src/pic16/gen.c: added fReturnIdx array,
3578         * (struct resolvedIfx) is moved to gen.h and made public,
3579         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3580         * (aopForSym): added an optimization to directly store in stack of
3581         the operand of a SEND iCode,
3582         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3583         but as registers instead (AOP_REG) using the fReturnIdx array,
3584         * (pic16_freeAsmop): remove the freed register from the
3585         _G.sregsAlloc field,
3586         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3587         a compare of 'WREG',
3588         * (pic16_popGetTempRegCond): changed function prototype, now
3589         function takes also a bitVector argument v which holds the current
3590         set of registers that are allocated for stack access by aopForSym,
3591         registers allocated in aopForSym for accessing stack symbols are not
3592         any more part of the functions usedRegs field,
3593         * (genCall): some times aopOp is called for a stack variable to be
3594         send, aopForSym might perform the push, if this is true make sure
3595         that genCall doesn't push the variable twice by testing _G.resDirect,
3596         * (genFunction): changed testing for unspecified interrupt number
3597         from 256 to INTNO_UNSPEC,
3598         * modified selection scheme of frame pointer generation. Previously
3599         if function did use local registers a frame pointer was generated,
3600         now a frame pointer is generated only if function has arguments
3601         (that need PLUSW2 register access), or has stack arguments, or the
3602         compiler is not instructed to omit the frame pointer,
3603         * (genEndFunction): before restoring local registers that were saved
3604         in the function preamble, also restore the registers that *might*
3605         have been allocated for stack access,
3606         * (genRet): removed some old comments,
3607         * (genCmp, the active (RN's) version): added a call to the
3608         pic16_genCmp_special function to perform the compare with a more
3609         robust and optimized way,
3610         * (genInline): a feature has been added in inline code generation,
3611         which allows a wildcard variable substitution when writing inline
3612         assembly. Code is incomplete and experimental therefore undocumented,
3613         * (genCast): changed order of aopOp for result and right to allow
3614         aopForSym to directly load the result if possible,
3615         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3616         perform an optimized compare on some selected special occasions,
3617         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3618         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3619         generate an IVT any more,
3620         * src/pic16/main.c (pic16_optionsTable): added command line option
3621         --optimize-cmp,
3622         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3623         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3624         macros,
3625         * src/pic16/NOTES: Raphael Neider added in list of active developers
3626         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3627         jumptable_end to prevent bug #,
3628         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3629         inCond and outCond fields,
3630         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3631         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3632         turn off register spilling,
3633         * (packRegsForOneUse): synced with other ports' versions although it
3634         is not used currently,
3635         * (pic16_packRegisters): added an optimization while reading
3636         structure bitfields, some registers may be saved (malloc code is
3637         decreased by 80 bytes)
3638
3639 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3640
3641         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3642         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3643         this can be optimized more?
3644
3645 2005-03-10 Raphael Neider <rneider AT web.de>
3646
3647         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3648           genNearPointerGet): (hopefully) fixed access to bitfields via
3649           pointers (p->bitN = x; and x = p->bitN; failed)
3650
3651 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3652
3653         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3654
3655 2005-03-09 Raphael Neider <rneider AT web.de>
3656
3657         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3658
3659 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3660
3661         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3662         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3663           (regTypeNum): set REG_BIT type if necessary
3664         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3665         * support/regression/tests/critical.c: check bug 1144613
3666
3667 2005-03-02 Raphael Neider <rneider AT web.de>
3668
3669         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3670
3671 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3672
3673         * src/avr/ralloc.c (serialRegAssign),
3674         * src/ds390/ralloc.c (serialRegAssign),
3675         * src/hc08/ralloc.c (serialRegAssign),
3676         * src/mcs51/ralloc.c (serialRegAssign),
3677         * src/pic/ralloc.c (serialRegAssign),
3678         * src/pic16/ralloc.c (serialRegAssign),
3679         * src/xa51/ralloc.c (serialRegAssign),
3680         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3681
3682 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3683
3684         * src/SDCCast.c (decorateType): fixed bug 1124787
3685
3686 2005-02-20 Hubert Sack <sack AT digiplan.de>
3687         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3688
3689         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3690         patch #1121755
3691
3692 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3693
3694         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3695         to keep the correct label reference count when adding/removing references
3696         to labels. A peephole file using this is appended to patch #1144962.
3697
3698 2005-02-14 Raphael Neider <rneider AT web.de>
3699
3700         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3701         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3702         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3703           retrievals of result operand's value on assignment
3704
3705 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3706
3707         * device/include/pic16/string.h: modified prototype for memccpy()
3708         to memccpy(void *, void *, char, size_t)
3709         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3710         check whether to omit frame pointer or not,
3711         * (genInline): convert all occurences of "\n" to LF in inline
3712         assembler blocks, this helps formatting the inline text,
3713         * (pic16_loadFSR0): modified prototype,
3714         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3715         removed some 8051 legacy code,
3716         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3717         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3718         before allocating temporary registers in functions,
3719
3720 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3721
3722         * support/regression/tests/bitvars.c: corrected the "fix"
3723
3724 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * support/regression/tests/bitvars.c,
3727         * support/regression/tests/bitwise.c,
3728         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3729
3730 2005-02-10 Raphael Neider <rneider AT web.de>
3731
3732         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3733           different size for Alpha
3734         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3735
3736 2005-02-09 Raphael Neider <rneider AT web.de>
3737
3738         * src/SDCC.lex(doPragma) : save and restore warning options as well
3739           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3740         * have #pragma less_pedantic set the errorlevel to WARNING
3741           (fixes #1117001)
3742         * (cloneOptimize) : fixed wrong malloc's size
3743         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3744           facilitate correct handling of #pragma (save|restore)
3745
3746 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3747
3748         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3749
3750 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3751
3752         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3753
3754 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3755
3756         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3757
3758 2005-02-02 Raphael Neider <rneider AT web.de>
3759
3760         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3761         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3762         * (pic16_storeForReturn): fixed to allow returning function pointers
3763         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3764         * device/include/pic16/{stddef.h,stdbool.h}: added
3765
3766 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3767
3768         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3769
3770 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3771
3772         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3773         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3774          appeared to be required
3775
3776 2005-01-31 Borut Razem <borut.razem AT siol.net>
3777
3778         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3779           include/mcs51 and include/z80 directories to the package
3780
3781 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3782
3783         * src/hc08/gen.c (genFunction): fixed bug #1112752
3784
3785 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3786
3787         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3788
3789 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3790
3791         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3792
3793 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3794
3795         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3796
3797 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3798
3799         * device/include/c8051fxxx.h: removed these 6 files
3800         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3801
3802 2005-01-26 Raphael Neider <rneider AT web.de>
3803
3804         * src/pic16/gen.c (genAssign): fixed assignment from longs
3805           in codespace (were cut to three bytes)
3806         * (genDummyRead): implemented (except for CODESPACE...),
3807           fixed bug #1108575
3808         * src/pic16/glue.c (emitStatistics): beautified
3809         * device/lib/pic16/libm/Makefile: added include path
3810
3811 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3812
3813         * src/z80/gen.c (aopPut): fixed bug #1103902
3814
3815 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3816
3817         * device/lib/expf.c: fixed bug #1095792
3818
3819 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3820
3821         * device/lib/pic16/libm: added Math library sources
3822
3823 2005-01-24 Raphael Neider <rneider AT web.de>
3824
3825         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3826           to enable upcast to pCodeOpReg2 (there is no type tag to
3827           differenciate the two and pic16_popGet2p cast into PCOR2)
3828         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3829           (sizeof(sectNames) changed to sizeof(sectName))
3830           Both patches fix segfaults under MinGW.
3831
3832 2005-01-23 Raphael Neider <rneider AT web.de>
3833
3834         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3835           Safe_[mc]?alloc()'ed variables
3836         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3837           of (byte sized) temporaries (assign them to WREG for now)
3838         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3839           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3840           this might fix SIGSEGVs on MinGW...
3841         * src/SDCCopt.c (killDeadCode): restored original behaviour
3842           (volatile operands might get thrown away though)
3843
3844 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3845
3846         * src/pic16/gen.c: fixed bug #1106975,
3847         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3848         pointer update, INTCON is saved, global interrupts are disabled and
3849         restored after updateing TOS.
3850         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3851         * added function attribute 'shadowregs' to take advantage of shadow
3852         registers,
3853         * added function attribute 'wparam' as an alternative to the wparam
3854         pragma,
3855         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3856         user declares a non-ISR function as 'shadowregs',
3857         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3858
3859 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3860
3861         * .version: bumped version number to 2.4.8
3862         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3863         pic16 port,
3864         * device/lib/pic16/libio/i2c/: I2C module support library,
3865         * device/include/pic16/i2c.h: I2C support library header,
3866         * device/lib/pic16/libc/stdio/: standard IO support sources,
3867         * (printf_small.c): printf_small() source, supports float print,
3868         * (printf_tiny.c): printf_tiny() source, does not support floats,
3869         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3870         enable global optimizations for entire library source, other
3871         Makefiles in the source tree are also modified to reflect this,
3872         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3873         function,
3874         * doc/sdccman.lyx: updated to reflect new changes,
3875         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3876         sym->onStack if-case,
3877         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3878         sbit, idata, _idata, xdata, _xdata,
3879         * added pragma library, to link an external library, (see doc),
3880         * removed command line options, --pomit-config-words, --pomit-ivt,
3881         --pleave-reset-vector,
3882         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3883         when calling assembler to reflect memory model used, also define
3884         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3885         reflect stack model used,
3886         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3887         on stack return NULL,
3888
3889 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3890
3891         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3892           of the operands is volatile. Fixes #1020220
3893
3894 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3895
3896         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3897         * (OptimizeRegUsage): make sure that there is really no other flow where
3898           the first pCode is used
3899
3900 2005-01-22 Raphael Neider <rneider AT web.de>
3901
3902         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3903           to fix #1106967 (pCode->seq are not set up correctly)
3904
3905 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3906
3907         * src/SDCCglue.c (glue): make sure code area is declared before the
3908         static initialization area.
3909
3910 2005-01-21 Raphael Neider <rneider AT web.de>
3911
3912         * device/lib/Makefile.in: fixed test for pic16 install dir
3913         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3914           optimizations
3915         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3916           added --optimize-goto compiler switch and pragma wparam documentation
3917         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3918         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3919           and PRODH closing bug #1071770 (peephole optimizer)
3920
3921 2005-01-19 Raphael Neider <rneider AT web.de>
3922
3923         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3924           cmdLine buffers (used when calling sdcpp...) are large enough
3925           (MAX_PATH=256 truncates arguments leading to system halts when
3926           used in MinGW...)
3927         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3928         * (genUminus): rewritten to for efficiency
3929         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3930           used uninitialized in some cases)
3931         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3932           copy the third byte from the int -- now assumes 0x80 (data memory)
3933         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3934           operands (genAddLit expects the iCode's operands to swapped as
3935           well), fixed leftover bytes (crashed for short left operands)
3936         * (pic16_genMinusDec): performance improvements, removed false
3937           PIC14 emitSKPNCs
3938         * (pic16_genMinus): fixed to cope with differently sized operands
3939         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3940           for --obanksel > 1
3941         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3942         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3943           new banksel optimization
3944         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3945           analysis for temporary registers (segfaults...)
3946         * src/pic16/peeph.def: added rule
3947
3948 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3949
3950         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3951         which converts a float number to its ASCII representation
3952         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3953         functions to convert the fractional and integer part of a float to ASCII,
3954         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3955         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3956         ram
3957         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3958         _STATMEM macros,
3959         * device/include/pic16/adc.h: added GPL info,
3960         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3961         a pCodeOp as tested operand,
3962         * (genNearPointerGet): optimized bit testing, does not use
3963         intermediate register for bit value, test directly instead with
3964         BTFSS, BTFSC, works only for single bits,
3965         * (genpic16Code): dump the name of the iCode in the asm,
3966         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3967         renamed to pic16_decodeOp,
3968         * (serialRegAssign): do not allocate a temporary register for iCode
3969         sequences that test a single bit for 1/0
3970
3971 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3972
3973         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3974         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3975         access stack and frame pointers. They are initially assigned to
3976         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3977         accessing SFRs. Updated all occurences of modification of stack or
3978         frame pointer in gen.c and pcode.c,
3979         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3980         assigning of a literal value to pointers,
3981         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3982         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3983         selected
3984
3985 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3986
3987         * doc/sdccman.lyx: update documentation about stack pragma, added
3988         some info for stack memory models
3989
3990 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3991
3992         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3993
3994 2005-01-08 Raphael Neider <rneider AT web.de>
3995
3996         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3997           udata sections to fix bug #1097823
3998
3999 2005-01-05 Raphael Neider <rneider AT web.de>
4000
4001         * src/pic16/gen.c (genGenericShift): added handling of differently
4002           sized left operand and result
4003
4004 2005-01-04 Raphael Neider <rneider AT web.de>
4005
4006         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4007         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4008           to hold the condition bit)
4009         * added new version of genCmp (old code available via #define)
4010         * added new version of genShiftLeft/genShiftRight in a generic
4011           way, now supports shifting by negative values
4012         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4013           shiftCount (expected by genGenericShift)
4014         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4015         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4016           dump
4017         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4018           is an invalid literal too...)
4019
4020 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4021
4022         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4023         from Raphael Neider,
4024         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4025         for 8-bit literals. This fixes some literal operands which are sign
4026         extended to 16-bits ints when instruction needs only 8-bits.
4027
4028 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4029
4030         * device/lib/logf.c: added mcs51 assembly version
4031         * device/lib/expf.c: added mcs51 assembly version
4032         * device/lib/_logexpf.c: new shared asm code for expf and logf
4033         * device/include/math.h: add defines for assembly math library
4034         * device/lib/Makefile.in: build new _logexpf.c
4035         * device/lib/libfloat.lib: use new _logexpf.c
4036
4037 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4038
4039         * src/pic/device.c
4040         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4041           device types which have less than 0x7f registers.
4042
4043 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4044
4045         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4046
4047 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4048
4049         * device/lib/printf_fast.c: only build on supported arch.
4050         * device/lib/printf_tiny.c: only build on supported arch.
4051         * device/lib/printf_fast_f.c: only build if asm float lib
4052         * device/lib/_fsget1arg.c: only build if asm float lib
4053         * device/lib/_fsget2args.c: only build if asm float lib
4054         * device/lib/_fsnormalize.c: only build if asm float lib
4055         * device/lib/_fsreturnval.c: only build if asm float lib
4056         * device/lib/_fsrshift.c: only build if asm float lib
4057         * device/lib/_fsswapargs.c: only build if asm float lib
4058         * device/include/stdio.h: don't provide print_fast,
4059           print_fast_f, print_tiny prototypes if --xstack used
4060
4061 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4062
4063         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4064         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4065           to the SOURCES
4066
4067 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4068
4069         * device/lib/printf_fast_f.c: same as printf_fast, but
4070           with floating point enabled
4071         * device/lib/printf_fast.c: minor tweaks
4072         * device/include/stdio.h: add printf_fast_f
4073
4074 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4075
4076         * src/SDCCmain.c: make --float-reent default for mcs51
4077         * device/lib/_fsadd.c: added mcs51 assembly version
4078         * device/lib/_fssub.c: added mcs51 assembly version
4079         * device/lib/_fsmul.c: added mcs51 assembly version
4080         * device/lib/_fsdiv.c: added mcs51 assembly version
4081         * device/lib/_fseq.c: added mcs51 assembly version
4082         * device/lib/_fsneq.c: added mcs51 assembly version
4083         * device/lib/_fsgt.c: added mcs51 assembly version
4084         * device/lib/_fslt.c: added mcs51 assembly version
4085         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4086         * device/lib/Makefile.in: add _fscmp to build
4087         * device/lib/libfloat.lib: add _fscmp to build
4088
4089 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4090
4091         * device/lib/_fs2slong.c: added mcs51 assembly version
4092         * device/lib/_fs2sint.c: added mcs51 assembly version
4093         * device/lib/_fs2schar.c: added mcs51 assembly version
4094         * device/lib/_fs2ulong.c: added mcs51 assembly version
4095         * device/lib/_fs2uint.c: added mcs51 assembly version
4096         * device/lib/_fs2uchar.c: added mcs51 assembly version
4097         * device/lib/_slong2fs.c: added mcs51 assembly version
4098         * device/lib/_sint2fs.c: added mcs51 assembly version
4099         * device/lib/_schar2fs.c: added mcs51 assembly version
4100         * device/lib/_ulong2fs.c: added mcs51 assembly version
4101         * device/lib/_uint2fs.c: added mcs51 assembly version
4102         * device/lib/_uchar2fs.c: added mcs51 assembly version
4103         * device/include/float.h: added #define to select asm vs c
4104
4105 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4106
4107         * device/lib/printf_fast.c: improvements to float output
4108         * device/include/float.h: add defines for assembly float library
4109         * device/lib/_fsget1arg.c: receive 1 float arg
4110         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4111         * device/lib/_fsnormalize.c: normalize a float
4112         * device/lib/_fsreturnval.c: return float, various helper routines
4113         * device/lib/_fsrshift.c: right shift a float's mantissa
4114         * device/lib/_fsswapargs.c: swap 2 floats
4115         * device/lib/Makefile.in: build these 6 new files for mcs51
4116         * device/lib/libfloat.lib: add these 6 files to the library
4117
4118 2004-12-26 Borut Razem <borut.razem AT siol.net>
4119
4120         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4121           built by gcc 3.4.2
4122
4123 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4124
4125         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4126           and fully reentrant and register bank neutral.
4127         * device/lib/printf_fast.c: added float (not enabled by default),
4128           added compact/slower integer (also not enabled by default),
4129           improved size/speed of fast integer code, other minor changes
4130         * device/include/stdio.h, device/lib/Makefile.in,
4131           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4132
4133 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4134
4135         * src/pic16/pcode.c: declaring variables other than at the start of a
4136           block is not supported in C by VC6.
4137
4138 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4139
4140         * applied a previous patch from Raphael Neider that wasn't included
4141         in the previous commits, which fixes infinite loops within jumptable
4142         improvements,
4143         * made some fixes that previous patches introduced
4144
4145 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4146
4147         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4148         that fixes an issue with AOP_PCODE asmop's offset,
4149         * (pic16_popCopyReg): update instance field too,
4150         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4151         function of pic port,
4152         * (genCmp, genAnd, genAssign),
4153         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4154
4155 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4156
4157         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4158         variables initial values to idata section,
4159         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4160         variables in some functions. This utilizes parmBytes field of iCode
4161         structure to hold the offset of the variable in stack. (might be
4162         able to use the stack field too?)
4163         * applied patch from Raphael Neider # ### , # ###
4164         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4165         variable initial values in idata section,
4166         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4167         for static variables with initial value
4168         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4169         applied fix in while loop from Raphael Neider.
4170
4171 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4172
4173         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4174         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4175         * src/ds390/ralloc.c (serialRegAssign): spill bits
4176         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4177         * support/Util/SDCCerr.c,
4178         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4179         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4180         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4181
4182 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4183
4184         * device/include/sdcc-lib.h: inserted LGPL, added includes
4185           asm/ds390/features.h and asm/mcs51/features.h
4186         * device/include/asm/default/features.h,
4187         * device/include/asm/gbz80/features.h,
4188         * device/include/asm/z80/features.h: added empty _AUTOMEM
4189           and _STATMEM
4190         * device/include/asm/ds390/features.h,
4191         * device/include/asm/mcs51/features.h: added files with defines for
4192           _AUTOMEM and _STATMEM indicating automatic and static storage class
4193         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4194         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4195         * src/SDCCicode.c (geniCodeCast),
4196         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4197         * src/SDCCloop.c (loopInduction): removed unused variable lr
4198         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4199           to convertToFcall to include char modulo (RFE 1065037), added check
4200           if left operand is unsigned and use abs of literal value
4201         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4202           as it doesn't work after conversion from peephole.def to peephole.rul
4203         * src/mcs51/gen.c (toBoolean): added check for size,
4204           (genModOneByte): optimized code for signed char modulo a literal
4205           power of 2 (thanks to Hubert Sack),
4206           (genRRC): removed unnecessary "clr c",
4207           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4208         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4209           jump optimization,
4210           swapped rules 256.c and 256.d,
4211           extended 256.d by using new multiple checks (thanks Erik),
4212           added rules 256.e and 256.f,
4213           updated rule 261.a and 261.b to new generated code
4214         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4215
4216 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4217
4218         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4219           induction related bugs, including first part of bug #1074377
4220
4221 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4222
4223         * applied patch from bug-report #1076292,
4224         * applied patches for genAnd and Goto-optimizations for Raphael
4225         Neider,
4226         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4227         dump a less iCode information,
4228         * src/pic16/device.h (pic16_options_t): added field debgen,
4229         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4230         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4231         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4232         puclic,
4233         * (various functions): added macros FENTRY and FENTRY2 to functions,
4234         to emit function prologue,
4235         * (various functions): fixed indentation,
4236         * (genNearPointerGet): fixed loading of FSR0,
4237         * (genPackBits): applied patch from Raphael Neider to fix updating
4238         of FSR0 and touching only the modified bits,
4239         * src/pic16/genarith.c (various functions): added macros FENTRY to
4240         emit function prologue in comments,
4241         * src/pic16/pcode.h: added functions debugf2, debugf3,
4242         * src/pic16/ralloc.c: partial fix for packForPush caused
4243         segmentation fault,
4244
4245 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4246
4247         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4248           <stsp AT users.sourceforge.net> with reversed byte order
4249         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4250
4251 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4252
4253         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4254           bug #1074377
4255         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4256         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4257
4258 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4259
4260         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4261
4262 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4263
4264         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4265           conditions,
4266           (setFromConditionArgs): friendly operand parser for peephole rules,
4267           (operandBaseName, operandsNotRelated): new peephole condition
4268           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4269           architecture specific register naming into account, handles n-way
4270           comparisons, and supports quoted literals
4271         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4272
4273 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4274
4275         * src/mcs51/peeph.def: fixed bug #1076940
4276
4277 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4278
4279         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4280
4281 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4282
4283         Adding support for replacing ljmps with sjmps in jumptables
4284         generated for switch statements. For now you need to set the
4285         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4286         Now 4 algorithms for mcs51 jumptable generation are used:
4287         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4288         addresses loaded pc-relative for up to 112 cases and stack-pushing
4289         target addresses loaded with offset from dptr for up to 256 cases.
4290
4291         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4292         * src/mcs51/main.c: adapted constants for switch table generation
4293         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4294
4295 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4296
4297         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4298         * support/regression/tests/bug1057979.c: added test for bug 1073386
4299
4300 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4301
4302         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4303         compilers
4304
4305 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4306
4307         * src/pic16/device.h,
4308         * src/pic16/genarith.c,
4309         * src/pic16/glue.c,
4310         * src/pic16/main.c,
4311         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4312
4313 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4314
4315         Large cummulative patch for pic16 port.
4316         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4317         to call when a stack overflow occurs,
4318         * (malloc.h): added CVS Id tag,
4319         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4320         variable,
4321         * added libc directory. The current version of LibC contains string
4322         functions, ctype functions and macros and some functions of the
4323         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4324         be extensively tested in the future. Standard disclaimer here.
4325         Library is not automatically build yet. But one can build it by
4326         invoking 'make' inside the libc directory.
4327         * added ADC library under libio. Preliminary version yet.
4328
4329         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4330         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4331         aopForRemat() now and not by pic16_aopOp(),
4332         * (pic16_popGetTempReg): removed warning messgae when allocating
4333         temporary registers, its a buggy feature and will be removed,
4334         * (pic16_popGet): set register instance field in AOP_CRY,
4335         * (pic16_outBitC): fixed for results in size greater than 1,
4336         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4337         * (pic16_storeForReturn): optimized return of 0,
4338         * (genCmp): experimental code for new genCmp which uses PIC18's
4339         special compare&skip instructions. Initial tests fail some times
4340         with variables grater than 1 byte in size, so new code is disabled,
4341         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4342         a single bit,
4343         * (genCast): began a fix to optimize the casting of a bit to another
4344         bit, now assigning a bitfield to another bitfield will fail, sorry,
4345         * src/pic16/main.c: disabled the use of lr-support feature,
4346         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4347         * added some function prototypes, added function _debugf prototype,
4348         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4349         bits with offset (case PO_GPR_BIT),
4350         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4351         command line,
4352         * (isBankInstruction): modified to return 0 for no banking instruction,
4353         and 1 for banking instruction,
4354         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4355         caused stop processing pCodes after a inline assembly block,
4356         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4357         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4358         registers when it shouldn't,
4359         * src/pic16/ralloc.c (allocReg): add preliminary support for
4360         supporting a limited set of temporary registers,
4361
4362 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4363
4364         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4365           genDataPointerSet): ensure assignments always copy in MSB to LSB
4366           order,
4367           (loadRegFromAop): recognize CLRH optimization,
4368           (genFunction): optimize RECEIVE iCodes in reentrant functions
4369
4370 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4371
4372         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4373           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4374           selected.
4375         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4376         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4377           contiguous with data
4378
4379 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4380
4381         * device/lib/_gptrget.c (_gptrget),
4382         * device/lib/_gptrgetc.c (_gptrgetc),
4383         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4384           instead of sjmp to ret
4385         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4386           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4387
4388 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * .version: bumped version to 2.4.7
4391         * device/lib/_gptrget.c (_gptrget): is now _naked
4392         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4393         * device/lib/_gptrput.c (_gptrput): is now _naked
4394         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4395           (createFunction): fixed xstack
4396         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4397         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4398           or bit either,
4399           (geniCodeCritical): store original interrupt state in an iTemp bit
4400           var unless stack-auto
4401         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4402         * src/SDCCmain.c (setIncludePath): added include/target to search path
4403         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4404         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4405           prototype,
4406           (processFuncArgs): put bit vars in bit area
4407         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4408           unsaveRBank): fixed xstack,
4409           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4410           (genFunction, genEndFunction): fixed xstack,
4411           (genAssign): optimization don't walk backwards through mem
4412         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4413         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4414         * support/regression/Makefile: also make library (for stack-auto) when
4415           making "all" and added "test-mcs51-xstack-auto"
4416         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4417         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4418         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4419         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4420         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4421           make-library by MAKE_LIBRARY
4422         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4423           regression tests for xstack
4424         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4425         * support/regression/tests/critical.c: test for critical on mcs51
4426
4427 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4428
4429         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4430           built version of sdcc instead of installed version
4431
4432 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4433
4434         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4435         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4436           vprintf.c now
4437         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4438         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4439           WARNING: remove device/lib/build/z80/printf.o by hand when
4440           updating from previous build!
4441         * device/lib/z80/printf.c: updated comment
4442         * support/regression/tests/bug1057979.c: test all ports now
4443         * support/regression/tests/bug1065458.c: file added
4444
4445 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4446
4447         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4448           *_start and *_end symbols for static functions
4449
4450 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4451
4452         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4453           and search crt0.o in all library paths,
4454           (setIncludePath): proper handling of --nostdinc,
4455           (setLibPath): proper handling of --nostdlib
4456         * support/regression/Makefile,
4457         * support/regression/ports/ds390/spec.mk,
4458         * support/regression/ports/gbz80/spec.mk,
4459         * support/regression/ports/hc08/spec.mk,
4460         * support/regression/ports/mcs51/spec.mk,
4461         * support/regression/ports/mcs51-large/spec.mk,
4462         * support/regression/ports/mcs51-stack-auto/spec.mk,
4463         * support/regression/ports/z80/spec.mk: use include and lib files from
4464           built version of sdcc instead of installed version
4465         * doc/sdccman.lyx: fixed typo in --nostdinc
4466
4467 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4468
4469         * src/pic/pcode.c,
4470         * src/pic/device.c,
4471         * src/pic/ralloc.c,
4472         * src/pic/gen.c : added support to generate code for struct bit fields.
4473
4474 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4475
4476         * as/xa51/xa_version.h,
4477         * device/include/errno.h,
4478         * device/include/regc515c.h,
4479         * device/lib/_itoa.c,
4480         * device/lib/_ltoa.c,
4481         * device/lib/ser_ir_cts_rts.c,
4482         * sim/ucsim/xa.src/glob.cc,
4483         * sim/ucsim/xa.src/inst_gen.cc,
4484         * sim/ucsim/xa.src/xa_bit.cc,
4485         * sim/ucsim/xa.src/xa_sfr.cc,
4486         * sim/ucsim/z80.src/inst_dd.cc,
4487         * sim/ucsim/z80.src/inst_fdcb.cc,
4488         * support/scripts/keil2sdcc.pl,
4489         * src/pic16/pic16.dsp,
4490         * src/pic16/pic16a.dsp: corrected cvs line endings
4491         * device/lib/printf_large.c: fixed bug 1057979
4492         * src/pic16/gen.c: fixed non-C standard code
4493         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4494         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4495         * support/regression/ports/mcs51/support.c: reload T1 asap
4496         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4497           pdata use and clear idata startup behaviour
4498         * support/regression/tests/bug1057979.c: added
4499
4500 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4501
4502         * device/examples/ds390/ow390/ad26.h,
4503         * device/examples/ds390/ow390/cnt1d.h,
4504         * device/examples/ds390/ow390/crcutil.c,
4505         * device/examples/ds390/ow390/ownet.h,
4506         * device/examples/ds390/ow390/owsesu.c,
4507         * device/examples/ds390/ow390/swt12.h,
4508         * device/examples/ds390/ow390/swtoper.c,
4509         * device/examples/ds390/ow390/temp10.h,
4510         * device/examples/ds390/ow390/thermodl.c,
4511         * device/examples/ds390/tinitalk/tinitalk.dsp,
4512         * device/examples/ds390/tinitalk/tinitalk.dsw,
4513         * device/examples/mcs51/clock/hw.h,
4514         * device/examples/mcs51/simple2/go.bat,
4515         * device/examples/serialcomm/windows/serial.h,
4516         * device/examples/xa51/dummy.c,
4517         * device/examples/xa51/hello.c,
4518         * device/include/80c51xa.h,
4519         * device/include/at89x051.h: corrected cvs line endings
4520
4521 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4522
4523         * src/pic16/main.c (options): added command line --gstack, to trace
4524         stack over/under flows,
4525         * added pragma 'wparam' to allow passing first byte of function
4526         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4527         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4528         call to __gstack_test function and sets up the symbol as extern,
4529         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4530         * popaop): added call to pic16_testStackOverflow,
4531         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4532         wparamList list,
4533         * (genCall, genPcall): now all parameters are passed via stack
4534         except in functions that are pass to wparam pragma in which WREG is
4535         used too,
4536         * (genPcall): REENTRANT flag is checked to see if variable prototype
4537         contains reentrant keyword, don't call a non-reentrant function, via
4538         a reentrant function pointer or vice versa, functions are never
4539         passed via WREG,
4540         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4541         D.Winkler,
4542         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4543         SIGSEGV when accessing a NULL register stucture,
4544         * (pic16_printGPointerType): modified to handle UPPER modifier for
4545         function initializers, changed prototype of function to simpler one,
4546         * (pic16_printIvalFuncPtr): check to see if function is already
4547         added in externs list,
4548         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4549         optimized a move from W to SFR with a move to the same register
4550         later after a CALL,
4551         * device/lib/pic16/debug: NEW directory, contains debug features
4552         which are enabled when linking with libdebug.lib, currently command
4553         line option --gstack enables stack pointer tracing for over/under
4554         flow, corresponding sources are in debug/gstack
4555
4556 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4557
4558         * doc/sdccman.lyx: updated SDCC version,
4559         * (PIC16 port): update list of command line options,
4560         * src/pic16/device.h (structure pic16_options_t): added field gstack
4561         to enable stack overflow tracing on push/pops,
4562         * src/pic16/device.c (statistics structure): added statistics
4563         structure,
4564         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4565         pic16_dump_int_registers): increase statistics counters for each
4566         * variable which is encountered
4567         * (pic16_dump_usection): emit each .udata variable to its own udata
4568         section,
4569         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4570         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4571         parameters via stack, otherwise use old scheme,
4572         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4573         assembler output file,
4574         * src/pic16/main.c: added command line options --gstack to enable
4575         push/pop tracing for stack overflow,
4576         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4577         instructions): added size of each instruction,
4578         * (pic16_countInstruction): estimate size of instructions in
4579         the_pFile list, inline assembly blocks are not counted,
4580         * (pic16_FixRegisterBanking): trace previous register usage, when
4581         banksel optimizations is greater than 0, don't emit a redudant
4582         banksel directive,
4583
4584 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4585
4586         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4587         * src/pic16/ralloc.c : applied same fix for pic16.
4588         * src/pic/gen.c : tidied it up a little.
4589
4590 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4591
4592         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4593         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4594
4595 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4596
4597         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4598
4599 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4600
4601         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4602         non-reentrant function __modsint in the interrupt function (thus
4603         corrupting math operations during serial I/O)
4604         * device/lib/ser_ir.c: as above, changed buffersize
4605         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4606         256.c,d for zeroing
4607         * doc/Makefile: added option -t for rsync
4608
4609 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4610
4611         * src/SDCCast.h (struct ast),
4612         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4613
4614 2004-10-20 Borut Razem <borut.razem AT siol.net>
4615
4616         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4617         package
4618
4619 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4620
4621         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4622         makefile targets,
4623         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4624         support functions to replace long sequences of MOVFF's from access
4625         bank registers to stack and vice versa,
4626         * src/pic16/device.h: added new field opt_flags, where optimization
4627         flags can be set to enable certain features,
4628         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4629         * pBlock, (genFunction, genEndFunction): surroung loop for
4630         saving/loading used registers in stack with PC_INFO pCodes,
4631         INF_LREGS. Code in between can then be optimized by pCode optimizer
4632         to support function calls,
4633         * (genDataPointerSet): fixed bug which loaded float fields in
4634         structures with corrupt data,
4635         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4636         in a standard way debug info on stderr. Feature used for developing
4637         and debugging only,
4638         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4639         obsolete chunks of code,
4640         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4641         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4642         * pic16/src/pcode.c (pic16_newpCodeInfo,
4643         * (pic16_newpCodeOpLocalRegs),
4644         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4645         feature,
4646         * (pic16_pCodeConstString): printing of the initial value of a
4647         symbol as a comment is inhibited since parsing was already done by
4648         copyStr and output is corrupt,
4649         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4650
4651 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4652
4653         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4654
4655 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4656
4657         * as/mcs51/lkarea.c: removed old K&R style,
4658           (lnksect): changed check on boundary error,
4659           (lnksect2): changed check on boundary error,
4660           (lnksect2): extend XSTK to end of page if size = 1
4661         * as/mcs51/lkmain.c: removed old K&R style,
4662           (Areas51): create l_IRAM symbol
4663         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4664         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4665           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4666         * device/lib/_mullong.c: added version to be compiled with xstack
4667         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4668         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4669         * device/lib/mcs51/crtxstack.asm: fixed comment
4670         * src/SDCCglue.c: maxInterrupts defaults to 0,
4671           (emitMaps): added pdata,
4672           (createInterruptVect): (re)moved default,
4673           (glue): added pdata,
4674           (glue): moved __start__xstack to XSTK with default size 1
4675         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4676           and options.float_rent when options.stackAuto is set,
4677           (linkEdit): only write XDATA_NAME if provided on command line
4678         * src/SDCCmem.h,
4679         * src/SDCCmem.c: added pdata
4680         * src/port.h: added pdata_name to PORT
4681         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4682           (saveRegisters, unsaveRegisters): removed usage of B,
4683           (genMinus): fixed accumulator clash,
4684           (genJumpTab): added comment, this needs another look
4685         * src/mcs51/gen.c: added check for "B in use" paranoia,
4686           added pushB() and popB()
4687         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4688           chance
4689         * src/avr/main.c,
4690         * src/ds390/main.c,
4691         * src/hc08/main.c,
4692         * src/mcs51/main.c,
4693         * src/pic/main.c,
4694         * src/pic16/main.c,
4695         * src/xa51/main.c,
4696         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4697           added PSEG (PAG,XDATA) or NULL to port specifier
4698         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4699         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4700           (_mcs51_genInitStartup): removed __start__xstack equ,
4701           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4702         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4703         * src/z80/gen.c (_rleAppend): fixed warnings
4704         * support/regression/tests/zeropad.c: added pdata test
4705         * .version: bumped to 2.4.6
4706
4707 2004-10-17 Borut Razem <borut.razem AT siol.net>
4708
4709         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4710         as a part of nightly build
4711
4712 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4713
4714         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4715         WREG holds the first byte function parameters,
4716         * (aopForSym): take special case for symbols which are in FARSPACE
4717         but in CODESPACE too,
4718         * (assignResultValue): modified to take into account _G.useWreg,
4719         * (genCall): don't use wreg for parameter passing when function is
4720         declared as reentrant, too, added optimization INCF to stack
4721         pointer when stack parameter count is 1,
4722         * (genFunction, genEndFunction): refurnished and fixed to not using
4723         wreg for passing parameters when function has varargs or is
4724         reentrant, fixed bug with symbol name compare for generating
4725         functions in absolute address,
4726         * (pic16_storeForReturn): refurnished,
4727         * (genCmp): began writing a new version of the function, not ready
4728         yet, therefore it is disabled,
4729         * (genAssign): do not read code memory when assigning a function to
4730         a pointer function,
4731         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4732         array of characters, not pointer,
4733         * (pic16initialComments): in debug mode emit an .ident directive for
4734         the assembler,
4735         * (_process_pragma): emit a new warning type (internal to pic16)
4736         when setting stack to default length, emit a similar warning when
4737         placing a function at absolute address and address is not word aligned
4738         * (_pic16_parseOptions): added 'return TRUE' statement,
4739         * (_pic16_linkEdit): if compiling a source, then add the source's
4740         file object, first in the list of objects to link,
4741
4742 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4743
4744         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4745         * src/pic/main.c : removed VC warning.
4746         * src/pic/gen.c : changed comment.
4747
4748 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4749
4750         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4751         reference to a deprecated symbol _GPTRREG was causing failure to
4752         link. Thanks G. M. Gallant for the info.
4753
4754 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4755
4756         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4757         comments for Bugs item #954788.
4758
4759 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4760
4761         * src/pic16/device.c (pic16_dump_gsection,
4762         * pic16_groupRegistersInSection): handle symbols declared to be in
4763         access bank differently,
4764         * src/pic16/gen.c (struct _G): added field resDirect,
4765         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4766         send values read from stack directly to result and don't allocate
4767         temporary values,
4768         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4769         same registers,
4770         * (pic16_sameRegsOfs): NEW,
4771         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4772         free because they were not allocated from temporary pool,
4773         * pic16_popRegFromString): workaround to fix a problem with
4774         allocating variables twice or never,
4775         * (genGenPointerGet): using PRODL instead of FSR0H,
4776         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4777         instead of FSR0H,
4778         * (genAssign): take advantage of the _G.resDirect flag,
4779         * (genCast): around line 11844, use mov2f instead of directly
4780         MOVFF'ing between operands to account for literal values,
4781         * src/pic16/genutils.c: some new debug functions for gpsim have been
4782         added,
4783         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4784         float with integer part only,
4785         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4786         place variables in access bank
4787         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4788         updated sources to reflect recent changes in gen.c
4789
4790 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4791
4792         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4793         sources that searched for headers in installation path, now the
4794         device/include/pic16 is used,
4795         * src/pic16/glue.c (pic16glue),
4796         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4797         .line directives if not in debug mode, this suppresses assembler's
4798         warnings for ignored directives
4799
4800 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4801
4802         * src/port.h: made reset_regparms prototype void parameter explicit.
4803         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4804         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4805         * doc/sdccman.lyx: documented warning disabling and how to use
4806           printf_large to make it print floats.
4807         * device/include/stdbool.h: NEW
4808         * device/lib/_atof.c,
4809         * device/lib/_divuint.c,
4810         * device/lib/_divulong.c,
4811         * device/lib/expf.c,
4812         * device/lib/printf_large.c,
4813         * device/lib/sincosf.c,
4814         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4815         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4816           a completely reentrant lib.
4817
4818 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4819
4820         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4821         * device/include/pic16/stdio.h: fixed bug with colon
4822
4823 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4824
4825         * device/include/pic16/stdio.h,
4826         * device/include/pic16/stdlib.h,
4827         * device/include/pic16/math.h: NEW
4828         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4829         declared as _naked to reduce overhead
4830         * device/lib/Makefile.in (target port-specific-objects-pic16):
4831         changed * to *.* so to ignore the CVS directory,
4832         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4833         stacked variables back in stack,
4834         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4835         corruption
4836
4837 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4838
4839         * .version: bumped version number to 2.4.5
4840         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4841         * support/Util/SDCCerr.c (messages structure): added entry for
4842         W_POSSBUG2
4843
4844         Large cumulative patch for pic16 port and libraries.
4845         * device/include/pic16/sdcc-lib.h,
4846         * device/include/pic16/stdarg.h,
4847         * device/include/asm/pic16/features.h,
4848         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4849         * device/include/pic16/float.h: changes reentrant keyword with
4850         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4851         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4852         updated target build-libraries to include objects from gptr,
4853         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4854         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4855         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4856         all function headings,
4857         * src/SDCCmain.c: added global parameter userIncDirsSet,
4858         * (parseCmdLine): when option -I is encountered add directory to
4859         userIncDirsSet too,
4860         * src/version.awk: added space between control and long,
4861         * src/pic16/NOTES: added some notes for the port,
4862         * src/pic16/gen.c: added prototype for mov2fp function,
4863         * (fReturnpic16[]): properly named return value registers,
4864         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4865         * (aopForSym): added code to handle symbols with onStack flag set,
4866         symbols onStack are allocated PTRSIZE bytes,
4867         * (aopFreeAsmop): handles special case where asmops are stack objects,
4868         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4869         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4870         added argument lock to trace flaws in allocating temporary registers
4871         when developing port,
4872         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4873         * (pic16_popRegFromString): reenabled allocating a direct register
4874         from string,
4875         * (assignResultValue): various beautifications,
4876         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4877         referenced function argument,
4878         * (genIpush): reenabled to allow stacked arguments, handles only
4879         ic->parmPush iCodes,
4880         * (genCall, genPcall): major changes to allow for variable argument
4881         functions, fixed a bug with falsely restoring stack pointer after
4882         returning from call,
4883         * (genFunction): pending code for critical function,
4884         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4885         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4886         * (genNearPointerGet): fixed bug with indirect reading, was always
4887         reading from INDF0
4888         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4889         pointers,
4890         * (genAddrOf): rewrote code to take address of a stacked function parameter
4891         * (genCast): fixed casting to generic pointer type,
4892         * src/pic16/gen.h: added AOP_STA,
4893         * (struct asmop): added field stk,
4894         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4895         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4896         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4897         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4898         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4899         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4900         generic pointers,
4901         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4902         and library paths,
4903         * (pic16_port structure): generic pointer size is set to 3,
4904         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4905         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4906         compiler warning,
4907         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4908         operand is an iTemp,
4909
4910 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4911
4912         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4913         * debugger/mcs51/simi.c: addapt new syntax of s51
4914
4915 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4916
4917         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4918         * src/pic16/pcode.c: commented out some calls to free() in order to
4919         fix bug #989576,
4920
4921 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4922
4923         * src/SDCCicode.h,
4924         * src/SDCCicode.c (isiCodeInFunctionCall),
4925         * src/avr/ralloc.c (selectSpil),
4926         * src/pic/ralloc.c (selectSpil),
4927         * src/pic16/ralloc.c (selectSpil),
4928         * src/ds390/ralloc.c (selectSpil),
4929         * src/hc08/ralloc.c (selectSpil),
4930         * src/xa51/ralloc.c (selectSpil),
4931         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4932         stack in the middle of a function call sequence (fixes bug #1020268)
4933         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4934         costs associated with the minimum switch case.
4935
4936 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4937
4938         * src/SDCC.lex: fixed bug #1030549
4939
4940 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4941
4942         * src/SDCCcse.h (struct cseDef),
4943         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4944         over a function call if the CSE is derived from a symbol whose
4945         address has been taken (fixes bug #1029883)
4946         * support/regression/tests/bug-1029883: a new regression test for
4947         this bug
4948
4949 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4950
4951         * src/hc08/gen.c (emitinline): fixed bug #1029778
4952         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4953         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4954         and starts toward RFE #905167)
4955
4956 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4957
4958         * src/pic16/gen.c (mov2f): New function to move an operand to
4959         another without considering if it is a literal or a register,
4960         * (pic16_sameRegs): don't check if they are both AOP_REG,
4961         * (AccRsh): removed andmask=0 lines,
4962         * (genLeftShift): duplicated to be improved in future versions,
4963         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4964         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4965         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4966         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4967         * (insertBankSwitch): fixed inserting banksel directives algorithm
4968         for instructions that follow a skip instruction, this fixes a report
4969         for broken subtraction code generation,
4970         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4971         iCode is a left op, just in case result and right share the same
4972         registers
4973
4974 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4975
4976         * src/hc08/main.c,
4977         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4978         preservation of HX
4979         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4980         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4981         on 2004-09-12; it was buggy
4982
4983 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4984
4985         * src/SDCCsymt.h: removed RESULT_CHECK
4986         * src/SDCCast.c,
4987         * src/SDCCglue.c,
4988         * src/SDCCval.c,
4989         * src/pic/glue.c,
4990         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4991
4992 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4993
4994         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4995         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4996         configuration values no more rejected by compiler, they are assigned
4997         to configuration registers with a warning message instead,
4998         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4999         the for-loop so last conf register is emitted too,
5000         * (_pic16_initPaths): link library libsdcc.lib by default,
5001         * (_hasNativeMulFor): modified test for multiplication according to
5002         Raphael Neider's remarks. Integer multiplication is also done with
5003         support functions,
5004         * device/include/pic16/pic18fregs.h: corrected type error in while
5005         testing and including 18f6720 header file
5006
5007 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5008
5009         * src/pic16/device.h (pic16_options): removed field use_crt,
5010         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5011         until an optimization to handle single bits is added,
5012         * (pic16_loadFSR0): moved before genUnpackBits,
5013         * (genAnd): some white lines removed,
5014         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5015         leave_reset flags in pic16_options when using crt modules,
5016
5017 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5018
5019         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5020           for bugs 898889 & 979599. Also used some safer print instructions.
5021
5022 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5023
5024         * src/pic16/device.h (pic16_options_t): added field use_crt,
5025         crt_name, no_crt,
5026         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5027         catch a probable future bug,
5028         * src/pic16/gen.c: aopIdx function commented out,
5029         * (genAssign): commented out old code which used aopIdx,
5030         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5031         code, added if conditionals to take into account the --use-crt
5032         command line options,
5033         * src/pic16/main.c (pic16_optionsTable): added new command line
5034         options, --use-crt= and --no-crt,
5035         * (_pic16_linkEdit): now the proper crt object is added in the
5036         linker command line except than when --no-crt is specified,
5037         * src/pic16/pcode.c,
5038         * src/pic16/pcode.h: added some structures and functions for a new
5039         optimization scheme to compansate for instruction overhead between
5040         same iCodes, this scheme is currently under development and is not
5041         working in any way,
5042         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5043         to && operator,
5044         * device/lib/pic16/startup/crt0i.c,
5045         * device/lib/pic16/startup/crt0iz.c: added global char variable
5046         __uflags to force the generation of an idata section
5047
5048 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5049
5050         * doc/Makefile,
5051         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5052         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5053
5054 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5055
5056         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5057         Frieder) and clarified the default code optimization mode
5058
5059 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5060
5061         * src/SDCC.lex (doPragma, process_pragma),
5062         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5063         "opt_code_size", and "opt_code_balanced"
5064         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5065         regrouped options by category, added support for category headers
5066         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5067         and "--opt-code-size"
5068         * doc/sdccman.lyx: documented these new options and pragmas
5069         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5070         preference into account
5071
5072 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5073
5074         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5075           geniCodePreDec): Fixed bug 904237 by generating a warning
5076         * src/SDCCerr.h,
5077         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5078
5079 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5080
5081         * src/pic/device.c : When no max ram set validate full memory range.
5082         * src/pic/pcode.c,
5083         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5084
5085 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5086
5087         * device/lib/_gptrget.c,
5088         * device/lib/_gptrput.c: updated comment
5089         * device/lib/calloc.c,
5090         * device/lib/free.c,
5091         * device/lib/malloc.c,
5092         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5093         * src/SDCCcse.c (cseBBlock),
5094         * src/SDCCicode.c (printOperand, geniCodeArray),
5095         * src/SDCCicode.h (struct operand): fixed bug 868103
5096         * support/regression/tests/bug-868103.c: added
5097         * src/SDCCast.c (searchLitOp),
5098         * src/SDCCcse.h (struct cseDef),
5099         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5100         * src/SDCCicode.h (struct operand),
5101         * src/SDCCsymt.h (struct sym_link),
5102         * src/avr/gen.c (hasInc),
5103         * src/ds390/gen.c (hasInc),
5104         * src/hc08/gen.c (genPlusIncr, hasInc),
5105         * src/mcs51/gen.c (hasInc),
5106         * src/pic16/glue.c (pic16_printIvalChar),
5107         * src/pic16/ralloc.c (regWithIdx),
5108         * src/xa51/gen.c (hasInc) : removed warnings
5109         * src/SDCCast.c (createBlock): added comment ???
5110         * src/hc08/ralloc.c: updated comments
5111
5112 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5113
5114         * doc/sdccman.lyx: updated section on switch statements, added
5115         section about semaphore locking
5116         * doc/Makefile: added option -info for latex2html
5117         * device/lib/_gptrget.c,
5118         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5119
5120 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5121
5122         * src/pic/device.h,
5123         * src/pic/device.c,
5124         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5125          maxram is less than 0x100.
5126
5127 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5128
5129         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5130
5131 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5132
5133         * src/port.h,
5134         * src/mcs51/main.c,
5135         * src/ds390/main.c,
5136         * src/z80/main.c,
5137         * src/hc08/main.c,
5138         * src/pic/main.c,
5139         * src/pic16/main.c,
5140         * src/avr/main.c,
5141         * src/xa51/main.c
5142         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5143         a jump table is the best form for a switch statement, including
5144         automatic insertion of missing cases to make the case range
5145         continuous. Developed in collaboration with Frieder Ferlemann.
5146
5147 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5148
5149         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5150         accumulator result if it needs sign extension
5151
5152 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5153
5154         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5155
5156 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5157
5158         * device/lib/gbz80/printf.c,
5159         * device/lib/z80/printf.c: removed define for NULL
5160
5161 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5162
5163         * as/xa51/xa_link.c,
5164         * device/examples/ds390/ow390/ad26.c,
5165         * device/examples/ds390/ow390/cnt1d.c,
5166         * device/examples/ds390/ow390/counter.c,
5167         * device/examples/ds390/ow390/ds2480.h,
5168         * device/examples/ds390/ow390/ds2480ut.c,
5169         * device/examples/ds390/ow390/findtype.c,
5170         * device/examples/ds390/ow390/gethumd.c,
5171         * device/examples/ds390/ow390/owllu.c,
5172         * device/examples/ds390/ow390/ownetu.c,
5173         * device/examples/ds390/ow390/swt12.c,
5174         * device/examples/ds390/ow390/swtloop.c,
5175         * device/examples/ds390/ow390/temp.c,
5176         * device/examples/ds390/ow390/temp10.c,
5177         * device/examples/ds390/ow390/thermo21.c,
5178         * device/examples/ds390/ow390/tinilnk.c,
5179         * device/examples/ds390/ow390/tstfind.c,
5180         * device/examples/serialcomm/windows/serial.cpp,
5181         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5182         * device/include/reg51.h: fixed line endings for cvs
5183
5184 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5185
5186         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5187         packRegsForAccUse, packRegisters): new accumulator register
5188         packing algorithm
5189         * support/regression/ports/hc08/support.c (_putchar): suppress
5190         warning of unused variable
5191         * src/SDCCicode.c: added SWAP entry to codeTable
5192
5193 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5194
5195         * device/lib/sprintf.c: forgot to add this file before previous commit
5196
5197 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5198
5199         * src/pic16/gen.c (genPackBits): added operand right in function
5200         parameters, load result directly if p_type is POINTER (that is
5201         called by genNearPointerSet)
5202         * (genUnPackBits): added operand left in function parameters,
5203         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5204         FSR0 if accessing bitfields,
5205
5206 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5207
5208         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5209           _print_format; updated printf, sprintf, vsprintf
5210         * device/include/asm/default/features.h: corrected comment/define
5211         * device/lib/Makefile.in: added sprintf.c
5212         * device/lib/libsdcc.lib: added sprintf module
5213         * device/lib/printf_large.c,
5214         * device/lib/vprintf.c,
5215         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5216           into these 3 files
5217         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5218         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5219         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5220           hc08 test
5221         * support/regression/tests/zeropad.c: define idata as data for hc08
5222
5223 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5224
5225         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5226         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5227         labels are referenced at least once (even if a reference is not found)
5228         * src/hc08/gen.c (emitcode): set isComment flag for comments
5229         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5230         loads), rules 6a..6b (optimize jumps to return)
5231
5232 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5233
5234         * device/lib/acosf.c (acosf),
5235         * device/lib/asinf.c (asinf),
5236         * device/lib/atanf.c (atanf),
5237         * device/lib/ceilf.c (ceilf),
5238         * device/lib/cosf.c (cosf),
5239         * device/lib/coshf.c (coshf),
5240         * device/lib/cotf.c (cotf),
5241         * device/lib/fabsf.c (fabsf),
5242         * device/lib/floorf.c (floorf),
5243         * device/lib/log10f.c (log10f),
5244         * device/lib/logf.c (logf),
5245         * device/lib/sinf.c (sinf),
5246         * device/lib/sinhf.c (sinhf),
5247         * device/lib/sqrtf.c (sqrtf),
5248         * device/lib/tanf.c (tanf),
5249         * device/lib/tanhf.c (tanhf),
5250         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5251         replaced all instances of "reentrant" in the library functions
5252         defined in math.h with this macro.
5253         * support/regression/tests/float_trans.c: reenabled test for hc08
5254
5255 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5256
5257         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5258         erroneously deleted
5259
5260 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5261
5262         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5263         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5264         multi-byte volatile operands are used
5265         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5266         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5267         initialization to area GSINIT0 so that it would always precede
5268         any static initializers in GSINIT
5269         * support/regression/tests/zeropad.c: fixed idata define for hc08
5270         * support/regression/tests/bug-927659.c,
5271         * support/regression/tests/float_trans.c: disabled tests for hc08
5272         pending missing library routines
5273         * .version: increased version number to 2.4.4 - hc08 port now passes
5274         regression tests
5275
5276
5277 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5278
5279         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5280         * Makefile.common.in,
5281         * as/Makefile,
5282         * as/hc08/Makefile.in,
5283         * as/mcs51/Makefile.in,
5284         * as/z80/Makefile.in,
5285         * debugger/mcs51/Makefile.in,
5286         * device/include/Makefile.in,
5287         * device/lib/Makefile.in,
5288         * doc/Makefile,
5289         * link/Makefile,
5290         * link/z80/Makefile.in,
5291         * packihx/Makefile.in,
5292         * sim/ucsim/main_in.mk,
5293         * sim/ucsim/avr.src/Makefile.in,
5294         * sim/ucsim/doc/Makefile.in,
5295         * sim/ucsim/gui.src/serio.src/Makefile.in,
5296         * sim/ucsim/hc08.src/Makefile.in,
5297         * sim/ucsim/s51.src/Makefile.in,
5298         * sim/ucsim/xa.src/Makefile.in,
5299         * sim/ucsim/z80.src/Makefile.in,
5300         * src/Makefile.in,
5301         * support/cpp2/Makefile.in,
5302         * support/librarian/Makefile,
5303         * support/makebin/Makefile: added DESTDIR to the install path proposed
5304         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5305         * doc/sdccman.lyx: added DESTDIR documentation
5306
5307 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5308
5309         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5310         instruction for interrupt handlers, use fast returns when returning
5311         from high priority interrupts
5312
5313 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5314
5315         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5316         code generation
5317         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5318         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5319         bugs, ported much of Bernhard's code from mcs51
5320         * src/mcs51/gen.c (genSend),
5321         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5322         than one when calling a reentrant function
5323         * device/lib/_mullong.c: defined an alternate struct layout for big
5324         endian ports (hc08)
5325
5326 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5327
5328         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5329         test
5330
5331 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5332
5333         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5334         are sane and complete before asking the port its prefered parameter
5335         passing method (fixes bug #1017633)
5336         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5337         and _ret3
5338
5339 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5340
5341         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5342         problem in bitfields >= 8 bits.
5343
5344 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5345
5346         * src/SDCCsymt.c: undid changes that were not meant to be committed
5347
5348 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5349
5350         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5351
5352 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5353
5354         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5355           copied and wrong bit got inverted
5356
5357 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5358
5359         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5360         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5361         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5362         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5363         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5364         assignments to bitfields at known addresses
5365         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5366         reads from bitfields at known addresses
5367         * src/hc08/ralloc.c (packRegisters),
5368         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5369         genhc08Code): optimize pointer get values used as conditionals
5370         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5371         and branch
5372
5373 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5374
5375         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5376         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5377         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5378         as conditionals
5379
5380 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5381
5382         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5383
5384 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5385
5386         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5387         related problems
5388
5389 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5390
5391         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5392
5393 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5394
5395         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5396         mcs51 port
5397
5398 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5399
5400         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5401
5402 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5403
5404         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5405         cases use more compact code.
5406
5407 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5408
5409         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5410
5411 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5412
5413         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5414
5415 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5416
5417         * src/SDCCsymt.h,
5418         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5419         parameter of changePointer() from symbol* to sym_link*
5420         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5421         * src/SDCCsymt.c (compareType): void* type is castable to other
5422         pointers, but not necesarily an exact match.
5423         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5424         is no longer blindly treated as an exact match.
5425         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5426
5427 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5428
5429         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5430
5431 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5432
5433         * src/pic/gen.c,
5434         * src/pic/pcode.c,
5435         * src/pic/ralloc.h,
5436         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5437
5438 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5439
5440         * src/pic/device.c,
5441         * src/pic/device.h,
5442         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5443
5444 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5445
5446         * src/mcs51/gen.c (emitcode): fixed bug #992819
5447
5448 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5449
5450         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5451           there's no need to make it worse
5452
5453 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5454
5455         * src/mcs51/ralloc.c (deassignLR),
5456         * src/ds390/ralloc.c (deassignLR),
5457         * src/hc08/ralloc.c (deassignLR),
5458         * src/z80/ralloc.c (deassignLR),
5459         * src/pic/ralloc.c (deassignLR),
5460         * src/pic16/ralloc.c (deassignLR),
5461         * src/avr/ralloc.c (deassignLR),
5462         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5463         rlivePoint): fixed another part of bug #971834
5464
5465 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5466
5467         * src/z80/main.c: enabled "critical" keyword
5468         * src/z80/mappings.i,
5469         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5470         functions (fixes bug #979646)
5471         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5472
5473 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5474
5475         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5476           such as c:\mydir.
5477
5478 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5479
5480         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5481           doesn't disable too much optimizations
5482
5483 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5484
5485         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5486
5487 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5488
5489         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5490
5491 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5492
5493         * src/pic/gen.c tidied up tabs
5494         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5495         * src/pic/main.c tidied up tabs
5496         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5497         * src/pic/pcoderegs.c tidied up tabs
5498         * src/pic/ralloc.c tidied up tabs
5499
5500 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5501
5502         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5503         to S_FIXED for pic16 port and when symbol is not in level 0,
5504         allocate for S_REGISTER storage class and pic16 port, too,
5505         * src/pic16/device.h: prototype for checkSym,
5506         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5507         * (pic16_assignConfigWordValue): test the value and the mask to
5508         validate that the value is suitable for the configuration word,
5509         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5510         collect extern declared symbols, don't emit symbol twice, check
5511         first if symbol is in publics set first,
5512         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5513         * added command line '--fstack' which enables an experimental
5514         feature for stack access, too buggy to be used yet...
5515         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5516         * (pic16_allocDirReg): when register has storage class S_REGISTER
5517         allocate in pic16_dynAccessRegs,
5518         * device/include/pic16/pic18f????.h: modified configuration word
5519         naming convention, words started as CONFIG0H but should be CONFIG1H
5520
5521 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5522
5523         * device/include/mcs51reg.h: fixed bug 970993
5524
5525 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5526
5527         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5528         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5529         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5530         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5531         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5532         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5533           error/warning numbers,
5534           added function setWarningDisabled()
5535         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5536         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5537           _memcmp.c _memmove.c calloc.c realloc.c free.c
5538         * support/regression/tests/malloc.c: added tests for new functionality
5539         * support/regression/tests/zeropad.c: added tests for truncated initializers
5540           and initialized char arrays starting with '\x0'
5541         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5542
5543 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5544
5545         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5546
5547 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5548
5549         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5550         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5551         peephole 177.e. Thanks to anonymous
5552
5553 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5554
5555         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5556         function isn't used in the source but referenced as a
5557         variable initializer then declare it as extern in .asm file
5558
5559 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5560
5561         * .version: increased version number to 2.4.3
5562
5563         Adding version extension according to ChangeLog CVS revision
5564         * src/Makefile.in (target all): added dependency 'version.h'
5565         * (rule version.h): added rule to create version.h from ChangeLog,
5566         * (rule dep): added dependency version.h,
5567         * src/version.awk: AWK script to create version.h
5568         * src/SDCCdwarf2.c (dwWriteModule),
5569         * src/SDCCglue.c (initialComments),
5570         * src/SDCCmain.c (printVersionInfo): modified to write after
5571         version string the version extension number,
5572         * src/SDCCutil.c: included "version.h"
5573         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5574         number,
5575         * src/SDCCutil.h: added prototype for getBuildNumber
5576
5577         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5578         includeDirsSet, too,
5579         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5580         const char [] is found in function prototype...
5581
5582         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5583         moving to WREG with source is already in WREG,
5584         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5585         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5586         * (aopForSym): stack'ed symbols are partially supported, added
5587         if-clause to support symbols in FARSPACE,
5588         * (sameRegs): added test for AOP_ACC to see if registers are same,
5589         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5590         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5591         * (pic16_popRegFromString): will not allocate a new register if it
5592         doesn't find one by name, bug may have introduced...
5593         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5594         * (genIpush): revived to use pic16 port's stack,
5595         * (genAddrOf): added incomplete case for stack'ed operand,
5596         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5597         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5598         can handle multibyte operands,
5599         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5600         * (pic16initialComments): added message for MPLAB compatibility
5601         mode enabled,
5602         * src/pic16/main.h: prototype for pic16_mplab_comp,
5603         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5604         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5605         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5606         because of increased complexity of procedure,
5607         * (_process_pragma): stack pragma changed to format 'stack pos len',
5608         emit symbol '_stack_end' to conform with gplink,
5609         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5610         to search for register,
5611         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5612         PO_GPR_REGISTER,
5613         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5614         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5615         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5616         case for PO_GPR_REGISTER,
5617         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5618         dies, the new era is ahead !...
5619         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5620         pic16_dynInternalRegs,
5621         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5622         * (pic16_allocDirReg): minor optimizations and bug fixes,
5623         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5624
5625         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5626         load stack and frame pointer with address of 'stack_end' symbol
5627
5628 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5629
5630         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5631         without source code but only variable initializers
5632
5633 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5634
5635         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5636         external are not declared as extern to reduce overhead while linking
5637
5638 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5639
5640         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5641
5642 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5643
5644         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5645           Yee Keat for the patch
5646         * src/SDCCast.c (decorateType): fixed bug #979599
5647         * src/ds390/gen.h: removed local fReturnSizeDS390
5648         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5649         * src/ds390/gen.c (genAnd, genOr, genXor),
5650         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5651
5652 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5653
5654         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5655         add relFilesSet to $3, manipulate $2 to handle linking of object
5656         files without source files in command line,
5657         * device/include/pic16 (all headers): added ID location macros,
5658         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5659         entries for ID location bytes,
5660         * (pic16_assignIdByteValue): NEW,
5661         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5662         added field dumpcalltree to pic16_options_t,
5663         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5664         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5665         emitting rFalseIfx label after check_carry label,
5666         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5667         pic16_emitDIRegs), NEW
5668         * (pic16glue): dump .calltree file when option --calltree found,
5669         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5670         * (_pic16_genAssemblerPreamble): emit ID locations after
5671         configuration registers,
5672         * (pic16_linkCmd): modifications of the link command,
5673         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5674         * (pic16_pCodeInitRegisters): don't init stack registers,
5675         * (pic16_findPrevInstruction): fixed bug,
5676         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5677         bug with immediate registers,
5678         * (buildCallTree): traces stack push and pop,
5679         * (pct2): dump also stack usage for each function,
5680         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5681         * (pic16_allocDirReg): various modifications,
5682         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5683         fixed to 1,
5684
5685 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5686
5687         * src/pic16/pcode.c: removed buggy double colon
5688
5689 2004-07-01 Borut Razem <borut.razem AT siol.net>
5690
5691         * support/scripts/sdcc.nsi: added include/pic16 to setup
5692
5693 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5694
5695         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5696         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5697         target 'clean',
5698         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5699         specific command line arguments. Also added sample lkr script
5700         for placing a variable at a specific memory bank.
5701         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5702         at a specific memory bank,
5703         * (pic16_dump_isection): fixed bug which caused string literals to
5704         be omitted when dumping idata section,
5705         * (pic16_groupRegistersInSection): added code to handle registers
5706         in specific memory banks,
5707         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5708         public, all references are renamed too,
5709         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5710         AOP_DPTR2,
5711         * (pic16_storeForReturn): added case to handle when dest is WREG,
5712         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5713         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5714         pic16_rel_udata, check to see if that register is marked as being
5715         a member of a specific memory bank,
5716         * (pic16_printIvalCharPtr): added code to add string literals either
5717         to code or the idata sections,
5718         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5719         also accept the 'udata' pragma,
5720         * src/pic16/main.h: new structure types sectName and sectSym
5721         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5722         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5723         * (pic16_findPrevInstruction): fixed, it returned nothing,
5724         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5725         instruction combinations,
5726         * (pic16_FixRegisterBanking): heavily reorganised,
5727         * (pic16_AnalyzeBanking): if generating banksel directives is
5728         disabled, then don't call FixRegisterBanking at all,
5729         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5730         completely removed,
5731         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5732
5733 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5734
5735         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5736         Phuah Yee Keat <yk.phuah AT nestac.com>
5737
5738 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5739
5740         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5741         correctly the IVT even if it is relocated to some other location
5742
5743 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5744
5745         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5746         * device/include/pic16/pic18f2220.h: NEW,
5747         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5748         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5749         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5750         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5751         nodefaultlibs, ivt_loc is the location of the interrupt vector
5752         table, and nodefaultlibs signs that default libraries should not be
5753         linked in link stage,
5754         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5755         according to --ivt-loc argument,
5756         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5757         when pragma stack is found,
5758
5759 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5760
5761         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5762         256 (range check), 257 (do while), 258.a-f (bit banging
5763         f.e. on 3-wire SPI bus)
5764
5765 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5766
5767         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5768         variables used exclusively within a loop
5769
5770 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5771
5772         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5773
5774 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5775
5776         * src/SDCClrange.c (computeClash): fixed bug #971834
5777
5778 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5779
5780         * src/mcs51/gen.c (genCmp): fixed bug #975903
5781         * src/hc08/gen.c (operandsEqu),
5782         * src/ds390/gen.c (operandsEqu),
5783         * src/z80/gen.c (operandsEqu),
5784         * src/pic/gen.c (operandsEqu),
5785         * src/pic16/gen.c (operandsEqu),
5786         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5787         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5788
5789 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5790
5791         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5792
5793 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5794
5795         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5796         default case in switch statement,
5797         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5798         to eliminate problem with initialisation of pointers, but problem
5799         still exists,
5800         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5801         * (emitStaticSegment): removed various lines emitting debug info,
5802         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5803         added processor registers for utilizing EEPROM,
5804         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5805         configurable and set 8
5806
5807 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5808
5809         * .version: increased version number to 2.4.2,
5810
5811         Cumulative patch for pic16 port
5812         * src/pic16/device.c: changed scheme to dump initial values for
5813         variables in idata segment, all print_idata* functions were removed,
5814         now the pic16_printIval* will be called,
5815         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5816         * _pic16_printPointerType, pic16_printPointerType,
5817         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5818         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5819         NEW, similar to the respective functions in SDCCglue.c,
5820         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5821         way, emitting hex bytes,
5822         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5823
5824 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5825
5826         * src/avr/ralloc.c (serialRegAssign),
5827         * src/xa51/ralloc.c (serialRegAssign),
5828         * src/pic/ralloc.c (serialRegAssign),
5829         * src/pic16/ralloc.c (serialRegAssign),
5830         * src/hc08/ralloc.c (serialRegAssign),
5831         * src/z80/ralloc.c (serialRegAssign),
5832         * src/ds390/ralloc.c (serialRegAssign),
5833         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5834
5835 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5836
5837         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5838         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5839
5840 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5841
5842         Cumulative patch for pic16 port:
5843         * src/pic16/device.h (typedef PIC16_device) modified fields for
5844         defining microcontrollers,
5845         * src/pic16/device.c: added new info for all devices in Pics16 array,
5846         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5847         to be optimised out by the pCode optimiser,
5848         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5849         specially, bug reported by G.M. Gallant,
5850         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5851         as force'd so that cannot be optimised out by pCode optimiser,
5852         * src/pic16/pcode.c,
5853         * src/pic16/pcodepeeph.c,
5854         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5855         they are disabled by default, but can be enabled explicit with
5856         command argument --denable-peeps, for testing,
5857         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5858         --pomit-ivt in COMPILE_FLAGS
5859
5860 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5861
5862         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5863           compilation on MSVC
5864
5865 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5866
5867         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5868
5869 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5870
5871         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5872         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5873
5874 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5875
5876         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5877         would only assign 0x300001 register.
5878
5879 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5880
5881         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5882         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5883
5884 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5885
5886         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5887         for ds80c400
5888         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5889         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5890         added peephole 254 (left shift), 255 (jump table)
5891
5892 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5893
5894         * device/lib/Makefile.in: removed comment line with model-pic16,
5895         * (target port-specific-objects-pic16): the libraries and objects
5896         are copied to the build directory form the device/lib/pic16/bin
5897         directory
5898
5899         Cumulative patch concerning pic16 port:
5900         * library directory has been re-organized,
5901         * added support for PIC18F1220,
5902         * added headers and library sources for chips 18f1220,18f6520,
5903         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5904
5905         * configuration registers setting has changed, now each supported
5906         device has a complete description of the registers it uses,
5907         * all initialisations are moved to idata sections, these section
5908         can be absolute or relocatable,
5909         * fixed initialisation of codespace variables,
5910         * fixed warning about PCLATU and gpsim,
5911         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5912         * (genAssign): use table reads when assigning from variables in codespace,
5913         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5914         char/int variables placed in codespace,
5915         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5916         registers set in .asm file, no need for --pomit-config-words anymore,
5917         * (pic16glue): some 8051 legacy segments are commented out
5918         (to be removed completely),
5919         * added support for alternative assembler and linker with --asm=
5920         and --link= command line arguments,
5921         * peepholes are disabled automatically in the port, no need to
5922         specify on command line,
5923         * port supports natively char/int/long multiplication, but converts
5924         all divisions to support functions,
5925         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5926         to the file set in variable $2,
5927         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5928         strings in ASCII format and not in hex,
5929         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5930         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5931         allocate proper register if iCodes aren't temporary,
5932
5933 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5934
5935         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5936
5937 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5938
5939         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5940         is commented out
5941
5942 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5943
5944         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5945         computed address is reused
5946         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5947         multi-byte bitfields
5948
5949 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5950
5951         * src/z80/gen.c: (genArrayInit): must check for pointers too
5952
5953 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5954
5955         * support/regression/tests/zeropad.c: never meant to commit the
5956           nestedstruct test: removed, added check for GCC version
5957
5958 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5959
5960         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5961         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5962         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5963           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5964           bugs 928906 and 954082 half-empty initializers
5965         * src/SDCCsymt.h,
5966         * src/SDCCsymt.c (getAllocSize): added for above fix
5967         * src/z80/gen.c (genArrayInit): fixed bug 741044
5968         * support/regression/tests/zeropad.c: added tests
5969
5970 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5971
5972         * src/pic16/device.c (pic16_dump_section): corrected bug which
5973         caused some symbols of the libraries to be misplaced
5974
5975 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5976
5977         * src/pic16/glue.c,
5978         * src/pic16/ralloc.h,
5979         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5980         to fix conflict with pic port
5981
5982 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5983
5984         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5985         externs configuration variables,
5986         * src/pic16/ralloc.h,
5987         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5988         prototype in header, commented out some debug messages
5989
5990 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5991
5992         * src/pic16/glue.c,
5993         * src/pic16/main.c,
5994         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5995         for gpasm COFF object generation. Thanks to D. Hawkins for
5996         his patch info
5997
5998 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5999
6000         * src/ds390/main.c,
6001         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6002         Brock for spotting this)
6003         * src/ds390/gen.c (genEndFunction),
6004         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6005         interrupt handler and critical. Disable push/pop optimizations when
6006         peephole optimizations disabled.
6007
6008 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6009
6010         Updated pic16 library sources and headers.
6011         * device/lib/pic16/pic18f*/ ,
6012         * device/include/pic16/*.h: modified to handle structured SFR
6013         definitions
6014
6015 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6016
6017         * src/port.h (PORT structure): added hook initPaths, now each
6018         port can declare its own default search paths,
6019         which can been seen with the --print-search-dirs option,
6020         see pic16 port for example,
6021         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6022         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6023         * (doPrintSearchDirs): NEW, replaces in a central manner the
6024         printing of search dirs which was split in set*Paths functions,
6025         * (main): added call to port->initPaths and doPrintSearchDirs,
6026         * src/avr/main.c,
6027         * src/ds390/main.c,
6028         * src/hc08/main.c,
6029         * src/izt/i186.c,
6030         * src/izt/tlcs900h.c,
6031         * src/mcs51/main.c,
6032         * src/pic/main.c,
6033         * src/pic16/main.c: modified port structures to reflect addition of
6034         initPaths hook,
6035
6036         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6037         * (pic16_dump_section): for registers in same address reserve memory once,
6038         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6039         to no_banksel,
6040         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6041         result is greater in size than right or left,
6042         * (pic16_genUMult8X8_8): there are some cases where the result can
6043         be 16 bits size, so handle these,
6044         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6045         * (pic16_outBitC): modified to emit pcodes,
6046         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6047         or not,
6048         * (genDivOneByte): implemented algorithm to divide 8-bits,
6049         * (genCmp): uncommented goto, but issues still exist,
6050         * (genAnd): fixed a bug with variables >8bits,
6051         * (genPackBits): optimization added that uses BCF/BSF to change a
6052         single bit,
6053         * (genAssign): fixed bug when assigning floating point literals,
6054         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6055         __sdcc_gsinit_startup label,
6056         * src/pic16/main.c (_pic16_init): removed search directory
6057         initialisations,
6058         * (_pic16_initPaths): NEW, used to initialise search directories,
6059         * (_hasNativeMulFor): support functions for all except char/int
6060         multiplication, and char division,
6061         * (PIC16_port struct): modified entry for native mul support,
6062         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6063         no_banksel option,
6064         * (buildCallTree): call to register_usage is ifdef'ed out,
6065
6066 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6067
6068         * device/include/string.h: applied Stas Sergeev's patch to make this
6069         header file compatible with the preprocessor -Wundef option
6070         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6071         failure (fixes bug #941458)
6072
6073 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6074
6075         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6076         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6077         that the variable, not the function, should be static
6078         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6079         to be consistent with non-literal case
6080
6081 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6082
6083         * src/SDCCast.c (isConformingBody): fixed bug #949967
6084         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6085         convilong): fixed bug #952086
6086
6087 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6088
6089         * src/SDCCmem.c (allocVariables): fixed bug #955321
6090
6091 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6092
6093         * src/hc08/main.c (_hc08_genAssemblerEnd),
6094         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6095         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6096         completely eliminated the use of a temporary file
6097         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6098         when more than one file linked
6099         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6100
6101 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6102
6103         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6104         which fixes bug #543481
6105         * support/regression/tests/bug-751703.c: fixed comments left from a
6106         cut and paste error
6107         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6108         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6109         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6110         scopes
6111         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6112         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6113         are now changed to underscores in moduleName
6114
6115 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6116
6117         * as/mcs51/lkmem.c: better fix for bug #954173
6118
6119 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6120         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6121
6122         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6123         * device/include/c8051f000.h,
6124         * device/include/c8051f120.h,
6125         * device/include/c8051f300.h,
6126         * device/include/c8051f310.h,
6127         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6128         PWM16) and detab'ed
6129
6130 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6131
6132         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6133         and mailing lists, doc'ed --no-peep-comments, removed reference
6134         to knoppix (newest version has no LyX/LaTeX), other minor changes
6135         * src/SDCCglue.c (glue): save 2 bytes stack space with
6136         option --main-return. The ljmp could probably be avoided too
6137
6138 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6139
6140         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6141
6142 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6143
6144         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6145         * src/SDCCopt.c (isLocalWithoutDef),
6146         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6147         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6148         (credit to Maarten Brock for patch #949363, on which this is based)
6149         * support/regression/tests/bug-751703.c: some test cases of extern used
6150         within inner scopes.
6151
6152 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6153
6154         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6155         SPEC_STRUCT
6156         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6157         struct definitions
6158         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6159         dwWriteLabel): fix to create valid debugger symbols even when
6160         the module name has non-alphanumeric symbols in it
6161         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6162         when a variable's allocation has been optimized away
6163
6164
6165 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6166
6167         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6168         * src/hc08/main.c,
6169         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6170         * src/mcs51/main.c,
6171         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6172         * src/ds390/main.c,
6173         * src/z80/gen.c (z80_emitDebuggerSymbol),
6174         * src/z80/main.c,
6175         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6176         * src/pic/main.c,
6177         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6178         * src/pic16/main.c,
6179         * src/avr/gen.c (avr_emitDebuggerSymbol),
6180         * src/avr/main.c,
6181         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6182         * src/xa51/main.c,
6183         * src/SDCCdebug.c (emitDebuggerSymbol),
6184         * src/SDCCdebug.h,
6185         * src/port.h: added a debugger struct to the port struct. Added a
6186         callback for defining debugger symbols
6187
6188         * src/SDCCast.c (createLabel),
6189         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6190         with isitmp = 1
6191         * src/SDCCicode.h,
6192         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6193         iCode back to the ast for the function
6194
6195         * src/hc08/ralloc.c (hc08_assignRegisters),
6196         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6197         unneeded fields from the regs struct.
6198         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6199         pushReg() & pullReg() functions instead of emitcode()
6200
6201         * src/hc08/gen.c (genLabel, genhc08Code),
6202         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6203
6204         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6205         debugger hooks
6206
6207         * src/hc08/gen.c (genEndFunction, genhc08Code),
6208         * src/hc08/gen.h,
6209         * src/mcs51/gen.c (genEndFunction, gen51Code),
6210         * src/mcs51/gen.h,
6211         * src/ds390/gen.c (genEndFunction, gen390Code),
6212         * src/ds390/gen.h,
6213         * src/z80/gen.c (genEndFunction, genZ80Code),
6214         * src/z80/gen.h,
6215         * src/z80/z80.h,
6216         * src/pic/gen.c (genEndFunction, genpic14Code),
6217         * src/pic/gen.h,
6218         * src/pic16/gen.c (genEndFunction, genpic16Code),
6219         * src/pic16/gen.h,
6220         * src/avr/gen.c (genEndFunction, genAVRCode),
6221         * src/avr/gen.h,
6222         * src/xa51/gen.c (genEndFunction, genXA51Code),
6223         * src/xa51/gen.h,
6224         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6225         specific code to cdbFile.c and out of the backend code generators
6226
6227         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6228         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6229         starting address is now 0
6230
6231         * as/hc08/asm.h,
6232         * as/hc08/m08pst.c,
6233         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6234         assembler directive for DWARF support
6235         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6236
6237         * src/src.dsp,
6238         * src/Makefile.in,
6239         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6240
6241 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6242
6243         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6244         and inappropriate peephole optimization in jump tables
6245
6246 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6247
6248         * as/hc08/m08pst.c,
6249         * src/SDCCglue.c: sdccopt works for the hc08 port now
6250
6251 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6252
6253         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6254
6255 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6256
6257         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6258
6259 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6260
6261         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6262         rules
6263         * src/SDCCmain.c,
6264         * src/SDCCglobl.h,
6265         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6266         comments from the peephole optimizer replacement rules
6267         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6268         symbols
6269         * src/SDCCcse.c (updateSpillLocation),
6270         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6271         equivalents
6272         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6273         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6274         objects far pointers
6275
6276 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277
6278         * src/SDCCsymt.h: a missing part of my last change
6279         * src/pic/ralloc.c (regTypeNum),
6280         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6281
6282 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6283
6284         * src/SDCCicode.h,
6285         * src/SDCCicode.c (aggrToPtrDclType),
6286         * src/SDCCptropt.h,
6287         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6288         ptrPseudoSymConvert),
6289         * src/pic/ralloc.c (regTypeNum),
6290         * src/pic16/ralloc.c (regTypeNum),
6291         * src/hc08/ralloc.c (regTypeNum),
6292         * src/ds390/ralloc.c (regTypeNum),
6293         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6294         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6295
6296 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6297
6298         * link/z80/lkmain.c (afile),
6299         * as/hc08/lkmain.c (afile),
6300         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6301         prevent a pointer problem when a filename has no directory and
6302         no extension specified.
6303
6304 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6305
6306         * link/z80/lkmain.c (afile): allow periods in directory names
6307         * link/z80/lkmain.c (afile),
6308         * as/mcs51/lkmain.c (afile),
6309         * as/hc08/lkmain.c (afile): allow linker script file to have an
6310         extension other than ".lnk"
6311         * link/z80/lklex.c (getfid),
6312         * link/z80/lkmain.c (parse),
6313         * as/mcs51/lklex.c (getfid),
6314         * as/mcs51/lkmain.c (parse),
6315         * as/hc08/lklex.c (getfid),
6316         * as/hc08/lkmain.c (parse): Support comments in the linker script
6317         file on lines by themselves and after filenames
6318
6319 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6320
6321         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6322
6323 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6324
6325         * src/z80/peeph-z80.def: removed some peephole rules that don't
6326         work with multibyte arithmetic (fixed bug #937126)
6327         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6328         to registers and not global variables
6329         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6330         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6331         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6332         checking for assignments not internally generated (fixed bug #931895)
6333         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6334         structure member (fixed bug #930072)
6335
6336 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6337
6338         * src/SDCCmain.c (linkEdit),
6339         * src/hc08/main.c (_hc08_parseOptions),
6340         * as/hc08/Makefile.in,
6341         * as/hc08/aslink.h,
6342         * as/hc08/asm.h,
6343         * as/hc08/m08pst.c,
6344         * as/hc08/lkrloc.c (relr, rele),
6345         * as/hc08/lkarea.c (lnkarea)
6346         * as/hc08/lkmain.c (afile, parse),
6347         * as/hc08/lkelf.c: support for ELF output
6348         * as/hc08/lks19.c (s19),
6349         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6350
6351 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6352
6353         * as/mcs51/lkihx.c: Fixed bug #899105.
6354
6355 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6356
6357         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6358         .dsp files from Unix to DOS.
6359
6360 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6361
6362         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6363         function pointers; we have been compliant for several months now.
6364         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6365         change that was accidently commented out
6366         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6367         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6368         bug #922319
6369
6370 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6371
6372         * src/hc08/gen.c: output of all of the internal debugging information
6373         is now controlled by the D() macro; it is disabled by default
6374
6375 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6376
6377         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6378         harder to keep the same registers during a CAST iCode
6379         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6380         long via int can be done in a single cast, if the signedness is
6381         correct.
6382         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6383         putchar() in tinibios.c in ds390's library
6384
6385 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6386
6387         * src/SDCCast.c (decorateType): fixed bug #898889,
6388         cast result of a literal complement too
6389         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6390         fixed check for bitfields
6391
6392 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6393
6394         * src/SDCCicode.c (geniCodeLogic): made it static,
6395         (geniCodeLogicAndOr): added in order to fix bug #905492,
6396         (ast2iCode): fixed bug #905492
6397         * support/regression/tests/bug-905492.c: added
6398         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6399         (processParms): fixed bug #927659: don't copy parms, this will clear
6400         decorated flag
6401         * support/regression/tests/bug-927659.c: added
6402
6403 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6404
6405         * src/SDCCast.c (addCast): don't cast float to char
6406         * device/lib/libsdcc.lib: added _memmove
6407
6408 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6409
6410         * device/lib/large/Makefile: fixed parallel execution by
6411         replacing `make` by `$(MAKE)`
6412
6413 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6414
6415         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6416         offsets (fixes bug #923936)
6417
6418 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6419
6420         * device/lib/small/Makefile: fixed parallel execution by
6421         replacing `make` by `$(MAKE)`
6422
6423 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6424
6425         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6426
6427 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6428
6429         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6430         * src/regression/Makefile: Regression test was not running.
6431
6432 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6433
6434         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6435         complement if possible
6436         * src/SDCCval.c (valComplement),
6437         * src/SDCCicode.c (operandOperation): fixed complement of literal
6438         * support/regression/tests/onebyte.c (testComplement): added
6439
6440 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6441
6442         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6443         return an optimized tree; actually replace actParm with the new tree
6444         * src/SDCCast.h: added some parantheses to remove side effects
6445         * support/regression/tests/bug-920866.c
6446
6447 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6448         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6449         Bit operands were not being handled properly in the pic14 port.
6450         (now src/regression/add.c passes again).
6451
6452 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6453
6454         * src/SDCC.y (labeled_statement): case and default no longer require
6455         a following statement (RFE #893037)
6456
6457 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6458
6459         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6460         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6461         disabled (fixes bug #916294)
6462         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6463         "mov a,acc"; patch provided by Lenny Story
6464         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6465
6466 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6467
6468         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6469         functions
6470         * src/ds390/gen.c (genFunction, genEndFunction),
6471         * src/ds390/ralloc.c (ds390_assignRegisters),
6472         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6473         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6474         pushed if there are parameters passed on the stack. Also, a cleaner
6475         way to decide if r0/r1 should be pushed/popped. (Together they fix
6476         bug #918693)
6477
6478 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6479
6480         * doc/sdccman.lyx,
6481         * device/lib/mcs51/crtpagesfr.asm,
6482         * device/lib/mcs51/crtxinit.asm,
6483         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6484         to avoid confusion with Si Lab's SFRPAGE register.
6485
6486 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6487
6488         * src/SDCCglue.c (emitMaps): allow public sfr variables
6489         * src/SDCCglue.c (initialComments): include compiler build date
6490         with compiler version and put the timestamp of the generated
6491         assembly file on a serperate line to be less confusing.
6492         * src/port.h: added genInitStartup hook
6493         * src/avr/main.c,
6494         * src/ds390/main.c,
6495         * src/hc08/main.c,
6496         * src/pic/main.c,
6497         * src/pic16/main.c,
6498         * src/xa51/main.c,
6499         * src/z80/main.c: genInitStartup initialize as NULL (default to
6500         historical behaviour)
6501         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6502         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6503         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6504         library instead of hard coding it into the compiler.
6505         * support/regression/ports/mcs51-stack-auto/spec.mk,
6506         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6507         * device/lib/mcs51/Makefile,
6508         * device/lib/small/Makefile,
6509         * device/lib/large/Makefile,
6510         * device/lib/mcs51/crtpagesfr.asm,
6511         * device/lib/mcs51/crtstart.asm,
6512         * device/lib/mcs51/crtxclear.asm,
6513         * device/lib/mcs51/crtxinit.asm,
6514         * device/lib/mcs51/crtclear.asm,
6515         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6516         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6517         and into user configurable files.
6518         * device/lib/clean.mk: clean mcs51 directory too
6519         * support/regression/tests/longlit.c: added static to T1 declaration
6520         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6521         accesses in the initialization code
6522
6523 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6524
6525         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6526         OSCTRIMVAL as noted in bug #916008
6527
6528 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6529
6530         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6531         in loops with multiple exits (reported as incorrect registers
6532         used by Martin Helmling in Sdcc-user list)
6533
6534 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6535
6536         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6537         made ds390 register extensions look less like error messages
6538
6539 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6540
6541         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6542         reported by Adam Wozniak in Sdcc-user list
6543
6544 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6545
6546         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6547         arithmetic optimizations, added debug output
6548
6549 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6550
6551         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6552         * sdcc.spec: updated and split sdcc into 3 rpms
6553         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6554         needed for literals of LEFT_OP and '+'
6555         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6556         introduced RESULT_TYPE_NOPROM
6557         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6558         left shift
6559         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6560         limited promotion to int only for '*'
6561         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6562
6563 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6564
6565         * src/pic16/gen.c (genSkip),
6566         (genc16bit2lit), (gencjneshort): commented out
6567         (is_LitOp): new helper function, checks operand type
6568         (genCmpEq): rewritten
6569
6570 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6571
6572         * support/regression/tests/bug-908454.c: added
6573
6574 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6575
6576         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6577         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6578         (geniCodeCast): cosmetic, don't preserve bit storage class
6579         (geniCodeLeftShift): added promotion
6580         (geniCodeLogic): fixed regression
6581         * src/SDCCsymt.c (computeTypeOr): accept bits too
6582         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6583
6584 2004-03-07  Borut Razem <borut.razem AT siol.net>
6585
6586         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6587
6588 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6589
6590         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6591         version of pic16_genPackRegisters which does not check if ic is a
6592         CAST operator,
6593         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6594         function cause string1.c regression test fails
6595
6596 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6597
6598         * sim/ucsim/configure.in,
6599         * sim/ucsim/configure,
6600         * sim/ucsim/doc/Makefile.in: use docdir
6601         * src/SDCC.y: fixed sbit atrributes
6602         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6603         * src/SDCCast.c (decorateType): |^& need special promotion handling
6604         * src/SDCCast.h,
6605         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6606         * src/SDCCsymt.h (computeType),
6607         * src/SDCCicode.c: computeType() needs op
6608         * src/SDCCsymt.c (checkTypeSanity),
6609         * doc/sddman.lyx: "plain" bitfields are unsigned
6610         * src/SDCCsymt.c (computeTypeOr): added
6611         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6612         |^& ops
6613         * src/SDCCval.c (val*): computeType() needs op
6614         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6615         * support/regression/tests/onebyte.c: added tests for |^&
6616
6617 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6618
6619         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6620         for writing icode into asm output.
6621
6622 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6623
6624         * src/pic16/device.c: added some debug lines enabled
6625         with macro DEBUG_CHECK,
6626         * src/pic16/genarith.c: more debug in genPlus,
6627         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6628         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6629         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6630         * (aopForSym): onStack symbols are re-placed in data memspace,
6631         and onStack flag is cleared,
6632         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6633         copy temporary pcodeop,
6634         * (genPcall): added warning for not updating PCLATU,
6635         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6636         always true for pic16 port,
6637         * (genMultOneWord): NEW, supports integer multiplication,
6638         * (genMult): modified to call genMultOneWord,
6639         * (ifxForOp): added warning when return NULL,
6640         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6641         flag is set before call to operandFromSymbol for implicit
6642         added structures,
6643         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6644         options.intlong_rent are set by default,
6645         * (_hasNativeMulFor): modified to allow port generation of integer
6646         multiplication,
6647         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6648         set regtype to REG_SFR for all registers, restricting seting the
6649         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6650
6651 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6652
6653         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6654         more than 500 times in the regression tests
6655
6656 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6657
6658         * support/Util/SDCCerr.h,
6659         * support/Util/SDCCerr.c,
6660         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6661         enumerator_list),
6662         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6663         for symbol conflicts.
6664         * support/valdiags/tests/enum.c,
6665         * support/valdiags/tests/tentdecl.c,
6666         * support/valdiags/tests/struct.c: expect possible error messages
6667         referring to original symbol definitions.
6668         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6669         * src/SDCCsymt.h,
6670         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6671
6672 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6673
6674         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6675
6676 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6677
6678         * src/pic16/ralloc.c (newReg): fixed bug #908929
6679
6680 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6681
6682         * src/ds390/gen.c: added missing #include "main.h"
6683
6684 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6685
6686         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6687         checking if symbol is already in set,
6688         * src/pic16/device.h: prototype for checkAddSym,
6689         * src/pic16/gen.c: (_G): added entry interruptvector,
6690         * (assignResultValue): removed some commented out lines,
6691         * (genFunction): check for ISR via sym->type, absolute section for
6692         interrupt code is created via a new pBlock, the goto instruction is
6693         placed now correctly at the interrupt vector position, changed all
6694         references from ivec to _G.interruptvector,
6695         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6696         is the interrupt is a high priority one, same for return from ISR,
6697         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6698         externs to calls of checkAddSym,
6699         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6700         pic16_pcode_verbose flag is set,
6701         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6702         * src/pic16/pcoderegs.c: message about how many registers are saved
6703         will only be emitted if pic16_pcode_verbose flag is set,
6704
6705 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6706
6707         * src/ds390/ralloc.h,
6708         * src/ds390/ralloc.c (ds390_regWithIdx),
6709         * src/ds390/gen.c (emitcode),
6710         * src/ds390/main.h,
6711         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6712         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6713         ds390operandCompare, getRegsRead, getRegsWritten,
6714         initializeAsmLineNode): customized instruction size calculation for
6715         ds390, started basis for some register optimizations
6716         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6717         corresponding assembly output
6718         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6719         missing push/pop of r0/r1. Optimized push/pops
6720
6721 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6722
6723         * src/mcs51/main.c (instructionSize): fixed ACALL size
6724         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6725
6726 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6727
6728         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6729         the sorting of rlist with NULL elements
6730         * (print_idataType, print_idata): NEW to create idata sections
6731         * src/pic16/device.h: idataSymSet new variable
6732         * src/pic16/gen.c (genFunction): fixed some bugs in string
6733         comparing, improved the absolute section creation for ISRs,
6734         added FSR0L/FSR0H in registers that are saved in an ISR,
6735         * (genInline): fixed the processing of inline snippets,
6736         now they undergo no process by the peephole optimizer
6737         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6738         are placed in idataSymSet,
6739         * (pic16emitStaticSeg): extern symbols are added in externs,
6740         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6741         switching when aboslute variables are placed in access bank memory
6742         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6743         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6744         commented out with #if,
6745         * (pic16_packRegisters): reintroduce the check for CAST because some
6746         symbols are not correctly handled,
6747         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6748         pCodeInstruction instead of pCode,
6749         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6750         pCodeAsmDir definition,
6751         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6752         directive, then the argument directive is emitted without the leading
6753         tab, hack for inline labels which must be in the first column,
6754         * (compareLabel,pic16_findNextInstruction),
6755         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6756         * (insertBankSwitch): modified for the new pCodeAsmDir,
6757
6758 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6759         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6760
6761         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6762         instance,
6763         * (pushSide): commented out with #if,
6764         * (assignResultValue): fixed some typos in saving
6765         registers,
6766         * (genPcall): FIXED and sync'ed with genCall,
6767         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6768         * (genNearPointerGet): fixed to handle some more cases,
6769         implementation scheme via table reads,
6770         * (genConstPointerGet): modified to access code memory correct,
6771         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6772         and improved to handle some cases
6773         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6774         instead of "RETLW" for init data
6775         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6776         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6777         variables are placed in access bank memory (<0x80 and >=0xf80),
6778         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6779         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6780         TBLWT_POSTDEC,TBLWT_PREINC
6781         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6782         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6783         directives
6784         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6785         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6786         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6787         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6788
6789 2004-02-29  Borut Razem <borut.razem AT siol.net>
6790
6791         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6792         support/Util/findme.h, support/Util/system.h: enhance binary relative
6793         search for lib and include by using findProgramPath()
6794
6795 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6796
6797         * src/SDCCpeeph.h,
6798         * src/SDCCpeeph.c (pcDistance),
6799         * src/port.h,
6800         * src/mcs51/ralloc.h,
6801         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6802         * src/mcs51/main.h,
6803         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6804         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6805         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6806         size calculation port specific, started basis for some register
6807         optimizations
6808         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6809         missing push/pop of r0/r1. Optimized push/pops
6810         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6811         * device/lib/_modsint.c (_modsint),
6812         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6813         and stack version so regression tests pass
6814
6815 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6816
6817         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6818         * src/SDCCast.c (decorateType): catch another small optimization
6819         with '?' operator
6820         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6821         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6822         modified to finally use computeType() all over SDCC,
6823         see Feature Request #877103
6824         * src/SDCCval.h: cosmetic
6825         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6826         valCompare(); regression tested in muldiv.c
6827         * support/regression/tests/muldiv.c (testMod): mod sign follows
6828         dividend only
6829
6830 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6831
6832         * src/SDCCast.c (decorateType): fixed bug #902362
6833         * doc/INSTALL.txt: fixed install instructions for win32
6834
6835 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6836
6837         * device/include/Makefile.in (install): fixed by replacing spaces
6838         by tabs
6839         * doc/README.txt,
6840         * doc/INSTALL.txt: updated for release
6841         * doc/sdccman.lyx: added warning for --xstack being buggy
6842
6843 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6844
6845         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6846         to eliminate build warnings.
6847         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6848
6849 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6850            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6851
6852         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6853         removed -penable-stack, added comment for stack pragma, added
6854         warning for not initializing the stack/frame registers, removed
6855         comment at interrupts section
6856
6857         Stack is made permanent, there is no ability to disable stack usage.
6858         * src/pic16/device.h,
6859         * src/pic16/device.c: removed all references to USE_STACK macro,
6860         * src/pic16/device.c (pic16_dump_section): when no elements in
6861         rlist, free rlist before return,
6862         * (pic16_dump_int_registers): NEW, internal registers are a new set
6863         of general purpose registers reused by each function,
6864         * (checkAddReg): returns 1 if registers is added to set,
6865         * (pic16_groupRegistersInSection): when a registers is of type
6866         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6867         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6868         SRCASECMP macro is moved here from device.c
6869         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6870         PO_PCLATU, PO_PRODL, PO_PRODH,
6871         * (pic16_pCodeOpType, genMinus,
6872         changed compares to "a" register, with AOP_ACC,
6873         * (pic16_genPlus): fixed some bugs and indented properly,
6874         * (pic16_addSign): changed size to size+offset in the MOVWF
6875         instruction,
6876         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6877         multiply 8-bit operand by literal, result is 8-bit,
6878         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6879         multiply 2 8-bit operand, result is 8-bit,
6880         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6881         genUMult8X*_16,
6882         * src/pic16/gen.c: changed accUse to contain WREG only,
6883         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6884         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6885         true, do not use immediate addressing any more unless sym is a
6886         pointer in codespace,
6887         * (aopForRemat): do not use immediate addressing when symbol not in
6888         codespace and when symbol's address is requested,
6889         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6890         accUse size (= 1),
6891         * (aopGet): added case for AOP_ACC and don't return "accumulator
6892         bug" but WREG instead,
6893         * (popGetTempReg): pushes contents of temporary register in stack,
6894         * (popReleaseTempReg): pops contents of temporary register from
6895         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6896         * (pic16_popGet): separated case AOP_ACC to return register WREG
6897         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6898         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6899         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6900         the use of immediate pointers to certain cases only.
6901
6902         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6903         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6904         * (assignResultValue, genCall, genRet): modified to use the new
6905         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6906         genPcall is still broken,
6907         * (genFunction): added code to create 'A' type pBlocks when
6908         interrupt functions are generated, code not extensively tested yet,
6909         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6910         * (genEndFunction): modified so ISRs pop stored registers from stack,
6911         * (genMultOneByte): cleanup,
6912         * (AccRsh): added flag andmask, to and result with appropriate mask,
6913         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6914         * (genDataPointerGet): fixed and reenabled its use,
6915         * (genNearDataPointerGet): bugs fixed,
6916         * (genDataPointerSet): bugs fixed,
6917         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6918         pic16_DumpSymbol, pic16_DumpOp,
6919         * src/pic16/genutils.h: function prototypes for the above functions,
6920         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6921         pointers,
6922         * (pic16emitRegularMap): many many many improvements, but needs a
6923         major cleanup,
6924         * src/pic16/main.c: enable_stack in pic16_options is removed,
6925         * (_pic16_parseOptions): removed command line options -penable-stack,
6926         * (_process_pragma): emit stack symbol only when stack pragma is
6927         processed,
6928         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6929         redirected to FSR0L/FSR0H pair,
6930         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6931         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6932         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6933         for immediates,
6934         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6935         * (dumpPicOptype): NEW,
6936         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6937         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6938         with movff instruction,
6939         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6940         added pic16_int_regs, some packRegsFor* functions are commented out,
6941         because produce errors,
6942         * src/pic16/NOTES: minor modifications
6943
6944 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6945
6946         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6947         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6948         --pack-iram.
6949         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6950         * as/mcs51/lkaomf51.c: fixed bug #895763
6951
6952 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6953
6954         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6955
6956 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6957
6958         * doc/sdccman.lyx: added details about the HC08 storage classes and
6959         interrupts, fixed the register usage info for z80 & gbz80
6960
6961 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6962
6963         * doc/sdccman.lyx: added more pic16 port documentation
6964         * device/include/pic16/: added header pic18fregs.h
6965
6966 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6967
6968         * doc/sdccman.lyx: added Vangelis' contribution
6969
6970 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6971
6972         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6973         extend to the next CALL or PCALL, not just to the next CALL.
6974
6975 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6976
6977         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6978
6979 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6980
6981         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6982         bug #895752 and a better fix for bug #716790
6983
6984 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6985
6986         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6987
6988 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6989
6990         * doc/sdccman.lyx: minor changes, minor changed
6991
6992 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6993
6994         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6995         which can't handle SDCC_NEWONEBYTEOPS,
6996         (geniCodeMultiply): removed conversion from mult to shift for pic14
6997         and pic16
6998
6999 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7000
7001         * src/hc08/gen.h,
7002         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7003         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7004         thus fixing bug #895406
7005
7006 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7007
7008         * device/lib/_modsint.c,
7009         * device/lib/_modslong.c: sign follows divisor only
7010         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7011         signs or signedness can be ignored
7012         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7013         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7014         added optimization for IFX,
7015         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7016         arguments;
7017         reenabled optimization for IFX, which was removed on 2004-01-11
7018         * src/SDCCast.h: added return type IFX
7019         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7020         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7021         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7022         SDCC_OLDONEBYTEOPS selects the old behaviour
7023         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7024         changed again and commented promotion rule
7025         * src/SDCCval.c (valDiv): promotion no longer necessary
7026         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7027         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7028         rewritten
7029         * support/regression/tests/onebyte.c: added
7030
7031 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7032
7033         * gen.c (genInline): reverted to old code for assemnling inline
7034         code because of bug reported James Chadd
7035
7036 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7037
7038         * ralloc.h: missing declarations from previous patch,
7039         seems that patch for ralloc.h was never applied, fixed
7040
7041 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7042            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7043
7044         * pcode.c,
7045         * pcode.h,
7046         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7047         indirect addressing. Marked FSR0 as deprecated
7048         * gen.c (pointerCode): commented out, not needed now
7049         (pic16_popGet2p): new MOVFF helper function
7050         (genGenPointerGet),
7051         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7052         (shiftRLong): removed duplicate debugging info
7053
7054 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7055
7056         * src/ds390/gen.c (genNearPointerGet),
7057         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7058         optimization with bits, but not bitfields.
7059         * src/ds390/ralloc.c (packRegisters),
7060         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7061
7062 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7063
7064         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7065
7066 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7067
7068         * src/SDCCsymt.h,
7069         * src/SDCCicode.c (operandFromSymbol),
7070         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7071         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7072         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7073         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7074         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7075         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7076         bug #892038
7077         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7078         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7079         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7080         * src/SDCCsymt.c (newSymbol),
7081         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7082         enumerator_list),
7083         * src/SDCCval.h,
7084         * src/SDCCval.c (newiList): fixed bug #885705
7085
7086 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7087
7088         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7089         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7090
7091 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7092
7093         * device/include/c8051f120.h,
7094         * device/include/c8051f300.h,
7095         * device/include/c8051f310.h: added/updated header files for Silicon
7096         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7097         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7098         in new section Submitting patches
7099
7100 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7101
7102         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7103         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7104         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7105         genGenPointerSet),
7106         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7107         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7108         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7109         genGenPointerSet),
7110         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7111         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7112         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7113         genGenPointerSet),
7114         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7115         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7116         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7117         genGenPointerSet): fixed bug #892400
7118         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7119         to eliminate build warnings.
7120         * src/SDCCast.c (processParms),
7121         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7122         fixed bug 751859
7123         * support/valdiag/valdiag.py: added GCC to the list of defines active
7124         when compiling with gcc
7125
7126 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127
7128         * support/Util/SDCCerr.h,
7129         * support/Util/SDCCerr.c,
7130         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7131         with an incomplete type (fixed bug #883734)
7132         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7133
7134 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7135
7136         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7137
7138 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7139
7140         * src/SDCCast.c (decorateType),
7141         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7142         function pointer implementation
7143         * support/regression/tests/funptrs.c: added tests to verify both forms
7144         of function pointers work correctly. Added tests to verify parameters
7145         are passed in the correct order.
7146
7147 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7148
7149         * device.c (regCompare): registers are sorted by ascending
7150         address and increasing size,
7151         * main.c (_pic16_finaliseOptions): removed the declaration
7152         of compiler macro MCU. Now a macro of the format pic18fxxxx
7153         will be defined from the command line
7154
7155 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7156             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7157
7158         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7159         PCOP_RLCF was overwritten!
7160         * gen.c (genSkip): commented out calls to pic16_emitcode,
7161         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7162         * (genlshTwo),
7163         * (genRRC): added debugging info,
7164         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7165         overwritten while shifting,
7166         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7167         overwritten while shifting,
7168         * (AccLsh),
7169         * (AccRsh),
7170         * (shiftLLeftOrResult),
7171         * (shiftRLeftOrResult),
7172         * (shiftRLong),
7173         * (shiftLLong): Implemented with pic16_emitpcode
7174         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7175         * (genLeftShift): Fixed bug, operand for shift by variable always
7176         was "and"ed with 0x0f,
7177         * (genLeftShiftLiteral),
7178         * (genrshTwo),
7179         * (genRightShiftLiteral): added debugging info,
7180         * (genrshFour): added comment,
7181         * (genRightShift): determined signedness from operand "left"
7182         instead of "result"
7183
7184 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7185
7186         * src/SDCCicode.c (geniCodeParms),
7187         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7188         function pointers, fixed function pointer bugs #861242 and #861896
7189
7190 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7191
7192         * device/include/c8051f000.h,
7193         * device/include/c8051f120.h,
7194         * device/include/c8051f300.h: added header files for Silicon
7195         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7196
7197 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7198
7199         * src/SDCCast.c (processParams): added new type flow and restructured
7200         (gatherAutoInit): added new type flow
7201         (addCast): cosmetic changes
7202         (getLeftResultType): added new type flow for array indices, patch
7203         provided by Stas, see FR #877103
7204         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7205         array index patch by Stas
7206         * src/SDCCast.h: added prototype getResultTypeFromType()
7207         * src/SDCCval.h,
7208         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7209         * src/pic/glue.c (pic14emitStaticSeg),
7210         * src/pic16/glue.c (pic16emitStaticSeg),
7211         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7212         for initialization of symbols
7213         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7214         * support/Util/SDCCerr.h:
7215         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7216         * .version: bumped version number to 2.3.8
7217         * device/include/Makefile.in (install),
7218         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7219         avoid warnings
7220
7221 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7222
7223         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7224         Slade Rich fixed an optimization bug
7225         * src/pic/pcodepeep.c,
7226         * src/pic/pcoderegs.c
7227         * doc/Makefile (install): added test for directory
7228
7229 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7230
7231         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7232         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7233         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7234         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7235         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7236         * as/mcs51/asexpr.c (term),
7237         * as/hc08/asexpr.c (term): fixed bug #887146
7238
7239 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7240
7241         * src/z80/gen.c (genMult): handle single byte result product
7242         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7243         DUMMY_READ_VOLATILE (fixed bug #886367)
7244
7245 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7246
7247         * support/regression/tests/libmullong.c: fixed logic, on little endian
7248         hosts we ended without a mullong_wrapper()
7249
7250 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7251
7252         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7253         virus/worm forged address usage.
7254
7255 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7256
7257         Fixed promotion, it should be done on AST level:
7258         * src/SDCCast.c (addCast): added promotion to int
7259         (decorateType): updated call to upCast()
7260         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7261         usualUnaryConversions()
7262
7263 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7264
7265         * support/regression/tests/literalop.c (mulWrapper): Added a
7266         wrapper to remove integer overflow warnings.
7267
7268         * support/regression/tests/float_trans.c: Made work on host.
7269
7270         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7271         location of sz80.
7272
7273         * support/regression/generate-cases.py (main): Changed from inline
7274         to a main method.
7275
7276         * doc/Makefile (install): Changed to depth first to get rid of
7277         missing directory install warning.
7278
7279         * as/Makefile (install-doc): Made work on Mac.
7280
7281 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7282
7283         * src/SDCCast.c: added an additional type flow in decorateType() of
7284         opposite direction, see feature request #860006; it's enabled at runtime
7285         by setting the environment variable SDCC_NEWTYPEFLOW
7286         * src/SDCCast.h: changed prototype of decorateType()
7287         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7288         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7289         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7290         see feature request #877103
7291         * src/SDCCval.c: updated call of decorateType()
7292         (valBitwise): fixed bug #882876
7293         (valMinus): added promotion
7294         (valLogicAndOr): result is unsigned
7295         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7296         * src/SDCCsymt.c (computeType),
7297         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7298         must not cause an unsigned operation
7299         * src/pic/glue (pic14emitRegularMap),
7300         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7301
7302 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7303
7304         * src/pic/pcode.c (PCodeID): commented out left over debug code
7305
7306 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7307
7308         * support/valdiag/tests/overflow.c: added shift tests
7309         * src/pic/device.c,
7310         * src/pic/gen.c,
7311         * src/pic/gen.h,
7312         * src/pic/glue.c,
7313         * src/pic/main.c,
7314         * src/pic/pcode.c,
7315         * src/pic/pcode.h,
7316         * src/pic/pcodepeep.c,
7317         * src/pic/pcoderegs.c,
7318         * src/pic/ralloc.c,
7319         * src/pic/ralloc.h: applied patch from Slade Rich;
7320         added support for multiple code pages and multiple RAM banks on the
7321         PIC 14 port. The ASM files now no longer simply assume all the
7322         code / RAM are in the same page / bank. This means the linker can
7323         safely allocate code/RAM of separate ASM files to different pages/banks.
7324         * doc/sdccman.lyx: added Slade's tips
7325         * src/mcs51/peeph.def: fixed bug #880768
7326
7327 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7328
7329         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7330         * src/SDCCast.c (decorateType): fixed bug #880197
7331
7332 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7333
7334         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7335         getopt.h.
7336
7337         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7338         strtof is not part of C89 and isn't included with Mac OS X.
7339
7340 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7341
7342         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7343         shiftL2Left2Result): fixed bug #879326
7344         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7345         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7346         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7347         address fetch for clr instruction
7348         * device/lib/hc08/_mulint.c: created optimized assembly version
7349         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7350
7351 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7352
7353         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7354         proposed in FR #877103
7355
7356 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7357
7358         * src/SDCCval.c (cheapestVal): added missing checks
7359         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7360         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7361
7362 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7363
7364         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7365         equal operands
7366
7367 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7368
7369         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7370         loaded with the linker search paths (-L arguments) and the libraries
7371         to be linked with the current source (-l arguments). Changes
7372         currently will affect only the pic16 port.
7373         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7374         include path the port specific paths and port specific libraries,
7375         * gplink command now contains the $3 argument,
7376         * src/pic16/device.h,
7377         * src/pic16/device.c,: structure PIC_device is made public and
7378         renamed to PIC16_device, the same for variable Pics which is renamed
7379         to Pics16. Updated all references to them.
7380         * src/pic16/glue.c (pic16glue): corrected bug with code
7381         initialization which bypassed the variable initializations block.
7382
7383         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7384         COMPILE_FLAGS and added the --nostdinc option
7385
7386 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7387
7388         * device/include/mc68hc908jb8.h: Register defs for another member
7389         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7390
7391 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7392
7393         Documenting changes from previous commits.
7394         * configure.in (version 1.56),
7395         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7396         when generating output files to configure the pic16 library,
7397         but now I've commented it out, since gputils aren't installed in the
7398         SF compile farm, so library won't compile
7399
7400         * device/lib/Makefile.in (version 1.56): initially I've added in
7401         target 'all' the prerequestive 'model-pic16' so it compiled the
7402         pic16 library, but now I've commented it out for the same reasons
7403         above,
7404         * added targets 'model-pic16' and 'objects-pic16' to compile the
7405         library
7406         * added target 'port-specific-objects-pic16' to handle the
7407         generated libraries and copy them into the build/ directory
7408         * added target 'clean-intermediate-pic16' to clean intermediate
7409         files into pic16 directory
7410         * in target 'installdirs' added line to create directory pic16 in
7411         the installation path
7412
7413         * device/include/Makefile.in (version 1.11): in target 'install'
7414         added lines to copy all header files to installation path,
7415         * in target 'installdirs' added line create directory for pic16
7416         headers in the installation path
7417
7418 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7419
7420         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7421          a function call
7422
7423 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7424
7425         * configure,
7426         * device/lib/configure.in,
7427         * device/lib/configure: fixed for autoconf 2.57
7428
7429 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7430
7431         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7432         option so that it actually works. Made it specific to the z80, since
7433         the gbz80 doesn't have these kinds of I/O ports.
7434
7435 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7436
7437         * device/include/z180.h,
7438         * device/lib/_memcpy.c,
7439         * device/lib/_memmove.c,
7440         * device/lib/_mulint.c,
7441         * device/lib/ser_ir.c,
7442         * device/lib/ser_ir_cts_rts.c,
7443         * device/lib/_strcmp.c,
7444         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7445         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7446         portmode; added deprecation warning for bank= and protmode= forms.
7447         Also, guard against buffer overflow.
7448         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7449
7450 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7451
7452         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7453         changed interrupt vector table generation to only emit declared vectors.
7454         * device/include/Makefile.in: added missing backslash
7455         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7456
7457 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7458
7459         Mainly changes to support compilation of the device libraries
7460         * src/pic16/device.c: stack is allocated via symbol and not
7461         via literal number. The symbol is placed in the corresponding
7462         position of the data ram
7463         * (pic16_dump_section): relocatable and absolute uninitialized
7464         data are now emitted in sorted order to reduce section naming,
7465         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7466         weren't marked as being in the access bank,
7467
7468 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7469
7470         Added portion of GNU PIC Library under the directory
7471         device/include/pic16 and device/lib/pic16. These files
7472         contain the declarations of SFRs for the PIC18Fxx2 devices.
7473         The directory is initialized via configure from toplevel.
7474
7475 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7476
7477         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7478         the spilllocations to be compared correctly
7479
7480 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7481
7482         * src/SDCCast.c (decorateType): fixed bug introduced today
7483
7484 2004-01-12  Borut Razem <borut.razem AT siol.net>
7485
7486         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7487         doc/sdccman.lyx: upper case pragmas are deprecated
7488
7489 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7490
7491         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7492         in simpler and even better code
7493
7494 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7495
7496         * src/SDCCicode.c (operandOperation): fixed bug #874819
7497         * src/SDCCast.c (decorateType): fixed
7498         char foo (unsigned long ul) { return ul > 0; }
7499
7500 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7501
7502         * doc/sdccman.lyx: Moved and added some sections, small changes
7503         all over. Telling LaTeX to be less strict with word spacing
7504         to better keep the right margin. Changed some notes about
7505         maintainance of the ports in section 3.2.1 - is it OK like this?
7506
7507 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7508
7509         SDCC source changes:
7510         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7511         convilong): modified to inform the pic16 port that builtin functions
7512         are external
7513
7514         PIC16 PORT specific changes:
7515         * src/pic16/device.c pic16_dump_equates() added,
7516         processor registers declared internally by the port are emitted in
7517         the translation as equates,
7518         * src/pic16/gen.c: inline code is passed unprocessed to the
7519         translation,
7520         * (pic16_popGetLit2): fnuction modified to take second operand as
7521         pCodeOp pointer and not as literal,
7522         * (popRegFromIdx): prefixed with pic16_,
7523         * (pic16_popCombine2): modified to receive already allocated pCode
7524         operands,
7525         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7526         * (genFunction): initializes local stack frame and pushes on stack
7527         all the registers used by this function,
7528         * (genEndFunction): restores all registers from stack and restores
7529         stack frame,
7530         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7531         improvements,
7532         * (pic16glue): changed the program startup sequence,
7533         * added new dbName code 'A' for functions placed in absolute section
7534         * src/pic16/main.c: added function attribute _naked,
7535         * added pragma 'code' to place a fnuction at an absolute address,
7536         * added command line arguments --debug-ralloc and --pcode-verbose,
7537         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7538         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7539         * (pic16_newpCodeOpLit2): modified to take the second operand as
7540         pCodeOp pointer,
7541         * (pic16_printpBlock): modified to emit each function in a separate
7542         section,
7543         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7544         UPPER for immediate operands,
7545         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7546         instruction,
7547         * src/pic16/peeph.def: all peepholes with movff are commented out,
7548         because there is a problem in the pcode peep optimizer,
7549         * src/pic16/ralloc.c: the register allocator can now reuse local
7550         function symbols for another function. This saves register usage.
7551         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7552
7553         Added file src/pic16/NOTES with information about program writing on
7554         the current port version.
7555
7556 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7557
7558         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7559         and peephole 252 (array access)
7560
7561 2004-01-09  Borut Razem <borut.razem AT siol.net>
7562
7563         * src/SDCCmain.c : fixed #872250: -l command line defined library
7564           files are scanned before standard library files
7565
7566 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7567
7568         * src/SDCCast.c (decorateType): fixed bug #874046
7569
7570 2004-01-09  Borut Razem <borut.razem AT siol.net>
7571
7572         * support/scripts/sdcc.nsi: remove previous installation
7573
7574 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7575
7576         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7577         bytes for last interrupt vector (mcs51)
7578         * sdcc.spec: fixed typo
7579
7580 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7581
7582         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7583         gen51Code): more efficient parameter receive for --model-large
7584         ("bug" #845294)
7585
7586 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7587
7588         * src/ds390/main.c,
7589         * src/z80/main.c: added missed needLinkerScript flags (more than
7590         one port structure defined in these file)
7591         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7592         bug #795325
7593
7594 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7595
7596         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7597         * src/port.h: added flag needLinkerScript in port->linker
7598         structure to inform whether to create a .lnk file or not,
7599         * src/avr/main.c,
7600         * src/ds390/main.c,
7601         * src/hc08/main.c,
7602         * src/mcs51/main.c,
7603         * src/pic/main.c,
7604         * src/pic16/main.c,
7605         * src/xa51/main.c,
7606         * src/z80/main.c: changed appropriately to configure
7607         needLinkerScript flag
7608         * src/pic/gen.c,
7609         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7610         * src/pic/glue.c: added variable udata_section_name to
7611         override default uninitialized data segment definition for
7612         devices only with SHAREBANK memory (reported from Erik Epetrich)
7613         * (pic14emitOverlay): modified to emit a commented overlay segment
7614         directive when no overlay data exist
7615         * (picglue): modified to emit uninitialized data segment
7616         according to udata_section_name
7617         * src/pic/main.c (_pic14_parseOptions): added command line
7618         options --udata-section-name=[name] to override default
7619         udata definition name
7620         * modified _linkCmd and _asmCmd to include compiler passed
7621         arguments via -W option
7622         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7623         object file from '.rel' to '.o' in port->linker structure,
7624         changed size of fptr from 2 to 3 in port structure
7625
7626 2004-01-07  Borut Razem <borut.razem AT siol.net>
7627
7628         * support/scripts/sdcc.nsi: update PATH
7629         * support/scripts/sdcc.ico: craeted
7630
7631 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7632
7633         * device/include/Makefile.in: fix install
7634         * doc/Makefile: fix install
7635
7636 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7637
7638         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7639         in bug #860505
7640         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7641         how the function variable allocation summary is displayed; also
7642         include information about variables allocated to the overlay
7643         segment
7644
7645 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7646
7647         * as/mcs51/lkmain.c: Help about -Y option
7648         * as/mcs51/lkarea.c: Fixed gcc warnings
7649
7650 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7651
7652         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7653         fixed warning
7654         * support/valdiag/tests/overflow.c: added
7655         * src/SDCCast.c (decorateType),
7656         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7657         LEFT_OP (left shift)
7658
7659 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7660
7661         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7662         (default behaviour).
7663
7664 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7665
7666         A python script to validate compiler diagnostic messages. It can be
7667         used to verify that sdcc complains about bad c source code and
7668         gives a good location of the error.
7669         * support/valdiag/Makefile,
7670         * support/valdiag/valdiag.py,
7671         * support/valdiag/tests/*
7672
7673 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7674
7675         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7676         * src/SDCCsymt.c (newEnumType),
7677         * src/SDCCsymt.h
7678         * support/Util/SDCCerr.c,
7679         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7680         enum related bugs.
7681         * support/regression/tests/enum.c: added test for enum values that
7682         require at least 2 bytes of storage.
7683
7684 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7685
7686         * src/common.h: added ifndef/define/endif macros
7687         around the header file.
7688         Bug reported from Jesus Calvino-Fraga
7689
7690 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7691
7692         * sdcc.spec: updated
7693         * device/include/Makefile.in: don't install CVS directories
7694         * device/lib/Makefile.in: added removal of CVS directories after install
7695         * doc/Makefile: fixed install, added local_icons
7696         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7697         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7698         * src/ds390/gen.c (genRightShift): fixed bug #870788
7699         * src/SDCCast.c (decorateType): fixed bug #870781
7700
7701 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7702
7703         PIC16 port related changes:
7704         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7705         added variable stackPos,
7706
7707         * gen.c: genCall, assignResultValue: added support for
7708         pushing/retrieving function parameters to/from stack,
7709         genFunction,genEndFunction: setup stack frame for the
7710         generated function,
7711         genAddrOf: will be changed according to bug 863624
7712
7713         * added files genutils.c and genutils.h which contain gen*
7714         debugged and optimised functions extracted from gen.c
7715
7716         * glue.c: added variable 'externs' which holds extern symbols,
7717         pic16emitRegularMap: is modified to properly handle relocatable
7718          symbols under the new scheme,
7719         pic16createInterruptVect: is modified
7720         pic16printPublics: is modified to emit 'global' assembler directives,
7721         added pic16_printExterns to print extern symbols,
7722         pic16glue: initializes stack/frame pointer in the beginning of
7723         the assembly output. Temporary hack, will be corrected later,
7724         because gplink yet does not support stack and SDCC does not
7725         yet support a type of crt0.o object to create the final binary.
7726
7727         * Removed many lines that contain 8051 legacy code.
7728         * The code is finally placed under a 'code' directive.
7729         * Added port specific options.
7730
7731         * _process_pragma: simplified since now we do not need *special*
7732         include file to define SFR registers. But a separate header
7733         will be needed. This will be developed later.
7734         * _pic16_parseOptions: added, parses port specific options:
7735         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7736         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7737         --preplace-udata-with=
7738
7739         * _pic16_setDefaultOptions: modified to initialize section names,
7740         but hack is temporarly out of order since it needs improvement.
7741         * _pic16_genAssemblerPreamble: configuration words are emitted by
7742         their address instead of their name. This part is incomplete and
7743         supports only the 18Fxx2 devices. Other devices will emit an error
7744         during assembly since they do not contain the same set of config
7745         registers
7746         * _pic16_genIVT: is modified,
7747
7748         * pcode.c: added definitions for some hardware registers that are needed
7749         for stack support
7750         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7751         All PCI entries are updated. Now LFSR is supported.
7752         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7753         * added pic16_newpCodeOpLit2 to support instructions with
7754         two literal arguments
7755         * pic16_pCode2str: corrected code that emits assembler instructions
7756         with two literal operands and those that have an access bit modifier
7757         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7758         this fixes a bug which caused some labels to be lost, when an
7759         assembler directive was added, i.e. banksel,
7760         * pic16_FixRegisterBanking: improved logic that causes the insertion
7761         of bank switching,
7762         * InlineFunction: functions that are called once, are not any more
7763         inlined. This can be a port option in the future,
7764
7765         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7766
7767         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7768         hold the corresponding uninitialized symbols,
7769         * pic16_allocProcessorRegister: registers have explicit marked the
7770         accessBank field,
7771         * pic16_allocInternalRegister: registers are explicit marked as
7772         not used,
7773         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7774         processing list, so bit registers were lost,
7775         *
7776
7777         * ralloc.h: added field 'accessBank' and original symbol operand
7778         in register definition,
7779         * removed the field isMapped from register definition,
7780
7781         ** Several functions have been removed from various sources:
7782         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7783         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7784         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7785         pic16_assignRelocatableRegisters
7786
7787         ** others have been introduced:
7788         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7789         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7790
7791 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7792
7793         * support/scripts/inc2h.pl: changed definition of BIT_AT
7794         to emit 'sbit at' instead of 'bit at'. This was a request.
7795
7796         PIC16 port related preliminary changes:
7797         * gen.c: prefixed function popRegFromString with
7798         pic16_ and all references to it corrected
7799         * pcode.c: all pic16_pc_* hardware registers prefixed
7800         with underscore (_),
7801         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7802         * ralloc.c: newReg(): when register is REG_SFR then
7803         set address to rIdx,
7804         pic16_allocProcessorRegister(): marks register wasUsed=0
7805         pic16_writeUsedRegs(): added a call to assign processor
7806         registers via pic16_assignFixedRegisters
7807
7808 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7809
7810         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7811         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7812         variables in unused register banks.  Also the SSEG is placed
7813         wherever there is enough space for it, and IDATA can be anywhere
7814         in internal RAM.  For now compile using -Wl-Y[stack_size].
7815         The mem file is different for this option as well, since it
7816         makes no sense of talking about DSEG lenght.
7817
7818 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7819
7820         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7821         in certain cases, e.g. when ROM assignment, patch provided
7822         from Albert den Haan.
7823
7824 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7825
7826         Many signedness and type propagation fixes:
7827         * src/SDCCicode.c: made geniCodeCast() static
7828         replaced SPEC_ by IS_ (cosmetic)
7829         (operandOperation): fixed div and mod operation
7830         (usualBinaryConversions): added support for promotion of char
7831         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7832         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7833         (geniCodeAdd): an array index will stay unsigned, even if promoted
7834         from char to int
7835         (geniCodeArray): ditto
7836         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7837         * src/SDCCsymt.c (computeType): added more support for char;
7838         promotion of char is selectable by promoteCharToInt, fixed signedness
7839         for all cases
7840         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7841         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7842         * src/SDCCval (val*): replaced signedness calculation by
7843         computeType()
7844         rearranged if-branches (cosmetic)
7845         (valShift): added warning W_SHIFT_CHANGED
7846         (valCompare): fixed problem with different types
7847         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7848         * support/regression/tests/literalop.c: added many cases
7849         * support/regression/tests/ast_constant_folding.c: changed finally to
7850         'unsigned int'
7851         * .version: new year, new version: 2.3.7
7852         * src/SDCCmain.c (main): applied patch #866468
7853         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7854         provided by Scott Bronson
7855         * doc/sdccman.lyx: updated documentation for sdcdb
7856         updated and added chapter tips
7857
7858 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859
7860         * src/SDCCsymt.h: missing from yesterday's commits
7861
7862 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7863
7864         * src/SDCC.y (struct_or_union_specifier),
7865         * support/Util/SDCCerr.c,
7866         * support/Util/SDCCerr.h: verify that struct & union tags are used
7867         as declared.
7868
7869 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7870
7871         * src/SDCCglobl.h: missing from yesterday's commits
7872
7873 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7874
7875         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7876         sft_attributes, struct_declaration, parameter_declaration,
7877         type_name, start_block, declaration_list),
7878         * src/SDCC.lex (check_type): support redefinition of typedef names
7879
7880 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7881
7882         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7883         aligned xdata arrays. Erik helped me with the if clause.
7884
7885 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7886
7887         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7888         warning
7889
7890 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7891
7892         * src/SDCCast.h,
7893         * src/SDCCast.c (newAst_),
7894         * src/SDCCicode.h,
7895         * src/SDCCicode.c (ast2iCode, newiCode),
7896         * src/SDCCglobl.h,
7897         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7898         expr, statement, expression_statement, selection_statement,
7899         iteration_statement, expr_opt, jump_statement): foundation for tracking
7900         sequence points
7901         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7902         point code too)
7903
7904 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7905
7906         * support/Util/SDCCerr.c,
7907         * src/SDCCast.h,
7908         * src/SDCCast.c (createCase, createDefault, decorateType),
7909         * src/SDCClabel.c (labelUnreach),
7910         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7911         to error messages.
7912         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7913         (with thanks to Stas Sergeev)
7914         * device/include/time.h,
7915         * device/lib/time.c (CheckTime): suppress unreachable code warning
7916
7917 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7918
7919         * src/SDCCast.c (createIvalCharPtr),
7920         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7921         bug #753752)
7922         * support/regression/tests/nullstring.c: tests for these two bugs
7923
7924 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7925
7926         * support/Util/SDCCerr.h,
7927         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7928         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7929         about storage class and 'at' used inside struct or union
7930         * src/SDCCBBlock.c (iCodeFromeBBlock),
7931         * src/SDCCcse.c (ifxOptimize),
7932         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7933         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7934         printIval, emitStaticSeg, emitOverlay),
7935         * src/SDCClabel.c (deleteIfx),
7936         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7937         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7938         gatherAutoInit, processParms),
7939         * support/Util/SDCCerr.h,
7940         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7941         reporting for post-parse errors.
7942
7943 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7944
7945         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7946         implicit casts via union; they don't work on big endian systems
7947         (possible fix for bug #861138)
7948
7949 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7950
7951         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7952         * src/mcs51/main.c: fixed the fix for bug #737001
7953
7954 2003-12-15  Borut Razem <borut.razem AT siol.net>
7955
7956         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7957
7958 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7959
7960         * support/makebin/makebin.c: put output in binary mode
7961
7962 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7963
7964         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7965         xdata and data memory on startup. Set the environment variable
7966         SDCC_NOGENRAMCLEAR to disable this.
7967         * src/mcs51/peephole.def,
7968         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7969         (allows non-interrupt and interrupt code to safely compete for a resource
7970         without the non-interrupt code having to disable interrupts)
7971
7972 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7973
7974         * src/SDCCicode.c (geniCodeAdd),
7975         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7976         with valFromType if type might be a pointer and host is big endian).
7977         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7978         types, not just integer types.
7979         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7980         multiply defined with mismatching "at" address.
7981
7982 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7983
7984         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7985         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7986         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7987         with embedded nulls (fixed bug #753752)
7988
7989 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7990
7991         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7992         Apparently this did not see much testing (endless loop)
7993
7994 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7995
7996         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7997
7998 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7999
8000         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8001         gracefully handle NULL memmap pointers
8002
8003 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8004
8005         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8006         instead of deleting the iCode when an operand is volatile
8007         * src/z80/gen.c (genDummyRead),
8008         * src/mcs51/gen.c (genDummyRead),
8009         * src/ds390/gen.c (genDummyRead),
8010         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8011         not just IC_RIGHT
8012         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8013         * src/SDCC.y: fixed bug #850420
8014
8015 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8016
8017         Applied z80 i/o port patch from Peter Townson and fixed some operators
8018         to better handle operands in A register.
8019         * device/include/z180.h
8020         * src/SDCC.y
8021         * src/SDCCglue.c
8022         * src/z80/gen.c
8023         * src/z80/gen.h
8024         * src/z80/main.c
8025         * src/z80/peeph-z80.def
8026         * src/z80/peeph.def
8027         * src/z80/z80.h
8028
8029 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8030
8031         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8032
8033 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8034
8035         * device/lib/hc08/_mullong.c: Removed extra #endif
8036
8037 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8038
8039         * sim/ucsim/hc08.src/inst.cc,
8040         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8041         carries from x to h
8042         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8043         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8044         * device/include/stdarg.h: fixed varargs for hc08
8045         * device/lib/Makefile.in,
8046         * device/lib/hc08/Makefile,
8047         * device/lib/hc08/_mulint.c,
8048         * device/lib/hc08/_mullong.c: fixed some endian problems
8049
8050 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8051
8052         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8053         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8054         * device/lib/_gptrget.c,
8055         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8056
8057 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8058
8059         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8060         * src/SDCCast.c (astErrors): fixed bug #846007
8061         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8062
8063 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8064
8065         * src/SDCCast.c (decorateType): disabled a transformation I added in
8066         revision 1.188 (access to fields of a structure at an absolute address);
8067         it breaks with bitfields, extern declarations, and gcse analysis.
8068         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8069         could be assigned through a pointer, so don't complain.
8070         * src/SDCCast.c (astErrors),
8071         * src/SDCCast.h,
8072         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8073
8074 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8075
8076         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8077         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8078         output of __config directives, since gpasm now supports them
8079         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8080         pre-processor macro, i.e. -DMCU=p18f452
8081         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8082         and modified to handle 'cast' icode similarly to '=' icode
8083         * src/pic16/device.h (typedef struct PIC_device): added field
8084         'extMIface' to indicate that chip has external memory interface
8085         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8086         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8087         18F8720
8088
8089 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8090
8091         * src/SDCC.y (pointer): fixed bug #846006
8092         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8093         * src/SDCCast.c (decorateType): fixed bug #846009
8094         * src/ds390/peeph.def,
8095         * src/ds390/gen.c (genAnd, genOr),
8096         * src/mcs51/peeph.def,
8097         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8098
8099 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8100
8101         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8102         * src/SDCCdflow.c
8103         * src/SDCCcse.c
8104         * src/SDCCcse.h
8105         * src/SDCCBBlock.h
8106         * src/SDCCBBlock.c
8107
8108 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8109
8110         fixed bug #845089
8111         * src/SDCCbitv.h,
8112         * src/SDCCbitv.c: added function to free a bitvector
8113         * src/SDCClrange.h,
8114         * src/SDCClrange.c: added function to recompute the liveranges
8115         * src/avr/ralloc.c,
8116         * src/ds390/ralloc.c,
8117         * src/hc08/ralloc.c,
8118         * src/mcs51/ralloc.c,
8119         * src/pic/ralloc.c,
8120         * src/pic16/ralloc.c,
8121         * src/xa51/ralloc.c,
8122         * src/z80/ralloc.c: recompute the liveranges after register packing
8123
8124 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8125
8126         * src/SDCCloop.c (newInduction): fixed bug #845630
8127
8128 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8129
8130         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8131         inadvertantly left behind from my 2003-11-12 change
8132
8133 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8134
8135         Updated headers I neglected to commit yesterday.
8136         * src/SDCClrange.h,
8137         * src/SDCCicode.h
8138
8139 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8140
8141         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8142         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8143         * src/SDCCopt.c (eBBlockFromiCode),
8144         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8145         the creation of the key hash table from the sequencing so it can be used
8146         earlier (for some GCSE bug fixes still pending)
8147
8148 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8149
8150         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8151         * support/regression/tests/addsub.c: testing genPlus shortcut
8152
8153 2003-11-15  Borut Razem <borut.razem AT siol.net>
8154
8155         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8156
8157 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8158
8159         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8160         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8161         ordering is immaterial.
8162         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8163
8164 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8165
8166         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8167         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8168         (SIGSEV) of bug #840381
8169         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8170         unlink new file before rename if new and old filenames are the same)
8171
8172 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8173
8174         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8175         uninitialized variables) for the mcs51. Set environment variable
8176         SDCC_GENRAMCLEAR to test.
8177         xdata initialization slightly shorter
8178
8179 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8180
8181         * src/SDCCsymt.h,
8182         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8183         #838241 & 780691 (basicly the same bug)
8184         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8185         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8186
8187 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8188
8189         * src/SDCCmain.c (linkEdit): "fix" #834252
8190
8191 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8192
8193         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8194         * src/SDCCast.h,
8195         * src/SDCC.y: fixed bug #819403
8196
8197 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8198
8199         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8200         the reentrant attribute.
8201         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8202         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8203         simulation
8204         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8205         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8206         erroneously reduced to a literal.
8207         * src/hc08/ralloc.c (packRegisters, rematStr),
8208         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8209         some cases
8210
8211 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8212
8213         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8214         * doc/sdccman.lyx: changed from 'article' to 'book'
8215         * doc/Makefile: readded test_suite_spec and cdbfileformat
8216
8217 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8218
8219         * device/include/stdlib.h: include malloc.h to comply with ANSI
8220         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8221
8222 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8223
8224         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8225         * doc/clean.mk: also remove *.out files
8226         * doc/sdccman.lyx: some additions, larger top/bottom margins
8227
8228 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8229
8230         * src/SDCC.y: fixed bug #837365
8231         * support/regression/tests/bitopcse.c
8232         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8233         a symbol (might be valop instead)
8234         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8235         * device/lib/clean.mk: added hc08 to the cleaning list
8236
8237 2003-11-04  Borut Razem <borut.razem AT siol.net>
8238
8239         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8240           made 2003-11-04
8241         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8242           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8243           malloc is declared in standard stdlib.h
8244
8245 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8246
8247         * device/lib/hc08/Makefile: need to clean .rel not .o files
8248         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8249
8250 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8251
8252         * src/port.h,
8253         * src/hc08/main.c,
8254         * src/mcs51/main.c,
8255         * src/ds390/main.c,
8256         * src/z80/main.c,
8257         * src/avr/main.c,
8258         * src/pic/main.c,
8259         * src/pic16/main.c,
8260         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8261         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8262         tests (which uses the port's oclsExpense function)
8263         * src/SDCC.y,
8264         * src/SDCCast.c,
8265         * src/SDCCicode.c,
8266         * src/hc08/gen.c,
8267         * src/ds390/gen.c,
8268         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8269
8270 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8271
8272         * src/SDCCcse.c (ifxOptimize),
8273         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8274         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8275         deleting the IFX iCode.
8276         * src/hc08/ralloc.c: reduced unneeded slocs
8277         * src/hc08/gen.c: fixed bug in asmopToBoolean
8278
8279 2003-11-04  Borut Razem <borut.razem AT siol.net>
8280
8281         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8282           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8283           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8284           transferred to configure
8285
8286 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8287
8288         Use headers defined in the C[++] standards:
8289         * sim/ucsim/gui.src/serio.src/fileio.cc
8290         * sim/ucsim/gui.src/serio.src/frontend.cc
8291         * sim/ucsim/gui.src/serio.src/main.cc
8292         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8293         * support/Util/NewAlloc.c
8294         * as/hc08/lklibr.c
8295         * as/mcs51/lklibr.c
8296         * as/z80/aslist.c
8297         * as/z80/assym.c
8298
8299 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8300
8301         * Added MSVC projects for hc08 assembler and linker:
8302         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8303         /as/hc08/link_hc08.dsp
8304
8305 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8306
8307         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8308
8309 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8310
8311         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8312
8313 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8314
8315         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8316
8317 2003-10-31  Borut Razem <borut.razem AT siol.net>
8318
8319         * support/cpp2/cpplib.h,
8320           support/cpp2/cpplib.c,
8321           support/cpp2/cpplex.c,
8322           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8323           to switch _asm block preprocessing on / off. Default is
8324           #pragma preproc_asm +
8325
8326 2003-10-31  Borut Razem <borut.razem AT siol.net>
8327
8328         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8329           when outputting comment blocks (when executed with -C option) and
8330           _asm (SDCPP specific) blocks
8331
8332 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8333
8334         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8335
8336 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8337
8338         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8339
8340 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8341
8342         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8343         * src/SDCCast.c (decorateType): fixed bug #832664
8344
8345 2003-10-31  Borut Razem <borut.razem AT siol.net>
8346
8347         * support\cpp2\cpplex.c: fixed for SDCPP:
8348           comments(when executed with -C option) and _asm blocks
8349           were included even if they where in skipped #if block.
8350           Applied solution from GCC cpp 3.3.2
8351
8352 2003-10-31  Borut Razem <borut.razem AT siol.net>
8353
8354         * src/SDCC.lex: sdcc now understands both formats:
8355           '# <line_number> <file_name>' and
8356           '#line <line_number> <file_name>'
8357         * support/cpp2/cppmain.c: sdcpp now generates the standard
8358           '# <line_number> <file_name>' instead of former
8359           '#line <line_number> <file_name>'
8360
8361 2003-10-30  Borut Razem <borut.razem AT siol.net>
8362
8363         * support/cpp2/cpphash.h,
8364         * support/cpp2/cpplib.h
8365         * support/cpp2/cpplex.c,
8366         * support/cpp2/cppmain.c,
8367         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8368
8369 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8370
8371         Fixed a number of problems revealed by bug #827883.
8372         * src/SDCCloop.c (loopInvariants): Spill location of the
8373         result operand should be recomputed if extracted from
8374         a loop. Also, don't extract assignments of an iTemp
8375         from a literal.
8376         * src/SDCCast.c (isConformingBody): loop reversal should
8377         not occur if the control variable is involved with a
8378         relational operator.
8379
8380 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8381
8382         * .version: bumped to 2.3.6 to reflect the big improvements
8383         made by Erik and Klaus. Thanks!
8384
8385 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8386
8387         Replaced the livrange code.
8388         * src/SDCClrange.c: added new LR code
8389         * src/SDCCloop.c,
8390         * src/SDCCBBlock.h: removed remainig parts from old LR code
8391         * src/ds390/ralloc.c,
8392         * src/ds390/gen.c: minor fixes to make it work with new code
8393
8394 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8395
8396         * as/hc08/asm.h,
8397         * as/hc08/lkrloc.c,
8398         * src/hc08/gen.c,
8399         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8400         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8401         (tweaked fix for bug #818696)
8402
8403 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8404
8405         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8406
8407 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8408
8409         * src/SDCCmain.c,
8410         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8411         * src/mcs51/gen.c (gencjneshort),
8412         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8413         more efficient (per Scott Bronson's suggestion)
8414
8415 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8416
8417         Extended the semantics of the critical keyword to include
8418         individual statements. See RFE #827755 and #799831
8419         * src/SDCC.y
8420         * src/SDCCicode.c
8421         * src/SDCCopt.c
8422         * src/SDCCast.c
8423         * support/Util/SDCCerr.c
8424         * support/Util/SDCCerr.h
8425         * src/mcs51/gen.c
8426         * src/ds390/gen.c
8427         * src/hc08/gen.c
8428
8429 2003-10-19  Borut Razem <borut.razem AT siol.net>
8430
8431         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8432
8433 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8434
8435         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8436         Fixed bug #818696
8437         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8438         and predecrement operand is displayed
8439
8440 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8441
8442         * src/SDCCval.c (valMinus): fixed bug #826041
8443
8444 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8445
8446         Some hc08 related updates that I missed earlier
8447         * sim/ucsim/stypes.h
8448         * support/regression/ports/hc08/spec.mk
8449
8450 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8451
8452         New target "hc08" for the Motorola 68hc08 family of micros
8453
8454         * configure
8455         * configure.in
8456         * Makefile
8457         * src/hc08/*
8458         * src/SDCCmain.c
8459         * src/port.h
8460         * sim/ucsim/hc08.src/*
8461         * sim/ucsim/configure.in
8462         * src/ucsim/configure
8463         * sim/ucsim/packages_in.mk
8464         * as/hc08/*
8465         * as/Makefile
8466         * device/include/mc68hc908qy.h
8467         * device/lib/hc08/*
8468         * device/lib/Makefile.in
8469         * support/regression/ports/hc08/*
8470         * support/regression/Makefile
8471
8472 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8473
8474         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8475         regression test
8476         * src/ds390/gen.c (genCast): fixed bug #821957
8477
8478 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8479
8480         * device/lib/logf.c: "fixed" overlay bug
8481         * support/regression/ports/host/spec.mk: added m library
8482         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8483         * support/regression/tests/float_trans: added (for Eric)
8484
8485 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8486
8487         * src/mcs51/gen.c (genCpl): fixed bug
8488         http://sf.net/mailarchive/message.php?msg_id=6263915
8489
8490 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8491
8492         * src/SDCCast.c (decorateType): added extended constant folding
8493         * src/SDCCsymt.c (computeType): cleanup
8494         * src/SDCCval.c (valShift): minor optimization
8495         * support/regression/tests/ast_constant_folding.c: added
8496
8497 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8498
8499         * src/SDCCmain.c: removed some unintended changes
8500
8501 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8502
8503         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8504         * src/z80/gen.c: fixed part of bug #817589
8505         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8506
8507 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8508
8509         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8510         * src/SDCCcflow.c
8511         * src/SDCCcse.c
8512         * src/SDCCdflow.c
8513         * src/SDCClabel.c
8514         * src/SDCClrange.c
8515         * src/SDCCmem.c
8516         * src/SDCCopt.c
8517         * src/SDCCpeeph.c
8518         * src/SDCCset.c
8519         * src/avr/ralloc.c
8520         * src/ds390/ralloc.c
8521         * src/izt/ralloc.c
8522         * src/mcs51/ralloc.c
8523         * src/pic/ralloc.c
8524         * src/pic16/ralloc.c
8525         * src/xa51/ralloc.c
8526         * src/z80/ralloc.c
8527         * src/z80/gen.c: removed unused label "release:"
8528
8529 2003-10-06  Borut Razem <borut.razem AT siol.net>
8530
8531         * src/SDCC.lex: removed definition of unused variables
8532           save_optimize and save_options
8533
8534 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8535
8536         * clean.mk: removed '=' in "-maxdepth=1"
8537         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8538         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8539
8540 2003-10-06  Borut Razem <borut.razem AT siol.net>
8541
8542         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8543           my_unput() replaced by unput()
8544
8545 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8546
8547         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8548         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8549         type-punned pointer will break strict-aliasing rules"
8550         Old LR behaviour is again default; Klaus' LR can be choosen by
8551         defining the environment variable LRKLAUS
8552         * src/SDCCBBlock.h
8553         * src/SDCCloop.c
8554         * src/SDCClrange.c
8555         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8556         * clean.mk: fixed removal of files in bin/CVS/
8557         * device/lib/clean.mk: fixed removal of directories small and large
8558         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8559         * src/SDCCicode.c,
8560         * src/SDCCval.c: removed superflous test for pedantic
8561
8562 2003-10-05  Borut Razem <borut.razem AT siol.net>
8563
8564         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8565           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8566           message "unmatched #pragma SAVE and #pragma RESTORE"
8567
8568 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8569
8570         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8571           assembly, critical functions, atomic, nojtbound)
8572
8573 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8574
8575         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8576         * src/SDCCBBlock.h
8577         * src/SDCCloop.c
8578         * src/SDCCloop.h
8579         * src/SDCClrange.c
8580
8581 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8582
8583         * src/z80/gen.h,
8584         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8585         * src/mcs51/gen.h
8586         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8587         * src/ds390/gen.h
8588         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8589         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8590         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8591
8592 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8593
8594         * src/z80/gen.c (genRet): fixed bug #524753
8595         * src/z80/gen.c (genCast): fixed internal error on cast from
8596         pointer to long
8597         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8598         fix for bug #477835 to the z80
8599         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8600         for tracking iCodes in the peephole optimizer for z80
8601
8602 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8603
8604         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8605         the other part of bug #814548
8606         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8607
8608 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8609
8610         * src/SDCCcse.c: fixed part of bug #814548
8611
8612 2003-09-28  Borut Razem <borut.razem AT siol.net>
8613
8614         * src/asm.c: rewrite of printILine() to use temporary file instead
8615           a pipe
8616         * src/xa51/main.c: commented out declaration of int rewinds
8617
8618 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8619
8620         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8621
8622 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8625         * src/asm.c (printILine): Fixed bug #811015
8626
8627 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8628
8629         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8630         freeing.
8631
8632 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8633
8634         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8635         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8636         to correctly handle general case of AOP_PAIRPTR
8637         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8638
8639 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8640
8641         * src/mcs51/ralloc.c (fillGaps),
8642         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8643         register positioning bug)
8644
8645 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8646
8647         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8648
8649 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8650
8651         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8652         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8653         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8654         (ralloc doesn't intentionally do this now, but perhaps later)
8655         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8656         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8657         register positioning bugs (Fixed bug #762602 and #795325)
8658         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8659         (Fixed bug #808779)
8660         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8661         lines that --i-code-in-asm generates
8662
8663 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8664
8665         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8666         trying to fclose a FILE* that was already closed.
8667
8668 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8669
8670         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8671         of const struct should be treated as if const themselves)
8672
8673 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8674
8675         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8676
8677 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8678
8679         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8680         Unix (/n) and DOS (/r/n) line terminations.
8681
8682 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8683
8684         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8685         bug #613775
8686
8687 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8688
8689         * src/mcs51/gen.c (genFunction, genEndFunction),
8690         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8691         and restore of EA so that stack offsets to parameters are
8692         correct when using both critical and reentrant/stack-auto.
8693         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8694         size (can be triggered in error if sloc is shared between
8695         different sized objects)
8696         * device/include/float.h: fixed macros to explicitly use
8697         unsigned long where needed
8698
8699 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8700
8701         Feature req. 799831: added code to allow nesting of critical functions
8702         * src/mcs51/gen.c (genFunction, genEndFunction)
8703         * src/ds390/gen.c (genFunction, genEndFunction)
8704
8705 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8706
8707         * src/SDCCsymt.c (sclsFromPtr),
8708         * src/SDCCsymt.h,
8709         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8710         support for standard C idiom of memory mapped variables; for
8711         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8712         to xdata int at 0x1234 tempvar = 1.
8713         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8714         provided by Akiya ISHIDA
8715
8716 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8717
8718         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8719         * src/SDCCval.c (constVal): added reduction from int to char
8720         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8721         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8722         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8723         to ignore the sign
8724         * support/regression/tests/shifts.c: fixed
8725
8726 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8727
8728         * src/z80/gen.c (genXor): Fixed bug #805445
8729
8730 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731
8732         Fixed bug #621531 (const & volatile confusion in the type chain).
8733         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8734         refer to the const or volatile state of the pointer itself.
8735
8736         * src/SDCCast.c
8737         * src/SDCCglue.c
8738         * src/SDCCicode.c
8739         * src/SDCCsymt.c
8740         * src/SDCCval.c
8741         * src/SDCC.y
8742         * src/SDCCsymt.h
8743         * src/pic/gen.c
8744         * src/pic/ralloc.c
8745         * src/pic16/gen.c
8746         * src/pic16/ralloc.c
8747         * support/regression/tests/const.c
8748
8749 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8750
8751         When checking for duplicated modules, use absolute paths
8752         instead of relative paths.  Files changed:
8753
8754         * as/mcs51/lklib.c
8755         * link/z80/lklib.c
8756
8757 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8758
8759         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8760
8761 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8762
8763         * device/include/string.h: added size_t typedef, changed
8764         prototypes to use size_t, eliminated separate reentrant and
8765         non-reentrant declarations, added _memmove declaration
8766         * device/lib/_memcpy.c: changed to use size_t instead of int,
8767         changed /4 to >>2 to avoid division library call
8768         * device/lib/_memcmp.c,
8769         * device/lib/_memset.c,
8770         * device/lib/_strncat.c,
8771         * device/lib/_strncpy.c,
8772         * device/lib/_strncmp.c: changed to use size_t instead of int
8773         * device/lib/_memmove.c: new file (fixed bug #772294)
8774         * device/lib/Makefile.in: added _memmove.c
8775         * device/lib/z80/asm_strings.s: fixed bug #772290
8776         * support/regression/tests/bitfields.c: attempt to fix host assertion
8777         failure on amd64-unknown-linux2.2
8778
8779 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8780
8781         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8782         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8783         * as/z80/asmain.c (main): fixed bug #801766
8784
8785 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8786
8787         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8788         compilers
8789
8790 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8791
8792         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8793         reported in bug #800609
8794
8795 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8796
8797         * Top header beautifications in src/pic16 directory:
8798           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8799           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8800           pcoderegs.h, ralloc.c, ralloc.h
8801         * main.c: added top header and GPL license notice
8802         * pcode.c: fixed the if-conditional warning
8803
8804 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8805
8806         * device/lib/_mullong.c: replaced int by short for gcc
8807
8808 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8809
8810         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8811         and JUMPTABLE iCodes properly now (worked by accident before)
8812         * src/mcs51/gen.c (leftRightUseAcc),
8813         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8814         iCode properly now. Use getSize instead of nRegs since a & b
8815         aren't part of the nRegs tally.
8816
8817 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8818
8819         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8820         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8821           before instructions that use the _STATUS register
8822
8823 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8824
8825         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8826         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8827         fetching of the pointer
8828         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8829         copied from genNearPointerSet()
8830         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8831         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8832         If they pop r0/r1 they must be called in the opposite order than aopOp().
8833         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8834         (resp. --stack-auto), prepared for --xstack
8835
8836 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8837
8838         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8839
8840 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8841
8842         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8843         these ports have their own __sdcc_external_start()
8844
8845 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8846
8847         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8848         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8849         type for bits was changed. It resulted in bit variables becoming
8850         global, which is not permitted in PIC 14 assembly output.
8851
8852 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8853
8854         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8855
8856 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8857
8858         Z80 and MCS51 linkers complaint if a public symbol is defined
8859         in more than one library module:
8860
8861         * as/mcs51/lklib.c
8862         * link/z80/lklib.c
8863         * as/mcs51/Makefile.in
8864
8865 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8866
8867         A few small changes that speed up the peephole optimizer.
8868
8869         * src/SDCCpeeph.c
8870
8871 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8872
8873         Try to make the peephole optimizer smarter by maintaining
8874         an association between the assembly source code and the
8875         iCodes that originated them. Put this information to use
8876         with a new peephole rule condition "notVolatile" so that
8877         the rules can be aggressive yet still safe.
8878
8879         * src/SDCCpeeph.c
8880         * src/SDCCpeeph.h
8881         * src/mcs51/gen.c
8882         * src/mcs51/peeph.def
8883
8884 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8885
8886         Fixed bug #741761
8887
8888         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8889         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8890         if the left or right operand symbols have the accuse flag set.
8891
8892 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8893
8894         Changed the type of the result of the ! (NOT) operator to char;
8895         previously it returned the same type as the source. This allows
8896         us to eliminate all the genFloatNot functions (all of its target
8897         implementations were very buggy) since !float can use the same
8898         code as !long now.
8899
8900         * src/SDCCicode.c (ast2iCode): ! returns char
8901         * src/mcs51/gen.c (genNot, genNotFloat),
8902         * src/ds390/gen.c (genNot, genNotFloat),
8903         * src/z80/gen.c (genNot, genNotFloat),
8904         * src/pic/gen.c (genNot, genNotFloat),
8905         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8906
8907 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8908
8909         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8910         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8911            during interrupts. Ensure WSAVE is located at a shared bank address.
8912         2. Fixed page selection in some places
8913         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8914            the registers name strings.
8915         4. Fixed "signed / unsigned compare" compiler warnings.
8916         5. The PIC port manages its own allocation of the general purpose
8917            registers, but makes no attempt to reuse them. As a result when
8918            compiling it soon runs out of general purpose registers. Some
8919            additional code was added to the files pcode.c and device.c to walk
8920            through the function call tree and rename the registers so that they
8921            get reused.
8922
8923         * src/pic/device.c
8924         * src/pic/gen.c
8925         * src/pic/glue.c
8926         * src/pic/pcode.c
8927         * src/pic/pcode.h
8928         * src/pic/ralloc.c
8929         * src/pic/ralloc.h
8930         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8931         genPlus() & genMinus() when the result is the same as left or right
8932
8933 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8934
8935         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8936
8937 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8938
8939         Made bitfield a distinct type from bit so that bitfields
8940         convert as per ANSI C and bits retain their traditional
8941         boolean style behaviour. Implemented bitfield support in
8942         the z80 port.
8943
8944         * src/SDCCsymt.h,
8945         * src/SDCCsymt.c,
8946         * src/SDCCast.c,
8947         * src/cdbFile.c,
8948         * src/mcs51/gen.c,
8949         * src/ds390/gen.c: bit v bitfield split
8950         * src/z80/gen.c: New support for bitfields
8951         * support/regression/tests/bitfields.c: reenabled z80,
8952         added more tests
8953
8954 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8955
8956         Rules 246.x, 247.x relate to bitfields, the others speed up
8957         access to xdata mapped I/O devices.
8958
8959         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8960
8961 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8962
8963         Cleaned up genPackBits and genUnpackBits and added two helper
8964         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8965         for literal assignments in genPackBits (thanks to Frieder for
8966         reminding me).
8967
8968         * src/mcs51/gen.c
8969         * src/ds390/gen.c
8970
8971 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8972
8973         Fixed bug #748310 (pointer to function type mishandled when the
8974         function name is omitted). Also fixed a SIGSEGV when a function
8975         attribute (reentrant, etc) is used on a non-function or on a
8976         function but misplaced before the parameter list.
8977
8978         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8979         bug #748310
8980         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8981         * support/Util/SDCCerr.h,
8982         * support/Util/SDCCerr.c: Added func attr misuse error msg
8983
8984 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8985
8986         Fixed bug #787649 by anonymous
8987         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8988         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8989
8990 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8991
8992         Fixed numerous bitfield problems.
8993
8994         * src/SDCC.y: More bitfield related error checking
8995         * src/SDCCsymt.h,
8996         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8997         * support/Util/SDCCerr.h,
8998         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8999         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9000         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9001         * support/regression/tests/bitfields.c: tests added
9002
9003 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9004
9005         Made the constant following the "interrupt" keyword optional. If
9006         omitted, the function will not automatically be given an entry
9007         in the interrupt vector table (similar to #pragma NOIV, but
9008         less syntacticly kludgy). The interrupt number is also now
9009         range checked. Also fixed a bug in the high order bit example
9010         in the manual.
9011
9012         * src/SDCC.y
9013         * src/SDCCmem.c
9014         * src/SDCCglue.c
9015         * src/SDCCsymt.h
9016         * support/Util/SDCCerr.c
9017         * support/Util/SDCCerr.h
9018         * doc/sdccman.lyx
9019
9020 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9021
9022         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9023         * src/SDCCicode.c (operandOperation): rewritten some ops
9024         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9025         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9026         other type
9027         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9028         be re-activated by defining REDUCE_LITERALS)
9029         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9030         unsigned, but are signed by default
9031         * src/SDCCval.c (constVal): rearranged
9032         * src/SDCCval.c (valMod): preliminary fix
9033         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9034         * support/regression/literalop.c: added, work in progress
9035
9036 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9037
9038         Generate warnings for useless declarations like "char data;"
9039         that don't do what new users expect.
9040
9041         * src/SDCC.y
9042         * support/Util/SDCCerr.h
9043         * support/Util/SDCCerr.c
9044
9045 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9046
9047         * src/SDCCval.c (valMult): fix overflow detection of negative int
9048
9049 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9050
9051         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9052
9053         Changes to support big endian targets:
9054
9055         * src/ports.h
9056         * src/SDCCglue.c
9057         * src/avr/main.c
9058         * src/ds390/main.c
9059         * src/izt/i186.c
9060         * src/mcs51/main.c
9061         * src/pic/main.c
9062         * src/pic16/main.c
9063         * src/xa51/main.c
9064         * src/z80/main.c
9065
9066 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9067
9068         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9069         * device/lib/time.c: fixed warning "integer overflow in expression"
9070
9071 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9072
9073         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9074         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9075         constants are unsigned; added recognition of "u" flag for unsigned
9076         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9077         * src/SDCCval.c (valDiv, valMod): fixed signdness
9078         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9079         signedness of modulo, left and right shift
9080         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9081         * support/Util/SDCCerr.h: added warning W_INT_OVL
9082         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9083         * src/SDCCast.c (ast_print): improved output of constants
9084
9085 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9086
9087         Fixed some warnings when building with MSVC:
9088
9089         * as\mcs51\asdata.c
9090         * as\z80\asdata.c
9091         * as\mcs51\asm.h
9092         * as\z80\asm.h
9093         * link\z80\aslink.h
9094         * link\z80\lkdata.c
9095         * link\z80\lkeval.c
9096         * link\z80\lkgb.c
9097         * link\z80\lkihx.c
9098         * link\z80\lks19.c
9099         * link\z80\lksym.c
9100         * support\cpp2\cpplib.c
9101         * src\ds390\gen.c
9102         * src\mcs51\gen.c
9103
9104 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9105
9106         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9107
9108 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9109
9110         * support\librarian\clean.mk: Do not remove Makefile.
9111         * support\librarian\Makefile: added.
9112
9113 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9114
9115         Added librarian to MSVC build:
9116         * all.dsp
9117         * sdcc.dsw
9118         * support\librarian\librarian.dsp
9119
9120         'configure' not needed for librarian, removed:
9121         * support\librarian\configure
9122         * support\librarian\configure.in
9123         * support\librarian\config_in.h
9124         * support\librarian\Makefile.in
9125
9126         Hopefully these ones built the librarian and the rest of sdcc properly:
9127         * Makefile
9128         * Makefile.common.in
9129
9130         Messed up 'configure', so revert to previous version:
9131         * configure
9132         * configure.in
9133
9134 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9135
9136         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9137         there, while the mantissa of a double is "only" 53 bits wide.
9138
9139 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9140
9141         Adding sdcclib to the build.  MSVC project coming soon.
9142         Files added/changed:
9143
9144         * support\librarian\clean.mk
9145         * support\librarian\configure
9146         * support\librarian\configure.in
9147         * support\librarian\config_in.h
9148         * support\librarian\Makefile.bcc
9149         * support\librarian\Makefile.in
9150         * support\librarian\sdcclib.c
9151         * Makefile.bcc
9152         * Makefile
9153         * Makefile.common.in
9154         * configure
9155         * configure.in
9156
9157 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9158
9159         Linker now complaints if linked modules have conflicting options, for
9160         example, one compiled using --model-large and another one compiled with
9161         --model-small.  The following files were modified:
9162
9163         * as\mcs51\asdata.c
9164         * as\mcs51\aslink.h
9165         * as\mcs51\asm.h
9166         * as\mcs51\asmain.c
9167         * as\mcs51\asout.c
9168         * as\mcs51\i51pst.c
9169         * as\mcs51\lkdata.c
9170         * as\mcs51\lklibr.c
9171         * as\mcs51\lkmain.c
9172         * as\z80\asdata.c
9173         * as\z80\asm.h
9174         * as\z80\asmain.c
9175         * as\z80\asout.c
9176         * as\z80\z80pst.c
9177         * link\z80\aslink.h
9178         * link\z80\lkdata.c
9179         * link\z80\lklibr.c
9180         * link\z80\lkmain.c
9181         * src\SDCCglue.c
9182
9183 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9184
9185         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9186         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9187
9188 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9189
9190         * src/z80/mappings.i: fix _mul[us][int,long] entries
9191
9192 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9193
9194         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9195
9196 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9197
9198         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9199         * support/regression/tests/bitopcse.c: added
9200         fixed warning:
9201         * src/avr/gen.c:
9202         * src/pic/gen.c:
9203         * src/pic16/gen.c:
9204         * src/z80/gen.c:
9205         * src/xa51/gen.c:
9206
9207 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9208
9209         added support for new library format to z80, gbz80 linkers:
9210         *link/z80/aslink.h
9211         *link/z80/lklex.c
9212         *link/z80/lklib.c
9213         *link/z80/lklist.c
9214
9215 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9216
9217         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9218         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9219
9220 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9221
9222         added DUMMY_READ_VOLATILE:
9223         * src/SDCC.y:
9224         * src/avr/gen.c:
9225         * src/xa51/gen.c:
9226         * src/z80/gen.c:
9227         * src/pic/gen.c:
9228         * src/pic16/gen.c:
9229         * src/mcs51/gen.c:
9230         * src/ds390/gen.c:
9231         * src/SDCCcse.c (algebraicOpts): many improvements
9232         * src/SDCCcse.h: removed algebraicOpts()
9233         * src/SDCCicode.c (picDummyRead): added
9234
9235 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9236
9237         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9238         "Insufficient space in data memory".
9239
9240 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9241
9242         * src/mcs51/gen.c: fixed bug #771358
9243         * src/z80/gen.c: fixed bug #759087
9244
9245 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9246
9247         * src/pic16/glue.c: minor cleanup by Vangelis
9248
9249 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9250
9251         * device/include/regc515c.h: fixed #758477
9252         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9253         * device/lib/_gptrput.c: saved a few bytes
9254         * my tab spacing is 8, yours too?)
9255         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9256         * device/lib/serial.c: process RX bytes earlier than TX bytes
9257         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9258
9259 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9260
9261         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9262
9263 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9264
9265     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9266
9267 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9268
9269         * device/lib/Makefile.in: bad fix, reverted to 1.43
9270
9271 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9272
9273         * device/lib/Makefile.in: added missing z80 object files
9274
9275 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9276
9277         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9278         pic16 progress by Vangelis:
9279         * src/SDCCglobl.h:
9280         * src/SDCCmain.c:
9281         * src/pic/Makefile:
9282         * src/pic:
9283         * pic/Makefile:
9284         * pic16/device.c:
9285         * pic16/device.h:
9286         * pic16/gen.c:
9287         * pic16/gen.h:
9288         * pic16/genarith.c:
9289         * pic16/glue.c:
9290         * pic16/main.c:
9291         * pic16/pcode.c:
9292         * pic16/pcode.h:
9293         * pic16/pcodepeep.c:
9294         * pic16/peeph.def:
9295
9296 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9297
9298     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9299
9300 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9301
9302     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9303     added gbz80 build to MSVC project.
9304     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9305     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9306     from 8051 stuff and setup so it links using a .lnk file.
9307
9308 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9309
9310     * support/librarian/sdcclib.c: sdcc librarian.
9311     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9312     with sdcclib.
9313
9314 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9315
9316     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9317
9318 2003-07-02  Borut Razem <borut.razem AT siol.net>
9319
9320         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9321         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9322         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9323         src/xa51/main.c, src/z80/main.c:
9324         virtualization of glue() function: each port has it's own glue function,
9325         which is accessed by do_glue function pointer in PORT.general structure
9326
9327 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9328
9329         * DS800C400 fun, improved ROM interface and tinibios.
9330
9331 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9332
9333         * More support for DS80C400. Now includes beginning of interface to ROM.
9334
9335 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9336
9337         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9338
9339 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9340
9341         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9342
9343 2003-06-19  Borut Razem <borut.razem AT siol.net>
9344
9345         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9346
9347 2003-06-19  Borut Razem <borut.razem AT siol.net>
9348
9349         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9350         fixed Z80 port - crt0.o: cannot open.
9351
9352 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9353
9354         * support/Util/MySystem.c (merge_command): revert bad fix
9355
9356 2003-06-18  Borut Razem <borut.razem AT siol.net>
9357
9358         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9359
9360 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9361
9362         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9363         option --use-stdout sends errors to stdout instead of stderr.
9364
9365 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9366
9367         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9368
9369 2003-06-15  Borut Razem <borut.razem AT siol.net>
9370
9371         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9372         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9373         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9374         fixed width array of pointers replaced with sets;
9375         multiple include and lib paths ared transferred to preprocessor and linker
9376         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9377         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9378         fixed width array of pointers
9379         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9380         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9381         fixupPath(), getPathDifference()
9382         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9383         fixed width array of pointers
9384
9385 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9386
9387         * src/pic16/ralloc.c: fix warnings
9388         * src/pic16/pcode.c: fix warning
9389
9390 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9391
9392          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9393         know all the details, but essentially this set of changes enable
9394         the pic16 port to generate movff instructions and generate assembler
9395         directives,
9396         * src/SDCCmain.c:
9397         * src/pic16/gen.c:
9398         * src/pic16/glue.c:
9399         * src/pic16/pcode.c:
9400         * src/pic16/device.c:
9401         * src/pic16/main.c:
9402         * src/pic16/pcode.h:
9403         * src/pic16/pcoderegs.c:
9404         * src/pic16/ralloc.c:
9405         * src/pic16/ralloc.h:
9406
9407 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9408
9409         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9410         added option --vc, so sdcc errors and warnings are compatible with
9411         Microsoft Visual Studio.
9412
9413 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9414
9415         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9416           device/lib/libfloat.lib: added atof function.
9417
9418 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9419
9420         * doc/sdccman.lyx: updated to Lyx 1.3
9421         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9422         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9423         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9424
9425 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9426
9427         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9428
9429 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9430
9431         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9432           additions to the "related tools/documentation" section
9433
9434 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9435
9436         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9437
9438 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9439
9440         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9441         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9442
9443 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9444
9445         * doc/sdccman.lyx: fix double dash and other minor things
9446         * doc/Makefile: fix double dash
9447
9448 2003-05-28  Karl Bongers(patches from Martin Helmling)
9449         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9450           condition and ignore commands.
9451
9452 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9453
9454         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9455           is in parts still quite out of date, I did changes as far as I felt makes sense
9456           for a non-native english speaker.
9457           Please feel free to add to the manual or to correct my changes.
9458         * doc/Makefile: undid touching the date of intermediate tex files.
9459
9460 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9461
9462         * doc/sdccman.lyx: Manual has an index now
9463
9464 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9465
9466         Finalize muluint/mulsint and mululong/mulslong merging:
9467         * device/lib/_mulint.c
9468         * device/lib/_mullong.c
9469         * device/lib/gbz80/mul.s
9470         * device/lib/gbz80/stubs.s
9471         * device/lib/z80/mul.s
9472         * device/lib/z80/stubs.s
9473         * src/SDCCsymt.c (initCSupport)
9474
9475 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9476
9477         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9478         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9479           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9480           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9481           instead of /Zm500.
9482
9483 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9484
9485         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9486           the regression tests I'm not brave enough to enable 245.b, 245.c
9487         * doc/sdccman.lyx: added latex preamble for hyperref package.
9488           Using pdflatex this will give you a hyperlinked pdf file with
9489           bookmarks. (prepend '%' before /usepackage if this breaks something)
9490
9491 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9492
9493          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9494
9495 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9496
9497         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9498
9499 2003-05-21    <johan AT balder>
9500
9501         * src/SDCCglue.c (printIval): fixed bug #739934
9502
9503 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9504
9505         Applied patch from bug 737905 (renamed yylineo to mylineno):
9506         * src/altlex.c
9507         * src/SDCCast.c
9508         * src/SDCglobl.h
9509         * src/SDCC.lex
9510         * src/SDCCsymt.c
9511         * src/SDCCval.c
9512         * src/pic16/pcode.c: Cleaned warnings
9513         * src/pic16/pcodeflow.c: Cleaned warnings
9514         * src/pic16/pcoderegs.c: Cleaned warnings
9515
9516 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9517
9518         * src/pic16/pcode.c: Cleaned warnings
9519         * src/pic16/pcodepeep.c: Cleaned warnings
9520         * src/pic16/ralloc.c: Cleaned warnings
9521
9522 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9523
9524         * doc/sdccman.lyx: fixed bug 739745
9525         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9526
9527 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9528
9529         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9530         it can be defined with CFLAGS when running configure
9531         * src/SDCCmain.c: fixed compiling + linking with object files
9532
9533 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9534
9535         * configure.in: configure for pic16 port,
9536             added --disable-pic16-port
9537         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9538         * src/SDCCmain.c: linkOptions is changed to set *,
9539             added if/endif conditional macros to remove options help
9540             messages from optionsTable when a port is not configured, added
9541             support for the PIc16 port in the ports table, when executing
9542             the compiler with no port specified on command line, a default
9543             port is selected with the new macro DEFAULT_PORT which is
9544             defined in port.h, in setDefaultOptions() linkOptions is removed
9545             from initialization assignment, since now it is a set,
9546             parseCmdLine uses setParseWithComma for linkOptions, in
9547             linkEdit() linkOptions are accessed with new function indexSet()
9548             which returns the i'th item of a set variable. See SDCCset.c, in
9549             linkEdit() when calling buildCmdLine(), added linkOptions as
9550             last argument. Now users can pass arguments to gplink via the
9551             -Wl option, main() uses pic16glue() to glue up pic16 programs
9552         * src/SDCCpeeph.c: various changes to support pic16
9553         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9554             return the i'th item of the set
9555         * src/SDCCset.h: added function prototype for indexSet()
9556         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9557         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9558         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9559             added macro DEFAULT_PORT
9560         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9561         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9562             generated
9563         * src/pic16/glue.c: commented out some error producing lines
9564         * src/pic16/main.c: __config directives are commented out to stop
9565             gpasm complaining and test the linkage with gplink, _linkCmd and
9566             _asmCmd changed to be more gplink and gpasm friendly
9567         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9568             produced an error when parsed, peep rule 12 is added to utilize
9569             movff, but it is commented out since the pCode does not support
9570             yet a command with 2 address arguments
9571
9572 2003-05-18    <johan AT balder>
9573
9574         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9575         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9576 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9577
9578         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9579   Added feature to script commands from file.
9580
9581 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9582
9583         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9584         * src/SDCCutil.c: include ctype.h for win32
9585
9586 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9587
9588         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9589
9590 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9591
9592         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9593   Fixed so you can set breakpoints prior to run, run does not stop
9594   on entry now.  Add tbreak.  Other enhancements and fixes for use
9595   with ddd.
9596
9597 2003-05-12  Borut Razem <borut.razem AT siol.net>
9598
9599         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9600
9601 2003-05-11  Borut Razem <borut.razem AT siol.net>
9602
9603         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9604         the path of bin directory, so that PATH is the only env. variable, which has to be set
9605         in case of standard installation.
9606         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9607         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9608         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9609
9610 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9611
9612         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9613         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9614         temp files are in the port dir; clean the gen/test directory when
9615         generating new test.c
9616         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9617         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9618         * support/regression/tests/zeropad.c: added
9619
9620 2003-05-09    <johan AT balder>
9621
9622         * src/SDCCglue.c: fixed bug #597940
9623
9624 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9625
9626         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9627   cache sfr, optimize next,step, fix off by one sourceline,
9628   support ddd list function.
9629         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9630
9631 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9632
9633         * support/regression/HTMLgen.py: added compare_s2f()
9634         * support/regression/Makefile: redo 1.27
9635         * support/regression/generate-cases.py: redo 1.5
9636
9637 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9638
9639         * support/regression/tests/float.c: workaround 33 bit hex constant
9640         * support/regression/tests/simplefloat.c: fix division for host
9641
9642 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9643
9644         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9645         that tame's the PIC's over-aggressive optimizer.
9646
9647 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9648
9649          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9650          support for MSVC.
9651
9652 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9653
9654         Initial support for DS80C400. "Hello world" runs on TINIm400
9655         (with polled I/O).
9656
9657 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9658
9659          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9660          * Some notes on ddd usage added in debugger/README
9661          Martin Helmling adding more features and fixes for ddd GUI debugger.
9662          Code added for nexti, stepi, up, down, and other adjustments.
9663
9664 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9665
9666         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9667         * src/pic/peeph.def Added two rules to optimize carry manipulation
9668         * src/pic/* removed debug printfs
9669
9670 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9671
9672         * debugger/mcs51/cmd.c: added header newalloc.h
9673
9674 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9675
9676         * as/Makefile: new EXEEXT
9677         * as/z80/Makefile: remove trailing slash of BUILDIR
9678         * as/z80/clean.mk: new EXEEXT
9679         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9680         * support/cpp2/Makefile.in: new EXEEXT
9681         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9682
9683 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9684
9685         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9686         EXEEXT was introduced to fix all related problems with targets
9687         "clean", "install" and "uninstall"; a couple of further flaws
9688         especially with "clean" have been fixed too
9689         * as/mcs51/Makefile.in
9690         * as/mcs51/clean.mk
9691         * as/z80/Makefile
9692         * Makefile
9693         * clean.mk
9694         * debugger/mcs51/Makefile.in
9695         * debugger/mcs51/clean.mk
9696         * link/z80/Makefile
9697         * link/z80/Makefile.in
9698         * link/z80/clean.mk
9699         * link/Makefile
9700         * packihx/Makefile.in
9701         * packihx/clean.mk
9702         * sim/ucsim/Makefile
9703         * sim/ucsim/clean.mk
9704         * sim/ucsim/avr.src/Makefile.in
9705         * sim/ucsim/avr.src/clean.mk
9706         * sim/ucsim/s51.src/Makefile.in
9707         * sim/ucsim/s51.src/clean.mk
9708         * sim/ucsim/xa.src/Makefile.in
9709         * sim/ucsim/xa.src/clean.mk
9710         * sim/ucsim/z80.src/Makefile.in
9711         * sim/ucsim/z80.src/clean.mk
9712         * sim/ucsim/main_in.mk
9713         * sim/ucsim/packages_in.mk
9714         * sim/ucsim/gui.src/Makefile.in
9715         * sim/ucsim/gui.src/serio.src/Makefile.in
9716         * sim/ucsim/gui.src/serio.src/clean.mk
9717         * src/Makefile.in
9718         * src/clean.mk
9719         * support/cpp2/Makefile.in
9720         * support/cpp2/clean.mk
9721         * support/makebin/Makefile
9722         * support/makebin/clean.mk
9723         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9724         * doc/sdccman.lyx: --program-suffix no longer needed
9725
9726 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9727
9728          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9729          Martin Helmling added support for ddd GUI debugger.
9730          Code added to display assembly, set variables, and other commands
9731          to interface to ddd.
9732
9733 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9734
9735         * as/Makefile: fix target clean
9736         * as/clean.mk: fix target clean
9737         * as/z80/clean.mk: fix target clean
9738
9739 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9740
9741         * Makefile.common.in: added  AT EXEEXT AT
9742         * configure.in: removed all mingw32 stuff
9743         * configure: rebuilt from configure.in
9744         * doc/sdccman.lyx: updated section "installation"
9745         * support/scripts/sdcc_mingw32: adapted to configure
9746         * support/scripts/sdcc_cygwin_mingw32: added
9747
9748 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9749
9750         * src/pic Added object file support for the PIC port
9751         * src/pic Applied patch from Craig Franklin (this started the object file support)
9752         * src/regression Updated the PIC regression tests for object files
9753
9754 2003-04-20  Borut Razem <borut.razem AT siol.net>
9755
9756         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9757           lklex.c: In function `getfid':
9758           lklex.c:203: warning: array subscript has type `char'
9759         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9760           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9761         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9762           stack handling macros
9763
9764 2003-04-19  Borut Razem <borut.razem AT siol.net>
9765
9766         * "handling space characters in file path" task:
9767         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9768         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9769         * support/Util/MySystem.h: make it self-sufficient
9770         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9771           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9772           handling space characters in file path
9773         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9774           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9775         * support/Util/MySystem.c: handling space characters in executable's path
9776
9777 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9778
9779         * as/z80/Makefile: fix permanent rebuild of z80
9780         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9781         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9782
9783 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9784
9785         * src/SDCCopt.c: add special case optimization to replace modulo by
9786           a power of two with a bitwise AND.
9787
9788 2003-04-18    <johan AT balder>
9789
9790         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9791
9792 2003-04-17    <johan AT balder>
9793
9794         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9795         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9796
9797 2003-04-13  Borut Razem <borut.razem AT siol.net>
9798
9799         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9800         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9801           fixed mingw problem in adl_NORMALIZE_PATH
9802
9803 2003-04-12  Borut Razem <borut.razem AT siol.net>
9804
9805         * fixed "#pragma SAVE/RESTORE can not be nested":
9806         * src/SDCC.lex: reworked pragma handling functions
9807         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9808         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9809
9810 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9811
9812         * src/SDCCutil.c (pathEquivalent): defined but not used
9813         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9814         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9815         * configure: rebuilt from configure.in
9816         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9817         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9818         * device/include/Makefile.in: replace sdcc_datadir
9819         * device/lib/Makefile.in: replace sdcc_datadir
9820         * Makefile.common.in: add LDFLAGS from configure
9821         * packihx/Makefile.in: use LDFLAGS
9822         * src/Makefile.in: use LDFLAGS
9823         * support/cpp2/Makefile.in: add LDFLAGS from configure
9824         * support/makebin/Makefile: use LDFLAGS
9825         * .version: bumped version number to 2.3.5
9826
9827 2003-04-12  Borut Razem <borut.razem AT siol.net>
9828
9829         * completed "different paths" task:
9830         * src/SDCCmacro.c: fixed bug in handling quotes
9831         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9832         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9833
9834 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9835
9836         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9837
9838 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9839
9840         * ds390/gen.c ds390/peeph.def: fix bug 706781
9841
9842 2003-04-11  Borut Razem <borut.razem AT siol.net>
9843
9844         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9845
9846 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9847
9848         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9849         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9850          set - this bit used to not be set...).
9851         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9852           bad code in PIC Port
9853         * src/regression/and2.c added to test bug 609268
9854         * src/regression/Makefile added and2.c to regression test
9855
9856
9857 2003-04-08    <johan AT CP255758-A>
9858
9859         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9860         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9861         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9862
9863 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9864
9865         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9866         fix bug #487815
9867         * support/cpp2/Makefile.in: fix bug #487815
9868         * configure: rebuilt from configure.in
9869         * Makefile.common.in: docdir changed, new path suffixes
9870         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9871         * sdcc_vc_in.h: reflect changes from sdccconf.h
9872         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9873         * src/SDCCutil.h: remove BINDIR hack
9874         * doc/sdccman.lyx: update new path hierarchy
9875
9876 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9877
9878         * src/SDCCpeeph.c: added okToRemoveSLOC test
9879
9880 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9881
9882         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9883
9884 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9885
9886         * src/SDCCpeeph.c: added labelIsReturnOnly test
9887         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9888
9889 2003-04-05    <johan AT balder>
9890
9891         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9892         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9893         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9894         * src/SDCCast.c: fixed a warning
9895         * src/SDCCast.h: fixed a warning
9896         * src/SDCCicode.c (operandFromAst): fixed a warning
9897
9898 2003-04-04    <johan AT balder>
9899
9900         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9901         * src/SDCCast.c (decorateType): fixed bug #715076
9902         * src/SDCC.y: fixed bug #702907
9903
9904 2003-04-03    <johan AT balder>
9905
9906         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9907         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9908         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9909         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9910         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9911
9912 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9913
9914         * _decdptr.c: fix return values
9915         * _gptrget.c: fix return values
9916         * _gptrgetc.c: fix return values
9917         * _gptrput.c: fix return values
9918         * _mulint.c: fix return values
9919         * as/z80/Makefile: fix 'make -j' problem
9920
9921 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9922
9923         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9924         * configure.in: big cleanup, updated to autoconf 2.5x
9925         * configure: rebuilt from configure.in
9926         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9927         * sdcc_vc_in.h: reflect changes from sdccconf.h
9928         * doc/Makefile: fixed a flaw in "make install"
9929
9930 2003-04-02    <johan AT balder>
9931
9932         * src/ds390/gen.c (genCmp): no comments
9933         * src/mcs51/gen.c (genCmp): no comments
9934         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9935         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9936
9937 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9938
9939         * support/regression/generate-cases.py: place generated file in given sub directory
9940         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9941         * support/regression/Makefile: improvements for 'make -j';
9942         side effect: it's simpler and faster now
9943
9944 2003-03-31  Borut Razem <borut.razem AT siol.net>
9945
9946         * src/z80/main.c: link-{port} and as-{port} defined without path
9947         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9948
9949 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9950
9951         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9952
9953 2003-03-30  Borut Razem <borut.razem AT siol.net>
9954
9955         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9956           changed type of list parameter to set
9957         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9958         * src/port.h: changed type of do_assemble() parameter to set
9959         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9960           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9961           definition of "cppoutfilename" macro with NULL value in preProcess()
9962         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9963         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9964         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9965           replaced with set *binPathSet
9966         * shash_add() deallocates the item, if allready exsists, before adding the new one
9967         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9968
9969 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9970
9971         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9972           a nested for loop bug in the PIC port
9973         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9974           for loops
9975
9976 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9977
9978         * support/Util/dbuf.h: remove C++ stuff to make it portable
9979
9980 2003-03-28  Borut Razem <borut.razem AT siol.net>
9981
9982         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9983           literal strings in stringLiteral()
9984         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9985         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9986           to the project
9987
9988 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9989
9990         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9991
9992 2003-03-26    <johan AT balder>
9993
9994         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9995         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9996         * src/SDCCast.c (decorateType): fixed " -v < 3"
9997
9998 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9999
10000         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10001         Added Lenny Story's debug infrastructure changes:
10002         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10003         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10004         * src/cdbFile.c: added
10005         * src/SDCCdebug.c: added
10006         * src/SDCCdebug.h: added
10007         * src/SDCCast.c (createFunction)
10008         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10009         * src/SDCCmain.c (parseCmdLine, main)
10010         * src/SDCCmem.c (redoStackOffsets)
10011         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10012         * src/SDCCsymt.h
10013         * src/common.h
10014         * src/avr/gen.c (genAVRCode)
10015         * src/ds390/gen.c (gen390Code)
10016         * src/mcs51/gen.c (gen51Code)
10017         * src/pic/gen.c (genpic14Code)
10018         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10019         * src/xa51/gen.c (genXA51Code)
10020         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10021
10022 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10023
10024         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10025         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10026
10027 2003-03-22    <johan AT balder>
10028
10029         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10030
10031 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10032
10033         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10034         * doc/cdbfileformat.lyx: added, written by Lenny Story
10035         * doc/Makefile: added cdbfileformat.lyx
10036         * doc/clean.mk: added cdbfileformat.lyx
10037
10038 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10039
10040         * src/mcs51/peeph.def: fix bug #705773
10041
10042 2003-03-20    <johan AT balder>
10043
10044         An sfr/sbit can have an "at #" AND an initializer
10045         * src/SDCCsymt.c (checkSClass):
10046         * src/SDCCmem.c (allocGlobal):
10047         * src/SDCCmem.c (allocLocal):
10048         * src/SDCCast.c (createBlock):
10049
10050 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10051
10052         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10053
10054 2003-03-16    <johan AT balder>
10055
10056         Undid the hackup of const and volatile, the problem is much bigger
10057         * src/SDCC.y:1.65
10058         * src/SDCCast.c:1.171
10059         * src/SDCCglue.c:1.138
10060         * src/SDCCicode.c:1.146
10061         * src/SDCCsymt.c:1.150
10062         * src/SDCCval.c:1.65
10063
10064 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10065
10066         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10067         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10068
10069 2003-03-13    <johan AT balder>
10070
10071         Hackup const and volatile modifiers in type chains a bit:
10072         * src/SDCC.y:1.63
10073         * src/SDCCast.c:1.169
10074         * src/SDCCglue.c:1.136
10075         * src/SDCCicode.c:1.143
10076         * src/SDCCsymt.c1.146
10077         * src/SDCCsymt.h1.59
10078         * src/SDCCval.c:1.63
10079
10080 2003-03-12    <johan AT balder>
10081
10082         * src/SDCCBBlock.h: more LRH debugging junk
10083         * src/SDCCcflow.h: more LRH debugging junk
10084         * src/SDCCloop.c: more LRH debugging junk
10085         * src/SDCC.y (struct_declaration): fixed bug #697590
10086         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10087         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10088         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10089
10090 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10091         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10092         test function names must now match exactly).
10093         * src/SDCCcse.c: added special case in findCheaperOp to allow
10094         extending a short integer. Makes less awful code for bug 700121 test case.
10095
10096 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10097
10098         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10099         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10100
10101 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10102
10103         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10104         actually called (operandsNotEqual() was called for all
10105         operandsNotEqualX tests).
10106
10107 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10108
10109         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10110         with shorter literals. Fixes bug 700121.
10111
10112 2003-03-11    <johan AT balder>
10113
10114         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10115
10116 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10117
10118         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10119         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10120
10121 2003-03-10  Borut Razem <borut.razem AT siol.net>
10122
10123         * src/SDCCmain.c: pipe preprocessor's output
10124         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10125         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10126         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10127         which closes all pipes in pipeSet set
10128         * src/SDCCset.c: free deleted item in function deleteSetItem()
10129         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10130         moved from z80 to src subproject
10131         * .version: increased version number to 2.3.4
10132
10133 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10134
10135         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10136         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10137         * support/regression/ports/xa51/spec.mk: fix typo
10138
10139 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10140
10141         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10142
10143 2003-03-09  Borut Razem <borut.razem AT siol.net>
10144
10145         * src/SDCCmain.c: pipe preprocessor's output
10146         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10147         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10148         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10149         which closes all pipes in pipeSet set
10150         * src/SDCCset.c: free deleted item in function deleteSetItem()
10151         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10152         moved from z80 to src subproject
10153
10154 2003-03-09  Borut Razem <borut.razem AT siol.net>
10155
10156         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10157         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10158         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10159         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10160         * src/SDCCglobl.h: unification of WIN32 native definitions
10161
10162 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10163
10164         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10165
10166 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10167
10168         * src/configure.in:   check for endianess (even while cross-compiling)
10169         * src/configure:      check for endianess (even while cross-compiling)
10170         * src/configure_in.h: check for endianess (even while cross-compiling)
10171         * src/avr/gen.c:        remove old endianess stuff
10172         * src/mcs51/gen.c:      remove old endianess stuff
10173         * src/ds390/gen.c:      remove old endianess stuff
10174         * src/pic/gen.c:        remove old endianess stuff
10175         * src/pic/genarith.c:   remove old endianess stuff
10176         * src/pic/glue.c:       fix endianess check
10177         * src/pic16/gen.c:      remove old endianess stuff
10178         * src/pic16/genarith.c: remove old endianess stuff
10179         * src/pic16/glue.c:     fix endianess check
10180         * src/xa51/gen.c:       remove old endianess stuff
10181         * src/z80/gen.c:        fix endianess check
10182         * src/SDCCglue.c:       fix endianess check
10183         * src/ds390/peeph.def: fix bug 700036
10184
10185 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10186
10187         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10188         * src/configure: find appropriate data-types on host for SDCC's int and long
10189         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10190         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10191         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10192
10193 2003-03-07    <johan AT balder>
10194
10195         Just a big NOOP:
10196                 some minor cleanups before the big shot
10197                 OP_DEFS and OP_USES now use Kevin's protection
10198                 new option --nolabelopt
10199
10200         * src/SDCCBBlock.c:
10201         * src/SDCCast.c,:
10202         * src/SDCCcflow.c:
10203         * src/SDCCcse.c:
10204         * src/SDCCicode.c:
10205         * src/SDCCicode.h:
10206         * src/SDCClabel.c:
10207         * src/SDCCloop.c:
10208         * src/SDCCmain.c:
10209         * src/ds390/ralloc.c:
10210         * src/mcs51/ralloc.c:
10211         * src/pic/ralloc.c:
10212         * src/xa51/ralloc.c:
10213         * src/z80/ralloc.c:
10214
10215 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10216
10217         * src/pic/pcode.c (get_op): fix 64 bit warnings
10218         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10219         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10220         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10221         * support/regression/tests/malloc.c: fix 64 bit warnings
10222
10223 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10224
10225         * src/mcs51/gen.c (genMinus): fixed bug 696436
10226
10227 2003-03-02  Borut Razem <borut.razem AT siol.net>
10228
10229         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10230
10231 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10232
10233         * configure.in: test for mkstemp
10234         * sdccconf_in.h: add HAVE_MKSTEMP
10235
10236 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10237
10238         * device/include/ctype.h: removed warning while using --stack-auto
10239         * device/include/malloc.h: removed warning while using --stack-auto
10240         * device/include/string.h: removed warning while using --stack-auto
10241
10242 2003-02-23  Borut Razem <borut.razem AT siol.net>
10243
10244         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10245         because NDEBUG is defined (see man assert)
10246         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10247
10248 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10249
10250         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10251         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10252
10253 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10254
10255         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10256         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10257
10258 2003-02-18    <johan AT balder>
10259
10260         * as/mcs51/asmain.c (asmbl): module can start with a digit
10261         * as/z80/asmain.c (asmbl): module can start with a digit
10262
10263 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10264
10265         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10266         * src/asm.c: fix pipe() for Mingw32
10267
10268 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10269
10270         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10271         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10272         make -V work again; --c1mode reads now from stdin
10273         * doc/sdccman.lyx: added --c1mode
10274         * support/Util/SDCCerr.c: new messages for c1 mode
10275         * support/Util/SDCCerr.h: new messages for c1 mode
10276         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10277
10278 2003-02-15    <johan AT balder>
10279
10280         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10281
10282 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10283
10284         * doc/sdccman.lyx: Environment variables, -o and other minor things
10285
10286 2003-02-14    <johan AT balder>
10287
10288         * src/xa51/main.c: before anyone really tries to use it :)
10289
10290         * Install doc's in share/sdcc/doc
10291         * removed some obsolete files
10292         * Do a proper make distclean and uninstall
10293         M Makefile.common.in
10294         R sdccbuild.sh
10295         M as/Makefile
10296         M device/include/Makefile.in
10297         M device/lib/Makefile.in
10298         M doc/sdccman.lyx
10299         M link/Makefile
10300         M sim/ucsim/doc/Makefile.in
10301         M src/clean.mk
10302         R src/avr/peeph.rul
10303         R src/xa51/peeph.rul
10304         M support/cpp2/Makefile.in
10305         M support/makebin/Makefile
10306
10307
10308 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10309
10310         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10311
10312 2003-02-10  Borut Razem <borut.razem AT siol.net>
10313
10314         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10315         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10316         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10317         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10318         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10319         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10320         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10321         src/z80/Makefile.bcc: Borland Makefile cleanup
10322         * as/z80/Makefile.bcc: Added Borland Makefile
10323         * support/cpp2/borland.h: Removed
10324
10325 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10326
10327         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10328         * src/SDCC.lex: new pragma NOIV
10329         * src/SDCCglobl.h: new pragma NOIV
10330         * src/SDCCmem.c: new pragma NOIV
10331
10332 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10333
10334         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10335
10336 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10337
10338         * src/SDCCmain.c: signal handling is switched off by --debug
10339         * doc/Makefile: small fix for install; use clean.mk again
10340         * doc/clean.mk: clean *.pdf and *.html too
10341
10342 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10343
10344         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10345         * device/lib/printfl.c: fix a ds390 bug by making it portable
10346         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10347         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10348         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10349         * debugger/mcs51/cmd.c: converted multi-line string literals
10350         * sim/ucsim/globals.cc: converted multi-line string literals
10351         * src/SDCCmain.c: introduced signal handler to remove temp files
10352         * doc/Makefile: small tweaks, implement clean
10353         * doc: removed generated files
10354
10355 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10356
10357         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10358         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10359         Address Record is not correctly generated for DS390."
10360
10361 2003-02-02  Borut Razem <borut.razem AT siol.net>
10362
10363         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10364         * as/mcs51/asm.h: fixed compilation with Borland C
10365         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10366         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10367         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10368         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10369         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10370         src/z80/Makefile.bcc: delete $(LIB) only if exist
10371         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10372
10373 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10374
10375         * device/include/malloc.h: introduced NULL
10376         * device/include/string.h: introduced NULL
10377         * device/include/stdlib.h: introduced NULL
10378         * device/lib/_memcpy.c: removed NULL
10379         * device/lib/_strcat.c: removed NULL
10380         * device/lib/_strchr.c: removed NULL
10381         * device/lib/_strcmp.c: removed NULL
10382         * device/lib/_strcpy.c: removed NULL
10383         * device/lib/_strcspn.c: removed NULL
10384         * device/lib/_strlen.c: removed NULL
10385         * device/lib/_strncat.c: removed NULL
10386         * device/lib/_strncmp.c: removed NULL
10387         * device/lib/_strncpy.c: removed NULL
10388         * device/lib/_strpbrk.c: removed NULL
10389         * device/lib/_strrchr.c: removed NULL
10390         * device/lib/_strspn.c: removed NULL
10391         * device/lib/_strstr.c: removed NULL
10392         * device/lib/_strtok.c: removed NULL
10393         * device/lib/malloc.c: removed NULL, include own header
10394
10395 2003-02-02    <johan AT balder>
10396
10397         * 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
10398         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10399         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10400         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10401         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10402         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10403
10404 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10405
10406         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10407         area 'DATA'"
10408
10409 2003-02-01    <johan AT balder>
10410
10411         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10412
10413 2003-01-31    <johan AT CP255758-A>
10414
10415         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10416
10417 2003-01-30    <johan AT balder>
10418
10419         * src/SDCCBBlock.c: automatic bug detection
10420         * src/SDCCicode.c: automatic bug detection
10421
10422 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10423
10424         * src/SDCCglobl.h:   now --xram-size 0 works
10425         * src/SDCCmain.c:    now --xram-size 0 works
10426
10427 2003-01-29    <johan AT balder>
10428
10429         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10430
10431 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10432
10433         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10434         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10435         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10436         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10437         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10438         * src/SDCCmain.c:    Added options --xram-size and --code-size
10439
10440 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10441
10442         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10443         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10444
10445 2003-01-27    <johan AT balder>
10446
10447         * src/SDCC.y: fixed bug #613764
10448
10449 2003-01-26    <johan AT balder>
10450
10451         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10452         * src/SDCCsymt.h: fixed bug #673374
10453         * src/SDCCglue.c: fixed bug #661910
10454         * src/SDCCast.c: fixed bug #458099 and 673374
10455
10456 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10457
10458         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10459         * as/mcs51/strcmpi.h: added
10460         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10461         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10462         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10463         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10464         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10465         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10466         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10467         * as/mcs51/Makefile.aslink: new module strcmpi
10468         * as/mcs51/Makefile.asx8051: new module strcmpi
10469         * as/mcs51/Makefil.bcc: new module strcmpi
10470         * as/mcs51/Makefile.in: new module strcmpi
10471         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10472
10473 2003-01-26    <johan AT balder>
10474
10475         * src/SDCCglue.c: reverted back to 1.124
10476         * src/SDCCast.c: reverted back to 1.156
10477         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10478
10479 2003-01-25    <johan AT balder>
10480
10481         * src/SDCCglue.c: A better fix for bug #661910
10482         * src/SDCCast.c: A better fix for bug #661910
10483         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10484
10485 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10486
10487         * src/Makefile.in: remove spawn.o
10488         * src/SDCCmain.c: remove spawn.h
10489         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10490         * src/spawn.c: removed
10491         * src/spawn.h: removed
10492         * support/regression/ports/ds390/spec.mk: link with -r
10493
10494 2003-01-24    <johan AT CP255758-A>
10495
10496         * src/ds390/gen.c (aopOp): fixed bug #667458
10497         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10498         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10499         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10500
10501 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10502
10503         * src/mcs51/peeph.def: better assembler identation by Frieder
10504         * src/mcs51/gen.c: better assembler identation by Frieder
10505
10506 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10507
10508         * as/z80/string.h: removed for gcc 3.2
10509         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10510         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10511
10512 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10513
10514         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10515         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10516         * support/regression/Makefile: separate temp files for ports
10517         * support/regression/generate-cases.py: separate temp files for ports
10518         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10519         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10520
10521 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10522
10523         * moved tinitalk to device/examples/ds390
10524
10525 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10526
10527         * as/mcs51/lkmem.c: rflag is for DS390
10528         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10529         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10530                          (linkEdit): move mem- and map-files the same way as ihx-files
10531         * src/z80/main.c (_setDefaultOptions): removed --generic
10532         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10533         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10534         * src/pic/glue.c (picglue): --c1mode works again
10535         * src/pic16/glue.c (pic16glue): --c1mode works again
10536         * src/asm.c (printCLine): fix #660034
10537
10538 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10539
10540         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10541         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10542         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10543         * as/mcs51/lkmem (summary): better fix for sp problem
10544         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10545         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10546         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10547                                               remove --stack-after-data
10548
10549 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10550
10551         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10552         * src/SDCCutil.c (join): ugly bug: missing '\0'
10553         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10554
10555 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10556
10557         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10558         * src/port.h: typo
10559         * src/pic/main.c (_asmCmd): gpasm supports -o
10560         * src/z80/main.c: more general macros
10561         * device/lib/Makefile.in: remove intermediate files
10562
10563 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10564
10565         * .version: Bumped version number to 2.3.3
10566         * src/SDCCBBlock.c: new option -o
10567         * src/SDCCglobl.h: new option -o
10568         * src/SDCCglue.c: new option -o
10569         * src/SDCCmain.c: new option -o
10570         * src/asm.c: new option -o
10571         * src/ds390/main.c: new option -o
10572         * src/pic/glue.c: new option -o
10573         * src/pic/pcode.c: new option -o
10574         * src/pic/ralloc.c: new option -o
10575         * src/pic16/glue.c: new option -o
10576         * src/pic16/pcode.c: new option -o
10577         * src/pic16/ralloc.c: new option -o
10578         * src/z80/main.c: new option -o
10579         * device/lib/Makefile.in: use -o
10580         * support/regression/ports/ds390/spec.mk: use -o
10581         * support/regression/ports/gbz80/spec.mk: use -o
10582         * support/regression/ports/mcs51/spec.mk: use -o
10583         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10584         * support/regression/ports/z80/spec.mk: use -o
10585         * support/regression/ports/ucz80/spec.mk: use -o
10586         * support/regression/ports/xa51/spec.mk: use -o
10587         * support/regression/fwk/lib/timeout.c: fix usage string
10588
10589 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10590         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10591
10592 2003-01-07    <johan AT balder>
10593
10594         * src/SDCCast.c (decorateType): fixed bug #600035
10595
10596 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10597         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10598         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10599         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10600         * src/pic/pcode.c: outcommented unused variable to remove warnings
10601         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10602
10603 2003-01-06    <karl AT turbobit.com>
10604         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10605    regression tests.
10606
10607 2003-01-06    <johan AT balder>
10608
10609         * src/SDCCicode.c: fixed array add
10610
10611 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10612         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10613         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10614
10615 2003-01-04    <johan AT balder>
10616
10617         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10618
10619 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10620         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10621
10622 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10623         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10624         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10625
10626 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10627         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10628
10629 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10630         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10631
10632 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10633         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10634
10635 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10636
10637     * in \sdcc\as\mcs51\ changed these files in order to create an
10638     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10639     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10640     following files to include the previous two files: aslink.dsp,
10641     Makefile.aslink, Makefile.bcc, and Makefile.in.
10642
10643     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10644     .adb instead of .cdb
10645
10646 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10647
10648         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10649         value from option --iram-size.
10650
10651 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10652
10653         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10654         dram[] array.
10655
10656 2002-09-18    <wiml AT hhhh.org>
10657
10658         * SDCClrange.h: exposed setFromRange() and setToRange()
10659         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10660           packRegsForAccUse() (bug 542397)
10661         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10662           multiple times and emitting the fetch operations more than once
10663           added aopGetUsesAcc() function to allow binary operators to
10664           fetch their operands in the correct order; made genMinus() emit
10665           compact code for X = LITERAL - Y
10666
10667 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10668         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10669         sprintf() in line 1267.
10670
10671 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10672         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10673         like ports.
10674
10675 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10676         Changes to aslink (All the changes are marked with 'JCF'):
10677
10678         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10679         summary().
10680
10681         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10682         area BSEG.  Also moves, if possible, the DATA area down into the internal
10683         ram so more space is available.
10684
10685         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10686         sflag.
10687
10688         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10689         not bytes.  Function summary() which creates a memory usage summary
10690         file with extension .mem.  Reports of overlaping stack and small stack
10691         size.  If the space for the stack is less than 16 bytes aslink trows a
10692         warning.
10693
10694         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10695         the 8051.  Option 'y' for memory summary output file.
10696
10697         Changes to sdcc (All the changes are marked with 'JCF'):
10698
10699         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10700
10701         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10702         overlaying area for it (uses RegBankUsed[4]).
10703
10704         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10705         bank zero as used by default.  By default aslink locates the stack
10706         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10707         the creation of the .mem file.  Delegates the allocation of data area
10708         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10709         the begining of the stack area to aslink.
10710
10711         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10712         glue() in SDCCglue.c creates an area for it.
10713
10714 2002-09-03  Borut Razem <borut.razem AT siol.net>
10715         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10716         sdcc/src/pic/glue.c:
10717         introduced atexit() handler for teporay files removal in case of
10718         errors, assertions, ...
10719
10720 2002-08-29  Borut Razem <borut.razem AT siol.net>
10721         * sdcc/support/cpp2/auto-host_vc_in.h:
10722         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10723         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10724         Maybe there is a similar problem with BORLANDC? It should be checked!
10725
10726         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10727         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10728         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10729         was not executed, and the compiler (cl) launched a warning:
10730         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10731
10732 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10733         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10734
10735 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10736         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10737
10738         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10739           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10740           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10741           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10742           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10743           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10744           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10745         - added Release configuration in VS projects
10746         - review of compiler an linker options
10747         - VC .exe files are generated in bin_vc directory, not to interfere
10748           with binaries generated from other projects (cygwin, mingw, bcc ...)
10749
10750         * sdcc/src/yacc.dsp: added
10751
10752         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10753         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10754         and insert the version number definitions from .version
10755
10756         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10757
10758         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10759         added - genarate auto-host.h using auto-host_vc_in.h as template
10760
10761         * sdcc/sdcc_vc.h,
10762         removed from CVS, generated automatically
10763
10764 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10765         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10766
10767 2002-08-11  Borut Razem <borut.razem AT siol.net>
10768         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10769
10770 2002-08-10  Borut Razem <borut.razem AT siol.net>
10771         * src/SDCCmain.c (main):
10772         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10773         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10774         The consequence was that some temporary files were not removed.
10775
10776         * src/SDCCglue.c:
10777         unification of code in functions tempfilename() and tempfile():
10778         function tempnam() is defined in Visual Studio 6.0 and .NET
10779
10780         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10781
10782         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10783           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10784         - removed compiler command line option /WX: Treats all warnings as errors
10785         - update a list of source files, included into the project
10786
10787         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10788           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10789         changed project type to Generic Project so that can be correcly converted to VS.NET project
10790
10791         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10792
10793         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10794
10795         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10796
10797         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10798         added return 0 statements after assert() to make compiler happy
10799
10800         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10801         added newline in the def file to keep MSC compiler satisfied
10802
10803         * sdcc/src/z80/gen.c:
10804         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10805           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10806         - solved MSC error in function aopDump()
10807
10808         * sdcc_vc.h: define PREFIX as "\\sdcc"
10809
10810 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10811         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10812
10813 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10814         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10815         - Rewrote the register banking algorithm.
10816         - Added pCode live-range analysis to registers (for now, only non-used and
10817         singly-used registers optimized away)
10818
10819         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10820
10821         * 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.
10822
10823 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10824         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10825
10826 2002-04-22  Michael Hope  <michaelh AT vroom>
10827
10828         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10829
10830         * configure.in (DD_COPT): Added include support required for gbdk.
10831
10832         * .version: Bumped version number just to increase it.
10833
10834         * src/SDCCmain.c: Added -nostdinc to the default options.
10835
10836 2002-04-15  Michael Hope  <michaelh AT vroom>
10837
10838         * device/lib/z80/printf.c (sprintf): Added.
10839
10840         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10841
10842         * src/z80/peeph.def: Added transpose redundent load rule.
10843
10844         * src/z80/main.c: Added force callee saves for jaune.
10845
10846         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10847
10848         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10849
10850 2002-03-28  Johan Knol  <johan AT balder>
10851
10852         * src/SDCCval.c: fixed bug #532436
10853
10854 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10855         * /src/port.h:
10856         Added "char *Processor" field to the port structure.
10857
10858         * /src/SDCCmain.c:
10859         Added -p option. Allows port dependent processor to be specified.
10860
10861         * all ports:
10862         Initialized the new field char *Processor field to NULL in all ports
10863
10864         * /src/pic/*:
10865         Compiler generated registers for interrupt context saving
10866         were not getting allocated.
10867
10868 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10869
10870         * /src/SDCCast.c:
10871         Fixed left shift. Will promote the left side of a left shift
10872         if a) left shifting more than size of operand or b) when assigned
10873         to something size > size of left side
10874
10875 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10876         * src/pic/*
10877         tons of changes. Register allocation has been
10878         rewritten. Added customization for the various PICs. Flow
10879         analysis is restructured. ...
10880
10881         * src/pic/device.h:
10882         Added
10883
10884         * src/pic/device.c:
10885         Added. device.c is a PIC port hack to accomodate variations
10886         in PIC devices.
10887
10888 2002-03-13  Michael Hope  <michaelh AT vroom>
10889
10890         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10891
10892 2002-03-04  johanknol  <johanknol AT manik>
10893
10894         * /src/SDCCval.c: fixed
10895
10896         const unsigned char arr[][2] = { { 0, 1 } };
10897         t18.c:1: error: Initializer element is not constant
10898
10899 2002-03-04  bela  <bela AT manik>
10900
10901         * /device/include/mcs51reg.h:
10902         ds89c420 register definition update
10903
10904 2002-03-03    <johan AT FRIJA>
10905
10906         * support/Util/SDCCerr.c: did something, but don't no why anymore
10907
10908         * support/regression/tests/bug-524691.c: made it a little less shy
10909
10910         * src/SDCCast.c (decorateType): fixed bug #524697
10911
10912         * src/SDCCast.c: made some lineno improvements
10913
10914         * src/SDCCval.c (getNelements): changed warning to error
10915
10916         * src/SDCCglue.c (printIvalArray): changed warning to error
10917
10918         * src/SDCCicode.c: fixed a warning for mingw
10919
10920         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10921
10922         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10923
10924 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10925
10926         * src/ds390/peeph.def:
10927         Added some more peephole rules
10928
10929         * src/ds390/gen.c: Various fixes & enhancements
10930
10931         * src/SDCClrange.c, src/SDCClrange.h:
10932         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10933
10934         * src/ds390/ralloc.c:
10935         various fixes & enhancements (ds390) specific
10936
10937         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10938         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10939         from rallocs.
10940
10941         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10942
10943 2002-03-02    <johan AT FRIJA>
10944
10945         * src/SDCCast.c (decorateType): fixed bug #524708
10946
10947         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10948
10949         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10950
10951 2002-03-01  Michael Hope  <michaelh AT vroom>
10952
10953         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10954
10955         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10956
10957 2002-03-01    <johan AT FRIJA>
10958
10959         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10960
10961         * src/SDCCast.c (decorateType): fixed bug #524209
10962
10963         * src/SDCCval.c (valNot): fixed bug #524195
10964
10965 2002-02-26    <johan AT balder>
10966
10967         * src/xa51/gen.c: fixed a warning
10968
10969         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10970
10971         * src/SDCCast.c (decorateType): fixed bug #522534
10972
10973 2002-02-23    <johan AT balder>
10974
10975         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10976
10977 2002-02-22    <johan AT balder>
10978
10979         * src/SDCCast.c: fixed bug #514865
10980
10981         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10982
10983 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10984
10985         * sdcc/src/SDCCloop.c:
10986         Previous fix was not good. basic blocks that have "break" or "return" are
10987         not really partof a loop , but live ranges used in these blocks should
10988         be live thru the entire loop, so set partOfLoop but don't add them to
10989         loop region
10990
10991 2002-02-21    <johan AT FRIJA>
10992
10993         * src/SDCCcse.c: fixed bug #514308
10994
10995 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10996
10997         * src/SDCCloop.c:
10998         Fixed BUG #519583. If a conditional block ended in a return/break
10999         statement inside a loop, it was not being considered part of the loop.
11000
11001         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11002
11003 2002-02-10  Karl Bongers <karl AT turbobit.com>
11004
11005         * debugger/*:
11006         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11007         with lots of comments and notes.
11008
11009         * device/examples/test2.c:
11010         Fix bug, "red" variable not being initialized(compiler complained).
11011
11012         * device/examples/Makefile, examples/test3.c:
11013         Add Makefile in device/examples folder, compiles test3.c
11014         for use as a multiple module SDCDB test case.
11015
11016         * sim/ucsim/cmd.src/cmdset.cc:
11017         Took out debug printfs in ucsim "next" command.
11018
11019         * sim/ucsim/xa.src:
11020         Karl and Johan start ucsim XA support.  Most dissassembly working,
11021         about 75% emulation done(plenty of work remaining).
11022
11023         * sim/ucsim/z80.src:
11024         Add Z80 support to ucsim, add test-ucz80 regression test,
11025         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11026         Notice z80 compiler fails on examples/test3.c/crc code.
11027
11028 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11029
11030         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11031         Added support for --parms-in-bank1
11032
11033         * src/ds390/peeph.def:
11034         added a few more peephole optimzations
11035
11036         * src/ds390/main.c:
11037         1) added __builtin_inp & __builtin_outp used to read in data of given length
11038            from a memory mapped port
11039         2) added __builtin_memcmp
11040         3) added __builtin_swapw swap bytes of a short
11041
11042         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11043         1) handle multiple send & receives from register bank1
11044         2) ralloc can now allocate DPTR1 to some liveRanges
11045
11046         * src/SDCCsymt.c, src/SDCCsymt.h:
11047         changes to handle multiple sends & receives
11048
11049         * src/SDCCptropt.h:
11050         added some pointer arithmetic optimization
11051
11052         * src/SDCCptropt.c:
11053         added some pointer arithmetic optimizations but not stable yet so not
11054         called from anywhere (will get this working shortly)
11055
11056         * src/SDCCopt.c: fixed for multiple sends & receives
11057
11058         * src/SDCCmain.c:
11059         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11060         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11061            set preprocessor defines (depending on options)
11062
11063         * src/SDCCicode.c, src/SDCCicode.h:
11064         changes made to handle multiple sends & receives
11065
11066         * src/SDCCglobl.h:
11067         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11068
11069         * src/SDCCcse.c, src/SDCCcse.h:
11070         added function findbackward def (to be used in upcoming optimization)
11071
11072         * src/SDCCcflow.c, src/SDCCcflow.h:
11073         added function returnAtEnd - to determine if a basic block terminates with
11074         a RETURN iCode
11075
11076         * src/SDCCast.c, src/SDCCast.h:
11077         added option parms-in-bank1
11078
11079         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11080         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11081         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11082         adjusted for --parms-in-bank1 option
11083
11084         * device/include/string.h:
11085         donot redefine "reentrant" keyword
11086
11087         * device/include/ds80c390.h: Added some more SFRs
11088
11089 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11090
11091         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11092
11093 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11094
11095         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11096
11097 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11098
11099         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11100
11101 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11102
11103         * Added --xram-movc option
11104
11105 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11106
11107         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11108
11109 2002-01-11  Johan Knol
11110
11111         * Added math lib of Jesus Calvino-Fraga
11112
11113 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11114
11115         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11116         * support/regression/Makefile: new target test-mcs51-stack-auto
11117         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11118
11119 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11120
11121         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11122
11123 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11124
11125         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11126
11127 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11128
11129         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11130
11131         * src/SDCCglue.h: add definition for printIvalChar()
11132
11133 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11134
11135         * src/SDCCast.c: fix #498138 by Johan
11136
11137         * src/SDCCglue.c: fix #498138 by Johan
11138
11139 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11140
11141         * support/regression/Makefile: fix clean
11142
11143         * support/regression/ports/ds390/support.c: fix transmission of last character
11144
11145 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11146
11147         * /sdcc/src/ds390/gen.c:
11148         a) improved computing address of stack variable
11149         b) took out some #if 0 code
11150         c) improved parmBytes adjustment
11151         d) improved genPlusIncr & genMinusIncr
11152         e) genCmp could generate bad code (when left assigned to DPTR)
11153         f) Fixed bug in hasInc
11154
11155         * /sdcc/src/ds390/ralloc.c:
11156         a) packRegsForSupport could mess up live information (Fixed)
11157         b) packRegsDPTRuse could be incorrect for left & right shift
11158
11159         * /sdcc/src/mcs51/ralloc.c:
11160         packRegsForSupport could mess up the live information (Fixed)
11161
11162         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11163
11164         * /sdcc/src/SDCCast.c:
11165         can reverse a loop even if function call is present as long
11166         as the loop control variable is local & is not passed as parameter
11167
11168 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11169
11170         * /sdcc/ChangeLog: *** empty log message ***
11171
11172         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11173         More builtin function additions for TININative
11174
11175         * /sdcc/src/ds390/ralloc.c:
11176         Had broken the regression testsuite
11177
11178         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11179
11180         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11181         Added funcattr hasStackParms will be set for reentrant functions when there
11182         are paramteres on the stack, this helps in minimizing frame pointer generation
11183         typeFromStr can handle function pointers now
11184
11185         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11186         *** empty log message ***
11187
11188 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11189
11190         * /src/ds390/gen.c, /src/ds390/main.c:
11191         More builtin function additions for TININative
11192
11193         * /src/ds390/ralloc.c:
11194         Had broken the regression testsuite
11195
11196         * /src/SDCCast.c: Fixed a bug in dumptree
11197
11198         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11199         Added funcattr hasStackParms will be set for reentrant functions when there
11200         are paramteres on the stack, this helps in minimizing frame pointer generation
11201         typeFromStr can handle function pointers now
11202
11203         * /doc/builtins.txt, /doc/TININative.txt:
11204         *** empty log message ***
11205
11206
11207 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11208
11209         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11210         ALPHA version for -mTININative
11211
11212         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11213         updated to reflect changes in the port structure
11214
11215         * /src/port.h:
11216         added function do_assemble (similar to do_link) if non-null this function
11217         will be called to do assembly (-mTININative) requires a multi command
11218         assembly
11219         added function genAssemblerEnd will be called to generate assembler Epilogue
11220
11221         * /src/SDCCsymt.c:
11222         added _JavaNative to debug info printing
11223
11224         * /src/SDCCmain.c: added option --tini-libid
11225         added port->do_assemble function (-mTININative) has a multi command assemble
11226
11227         * /src/SDCCglue.c: Disabled "constExpr" check
11228         added port->genAssemblerEnd function
11229
11230         * /src/SDCCglobl.h: Added option --tini-libid value
11231
11232         * /src/SDCCast.h:
11233         tookout optimizeCompare from the header (has no external references)
11234
11235         * /src/SDCCast.c: made one more function "static"
11236
11237 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11238
11239         * src/z80/mappings.i: Added z80asm support.
11240
11241         * src/z80/main.c: Added z80asm support on --asm=z80asm
11242
11243         * src/z80/gen.c: Fixed asm portability issues.
11244
11245         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11246
11247         * src/SDCCglue.c (printExterns): Added global/extern split.
11248
11249 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11250
11251         * support/regression/Makefile: added test for mcs51 model large
11252
11253         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11254
11255         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11256
11257 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11258
11259         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11260
11261 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11262
11263         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11264
11265         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11266
11267 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11268
11269         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11270
11271         * support/regression/tests/simplefloat.c: Port to mcs51.
11272
11273 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11274         * support/regression/tests/bug-485362.c: Added.
11275
11276         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11277
11278         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11279
11280         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11281
11282         * src/z80/gen.c (aopDump): Added a dump function.
11283
11284 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11285         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11286
11287         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11288
11289         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11290
11291         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11292
11293         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11294
11295         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11296
11297         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11298
11299         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11300
11301         * support/regression/ports/ds390/support.c: Use tinibios.
11302
11303         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11304
11305 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11306
11307         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11308         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11309
11310         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11311
11312         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11313
11314 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11315
11316         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11317
11318         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11319         (packRegsForIYUse): Created and optimised.
11320
11321 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11322
11323         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11324 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11325
11326         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11327
11328         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11329
11330         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11331
11332 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11333
11334         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11335
11336         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11337
11338 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11339
11340         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11341
11342         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11343
11344         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11345
11346 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11347
11348         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11349         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11350         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11351
11352         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11353
11354         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11355         (genNotFloat): Added.
11356         (genUminusFloat): Added.
11357
11358         * device/lib/z80/Makefile: Added floating pt stubs.
11359
11360         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11361
11362         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11363
11364         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11365
11366 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11367
11368         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11369
11370         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11371
11372         * sdcc/support/regression/Makefile: Add port ds390.
11373
11374         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11375
11376         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11377
11378         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11379
11380         * sdcc/support/regression/ports/ds390/support.c: Added.
11381
11382         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11383
11384         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11385
11386         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11387
11388 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11389
11390         * device/include/malloc.h: Added z80 and gbz80 support.
11391
11392         * device/lib/gbz80/heap.s: Added.
11393
11394         * device/lib/z80/heap.s: Added.
11395
11396         * device/lib/malloc.c: Added z80 and gbz80 support.
11397
11398         * support/regression/tests/malloc.c (testMalloc): Added.
11399
11400         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11401
11402         * support/regression/tests/bug-478094.c: Added.
11403
11404         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11405
11406 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11407
11408         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11409
11410         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11411
11412         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11413
11414         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11415
11416         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11417
11418 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11419
11420         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11421
11422 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11423
11424         * support/regression/tests/bug-477927.c: Added.
11425
11426         * src/z80/peeph.def: Added minor rules.
11427
11428         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11429
11430         * src/z80/peeph.def: Added jump optimisation modification.
11431
11432 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11433
11434         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11435
11436 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11437
11438         * support/regression/tests/funptrs.c: Added.
11439
11440 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11441
11442         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11443
11444 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11445
11446         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11447
11448         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11449
11450         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11451         (movLeft2ResultLong): Created.
11452
11453         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11454         (joinPushes): Added.  Joins two char pushes into a word push.
11455
11456 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11457
11458         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11459
11460         * support/makebin/Makefile (install): Added creation of dest dir.
11461
11462 2001-10-24 Karl Bongers <karl AT turbobit.com>
11463
11464         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11465
11466 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11467
11468         * src/z80/ralloc.c: Turned off faulty pack for one use.
11469
11470         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11471
11472         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11473
11474 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11475
11476         * support/regression/Makefile: Improved clean
11477
11478         * support/regression/ports/gbz80/spec.mk: Added clean
11479
11480         * support/regression/ports/host/spec.mk: Added clean
11481
11482         * support/regression/ports/z80/spec.mk: Added clean
11483
11484         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11485
11486         * support/regression/ports/mcs51/timeout.c: little improvements
11487
11488 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11489
11490         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11491
11492         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11493
11494         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11495
11496 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11497
11498         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11499
11500         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11501
11502 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11503         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11504
11505         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11506
11507         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11508
11509         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11510
11511         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11512
11513         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11514
11515         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11516
11517         * support/regression/tests/longor.c: Added.
11518
11519 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11520
11521         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11522
11523         * as/mcs51/aslink.h: define PATH_MAX
11524
11525         * as/mcs51/asm.h: define PATH_MAX
11526
11527         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11528
11529         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11530
11531         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11532
11533         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11534
11535         * src/SDCCglobl.h: define PATH_MAX
11536
11537         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11538
11539         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11540
11541 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11542
11543         * src/z80/gen.c (gencjneshort): Fixed
11544
11545         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11546
11547 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11548
11549         * support/regression/tests/bug-469671.c: Added.
11550
11551         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11552
11553 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11554
11555         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11556
11557         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11558
11559 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11560
11561         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11562
11563         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11564
11565         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11566
11567         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11568
11569         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11570
11571         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11572
11573         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11574
11575 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11576
11577         * 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.
11578
11579         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11580
11581         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11582
11583 2001-10-07    <johan AT FRIJA>
11584
11585         * device/lib/gets.c (gets): fixed the return value.
11586
11587 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11588         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11589
11590         * 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.
11591
11592         * 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.
11593
11594         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11595
11596         * src/pic/gen.c: Removed Safe_strdup.
11597
11598         * configure.in: Added option to enable libgc support.
11599
11600         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11601         (bitVectUnion): Optimised.
11602         (bitVectIntersect): Optimised.
11603         (bitVectBitsInCommon): Optimised.
11604         (bitVectCplAnd): Optimised.
11605
11606         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11607
11608 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11609
11610         * src/SDCCmain.c: distinguish between assembler debug and plain options
11611
11612         * src/avr/main.c:   remove standard assembler options
11613
11614         * src/ds390/main.c: remove standard assembler options
11615
11616         * src/mcs51/main.c: remove standard assembler options
11617
11618         * src/port.h: removed "PENDING" comment
11619
11620 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11621
11622         * src/device/lib/_mulint.c  : new, with assember functions
11623
11624         * src/device/lib/_mullong.c : new, with assember functions
11625
11626         * src/device/lib/_divuint.c : with assember functions
11627
11628         * src/device/lib/_divsint.c : with assember functions
11629
11630         * src/device/lib/_divulong.c: with assember functions
11631
11632         * src/device/lib/_divslong.c: with assember functions
11633
11634         * src/device/lib/_moduint.c : with assember functions
11635
11636         * src/device/lib/_modsint.c : with assember functions
11637
11638         * src/device/lib/_modulong.c: with assember functions
11639
11640         * src/device/lib/_modslong.c: with assember functions
11641
11642         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11643
11644         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11645
11646         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11647                                       replaced _mululong.c and _mulslong.c by _mullong.c
11648
11649 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11650
11651         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11652
11653 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11654
11655         * src/SDCCglue.c: test, if win32api is available for MINGW
11656
11657 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11658
11659         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11660         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11661         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11662         * support/regression/ports/host/spec.mk: removed GENERIC
11663         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11664         * support/regression/ports/z80/spec.mk: removed GENERIC
11665
11666 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11667
11668         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11669
11670         * support/regression/tests/bug-467035.c: Created.
11671
11672 2001-10-01    <johan AT FRIJA>
11673
11674         * src/SDCC.y: fixed bug #466586 part 1
11675
11676 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11677
11678         * SDCCicode.c: z80 has no generic pointers
11679         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11680
11681 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11682
11683         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11684
11685 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11686
11687         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11688
11689         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11690
11691 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11692
11693         * configure.in: Fixed up so that ucsim is only configured once.
11694
11695         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11696
11697         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11698         (getPathDifference): As above.
11699
11700         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11701
11702         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11703
11704 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11705         * .version: Updated to 2.3.1
11706
11707         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11708         Added copyright header.
11709
11710         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11711         (assemble): Added support for macro based assembler commands.
11712         (linkEdit): Added support for macro based linker commands.
11713         (preProcess): Changed the pre-processor to use macros.
11714         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11715         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11716
11717         * device/lib/z80/crt0.s: Added module name for debugging.
11718
11719 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11720
11721         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11722
11723         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11724
11725         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11726
11727         * src/Makefile.in: Added SDCCmacro and SDCCutil
11728
11729 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11730
11731         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11732
11733 2001-09-16    <johan AT FRIJA>
11734
11735         * 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.
11736
11737 2001-09-15    <johan AT FRIJA>
11738
11739         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11740         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11741
11742 2001-09-11    <johan AT FRIJA>
11743
11744         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11745
11746 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11747
11748         * support/regression/tests/bug-460444.c: Added test case.
11749
11750         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11751         (genCast): Added justification for all of the asserts.
11752
11753 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11754
11755         * support/regression/support.c: _xdata replaced by xdata
11756
11757         * support/regression/spec.mk: removed _generic
11758
11759 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11760
11761         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11762
11763         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11764         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11765
11766         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11767
11768         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11769
11770         * support/regression/tests/bug-460010.c: Added test case.
11771
11772         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11773
11774 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11775
11776         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11777
11778         * support/regression/testfwk.c: removed workaround for bug #436344
11779
11780         * support/regression/tests/bp.c: use less memory with mcs51
11781
11782         * support/regression/tests/bug-441448.c: use less memory
11783
11784         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11785
11786         * support/regression/collate-results.py: typo
11787
11788 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11789
11790         * support/regression/tests/fetchoverlap.c: Added new test case.
11791
11792         * support/regression/tests/bp.c: Added new test case.
11793
11794         * support/regression/tests/bug-448984.c: Added new test case.
11795
11796         * support/regression/tests/pow2shifts.c: Added new test case.
11797
11798         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11799         (genlshTwo): Fixed right shift for count > 8.
11800
11801         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11802
11803 2001-09-08    <johan AT FRIJA>
11804
11805         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11806
11807 2001-09-07    <johan AT FRIJA>
11808
11809         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11810
11811         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11812
11813 2001-09-06    <johan AT FRIJA>
11814
11815         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11816         * bernhard noted me at this: "() equals to (void)" (1.38)
11817
11818 2001-09-05    <johan AT FRIJA>
11819
11820         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11821
11822 2001-09-04    <johan AT FRIJA>
11823
11824         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11825
11826
11827 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11828
11829         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11830
11831 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11832
11833         * link/z80/aslink.h: Fixed path for PATH_MAX
11834
11835 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11836
11837         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11838
11839         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11840
11841         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11842
11843         * 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.
11844
11845 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11846
11847         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11848         (genCmp): Fixed up genCmp for the GB with longs.
11849
11850         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11851
11852         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11853
11854         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11855
11856         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11857
11858 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11859
11860         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11861
11862 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11863
11864         * 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.
11865
11866         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11867
11868 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11869
11870         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11871
11872         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11873
11874 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11875
11876   * sim/ucsim/configure:    little improvement of Cygwin-detection
11877   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11878   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11879   * support/regression/tests/bug-221100.c: small changes for mcs51
11880   * support/regression/tests/bug-221168.c: small changes for mcs51
11881   * support/regression/tests/bug-227710.c: small changes for mcs51
11882   * support/regression/tests/staticinit.c: small changes for mcs51
11883   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11884   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11885   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11886
11887 $Revision$