* CVS to Subversion migration completed
[fw/sdcc] / ChangeLog
1 2006-04-19 Borut Razem <borut.razem AT siol.net>
2
3         * CVS to Subversion migration completed
4
5 2006-04-18 Borut Razem <borut.razem AT siol.net>
6
7         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
8           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
9
10 2006-04-17 Borut Razem <borut.razem AT siol.net>
11
12         * device/include/Makefile.in: added pic/*.inc to the installation
13
14 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
15
16         * support/regression/collate-results.py: fixed output in case of
17         a valdiag error
18         * support/regression/generate-cases.py: fixed splitting of pathnames
19         with dots
20         * as/hc08/lklibr.c (addfile),
21         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
22
23 2006-04-11 Raphael Neider <rneider AT web.de>
24
25         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
26         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
27         * src/pic16/pcode.c (assignValnums): fixed #1460578
28
29 2006-04-11 Raphael Neider <rneider AT web.de>
30
31         * device/lib/pic/libdev/*.c,
32         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
33           fixes #1468739, enables compilation in --std-c99 mode
34         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
35
36 2006-04-11 Raphael Neider <rneider AT web.de>
37
38         * src/pic/device.c (find_device): removed debug output
39           (list_valid_pics): enabled verbose listing of supported devices
40         * device/include/stdbool.h: define bool as char for pic14/16 as well
41
42 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
43
44         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
45
46 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
47
48         * .version: bumped version to 2.5.6
49         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
50
51 2006-04-06 Raphael Neider <rneider AT web.de>
52
53         * .version: bumped version to 2.5.6 (pic14 ABI changed)
54         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
55         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
56           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
57             pic14_constructAbsMap
58           (pic14printPublics): declare absolute global symbols as global
59           (pic14createInterruptVect),
60         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
61           (newReg): assume new registers unused, use correct name in
62             hashtable (reg->name instead of name), more debugLog output
63         * src/pic/device.h (PIC_device): added fields for verbose output
64         * src/pic/device.c: moved device definition to pic14devices.txt,
65             added routines for runtime parsing of pic14devices.txt,
66             added support for second config word
67         * src/pic/main.c (_process_pragma): removed #pragma maxram,
68           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
69           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
70           (_pic14_parseOptions): moved pCodeInitRegisters here
71           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
72         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
73           (pCodeInitRegisters): rewrapped comments, perpared new approach to
74             handling the pseudo stack
75         * device/lib/Makefile.in: ignore failures in objects-pic16,
76         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
77         * device/lib/pic/NEWS: document new dependency on picXXX.lib
78         * device/lib/pic/Makefile.subdir,
79         * device/lib/pic16/Makefile.subdir: improved clean rules
80         * device/lib/pic/libdev/: NEW, pic14 device libraries
81         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
82         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
83         * device/include/Makefile.in: create subdir and install pic14 headers
84         * device/include/pic/p16f_common.inc: removed unused declarations
85         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
86             PICs from inc2h.pl v1.6,
87             replaced BIT_AT macros with struct declarations
88         * device/include/pic/pic14devices.txt: definition of supported devices,
89             all above improvements contributed by Zik Saleeba, thanks
90         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
91         * support/scripts/sdcc.nsi: also install pic14 device libraries and
92             headers
93
94 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
95
96         * device/include/mcs51/c8051f410.h: added interrupt numbers,
97         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
98           thanks to Charles Olds
99
100 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
101
102         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
103
104 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
105
106         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
107         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
108         * support/regression/bug1464657.c: added, new test
109
110 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
111
112         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
113           version number
114
115 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
116
117         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
118           --no-peep and --peep-file <file> are used don't use default rules but
119           do use the <file>
120
121 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
122
123         * src/mcs51/gen.c (genCall): fixed bug 1457608
124
125 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
126
127         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
128         changes seem to cause (trigger?) problems with the build system.
129
130 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
131
132         * src/SDCCpeeph.c (operandsLiteral): new, added,
133           (callFuncByName): inserted operandsLiteral
134         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
135
136 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
137
138         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
139         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
140
141 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
142
143         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
144           implemented patch 1120823 Thanks to Willy De la Court (normal
145           interrupts need an interrupt number now if they are made critical),
146           and enabled nesting of critical functions though not for gbz80
147           (genCritical, genEndCritical): added functions
148           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
149         * src/z80/mappings.i: added "ei" to all mappings
150
151 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
152
153         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
154         submitted by the Debian SDCC maintainer Aurelien Jarno:
155         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
156         archive with gcc 4.1 on mips and wrote the patch"
157
158 2006-03-16 Raphael Neider <rneider AT web.de>
159
160         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
161           the left operand is shorter than the result (c* = lit-c* + int),
162           fixes bug #1450796
163         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
164           OP_SYMBOL
165
166 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
167
168         * src/.version: increased version number to 2.5.5
169         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
170         linking is done manually in pic16 port's _linkEdit,
171         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
172         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
173         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
174         allocate asmop as AOP_ACC,
175         (aopForRemat): added parameter 'bool result' in function declaration,
176         (pic16_aopGet): return AOP_ACC when accessing WREG,
177         (pic16_popGetTempReg): minor modification,
178         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
179         'pic16_allocWithIdx',
180         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
181         calling function in absolute addresses,
182         (genAssign): take into account AOP_ACC asmop,
183         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
184         * src/pic16/pcoderegs.c: some debug functions and lines added,
185         * src/pic16/ralloc.c (decodeRegType): added but commented out,
186         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
187         register too,
188         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
189         call to allocReg, not by manually allocating a new one,
190         (pic16_assignRegisters): now before going through the register
191         allocating functions mark all registers as free. This eliminates some
192         side effects resulting from peephole parser done earlier in the backbone
193
194 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
195
196         * src/SDCCicode.c (geniCodeLogic),
197         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
198
199 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
200
201         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
202           (genSend): bugfix, do not allocate and free twice,
203           (shiftRLong): handle partially overlapping aops
204         * support/regression/tests/bitopcse.c: fixed warning redefined idata
205
206 2006-03-08 Borut Razem <borut.razem AT siol.net>
207
208         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
209           for pic16
210
211 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
212
213         * support/regression/tests/bug1409955.c: new, added
214         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
215         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
216           (aopForSym, aopOp): increment asmop.allocated if reused,
217           (freeAsmop): decrement asmop.allocated and check for zero instead of
218           using asmop.freed,
219           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
220           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
221            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
222            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
223            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
224            genSignedRightShift, genRightShift, genDataPointerGet,
225            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
226            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
227             in reverse order from allocation,
228           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
229             added swappedLR to keep track
230         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
231           pdata & code for GCC, z80, gbz80 & hc08
232         * support/regression/tests/zeropad.c: moved defines to testfwk.h
233
234 2006-03-08 Raphael Neider <rneider AT web.de>
235
236         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
237
238 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
239
240         * device/include/mcs51/c8051f410.h: new SiLabs mcu
241         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
242         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
243
244 2006-03-06 Borut Razem <borut.razem AT siol.net>
245
246         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
247           made the linker quiet
248
249 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
250
251         * src/pic16/gen.c (genPcall): fixed bug #1443644
252         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
253         which dumps before the function entry point a data byte which represents
254         the number of the local variables used by the specified function, added
255         'xinst' for initial support for Extended Instruction Support,
256         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
257         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
258         port->fun_prefix anymore (may change later),
259         (genFunction, genEndFunction): do not store/restore local registers for
260         _main (this should take care the --main-return command line option in
261         the future),
262         (genOr): removed some legacy pic-port instructions,
263         * src/pic16/genarith.c (genAddLit): re-enabled old code because
264         performing operations with SFR's causes data to be written more than
265         once to each SFR. Perhaps SFRs should be handled in special cases...
266         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
267         pcode.h
268         * src/pic16/main.c (_process_pragma): stack bound checking did not take
269         into account for stack starting position,
270         (struct OPTIONS pic16_optionsTable): added command line argument
271         --extended or -y for Extended Instruction Support,
272         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
273         (deassignLRs): *** perhaps the most important change, old 'for' code
274         (commented out for reference), didn't account for some registers which
275         were left marked 'not free' after a pointer operation. The change
276         reduces register usage a lot in some cases
277
278 2006-03-04 Borut Razem <borut.razem AT siol.net>
279
280         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
281           _clean
282         * support/regression/tests/bug-524697.c: decreased array size for
283           mcs51 to fit into the internal RAM
284         * support/regression/Makefile.in: a little bit more verbose
285
286 2006-03-03 Borut Razem <borut.razem AT siol.net>
287
288         * support/regression/fwk/lib/testfwk.c,
289           support/regression/fwk/include/testfwk.h: introduced function
290           _prints(), nonrecursive _printn(), call _initEmu() from main()
291         * support/regression/ports/gbz80/support.asm,
292           support/regression/ports/ucz80/support.asm,
293           support/regression/ports/z80/support.asm,
294           support/regression/ports/ds390/support.c,
295           support/regression/ports/hc08/support.c,
296           support/regression/ports/host/support.c,
297           support/regression/ports/mcs51/support.c,
298           support/regression/ports/xa51/support.c: added empty _initEmu()
299           function
300         * support/regression/ports/pic16/gpsim.cmd,
301           support/regression/ports/pic16/spec.mk,
302           support/regression/ports/pic16/support.c,
303           support/regression/Makefile.in: added pic16 regression test
304
305 2006-03-01 Raphael Neider <rneider AT web.de>
306
307         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
308           genConstPointerGet): use safe way of generating MOVFF to cover
309             literals as well as registers, fixes bug #1440527
310         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
311             dereference
312           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
313             more correctly, fixes bug #1232186
314           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
315         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
316             gplink guess the correct processor in more cases, applied patch
317             from Till Riedel attached to and fixing bug #1436552
318
319 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
320
321         * support/regression/tests/array.c: added, contains check for #1434401
322         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
323
324 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
325
326         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
327         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
328         * device/include/mcs51/c8051f326.h,
329         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
330         * device/include/mcs51/c8051f000.h,
331         * device/include/mcs51/c8051f018.h,
332         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
333           PCON_IDLE,PCON_STOP and added sfr16 definitions
334
335 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
336
337         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
338           genGetWord): fixed bug 1409955
339
340 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
341
342         * device/include/hc08/mc68hc908gp32.h,
343         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
344
345 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
346
347         * src/SDCCast.c (constExprValue): return NULL if not a value
348         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
349         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
350         * support/regression/tests/bitfields.c: enabled signed bitfield for all
351
352 2006-02-13 Borut Razem <borut.razem AT siol.net>
353
354         * src/regression/ptrarg.c: added, fails due to bug #1430967
355         * src/regression/Makefile: ptrarg.c added, ...
356
357 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
358
359         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
360         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
361
362 2006-02-11 Borut Razem <borut.razem AT siol.net>
363
364         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
365           print "Processor: xxx" message to stdout only if --verbose
366
367 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
368
369         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
370         * support/regression/tests/bug1426356.c: added
371         * support/regression/tests/bitfields.c: removed 2 tests
372
373 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
374
375         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
376         * device/include/mcs51/c8051f330.h,
377         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
378           PCON_IDLE,PCON_STOP and added sfr16 definitions
379         * device/lib/_divsint.c,
380         * device/lib/_divuint.c,
381         * device/lib/_divulong.c,
382         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
383           register bank bug for small stackauto
384
385 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
386
387         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
388
389 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
392         * all.dsp: corrected several bin paths
393         * device/include/mcs51/c8051f120.h,
394         * device/include/mcs51/c8051f300.h,
395         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
396           to PCON_IDLE,PCON_STOP
397         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
398         * device/lib/printf_large.c (output_float): fixed bug 1388703
399         * support/regression/tests/bug1057979.c: added test for bug 1388703
400
401 2006-02-08 Raphael Neider <rneider AT web.de>
402
403         * src/pic/pcode.c (pciTRIS): fixed typo,
404           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
405           (LinkFlow): fixed handling of flows that end in a call,
406           (ReuseReg): perform safety check earlier
407         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
408             to work with flows at the beginning of a pBlock,
409             fixes #1426557 (Symbol not previously defined),
410           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
411             usage information
412           (RemoveUnusedRegisters): update register usage info
413         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
414             created, reuse existing ones instead
415         * src/pic/gen.c (genPcall): fixed #1424719
416
417 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
418
419         * link/z80/lkmain.c,
420         * link/z80/lklex.c,
421         * link/z80/lkdata.c,
422         * link/z80/aslink.h: fixed build on current cygwin:
423         replaced getline() by lk_getline()
424
425 2006-02-01 Borut Razem <borut.razem AT siol.net>
426
427         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
428           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
429           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
430           src/regression/bool1.c, src/regression/bool2.c,
431           src/regression/bool3.c, src/regression/call1.c,
432           src/regression/compare.c, src/regression/compare10.c,
433           src/regression/compare2.c, src/regression/compare3.c,
434           src/regression/compare4.c, src/regression/compare5.c,
435           src/regression/compare6.c, src/regression/compare7.c,
436           src/regression/compare8.c, src/regression/compare9.c,
437           src/regression/configword.c, src/regression/for.c,
438           src/regression/inline.c, src/regression/mult1.c,
439           src/regression/nestfor.c, src/regression/or1.c,
440           src/regression/pointer1.c, src/regression/ptrfunc.c,
441           src/regression/rotate1.c, src/regression/rotate2.c,
442           src/regression/rotate3.c, src/regression/rotate4.c,
443           src/regression/rotate5.c, src/regression/rotate6.c,
444           src/regression/rotate7.c, src/regression/string1.c,
445           src/regression/struct1.c, src/regression/sub.c,
446           src/regression/sub2.c, src/regression/switch1.c,
447           src/regression/while.c, src/regression/xor.c,
448           src/regression/create_stc, src/regression/simulate,
449           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
450           regression tests
451         * src/regression/gpsim_assert.h: added
452
453 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
454
455         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
456         ((void (code *) (void)) 0) ();
457         * as/hc08/aslex.c,
458         * as/hc08/aslink.h,
459         * as/hc08/asm.h,
460         * as/hc08/asmain.c,
461         * as/hc08/lkdata.c,
462         * as/hc08/lklex.c,
463         * as/hc08/lkmain.c,
464         * as/mcs51/aslex.c,
465         * as/mcs51/aslink.h,
466         * as/mcs51/asm.h,
467         * as/mcs51/asmain.c,
468         * as/mcs51/lkdata.c,
469         * as/mcs51/lklex.c,
470         * as/mcs51/lkmain.c,
471         * as/z80/aslex.c,
472         * as/z80/asm.h,
473         * as/z80/asmain.c: fixed build on current cygwin:
474         replaced getline() by as_getline()
475
476 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
477
478         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
479         declarator in the symbol chain
480         * src/SDCCsymt.h,
481         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
482         parameter list for function pointers
483         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
484         * support/regression/tests/bug-716242.c: added
485
486 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
487
488         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
489         offset if possible
490         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
491
492 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
493
494         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
495         inifinitely recurseable, added static
496         * support/regression/tests/bug-1408066.c: added
497
498 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
499
500         * src/SDCCicode.h,
501         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
502         renamed, added possibility to create "postLoopLbl"-labels
503         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
504         newiTempLoopHeaderLabel
505         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
506         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
507         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
508         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
509         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
510         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
511         (basicInduction): fixed bug #136564, made static,
512         (loopInduction): changed parameter of basicInduction, made static,
513         (addPostLoopBlock): added
514         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
515         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
516         findLoopEndSeq
517         * support/regression/tests/bug-136564.c: added
518         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
519         --std-sdcc99 to LIBSDCCFLAGS
520
521 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
522
523         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
524         while loop
525         * support/regression/tests/bug-1406131.c: added
526
527 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
528
529         * src/SDCCast.c (decorateType): fix promotion of unary minus
530         * src/SDCCsymt.c (computeType): beautified
531         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
532         (valUnaryPM, valComplement): fix sign and promotion,
533         (valNot): ANSI: result type is int (SDCC: unsigned char)
534         * support/regression/tests/uminus.c: speedup by removing superflous
535         test case 'int'
536         * support/regression/tests/onebyte.c: added promotion and signedness
537         tests for unary minus
538         * support/regressions/tests/bug-477927.c: disable warning about
539         uninitialized variables
540         * support/regression/tests/not.c: added
541
542 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
543
544         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
545         * src/mcs51/gen.c (gen51Code): show final register usage after
546         fillGaps in asm with --i-code-in-asm
547         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
548         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
549         incUsed, rliveClear, adjustIChain): made static,
550         (setFromRange): excluded because it's unused,
551         (findPrevUseSym, markWholeLoop): added,
552         (findPrevUse): rewritten; fixes bug 895992; now a complete search
553         through all branches of predecessors enables sdcc to emit the warning
554         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
555         (rlivePoint): made static, added parameter emitWarnings which is only
556         true during the first run out of two,
557         (findRecursiveSucc, findRecursivePred): removed,
558         (computeLiveRanges): made static, added parameter emitWarnings,
559         (dumpIcRlive): added for debugging only
560         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
561         removed prototype of setFromRange()
562         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
563         in call of computeLiveRanges()
564         * support/regression/tests/bug-895992.c: added
565         * support/regression/tests/bug-971834.c: added
566         * support/valdiag/tests/bug-895992.c: added
567         * support/valdiag/tests/bug-971834.c: added
568
569 2005-12-18 Raphael Neider <rneider AT web.de>
570
571         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
572           (genUnpackBits): improved code for direct operands,
573           (genPackBits): improved code for literal assignment to bitfields
574             and for direct destination operands (no FSR indirection),
575             prevented redundant AND, fixes #1362800,
576           (AccLsh): added parameter to disable masking of the result
577         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
578           skip instructions with side-effects (like incfsz),
579           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
580         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
581         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
582           fixes #1375263
583
584 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
585
586         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
587         volatile variables as spill location
588
589 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
590
591         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
592         replacing literals
593         * support/regression/tests/bug-1376320.c: added
594
595 2005-12-08 Raphael Neider <rneider AT web.de>
596
597         * src/pic/device.c: renamed is_shared to pic14_is_shared
598         * src/pic/gen.c (genIfx): re-enabled handling of sbits
599         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
600           (is_valid_identifier): added for above workaround
601
602 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
603
604         * device/lib/Makefile.in: fixed to enable port-specific-objects
605         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
606           char, thanks Hubert Sack
607         * doc/sdccman.lyx: documented --xstack-loc,
608           elaborated a bit more on interrupts and pitfalls,
609           removed "setjmp/longjmp unsupported",
610           documented some unsupported C99 features
611         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
612         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
613           if, thanks Hubert Sack
614         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
615         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
616           make make_library
617         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
618           regression tests can report resource usage (rfe 700441)
619         * support/regression/collate-results.py: report resource usage
620         * support/regression/ports/ds390/spec.mk,
621         * support/regression/ports/hc08/spec.mk,
622         * support/regression/ports/mcs51/spec.mk,
623         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
624         * support/regression/ports/ds390/uCsim.cmd,
625         * support/regression/ports/hc08/uCsim.cmd,
626         * support/regression/ports/mcs51/uCsim.cmd,
627         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
628         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
629           library, use the default one
630         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
631           building the library
632
633 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
634
635         * config.dsp: added dependency on .version and configure_vc.awk
636         * device/include/setjmp.h: updated for --stack-auto and --xstack
637         * device/include/mcs51/at89c51snd1c.h: corrected line endings
638         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
639         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
640         * device/lib/libsdcc.lib: added _setjmp
641         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
642           (decorateType): fixed bug 1372851,
643           (optimizeGetHbit): fixed warning
644         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
645           array initialisation
646         * support/regression/tests/bug1057979.c: added test for bug 1358192
647         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
648
649 2005-12-03 Borut Razem <borut.razem AT siol.net>
650
651         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
652           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
653
654 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
655
656         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
657         createIval): implement symbol independant "flexible array member",
658         (createIvalCharPtr): implemented flexible array initialisation with a
659         string
660         * src/SDCCsymt.c (copyStruct): removed,
661         (getSize): fixed misleading comment,
662         (getAllocSize): removed, the additional allocation size is now in
663         sym->flexArrayLength,
664         (checkStructFlexArray): new, syntax checks for flexible array members,
665         (compStructSize): added syntax checks for "flexible array members"
666         (copyStruct): removed,
667         (copyLinkChain): removed inefficient fix for bug 770487
668         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
669         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
670         symbol->flexArrayLength
671         * src/SDCCerr.c,
672         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
673         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
674         * support/regression/tests/structflexarray.c: added
675         * support/valdiag/tests/structflexiblearray.c: added
676
677 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
678
679         * src/SDCCast.c (decorateType): fixed bug 1368489
680         * support/Util/SDCCerr.c,
681         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
682
683 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
684
685         * device/include/mcs51/at89c51snd1c.h: added file submitted by
686           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
687
688 2005-11-27 Borut Razem <borut.razem AT siol.net>
689
690         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
691           support/cpp2/mkdeps.h: added command line option
692           -obj-ext=<extension> to SDCPP to define object file externion, used
693           for generation of make dependencies (-M)
694         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
695
696 2005-11-26 Borut Razem <borut.razem AT siol.net>
697
698         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
699           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
700           added pic and pic16 libraries
701
702 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
703
704         * device/include/float.h: Corrected typo in prototype of __fsgt
705
706 2005-11-25 Borut Razem <borut.razem AT siol.net>
707
708         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
709           added creation of model-mcs51-stack-auto libraries
710
711 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
712
713         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
714         and fields-list too
715         * src/SDCCast.c (createIvalArray): removed obsolete comment
716
717 2005-11-24 Borut Razem <borut.razem AT siol.net>
718
719         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
720           added missing device/lib/mcs51/crt*.asm sources
721
722 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
723
724         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
725
726 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
727
728         * device/lib/_fs2schar.c,
729         * device/lib/_fs2sint.c,
730         * device/lib/_fs2slong.c: optimized inline asm
731
732 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
733
734         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
735           Better handling of floats between -1.0 and 0.0.
736
737 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
738
739         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
740           (the missing "if"s prohibited removal of redundant labels)
741
742 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
743
744         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
745           Properly convert floats between -1.0 and 0.0 to long, int, and char
746           types (max integer value of negative floats tends to zero).
747         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
748           Removed changes made so to work properly with floats between
749           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
750           and _fs2char.c
751
752 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
753
754         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
755         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
756         (genCast) cosmetic change
757         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
758         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
759         from mcs51
760         * support/regression/tests/bitfields (testSignedBitfields): added
761
762 2005-11-18 Borut Razem <borut.razem AT siol.net>
763
764         * sdcc/device/lib/Makefile.in: remove all unnecessary files
765         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
766           introduced SILENT option to make building of pic16 libraries less
767
768 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
769
770         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
771           Now they work properly with floats between -1.0 and 0.0
772         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
773
774 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
775
776         * src/SDCCicode.c (printOperand): added missing else
777
778 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
779
780         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
781         reformatted for better readability
782         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
783         signed bitfields
784
785 2005-11-17 Borut Razem <borut.razem AT siol.net>
786
787         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
788           introduced SILENT option to make building of pic16 libraries less
789           verbose - used for nightly snapshot build
790         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
791           available on Win32 platforms.
792         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
793           medium, large, pic and pic16
794
795 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
796
797         * device/lib/printf_large.c: Temporary patch for bug 1358192:
798           printf("%f"...) sets fraction to zero.
799
800 2005-11-16 Raphael Neider <rneider AT web.de>
801
802         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
803           fixes #1357221
804         * src/pic/gen.c (genIfx): implemented for CARRY bit
805         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
806           to generic pointers, fixes #1357332,
807           (pic16_movLit2f): NEW,
808           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
809
810 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
811
812         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
813
814 2005-11-11 Raphael Neider <rneider AT web.de>
815
816         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
817         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
818           compute pointer's type from operand,
819           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
820           improved single bit reads, fixes bug #1353379
821
822 2005-11-09 Borut Razem <borut.razem AT siol.net>
823
824         * support/scripts/sdcc.nsi: added lib/pic to the package
825
826 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
829
830 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
831
832         * support/regression/tests/bug1348008.c: added
833         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
834         * support/regression/tests/bug1337835.c: updated comment
835
836 2005-11-06 Borut Razem <borut.razem AT siol.net>
837
838         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
839           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
840           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
841           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
842           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
843           dynamic construction of cl_error_class and derivates - 2.nd try
844
845 2005-11-05 Borut Razem <borut.razem AT siol.net>
846
847         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
848           bug, which caused Bus Errors on sparc solaris
849
850 2005-11-04 Borut Razem <borut.razem AT siol.net>
851
852         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
853           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
854           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
855           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
856           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
857           and derivates to resolve the initialization problem on OSX
858
859 2005-11-02 Borut Razem <borut.razem AT siol.net>
860
861         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
862           corrected typo - #include <winsock2.h>
863
864 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
865
866         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
867           (_asxxxx_mapping): added org directive for future enhancements
868
869 2005-11-01 Borut Razem <borut.razem AT siol.net>
870
871         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
872           enabled sockets on WIN32
873         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
874
875 2005-10-31 Borut Razem <borut.razem AT siol.net>
876
877         * support/regression/generate-cases.py: escape backslashes in {testcase}:
878           WIN32 backslash path delimiters should be escaped when used in C strings
879         * support/regression/tests/bitfields.c: exclude failing assertions for
880           __CYGWIN32__ and __MINGW32__ hosts
881
882 2005-10-30 Borut Razem <borut.razem AT siol.net>
883
884         * src/SDCCutil.c: corrected double comparison typo
885
886 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
887
888         * device/lib/medium/Makefile: added for new memory model medium
889         * device/include/asm/mcs51/features.h: updated for medium/pdata
890         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
891           added Multiply & Accumulate sbit's and MAC0_PAGE define
892         * device/include/mcs51/c8051f300.h: added sfr16 definitions
893         * device/include/mcs51/c8051f310.h: added sfr16 definitions
894         * device/lib/_mullong.c: update for medium model
895         * device/lib/incl.mk: added medium model
896         * doc/sdccman.lyx: documented medium model
897         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
898         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
899         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
900         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
901           (allocParms): set SCLS and OCLS to pdata for medium model
902         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
903           for pdata,
904           (powof2): return <0 if not power of 2
905         * src/avr/gen.c (genBitWise): use updated powof2
906         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
907           (shiftR2Left2Result): small optimization in setup, save acc when storing,
908           (shiftLLeftOrResult): use B if necessary
909         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
910         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
911         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
912         * support/regression/Makefile.in: added test-mcs51-medium
913         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
914
915 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
916
917         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
918         specifier unsigned
919         * device/lib/time.c (mktime): fixed bug 1334315
920
921 2005-10-28 Raphael Neider <rneider AT web.de>
922
923         * device/include/pic/p16f_common.inc: added common declarations
924         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
925
926 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
927
928         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
929           (aopPutUsesAcc): added to predict accumulator use,
930           (assignResultValue): save acc if necessary,
931           (genMinusDec): store result if indirectly addressed,
932           (genDivOneByte):  save acc if necessary,
933           (movLeft2Result): bugfix if left already in acc,
934           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
935             attention to accumulator use (esp. pdata),
936           (genReceive): receive pdata correctly
937         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
938         * src/SDCCicode.h: added isOperandInPagedSpace prototype
939
940 2005-10-27 Raphael Neider <rneider AT web.de>
941
942         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
943
944 2005-10-27 Raphael Neider <rneider AT web.de>
945
946         * .version: changed version to 2.5.4
947         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
948         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
949           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
950             arithmetics support routines
951         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
952         * device/lib/Makefile.in: also create installdir for pic
953
954         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
955           pic14 port as well
956         * src/pic/device.c (dump_sfr): rewritten to delegate register
957           placement to the linker (use `extern sym' rather than sym EQU addr),
958           (validAddress): fixed to check last specified address
959         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
960           (popGetLit): truncate literal value to 8 bit,
961           (popGet): moved assert to more appropriate place
962           (popGetExternal): create pCode operand from and mark the according
963             symbol as being `extern'
964           (popGetAddr): added sanity check on immediate's offset, provide
965             GPOINTER tag on demand
966           (aopPut): fixed for immediates,
967           (mov2w_op): move operand's address or contents to WREG (depending on
968             operand type), safer variant of mov2w,
969           (movwf,call_libraryfunc): NEW, handy abbreviations,
970           (get_argument_pcop,get_return_val_pcop,pass_argument,
971           get_returnvalue): interface for accessing function parameters and
972             return values,
973           (assignResultValuei,genRet): use new parameter/return value interface
974           (pic14_getDataSize): back to old version handling generic pointers,
975           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
976             provided implementation and/or fixed old one,
977           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
978             calls, removed legacy 8051 reference code
979           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
980           (loadSignToC): NEW, move the operands sign bit to CARRY,
981           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
982             genRightShiftSigned, accepts negative shift counts,
983           (setup_fsr): load FSR and adjust IRP (indirect memory access),
984           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
985             generic pointers, __data pointers and __code pointers,
986           (genUnpackBits,genPackBits): rewritten to work with generic pointers
987             and signed bitfields, limit bitfields to 8 bit,
988           (genDataPointerGet): fixed number of bytes read,
989           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
990           (genPointerGet,genPointerSet): fixed handling of __code pointers,
991             pointers to constant data are no longer assumed to point to __code
992             space, removed invalid pointer types,
993           (bitpatternFromVal): retrieve the PICs representation of an integer
994             or float literal,
995           (genDataPointerSet): fixed assigning to po_immediate operands,
996           (genGenPointerSet): implemented as library call,
997           (genIfx): fixed incorrect condition,
998           (genAddrOf): limit generic pointers' addresses to 2 bytes,
999             provide GPOINTER tag according to destination's storage class,
1000           (genCast): added code to handle casting to generic pointers, added
1001             sign-/zero extension of the result
1002           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1003         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1004         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1005           extend the result
1006         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1007           address/register resides in the shared banks
1008           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1009             put all variables into separate sections (have the linker arrange
1010             them)
1011           (picglue): put init code and interrupt handlers in separate sections
1012         * src/pic/main.c: added port specific options table, modified to PORT
1013           structure to make GPOINTERs 3 byte, added pic14_options
1014           (_pic14_do_link): private linking routine (update paths to libraries,
1015             add libsdcc.lib by default)
1016         * src/pic/main.h: declare pic14_options
1017         * src/pic/pcode.c: fixed instructions i/o relations,
1018           (RegCond): reverted to correct version,
1019           (newpCodeOpLit): truncate literals to 8 bit,
1020           (genericPrint): added debug output,
1021           (getRegFromInstruction): fixed for various operand types, simplified
1022           (BuildFlow): fixed broken handling of isntructions with labels
1023           (LinkFlow): start at last instruction in flow (skip trailing comments),
1024             pass the flow on to the next instruction after CALL
1025           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1026           (insertPCodeInstruction): fixed inserting after a skip instruction,
1027           (DoBankSelect): fixed for labeled instructions
1028           (OptimizepBlock): honor --nopeep switch
1029           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1030         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1031         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1032           (pCodeOptime2pCodes): allow disabling this optimization via
1033             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1034             but is still buggy), started implementation of a dataflow based
1035             pCode optimization (CSE + dead code elimination)
1036           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1037         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1038           names are independant of the stack location and therefore portable across
1039           devices
1040
1041 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1042
1043         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1044           (selectSpil): fixed bug 1337835 by not spilling bit variables
1045         * support/regression/tests/bug1337835.c: added test for this bug
1046         * src/mcs51/peeph.def: restart after rule 3.c,
1047           addded rules 263.x to optimize loading constants
1048
1049 2005-10-26 Raphael Neider <rneider AT web.de>
1050
1051         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1052         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1053           (genAssign): emit warning when casting literals to generic pointer
1054             type, also applies when taking the address of a fixed variable,
1055           (genCast): improved casting to generic pointers
1056         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1057           extern variables, added verbose error message
1058         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1059
1060 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1061
1062         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1063         carry must be complemented too
1064         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1065         could be emitted by genMinus
1066         * src/SDCCval.c (constVal): fixed bug 1305065
1067
1068 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1069
1070         * src/SDCCast.c (addCast): added promotion for bit variables
1071         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1072         promotion casts + optimisation
1073         (optimizeGetWord): fix warning 'i' might be used uninitialized
1074         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1075         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1076
1077 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1078
1079         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1080         all chars are promoted to int; promotion should be handled in SDCCast.c
1081
1082 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1083
1084         * device/lib/_strcmp.c: Fixed bug 1326457
1085
1086 2005-10-11 Raphael Neider <rneider AT web.de>
1087
1088         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1089         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1090
1091 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1092
1093         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1094         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1095
1096 2005-10-04 Raphael Neider <rneider AT web.de>
1097
1098         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1099           device/lib/pic16/pics.all: added pic18f1320
1100         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1101
1102 2005-09-30 Raphael Neider <rneider AT web.de>
1103
1104         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1105         * src/pic16/devices.inc: NEW, provides device descriptions
1106         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1107
1108 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1109
1110         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1111           GETHBIT
1112
1113 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1114
1115         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1116           documented Any Order Bit, Higher Order Byte and Higher Order Word
1117         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1118         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1119           (optimizeGetAbit): new, to get any bit, not only the high bit,
1120           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1121           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1122           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1123           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1124             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1125             GETABIT, GETBYTE, GETWORD: decorate them,
1126           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1127           (ast_print): added GETABIT, GETBYTE, GETWORD
1128         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1129         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1130           (geniCodeBinary): new generic binary icode,
1131           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1132         * src/port.h: updated comment for PORT.hasExtBitOp
1133         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1134           (genGetByte): new, to get a single byte,
1135           (genGetWord): new, to get a word from a long,
1136           (gen51Code): added GETABIT, GETBYTE, GETWORD
1137         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1138
1139 2005-09-23 Raphael Neider <rneider AT web.de>
1140
1141         * configure.in, configure: have device/lib/pic configured
1142         * device/lib/Makefile.in: added model-pic14
1143         * device/lib/clean.mk: added pic/ to clean rule
1144         * device/lib/pic: added rudimentary pic14 library providing support
1145           functions for multiplication/division/generic pointer access
1146         * src/SDCCopt.c (convilong): mark support functions as extern
1147           for pic14 port as well
1148         * src/pic/gen.c (genMult): added assertions,
1149           (genpic14Code): emit warning on unhandled iCodes
1150         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1151         * src/pic/pcode.c (pCodeOpCopy),
1152         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1153           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1154           SFR_REGISTER}), made safe for future extensions
1155         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1156           instructions even if preceeded by SKIP instructions (also remove
1157           them); removed unused code
1158         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1159           prevents leaving parts of the structure uninitialized after copying
1160
1161 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1162
1163         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1164           ago by me
1165         * support/regression/tests/addsub.c: added test for the bug
1166
1167 2005-09-21 Raphael Neider <rneider AT web.de>
1168
1169         * device/include/pic16/pic18f1220.h,
1170           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1171         * device/lib/pic16/Makefile.rules: added missing opening paren
1172         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1173           are provided in genutils.c,
1174           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1175           operand/result sizes,
1176           (genCmp): assert on NULL pointers first, then check deref'ed values
1177         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1178           result size
1179
1180 2005-09-18 Raphael Neider <rneider AT web.de>
1181
1182         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1183           as these are now unused,
1184           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1185         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1186           local, avoids uninitialized pointer dereference on r->name
1187         * src/pic16/ralloc.c (newReg): fixed indentation
1188
1189 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1190
1191         * src/SDCCval.c (constVal): fixed bug 730366
1192         * support/Util/SDCCerr.c,
1193         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1194
1195 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1196
1197         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1198
1199 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1200
1201         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1202
1203 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1204
1205         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1206           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1207         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1208           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1209         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1210         * packihx/packihx.c (hexDigit): made c unsigned char
1211         * as/mcs51/lklibr.c (fndsym),
1212         * link/z80/lkgb.c (gb),
1213         * link/z80/lklibr.c (fndsym),
1214         * link/z80/lkrloc.c (relr),
1215         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1216         * src/SDCC.lex (checkCurrFile, process_pragma),
1217         * src/SDCCglue.c (spacesToUnderscores),
1218         * src/SDCCmain.c (setParseWithComma, processFile),
1219         * src/asm.c (tvsprintf, printCLine),
1220         * src/avr/gen.c (emitcode, aopPut),
1221         * src/ds390/gen.c (emitcode),
1222         * src/hc08/gen.c (emitcode, emitinline),
1223         * src/mcs51/gen.c (emitcode, genInline),
1224         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1225           tokenizeLineNode),
1226         * src/pic/ralloc.c (debugLog),
1227         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1228           tokenizeLineNode),
1229         * src/pic16/ralloc.c (debugLog),
1230         * src/z80/main.c (_process_pragma):
1231            made all ctype.h function calls safe
1232         * src/SDCCopt.c: include math.h for fabs
1233         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1234           and used them throughout the code to make ctype.h function calls safe
1235         * src/ds390/main.c (asmLineNodeFromLineNode),
1236         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1237         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1238            unsigned char*
1239         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1240           (newpCodeAsmDir): made ctype.h function calls safe
1241         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1242           pic16_emitcode):  made lbp unsigned char*
1243         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1244           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1245         * src/xa51/gen.c (emitcode),
1246         * src/z80/gen.c (_emit2): made lbp unsigned char*
1247         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1248            char*
1249
1250 2005-09-05 Raphael Neider <rneider AT web.de>
1251
1252         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1253           access bank splitpoint
1254
1255 2005-09-05 Raphael Neider <rneider AT web.de>
1256
1257         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1258
1259 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1260
1261         * .version: changed to version 2.5.3
1262         * doc/sdccman.lyx: changed version to 2.5.3,
1263           documented --codeseg and --constseg and pragma codeseg and constseg,
1264           documented bit parameters (reentrant) and bit returning
1265         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1266            currFunc->recvSize, but is this ok for all ports?
1267           (ast2iCode): result of ~ on unsigned char must be cast to int for
1268            bool to work
1269         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1270           function pointers in bit space
1271         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1272           (processFuncArgs): call port.reg_parm() with reentrancy info
1273         * src/port.h,
1274         * src/avr/main.c,
1275         * src/ds390/main.c,
1276         * src/hc08/main.c,
1277         * src/pic/main.c,
1278         * src/pic16/main.c,
1279         * src/xa51/main.c,
1280         * src/z80/main.c: port.reg_parm prototype extended with
1281           "bool reentrant" parameter
1282         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1283           options.stackAuto for allocating bit register parameters
1284         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1285           (genSend): set BitBankUsed if it is,
1286           (selectRegBank): factored out of genCall for use in genPcall,
1287           (genCall): removed redundant dtype assignmen, use selectRegBank,
1288           (genPcall): handle returning in Carry properly, save in F0 if needed,
1289           (genReceive): handle bit register parameters
1290         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1291           (mcs51_assignRegisters): enable bit registers for all reentrant
1292            functions and don't set BitBankUsed unconditionally
1293         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1294         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1295         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1296
1297 2005-08-27 Borut Razem <borut.razem AT siol.net>
1298
1299         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1300         ppc-osx (Darwin) does not support -u option. It seems that it is
1301         supported only on Linux - GNU cp
1302
1303 2005-08-25 Borut Razem <borut.razem AT siol.net>
1304
1305         * sim/ucsim/gui.src/serio.src/Makefile.in,
1306           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1307           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1308           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1309           install and strip, since the strip at /usr/ccs/bin should be used
1310           on solaris
1311
1312 2005-08-24 Borut Razem <borut.razem AT siol.net>
1313
1314         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1315
1316 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1317
1318         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1319         ffffffffu
1320
1321 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1322
1323         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1324         * as/mcs51/lkmain.c (link_main): fixed warning
1325         * device/include/stdbool.h: ds390 has no advanced bit support yet
1326         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1327         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1328         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1329           and updated their macros
1330         * src/SDCCval.c (constVal): updated comment for renamed b_long
1331
1332 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1335         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1336           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1337           (oprio): set priority for '['
1338         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1339            and adb_24_bit
1340         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1341         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1342         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1343         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1344           added overlayable BIT_BANK area
1345         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1346           (summary2): explain 'T' in legenda
1347         * as/mcs51/lkrloc.c: replaced old K&R style,
1348           (relr): added R_BIT processing,
1349           (errmsg): added "Bit-addressable relocation error",
1350           (adb_bit): added for converting from byte- to bit-addressable space,
1351           (adb_24_bit): added for converting from byte- to bit-addressable space
1352         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1353            used in reentrant functions now even as return value
1354         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1355         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1356           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1357         * src/SDCCglobl.h: added indicator BitBankUsed
1358         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1359            the bit registers b0-b7
1360         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1361           (geniCodeCast): fixed bug 1263853,
1362           (geniCodeLogicAndOr): put result in bool or char,
1363           (geniCodeReceive): added parameter func for accessing the return type,
1364           (geniCodeFunctionBody): pass func to geniCodeReceive
1365         * src/SDCCmain.c: added indicator BitBankUsed
1366         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1367         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1368           (checkSClass): don't put automatic bool/bit on stack,
1369           (checkFunction): removed check on function cannot return bit
1370         * src/SDCCsymt.h: added newBoolLink prototype
1371         * src/mcs51/gen.c (rb1regs): added bit registers,
1372           (movc): created for assigning to carry,
1373           (pushReg, popReg): created for pushing registers,
1374           (sameRegs): check both AOP_REG and AOP_CRY types,
1375           (aopOp): handle bit registers,
1376           (aopPut): optimization no self-assign,
1377           (saveRegisters): push reg->base (bits) only once for bit registers,
1378            and use pushReg,
1379           (unsaveRegisters): pop reg->base only once and use popReg,
1380           (assignResultValue): added parameter func and return in carry for bits,
1381           (genIpush): optimization no reload in A if not changed,
1382           (genSend): bit parameters in reentrant functions are passed in bit
1383            registers by first assigning to bits in B, then save registers and
1384            copy B to bits,
1385           (genCall): handle returning in Carry properly, save it in F0 if needed,
1386           (genPcall): updated assignResultValue call, this is not safe yet for bit
1387            returning function !!!
1388           (genFunction): don't generate equ's for bit registers and use pushReg,
1389           (genEndFunction): take care of bit returning functions and use popReg,
1390           (genRet): return bit in Carry,
1391           (genIfx): optimize bit registers and other directly addressable bits,
1392           (genReceive): updated assignResultValue call
1393         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1394           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1395            registers when using stack-auto
1396         * src/mcs51/ralloc.c (_G): added allBitregs,
1397           (regs8051): added the bit registers,
1398           (createStackSpil): use macro IS_BIT,
1399           (getRegBit): added to allocate a bit register, else spill,
1400           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1401           (updateRegUsage): factored out to ease stepping while debugging,
1402           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1403            also allocate bit registers,
1404           (fillGaps): handle bit registers,
1405           (findAllBitregs): added to create bit vector with all bit registers,
1406           (mcs51_allBitregs): returns this bit vector,
1407           (mcs51_assignRegisters): when using stack-auto use bit registers for
1408            passing parameters and creating local variables
1409         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1410
1411 2005-08-22 Borut Razem <borut.razem AT siol.net>
1412
1413         * device/lib/Makefile.in: replaced find option -or with -o
1414           to make it run on solaris
1415
1416 2005-08-22 Raphael Neider <rneider AT web.de>
1417
1418         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1419           fixes #1265442 (crash on Solaris)
1420
1421 2005-08-20 Borut Razem <borut.razem AT siol.net>
1422
1423         * configure, configure.in: added tests for libsocket and libnsl libraries,
1424           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1425           from support/regression/Makefile.in
1426         * support/regression/Makefile.in: added
1427         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1428         * sim/ucsim/libtool: regenerated on sparc-solaris
1429         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1430           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1431           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1432           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1433           sparc-solaris, which doesn't use GNU ld linker
1434         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1435         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1436
1437 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1438
1439         * src/mcs51/peeph.def: updated comments
1440
1441 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1442
1443         * device/lib/_gptrget.c,
1444         * device/lib/_gptrput.c: slightly shorter
1445         * doc/sdccman.lyx: incremented version
1446         * src/mcs51/peeph.def: moved peephole comments to the line of first
1447           change to better keep line correlation, reanimated 186.e
1448         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1449
1450 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1451
1452         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1453           David Saxton with quotes around file name.
1454
1455 2005-08-15 Borut Razem <borut.razem AT siol.net>
1456
1457         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1458           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1459           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1460           make tests run on x86_64 platform
1461
1462 2005-08-13 Raphael Neider <rneider AT web.de>
1463
1464         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1465           as it might be executed DURING a build (parallel make is wonderful)
1466
1467 2005-08-13 Raphael Neider <rneider AT web.de>
1468
1469         * device/lib/Makefile.in (port-specific-objects-pic16):
1470           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1471         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1472           dependency
1473         * device/lib/pic16/Makefile.rules: build subdirs before creating
1474           the library, removed builddir rule, create $(builddir) early in
1475           recurse rule, use empty recurse rule for leaf directories
1476         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1477           mkdir errors (race condition), removed duplicate suffix "hex"
1478           from clean rules
1479         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1480         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1481           prevents mkdir -p from aborting on Alpha
1482
1483 2005-08-12 Raphael Neider <rneider AT web.de>
1484
1485         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1486           db-statements in order to allow for arrays of pointers in code
1487           sections to be placed without interspersed 0-padding, fixes
1488           bug #1256215
1489         * (emitStatistics): fixed division by zero for pic18f1220
1490         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1491           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1492         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1493         * (pic16_pCodeConstString): keep track of already emitted string
1494           literals to prevent "duplicate definitions of symbol _str_NR"
1495         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1496           debug message
1497         * device/lib/Makefile.in: ignore failing PIC16 library builds
1498         * device/lib/pic16/Makefile: do not build if gputils are missing
1499         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1500
1501 2005-08-10 Raphael Neider <rneider AT web.de>
1502
1503         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1504           my last commit)
1505
1506 2005-08-10 Raphael Neider <rneider AT web.de>
1507
1508         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1509           Rokas' patch to add the new fixed point type "__fixed16x16"
1510         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1511           functions for __fixed16x16 arithmetics
1512         * device/lib/pic16: reimplemented the build system to support
1513           a separate build directory, better handling of libio (create
1514           the library in a separate subdir for each architecture) and
1515           easier configuration (centralized in Makefile.common)
1516
1517 2005-08-07 Raphael Neider <rneider AT web.de>
1518
1519         * src/pic16/gen.c (genrshTwo): fixed sign extension
1520         * src/pic16/device.c: added pic18f2320, 4220 and 4320
1521         * device/include/pic16/pic18f2220.h: changed some bit definitions,
1522           added T0CONbits
1523         * device/include/pic16/pic18f4220.h: NEW, header for
1524           pic18f4220 and pic18f4320
1525         * device/include/pic16/pic18fregs.h: added new devices,
1526           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1527         * device/include/pic16/signal.h: resolved name clashes
1528           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1529           to also allow testing for interrupt enable bits, added
1530           comments on how to use the macros
1531         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1532         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1533           register definitions for the devices
1534         * device/lib/pic16/pics.all: added new devices
1535         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1536           allocated memory
1537         * device/lib/pic16/libc/stdlib/memfree: do not count
1538           the block header as free memory
1539         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1540           simplified and added missing end-of-blocklist-marker
1541           (reported by Peter Onion, fixes #1252814)
1542         * (_mergeHeapBlock): fixed loop condition
1543         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1544           len==0, restructured code
1545         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1546           up a bit, reduced bitfield accesses, prevent endless loops
1547           in case of heap corruption
1548         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1549           "unreferenced arguments/must return a value" warnings
1550         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1551           replaced BAUDREG with SPBRG
1552         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1553           device/lib/pic16/debug/gstack/gstack.c: replaced
1554           _naked, _asm, _endasm with __naked, __asm, __endasm
1555
1556 2005-08-05 Raphael Neider <rneider AT web.de>
1557
1558         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1559           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1560
1561 2005-08-05 Borut Razem <borut.razem AT siol.net>
1562
1563         * device/lib/Makefile.in: added missing ';'
1564         * configure: removed ^M characters
1565
1566 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1567
1568         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1569           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1570           License
1571
1572 2005-08-04 Borut Razem <borut.razem AT siol.net>
1573
1574         * configure.in: pic16 libraries build 2nd try - enable running
1575           configure in device/lib/pic16
1576         * configure: regenerated from configure.in
1577         * device/lib/Makefile.in: create $(PORT)/bin directory
1578
1579 2005-08-03 Raphael Neider <rneider AT web.de>
1580
1581         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1582           to get/set values via pointers
1583         * (genUnpackBits,genPackBits): changed detection of
1584           ptr->bitfield vs. sym.bitfield, fixed access via generic
1585           pointers, removed dead (wrong) code for multibyte bitfields
1586         * (genNearPointerGet, genGenPointerGet): removed useless code,
1587           fixed bitfield detection, fixes #1250594
1588         * (genNearPointerSet): removed useless code
1589         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1590           and introduced macro pic16_emitpcode that conditionally emits
1591           the origin of the following pCode (useful for debugging SDCC)
1592         * src/pic16/pcode.c: changed (and disabled) some debug outputs
1593         * (createDefmap): fixed handling of LFSR for --optimize-df
1594
1595 2005-08-02 Borut Razem <borut.razem AT siol.net>
1596
1597         * device/lib/Makefile.in: pic16 libraries build enabled since
1598           gputils-0.13.2 are now localy installed at sourceforge's compile farm
1599
1600 2005-08-02 Raphael Neider <rneider AT web.de>
1601
1602         * src/pic16/gen.c (genPackBits): removed deprecated warning
1603         * (genGenPointerSet): fixed bitfield detection
1604
1605 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1606
1607         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1608
1609 2005-07-31 Raphael Neider <rneider AT web.de>
1610
1611         * device/lib/pic16/libdev/pic18f458.c,
1612           device/include/pic16/pic18f458.h: added missing T0CONbits
1613
1614 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1615
1616         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1617
1618 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1619
1620         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1621
1622 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1623
1624         * device/include/mcs51/at89c51ed2.h: added.
1625
1626 2005-07-23 Raphael Neider <rneider AT web.de>
1627
1628         * src/pic/gen.h: added emitpcode macro for debugging
1629         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1630           and replace by macro adding debug information on demand
1631         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1632         * (gencjne): tried to fix; replaced with correct (slower) code
1633         * (gen{Unp,P}ackBits): fixed single bit access
1634         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1635         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1636           previous instruction
1637         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1638           register has to be handled with care (forbidding movement
1639           of assignments/uses, removing assignments completely, ...)
1640         * (pCodeOptime2pCodes): make use of regIsSpecial
1641         * added lots of debugging output (commented out)
1642         * src/pic/rallloc.c (deassignLRs): prevent operand registers
1643           from being reused as result UNLESS it is known to work
1644
1645 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1646
1647         * support/Util/dbuf.h: include <stddef.h> for size_t
1648         * .version: changed to version 2.5.2
1649
1650 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1651
1652         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1653
1654 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1655
1656         * src/hc08/gen.c (genMinus): fixed bug #1241835,
1657           (genModOneByte): removed needless psha/pula
1658
1659 2005-07-22 Raphael Neider <rneider AT web.de>
1660
1661         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1662           have PIC14 handled like PIC16, fixes broken pic14 linker calls
1663         * src/pic/gen.c (resolveIfx): do not "invent" labels
1664         * (genSkipc): changed to positive logic
1665         * (genSkipCond): removed as no longer needed
1666         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1667           backport from PIC16
1668         * (genLeftShift): check operands are in different registers
1669         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1670           INCF does not update CARRY...
1671         * src/pic/main.c: fixed _linkCmd
1672         * src/pic/pcode.c (unlinkpCode): added inactive code
1673         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1674           alive (do not assign result and operand overlapping registers)
1675
1676 2005-07-22 Raphael Neider <rneider AT web.de>
1677
1678         * src/pic/device.c (dump_sfr): replaced register declaration with
1679           call to emitSymbolToFile() to avoid duplicate symbols
1680         * (assignRelocatableRegisters): do not declare external symbols
1681         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1682           right (take size of type, not etype)
1683         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1684         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1685         * (packRegsForAccUse): disabled assignment of WREG as
1686           the result reg to prevent occurence of just fixed #1235003,
1687           fixes #1242954
1688         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1689           symbols (avoids duplicate symbols in .asm file)
1690         * (pic14emitRegularMap): use emitSymbolToFile()
1691         * src/pic/gen.c (aopOp): fixed spillLocation handling
1692         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1693         * (genDataPointerSet): removed unneccessary variables/output
1694
1695 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1696
1697         * as/mcs51/lkarea.c: enlarged codemap for banked memory
1698         * device/lib/mcs51/crtbank.asm: added # to 0x0F
1699
1700 2005-07-21 Raphael Neider <rneider AT web.de>
1701
1702         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1703           architecture cannot handle them efficiently, fixes bug #1235003
1704         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1705           check for empty sets before using them (fixes bug #1232190)
1706
1707 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1708
1709         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1710           (lnksect2): generate warnings for memory overlap
1711         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1712           constseg to set the name of these segments so you can instruct the linker
1713           to place them in banks
1714         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1715         * src/SDCCglobl.h: added MODEL_HUGE to enum,
1716           added code_seg and const_seg to options
1717         * src/SDCCglue.c (emitMaps): use options.const_seg,
1718           (createInterruptVect): put interrupt vectors in segment HOME,
1719           (glue): put HOME before static segment and put the main glue in HOME,
1720           (glue): use options.code_seg
1721         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1722         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1723           these segments so you can instruct the linker to place them in banks
1724           (linkEdit): use code_loc for HOME segment which should be the first
1725           segment in code memory now
1726         * src/SDCCmem.c: fixed more stuff like bug 1238386
1727         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1728           (changePointer): don't change function pointers to code pointers for
1729           banked functions,
1730           (compareType): added exceptional check for banked function pointers
1731         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1732         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1733           after static in code memory
1734         * src/mcs51/gen.c: added aopLiteralLong prototype,
1735           (aopForSym): use getSize for functions,
1736           (genCall): generate banked calls over one trampoline __sdcc_banked_call
1737           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1738           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1739           the segment,
1740           (genPcall): use call for literal function pointers and generate banked
1741           calls over the one trampoline so there's only one place for the user to
1742           modify according to his/hers hardware,
1743           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1744           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1745         * src/mcs51/main.c: added keyword banked,
1746           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1747         * support/Util/SDCCerr.c,
1748         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1749           needed for passing the bank and address to the trampoline
1750         * device/lib/mcs51/crtbank.asm: added for bankswitching
1751         * device/lib/mcs51/Makefile: added crtbank
1752
1753 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1754
1755         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1756           for fields at offset 0 of a struct or union as reported
1757           on 2005-07-07 in the developer mailing list.
1758
1759 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1760
1761         * src/SDCCmem.c: fixed bug 1238386
1762
1763 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1764
1765         * src/mcs51/peeph.def: added labelrefcounting for peepholes
1766           (patch #1144962), added peephole 300, enabled 259.x
1767         * doc/sdccman.lyx: removed screenshot and provided link instead
1768
1769 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1770
1771         * doc/sdccman.lyx: added section about debugging with ddd
1772         * doc/figures/ddd_example.eps: screenshot of debugging session
1773
1774 2005-07-04 Raphael Neider <rneider AT web.de>
1775
1776         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1777           like CODE pointers, fixes #1115683
1778         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1779           call, fixes bugs #1232211, #1228110,
1780           fixed wrong casts to pCodeFlow from pCodeInstructions
1781
1782 2005-07-04 Raphael Neider <rneider AT web.de>
1783
1784         * src/pic/gen.c (popGet): changed assert to allow for
1785           bit operands
1786         * (popGetAddr): changed signature to provide
1787           an additional index, patched all call sites
1788         * (genCmpEq): handle literal-like operands correctly
1789         * (genAddrOf): added sanity checks on __code/__data pointers
1790         * (genAssign): added handling of symbols from __code section
1791         * (gencjne): do not generate code for comparisons whose result
1792           is neither stored nor used, fixes bug #1171114
1793         * (AccLsh, AccRsh): operate on operand instead of WREG
1794         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1795           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1796           by known count
1797         * rewrote complete shift-by-literal logic, commented unused
1798           functions out
1799         * (genConstPointerGet): get multiple bytes (if result size > 1),
1800           fixed handling of non-immediate addresses
1801         * (genPointerGet): handle CODE pointers like CONST pointers
1802         * (genpic14Code): insert C-SRC lines as Cource-pCodes
1803         * ({aop,op}_isLitLike): NEW, single place to decide whether an
1804           operand is to be treated as a literal or not
1805         * (mov2w,genPcall,genCmpEq),
1806           src/pic/genarith.c: use aop_isLitLike() to decide between
1807           literal/register contents
1808         * (addSign): added missing offset
1809         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1810           only emit comment in debug-mode,
1811           use {aop,op}_isLitLike throughout the file
1812         * src/pic/glue.c: fix initializers for pointers (work in progress)
1813         * src/pic/pcode.c (get_op): honor index on _const symbols
1814         * ({reset,dump}pCodeStatistics): NEW, estimate code size
1815         * (dumppBlock): added pCode size estimation
1816         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1817           check for IS_SYMOP before OP_SYMBOL'ing
1818         * fixed indentation, compacted switch-statements
1819         * (allocReg): find free register and allocate it instead of
1820           allocating new registers all the time
1821         * (deassignLRs): prevent POINTER_GET's from being assigned the same
1822           registers as its operands (necessary only for multibyte GETs)
1823
1824 2005-07-01 Raphael Neider <rneider AT web.de>
1825
1826         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1827           debugging .asm-output macros FENTRY + FEXIT
1828         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1829           way... I wonder...
1830         * (emitpComment): NEW, printf to pCode
1831         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1832           offset handling
1833         * (popGetAddr): NEW, variant of popGet to access an immediates
1834           high(er) bytes instead of the n'th byte of memory they reference,
1835           replaced popGet with popGetAddr where neccessary
1836         * (genDataPointerGet): reactivated and fixed implementation
1837         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1838           accesses
1839         * (genDataPointerSet): fixed multibyte assignments
1840         * (genpic14Code): fixed --i-code-in-asm handling
1841         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1842         * (genPlus): fixed index-out-of-bounds error
1843         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1844         * src/pic/ralloc.c: added debugging output macro FENTRY2
1845         * (spillThis): fixed indentation, enbraced for-body for clarity
1846         * (rematStr): commented out as now unused
1847         * (regTypeNum): commented out special spill case (overwrites
1848           arbitrary values)
1849         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1850
1851 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1852
1853         * doc/sdccman.lyx: documented sfr16/sfr32,
1854           added example for using storage class with function pointers
1855         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1856
1857 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1858
1859         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1860         * device/lib/_itoa.c,
1861         * device/lib/_ltoa.c: optimized codesize
1862         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1863           but don't know how to suppress the double warning.
1864         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1865         * support/Util/SDCCerr.c,
1866         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1867
1868 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1869
1870         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1871           fixed old K&R prototypes
1872         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1873         * device/lib/_gptrget.c,
1874         * device/lib/_gptrgetc.c,
1875         * device/lib/_gptrput.c: changed versions for new memory indicator values,
1876           also new versions for small generic pointers and banked generic pointers
1877         * src/port.h: added const_name
1878         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
1879         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
1880         * src/SDCCcse.c (findPrevIc): check all associative operators
1881         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
1882         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
1883         * src/SDCCmem.c: updated comments,
1884           set far-space to 0 for pdata, results in optimized code
1885         * src/SDCCmem.h: added macro CONST_NAME
1886         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1887           moving the info into the highest bits, see also gptrget/gptrput
1888         * src/src.dsp: added sdcc.ico to project files
1889         * src/avr/gen.c (genCast): fixed bug 0x%d
1890         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1891         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1892           relation between ptr_type and DCL_TYPE,
1893           (genCast): fixed bug 0x%d
1894         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1895           (CODE)" for const_name
1896         * src/hc08/gen.c (genCast): fixed bug 0x%d
1897         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1898           (hc08_port): added "CONST (CODE)" for const_name
1899         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1900           (aopForRemat, adjustArithmeticResult): disconnected direct relation
1901           between ptr_type and DCL_TYPE,
1902           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1903           operand* and took AOP() inside function so sfr-ness can be checked,
1904           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1905           new prototype,
1906           (genFunction, genEndFunction): optimized stack setup,
1907           (genMinus): optimized for literals with ending zeroes (in bytes),
1908           (genCast): fixed bug 0x%d
1909         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1910           (mcs51_port): added "CONST (CODE)" for const_name
1911         * src/mcs51/peeph.def: made rule 226 more generic
1912         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1913         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1914         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1915         * src/z80/main.c (z80_port): added NULL for const_name,
1916           (gbz80_port): added NULL for const_name
1917         * support/regression/tests/bug663539.c,
1918         * support/regression/tests/sfr16.c: new tests
1919
1920 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1921
1922         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1923
1924 2005-06-24 Raphael Neider <rneider AT web.de>
1925
1926         * device/lib/pic16/libdev/pic18f[68][567]20.c:
1927           corrected typos...
1928         * device/include/pic16/signal.h: added USBIF
1929           and SIG_USB
1930
1931 2005-06-24 Raphael Neider <rneider AT web.de>
1932
1933         * device/lib/pic16/libdev/pic18f2455.c,
1934           device/include/pic16/pic18f2455.h: NEW
1935         * device/include/pic16/pic18fregs.h,
1936           device/lib/pic16/pics.all,
1937           src/pic16/device.c: added 18f2455
1938         * device/lib/pic16/libdev/pic18f[68][567]20.c,
1939           device/include/pic16/{pic18f[68][567].h,usart.h}:
1940           replaced MULTIPLE_USARTS define with more relaible
1941           compatibility sfrs (for USART access)
1942
1943 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1944
1945         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1946           and the output asm file line is printed on two lines.
1947
1948 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1949
1950         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1951           BGT, BLE, BHI, and BLS instructions
1952         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1953           genCmpEq): removed
1954         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1955           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1956           fixes bug #1216342
1957         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1958
1959 2005-06-15 Raphael Neider <rneider AT web.de>
1960
1961         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1962         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1963         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1964           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1965           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1966
1967 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1968
1969         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1970           Marcel Telka in bug #1215704
1971
1972 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1973
1974         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1975           located in shared memory bank.
1976
1977 2005-05-31 Raphael Neider <rneider AT web.de>
1978
1979         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1980           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1981           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1982
1983 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1984
1985         * device/lib/_strncpy.c: fixed the fix
1986
1987 2005-05-26 Raphael Neider <rneider AT web.de>
1988
1989         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1990           initializers with \0, bug #1208187
1991         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1992           intializers with \0, bug #1208187
1993
1994 2005-05-26 Raphael Neider <rneider AT web.de>
1995
1996         * src/pic16/glue.c (pic16_printIvalChar): fixed string
1997           initializers with \0, bug #1208187
1998         * src/pic16/main.c (_process_pragma): added sanity checks
1999           for stack position and size, emit warnings when appropriate
2000
2001 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2002
2003         * device/lib/_strncpy.c: fixed not filling with \0
2004
2005 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2006
2007         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2008           createFunction),
2009         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2010           compound_statement),
2011         * src/SDCCsymt.h,
2012         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2013
2014 2005-05-24 Raphael Neider <rneider AT web.de>
2015
2016         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2017
2018 2005-05-24 Raphael Neider <rneider AT web.de>
2019
2020         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2021           TRISE definitions, closes bug #1162453
2022
2023 2005-05-22 Raphael Neider <rneider AT web.de>
2024
2025         * src/pic16/main.c (_process_pragma): check for missing
2026           arguments to pragmas code and udata
2027         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2028           consistency fixes to match other headers (thanks to Jim Paris)
2029         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2030
2031 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2032
2033         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2034
2035 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2036
2037         * support/regression/tests/bug1198642.c: new test
2038         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2039         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2040         * support/scripts/resource.h,
2041         * support/scripts/resource.rc,
2042         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2043         * support/scripts/sdcc.ico: added 32x32 icon
2044
2045 2005-05-18 Raphael Neider <rneider AT web.de>
2046
2047         * device/lib/pic16/libdev/pic18f*.c,
2048         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2049           keywords to "__sfr" and "__at (X)"
2050         * device/include/pic16/pic18fregs.h: added pic18f4520
2051         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2052           #1203088 (MPLAB compatibility)
2053
2054 2005-05-17 Raphael Neider <rneider AT web.de>
2055
2056         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2057         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2058         * device/lib/pic16/pics.all: added new devices
2059         * src/pic16/device.c: added support for pic18f4520
2060
2061 2005-05-16 Raphael Neider <rneider AT web.de>
2062         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2063         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2064         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2065           convenience function for bit access
2066
2067 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2068
2069         * device/lib/printf_large.c: fixed bug 1193299
2070         * support/regression/tests/bug1057979.c: added test %3.3s
2071
2072 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2073
2074         * device/include/mcs51/8051.h,
2075         * device/include/mcs51/8052.h: made parseable with lint
2076         * device/include/mcs51/lint.h: added include file for (sp)lint
2077         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2078         * doc/cdbfileformat.lyx,
2079         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2080
2081 2005-05-14 Raphael Neider <rneider AT web.de>
2082
2083         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2084         * device/lib/pic16/libc/stdlib/itoa.c (new)
2085         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2086         * device/lib/pic16/libio/Makefile: exclude subdir according to
2087           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2088         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2089         * src/pic16/gen.c (genFunction): prevent annoying warning
2090         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2091           nameclashes on BeOS
2092         * support/cpp2/cppmain.c (cpp_output_string): new
2093         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2094           fixes bug 1116802
2095
2096 2005-05-13 Borut Razem <borut.razem AT siol.net>
2097
2098         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2099
2100 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2101
2102         * .version: changed to version 2.5.1; back to bleeding edge development
2103
2104 2005-05-11 Borut Razem <borut.razem AT siol.net>
2105
2106         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2107           generate PDF version 1.3 documents
2108
2109 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2110
2111         * .version: changed to version 2.5.0
2112
2113 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2114
2115         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2116
2117 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2118
2119         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2120         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2121         well as many smaller updates.
2122         * .version: changed to version 2.5.0-pre1
2123
2124 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2125
2126         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2127
2128 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2129
2130         * support/regression/tests/bug1185672.c: added
2131         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2132           bug 1185672
2133         * src/mcs51/gen.c (genCall): added comments, made it look safer
2134         * src/mcs51/gen.c (genEndFunction): simplified
2135
2136 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2137
2138         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2139
2140 2005-04-14 Borut Razem <borut.razem AT siol.net>
2141
2142         * fixed bug 1045046 - SIGSEGV with really simple code?:
2143           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2144           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2145
2146 2005-04-14 Borut Razem <borut.razem AT siol.net>
2147
2148         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2149           src/pic16/device.h: temporarily disabled experimental #inline pragma
2150           for 2.5.0 release
2151
2152 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2153
2154         * device/include/z80/stdio.h,
2155         * device/include/z80/string.h: removed these highly incomplete files so
2156           SDCC can use the default ones in device/include/
2157
2158 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2159
2160         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2161         gcc warning.
2162         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2163         fix sdcpp warnings.
2164
2165 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * device/include/malloc.h: removed redundant __reentrant prototypes
2168         * device/lib/_mullong.c: added working xstack variant in asm (C version
2169           doesn't pass regression tests)
2170         * device/lib/bpx.c: used __data and made bpx char for mcs51
2171         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2172           (createFunction): fixed bug with xstackPtr
2173         * src/SDCCcse.c: corrected comments
2174         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2175           (killDeadCode, eBBlockFromiCode): removed unused code
2176         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2177           corrected comments
2178         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2179           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2180           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2181           (genModOneByte): fixed warning in MSVC
2182         * src/mcs51/main.c (): added comments
2183         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2184
2185 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2186
2187         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2188
2189 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2192
2193 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2194
2195         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2196         characters arrays of larger size than the declared one.
2197
2198 2005-04-10 Borut Razem <borut.razem AT siol.net>
2199
2200         * src/pic/gen.c (genInline),
2201           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2202           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2203           (findNextInstruction), (findPrevInstruction),
2204           (findInstructionUsingLabel),
2205           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2206         * src/pic/pcode.c (findLabel): added missing '\n'
2207         * src/src.dsp: added SDCCdwarf2.c to the project
2208
2209 2005-04-09 Borut Razem <borut.razem AT siol.net>
2210
2211         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2212
2213 2005-04-08 Raphael Neider <rneider AT web.de>
2214
2215         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2216           into the chain after a given one) and mergeDefmapSymbols (combine
2217           defmap entries for each symbol per pcode)
2218         * (createDefmap): have defmap entries merged in the end
2219         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2220           a symbol before replacing one access type's symbol, merge symbols in
2221           the end (replacement symbol might already have an entry)
2222         * (assignValnums): keep reference to written WREG intact
2223
2224 2005-04-08 Raphael Neider <rneider AT web.de>
2225
2226         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2227           Alpha)
2228
2229 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2230
2231         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2232         bytes
2233
2234 2005-04-07 Raphael Neider <rneider AT web.de>
2235
2236         * device/include/pic16/usart.h: added compatibility defines for
2237           devices with more than one USART
2238         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2239
2240 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2241
2242         * device/lib/Makefile.in: updated for port specific include
2243
2244 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2245
2246         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2247
2248 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2249
2250         * device/include/8051.h,
2251         * device/include/8052.h,
2252         * device/include/at89S8252.h,
2253         * device/include/at89c55.h,
2254         * device/include/at89x051.h,
2255         * device/include/at89x51.h,
2256         * device/include/at89x52.h,
2257         * device/include/mcs51reg.h,
2258         * device/include/reg51.h,
2259         * device/include/reg764.h,
2260         * device/include/regc515c.h,
2261         * device/include/sab80515.h: (re)moved these 12 files
2262         * device/include/mcs51/8051.h,
2263         * device/include/mcs51/8052.h,
2264         * device/include/mcs51/at89S8252.h,
2265         * device/include/mcs51/at89c55.h,
2266         * device/include/mcs51/at89x051.h,
2267         * device/include/mcs51/at89x51.h,
2268         * device/include/mcs51/at89x52.h,
2269         * device/include/mcs51/mcs51reg.h,
2270         * device/include/mcs51/reg51.h,
2271         * device/include/mcs51/reg764.h,
2272         * device/include/mcs51/regc515c.h,
2273         * device/include/mcs51/sab80515.h: and added them here
2274
2275 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2276
2277         * device/include/stdarg.h: changed SDCC specific keywords to double
2278           underlined form.
2279         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2280           mcs51 and ds390.
2281         * device/include/hc08/mc68hc908gp32.h,
2282         * device/include/hc08/mc68hc908jb8.h,
2283         * device/include/hc08/mc68hc908jkjl.h,
2284         * device/include/hc08/mc68hc908qy.h: fixed comments
2285         * device/include/mcs51/README: updated
2286         * device/include/mcs51/c8051f120.h: added PINRSF
2287         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2288         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2289           amidst code. Also inline is not supported.
2290
2291 2005-04-06 Raphael Neider <rneider AT web.de>
2292
2293         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2294         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2295           callers stack/frame pointers
2296
2297 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2298
2299         * device/include/pic16/usart.h: added, missing in previous commit,
2300         * device/include/pic16/adc.h: fixed typo,
2301         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2302         commit,
2303         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2304         <p18fxxx.inc>
2305         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2306         uninitialized because a bug appears with gplink
2307         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2308         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2309         complains for unrecognised option
2310
2311 2005-04-05 Raphael Neider <rneider AT web.de>
2312
2313         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2314           structs as well (using memcpy)
2315         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2316           on ISRs (GOTO has no label)
2317         * src/pic16/device.h: added OF_OPTIMIZE_DF
2318         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2319           new data flow analysis/optimization
2320         * src/pic16/pcode.c: added (prototypes for and implementation of)
2321           dataflow analysis functions, fixed pCodeInstructions' inCond and
2322           outCond values, made RCALL a branch instruction
2323         * (pic16_unlinkpCode): keep C line if possible
2324         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2325           C line moved if possible
2326         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2327         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2328           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2329         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2330           new flow)
2331         * (pic16_getJumptabpCode): NEW, needed in...
2332         * (LinkFlow): fixed handling of jumptables, calls and conditional
2333           branches
2334         * (pic16_InsertCommentAfter): NEW
2335         * (pic16_pCodeReplace): made verbose and flow preserving
2336         * (AnalyzeFlow): added call to data flow analysis
2337         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2338         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2339         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2340
2341 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2342
2343         * src/SDCCast.c (decorateType): fixed bug #1105626
2344
2345 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2346
2347         * device/include/asm/pic16/features.h,
2348         * pic18f*.h headers,
2349         * device/include/pic16/adc.h,
2350         * device/include/pic16/delay.h,
2351         * device/include/pic16/i2c.h,
2352         * device/include/pic16/malloc.h,
2353         * device/include/pic16/stdio.h,
2354         * device/include/pic16/stdlib.h,
2355         * device/include/pic16/string.h,
2356         * device/lib/pic16/libc/stdio/printf_tiny.c,
2357         * device/lib/pic16/libc/stdio/printf_small.c,
2358         * device/lib/pic16/libc/stdio/strmgpsim.c,
2359         * device/lib/pic16/libc/stdio/strmmssp.c,
2360         * device/lib/pic16/libc/stdio/strmusart.c,
2361         * device/lib/pic16/libc/stdio/vfprintf.c,
2362         * device/lib/pic16/libc/stdlib/ltoa.c,
2363         * device/lib/pic16/libc/stdlib/putchar.c,
2364         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2365         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2366         * device/lib/pic16/libc/stdlib/memchrram.c,
2367         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2368         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2369         * device/lib/pic16/libio/adc/adcbusy.c,
2370         * device/lib/pic16/libio/adc/adcread.c,
2371         * device/lib/pic16/libio/adc/adcsetch.c,
2372         * device/lib/pic16/libio/usart/ubaud.c,
2373         * device/lib/pic16/libio/usart/ubusy.c,
2374         * device/lib/pic16/libio/usart/udrdy.c,
2375         * device/lib/pic16/libio/usart/uopen.c,
2376         * device/lib/pic16/libio/usart/uputc.c,
2377         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2378         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2379         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2380         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2381         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2382         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2383         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2384         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2385         specific keywords to double underlined form,
2386         * device/lib/pic16/libc/Makefile.rules,
2387         * device/lib/pic16/libsdcc/Makefile.rules,
2388         * device/lib/pic16/libm/Makefile,
2389         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2390         to compile with C standard set in Makefile.common
2391         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2392         rand.c and crc.c in compilation process,
2393         * device/lib/pic16/libsdcc/int/divuint.c,
2394         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2395         `c' from signed to unsigned,
2396         * device/lib/pic16/startup/crt0.c,
2397         * device/lib/pic16/startup/crt0i.c,
2398         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2399         keywords to double underlined form, bug fixes in _do_cinit function
2400         which prevented the correct initialization of the .idata segment,
2401         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2402         core to enter a infinite loop
2403         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2404
2405 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2406
2407         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2408
2409 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2410
2411         * device/include/Makefile.in: add support for hc08 subdirectory
2412         * device/include/hc08/: new subdirectory
2413         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2414         Lucas Loizaga, thanks!
2415         * device/include/hc08/mc68hc908qy.h,
2416         * device/include/hc08/mc68hc908gp32.h,
2417         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2418         their own directory. Changed internal macro names to use the compiler
2419         reserved namespace. Changed SDCC specific keywords to double
2420         underlined form.
2421         * device/include/math.h,
2422         * device/include/malloc.h,
2423         * device/include/stdarg.h,
2424         * device/include/stdbool.h
2425         * device/include/string.h,
2426         * device/include/tinibios.h,
2427         * device/include/ds400rom.h,
2428         * device/include/8051.h,
2429         * device/include/8052.h,
2430         * device/include/80c51xa.h,
2431         * device/include/at89c55.h,
2432         * device/include/at89S8252.h,
2433         * device/include/at89x51.h,
2434         * device/include/at89x52.h,
2435         * device/include/ds80c390.h,
2436         * device/include/reg764.h,
2437         * device/include/regc515c.h,
2438         * device/include/sab80515.h,
2439         * device/include/mcs51/c8051f000.h,
2440         * device/include/mcs51/c8051f018.h,
2441         * device/include/mcs51/c8051f020.h,
2442         * device/include/mcs51/c8051f040.h,
2443         * device/include/mcs51/c8051f060.h,
2444         * device/include/mcs51/c8051f120.h,
2445         * device/include/mcs51/c8051f300.h,
2446         * device/include/mcs51/c8051f310.h,
2447         * device/include/mcs51/c8051f320.h,
2448         * device/include/mcs51/c8051f330.h,
2449         * device/include/mcs51/c8051f350.h,
2450         * device/include/z180.h: Changed SDCC specific keywords to double
2451         underlined form.
2452
2453 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2454
2455         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2456         18F4455,
2457         * (pic16_assignConfigWordValue): disable testing of configuration
2458         register value with config mask,
2459         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2460         function with port->fun_prefix,
2461         * (genFunction): when generating a naked interrupt function never
2462         create an absolute segment placed in interrupt vector address, place
2463         the actual interrupt function at IVA instead, when an interrupt
2464         function is generated with unspecified interrupt then do not create
2465         the absolute section,
2466         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2467         code for generating a call to generic pointer get/put function with
2468         a call to function pic16_callGenericPointer(),
2469         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2470         the call to the generic pointer get/put functions with prefixing the
2471         function name with port->fun_prefix,
2472         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2473         * src/pic16/main.c (_process_pragma): prefix function with
2474         port->fun_prefix,
2475         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2476         calling assembler, old 18Fxxxx macro is deprecated,
2477         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2478         PC_ASMDIR in while condition,
2479         * (findInstruction): add PC_ASMDIR in while condition,
2480         * (buildCallTree): prefix main with port->fun_prefix,
2481         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2482         identifier for variable with banked access in instructions BTFSS,
2483         BTFSC, BCF, BSF, BTG
2484         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2485         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2486         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2487         perform optimization when enviroment variable NO_REG_OPT is set,
2488         * (insideLRBlock): NEW, return 1 if register is inside an
2489         INF_LOCALREGS block,
2490         * (RemoveRegFromLRBlock): remove a register that is completely
2491         eliminated by register optimization, but it is still left in local
2492         register store/restore in/from stack block,
2493         * (Remove2pcodes): after removing register, check to see if it
2494         should be removed from local register store/restore in/from stack
2495         block,
2496         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2497         DUMMY_READ_VOLATILE,
2498
2499         * device/include/pic16/adc.h: minor prototype modifications and
2500         update,
2501         * device/include/pic16/malloc.h: added GPL notice various
2502         modifications,
2503         * device/include/pic16/stdint.h: NEW, standard header for ints
2504         * device/include/pic16/delay.h: NEW, header for delay functions,
2505         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2506         delay1mtcy,
2507         * device/include/pic16/signal.h: NEW, header providing helper macros
2508         for implementing signal handlers,
2509         * device/include/pic16/stdio.h: added prototypes for functions,
2510         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2511         prototypes for stdin and stdout, added macro PUTCHAR to
2512         automatically implement putchar function prototype,
2513         * device/include/pic16/usart.h: modified and updated USART library,
2514         * device/lib/pic16/libio/adc/,
2515         * device/lib/pic16/libio/i2c: some modifications to improve library
2516         performance,
2517         * device/lib/pic16/libc/stdio/: modifications for the new printf*
2518         family of functions,
2519         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2520         family of functions and other sources,
2521         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2522         of the PIC18Fxx[28] devices,
2523         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2524         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2525         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2526         _do_cinit function, because the previous failed when local variables
2527         where not placed in the same memory bank,
2528         * device/lib/pic16/libsdcc/char/: various modifications to improve
2529         library performance,
2530         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2531         information on the new functions of the c library and more...
2532
2533 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2534
2535         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2536
2537 2005-03-26 Raphael Neider <rneider AT web.de>
2538
2539         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2540           if condition == CARRY)
2541         * (genCmp): adapted to new genSkipc semantics
2542         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2543           on rIfx (genCmp was broken)
2544
2545 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2546
2547         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2548         * src/z80/main.c (_keywords[]),
2549         * src/SDCCglobal.h (struct options),
2550         * src/SDCC.y,
2551         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2552         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2553         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2554         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2555         always available in leading double underscore form. The C99 support is
2556         mostly missing, but it's a start.
2557         * support/regression/tests/bug-227710.c: fixed nonconforming use of
2558         reserved identifier "__data".
2559
2560 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2561
2562         * src/mcs51/peeph.def: fixed bug 1170013
2563
2564 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2565
2566         * device/include/mcs51reg.h: fixed bug 842007
2567
2568 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2569
2570         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2571         last time.
2572
2573 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2574
2575         * src/port.h (struct PORT),
2576         * src/avr/ralloc.c (avr_assignRegisters),
2577         * src/avr/main.c,
2578         * src/ds390/ralloc.c (ds390_assignRegisters),
2579         * src/ds390/main.c,
2580         * src/hc08/ralloc.c (hc08_assignRegisters),
2581         * src/hc08/main.c,
2582         * src/mcs51/ralloc.c (mcs51_assignRegisters),
2583         * src/mcs51/main.c,
2584         * src/pic/ralloc.c (pic14_assignRegisters),
2585         * src/pic/main.c,
2586         * src/pic16/ralloc.c (pic16_assignRegisters),
2587         * src/pic16/main.c,
2588         * src/xa51/ralloc.c (xa51_assignRegisters),
2589         * src/xa51/main.c,
2590         * src/z80/ralloc.c (z80_assignRegisters),
2591         * src/z80/ralloc.h,
2592         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2593         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2594         * src/SDCCcse.h,
2595         * src/SDCCdflow.c (computeDataFlow),
2596         * src/SDCCdflow.h,
2597         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2598         * src/SDCCloop.h,
2599         * src/SDCCcflow.c (*),
2600         * src/SDCCcflow.h,
2601         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2602         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2603         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2604         immedDom() returning wrong block; probably fixes bug #1160833)
2605
2606 2005-03-20 Borut Razem <borut.razem AT siol.net>
2607
2608         * support/scripts/inc2h.pl: WIN32 port
2609
2610 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2611
2612         * device/lib/makefile.in: added abs.c and labs.c
2613
2614 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2615
2616         * device/include/stdint.h: added
2617         * device/lib/abs.c: added
2618         * device/lib/labs.c: added
2619         * device/include/stdlib.h: added abs() and labs() prototypes
2620         * device/lib/libsdcc.lib: added abs and labs
2621         * device/include/float.h,
2622         * device/lib/_fsmul.c,
2623         * device/lib/printf_fast.c,
2624         * device/lib/printf_tiny.c: updated comments
2625
2626 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2627
2628         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2629         bug #1164313
2630
2631 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2632
2633         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2634         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2635
2636 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2637
2638         * device/lib/printf_large.c: removed inline assembly for portability and
2639           readability. Use printf_fast if speed or size are more important.
2640         * src/pic16/gen.c: removed conditions around use of DEBUGpc
2641         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2642
2643 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2644
2645         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2646         prevent compiler warning
2647
2648 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2649
2650         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2651         moved to level 0 and declared as static. Also they are explicit
2652         placed in access bank. This was necessery because some times they
2653         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2654         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2655         optimizations. Currently only compare to unsigned char is implemented,
2656         * src/pic16/gen.c: added fReturnIdx array,
2657         * (struct resolvedIfx) is moved to gen.h and made public,
2658         * (struct _G): added sregsAlloc and sregsAllocSet fields,
2659         * (aopForSym): added an optimization to directly store in stack of
2660         the operand of a SEND iCode,
2661         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2662         but as registers instead (AOP_REG) using the fReturnIdx array,
2663         * (pic16_freeAsmop): remove the freed register from the
2664         _G.sregsAlloc field,
2665         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2666         a compare of 'WREG',
2667         * (pic16_popGetTempRegCond): changed function prototype, now
2668         function takes also a bitVector argument v which holds the current
2669         set of registers that are allocated for stack access by aopForSym,
2670         registers allocated in aopForSym for accessing stack symbols are not
2671         any more part of the functions usedRegs field,
2672         * (genCall): some times aopOp is called for a stack variable to be
2673         send, aopForSym might perform the push, if this is true make sure
2674         that genCall doesn't push the variable twice by testing _G.resDirect,
2675         * (genFunction): changed testing for unspecified interrupt number
2676         from 256 to INTNO_UNSPEC,
2677         * modified selection scheme of frame pointer generation. Previously
2678         if function did use local registers a frame pointer was generated,
2679         now a frame pointer is generated only if function has arguments
2680         (that need PLUSW2 register access), or has stack arguments, or the
2681         compiler is not instructed to omit the frame pointer,
2682         * (genEndFunction): before restoring local registers that were saved
2683         in the function preamble, also restore the registers that *might*
2684         have been allocated for stack access,
2685         * (genRet): removed some old comments,
2686         * (genCmp, the active (RN's) version): added a call to the
2687         pic16_genCmp_special function to perform the compare with a more
2688         robust and optimized way,
2689         * (genInline): a feature has been added in inline code generation,
2690         which allows a wildcard variable substitution when writing inline
2691         assembly. Code is incomplete and experimental therefore undocumented,
2692         * (genCast): changed order of aopOp for result and right to allow
2693         aopForSym to directly load the result if possible,
2694         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2695         perform an optimized compare on some selected special occasions,
2696         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2697         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2698         generate an IVT any more,
2699         * src/pic16/main.c (pic16_optionsTable): added command line option
2700         --optimize-cmp,
2701         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2702         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2703         macros,
2704         * src/pic16/NOTES: Raphael Neider added in list of active developers
2705         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2706         jumptable_end to prevent bug #,
2707         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2708         inCond and outCond fields,
2709         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2710         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2711         turn off register spilling,
2712         * (packRegsForOneUse): synced with other ports' versions although it
2713         is not used currently,
2714         * (pic16_packRegisters): added an optimization while reading
2715         structure bitfields, some registers may be saved (malloc code is
2716         decreased by 80 bytes)
2717
2718 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2719
2720         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2721         left is a bitfield, if yes, then don't optimize assignment. Perhaps
2722         this can be optimized more?
2723
2724 2005-03-10 Raphael Neider <rneider AT web.de>
2725
2726         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2727           genNearPointerGet): (hopefully) fixed access to bitfields via
2728           pointers (p->bitN = x; and x = p->bitN; failed)
2729
2730 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2731
2732         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2733
2734 2005-03-09 Raphael Neider <rneider AT web.de>
2735
2736         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2737
2738 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2739
2740         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2741         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2742           (regTypeNum): set REG_BIT type if necessary
2743         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2744         * support/regression/tests/critical.c: check bug 1144613
2745
2746 2005-03-02 Raphael Neider <rneider AT web.de>
2747
2748         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2749
2750 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2751
2752         * src/avr/ralloc.c (serialRegAssign),
2753         * src/ds390/ralloc.c (serialRegAssign),
2754         * src/hc08/ralloc.c (serialRegAssign),
2755         * src/mcs51/ralloc.c (serialRegAssign),
2756         * src/pic/ralloc.c (serialRegAssign),
2757         * src/pic16/ralloc.c (serialRegAssign),
2758         * src/xa51/ralloc.c (serialRegAssign),
2759         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2760
2761 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2762
2763         * src/SDCCast.c (decorateType): fixed bug 1124787
2764
2765 2005-02-20 Hubert Sack <sack AT digiplan.de>
2766         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2767
2768         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2769         patch #1121755
2770
2771 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2772
2773         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2774         to keep the correct label reference count when adding/removing references
2775         to labels. A peephole file using this is appended to patch #1144962.
2776
2777 2005-02-14 Raphael Neider <rneider AT web.de>
2778
2779         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2780         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2781         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2782           retrievals of result operand's value on assignment
2783
2784 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2785
2786         * device/include/pic16/string.h: modified prototype for memccpy()
2787         to memccpy(void *, void *, char, size_t)
2788         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2789         check whether to omit frame pointer or not,
2790         * (genInline): convert all occurences of "\n" to LF in inline
2791         assembler blocks, this helps formatting the inline text,
2792         * (pic16_loadFSR0): modified prototype,
2793         * (genNearPointerGet, genNearPointerSet): reorganization of code,
2794         removed some 8051 legacy code,
2795         * (genPackBits): enabled handling bitfields exceeding one byte in size,
2796         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2797         before allocating temporary registers in functions,
2798
2799 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2800
2801         * support/regression/tests/bitvars.c: corrected the "fix"
2802
2803 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2804
2805         * support/regression/tests/bitvars.c,
2806         * support/regression/tests/bitwise.c,
2807         * support/regression/tests/rotate.c: "fixed" problems on Alpha
2808
2809 2005-02-10 Raphael Neider <rneider AT web.de>
2810
2811         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2812           different size for Alpha
2813         * src/pic16/gen.c (genCmpEq) : improved compare with 0
2814
2815 2005-02-09 Raphael Neider <rneider AT web.de>
2816
2817         * src/SDCC.lex(doPragma) : save and restore warning options as well
2818           (also added new stack plus clone- and copyAndFreeSDCCERRG())
2819         * have #pragma less_pedantic set the errorlevel to WARNING
2820           (fixes #1117001)
2821         * (cloneOptimize) : fixed wrong malloc's size
2822         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2823           facilitate correct handling of #pragma (save|restore)
2824
2825 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2826
2827         * src/mcs51/gen.c: removed non-standard C nameless struct/union
2828
2829 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2830
2831         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2832
2833 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2834
2835         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2836
2837 2005-02-02 Raphael Neider <rneider AT web.de>
2838
2839         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2840         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2841         * (pic16_storeForReturn): fixed to allow returning function pointers
2842         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2843         * device/include/pic16/{stddef.h,stdbool.h}: added
2844
2845 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2846
2847         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2848
2849 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2850
2851         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2852         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2853          appeared to be required
2854
2855 2005-01-31 Borut Razem <borut.razem AT siol.net>
2856
2857         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2858           include/mcs51 and include/z80 directories to the package
2859
2860 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2861
2862         * src/hc08/gen.c (genFunction): fixed bug #1112752
2863
2864 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2865
2866         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2867
2868 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2869
2870         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2871
2872 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
2873
2874         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
2875
2876 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
2877
2878         * device/include/c8051fxxx.h: removed these 6 files
2879         * device/include/mcs51/c8051fxxx.h: added these 11 new files
2880
2881 2005-01-26 Raphael Neider <rneider AT web.de>
2882
2883         * src/pic16/gen.c (genAssign): fixed assignment from longs
2884           in codespace (were cut to three bytes)
2885         * (genDummyRead): implemented (except for CODESPACE...),
2886           fixed bug #1108575
2887         * src/pic16/glue.c (emitStatistics): beautified
2888         * device/lib/pic16/libm/Makefile: added include path
2889
2890 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2891
2892         * src/z80/gen.c (aopPut): fixed bug #1103902
2893
2894 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2895
2896         * device/lib/expf.c: fixed bug #1095792
2897
2898 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2899
2900         * device/lib/pic16/libm: added Math library sources
2901
2902 2005-01-24 Raphael Neider <rneider AT web.de>
2903
2904         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2905           to enable upcast to pCodeOpReg2 (there is no type tag to
2906           differenciate the two and pic16_popGet2p cast into PCOR2)
2907         * src/pic16/main.c (_process_pragma): fixed another malloc bug
2908           (sizeof(sectNames) changed to sizeof(sectName))
2909           Both patches fix segfaults under MinGW.
2910
2911 2005-01-23 Raphael Neider <rneider AT web.de>
2912
2913         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2914           Safe_[mc]?alloc()'ed variables
2915         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2916           of (byte sized) temporaries (assign them to WREG for now)
2917         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2918           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2919           this might fix SIGSEGVs on MinGW...
2920         * src/SDCCopt.c (killDeadCode): restored original behaviour
2921           (volatile operands might get thrown away though)
2922
2923 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2924
2925         * src/pic16/gen.c: fixed bug #1106975,
2926         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2927         pointer update, INTCON is saved, global interrupts are disabled and
2928         restored after updateing TOS.
2929         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2930         * added function attribute 'shadowregs' to take advantage of shadow
2931         registers,
2932         * added function attribute 'wparam' as an alternative to the wparam
2933         pragma,
2934         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2935         user declares a non-ISR function as 'shadowregs',
2936         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2937
2938 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2939
2940         * .version: bumped version number to 2.4.8
2941         * device/lib/pic16/pics.all: list of PIC18F devices supported by
2942         pic16 port,
2943         * device/lib/pic16/libio/i2c/: I2C module support library,
2944         * device/include/pic16/i2c.h: I2C support library header,
2945         * device/lib/pic16/libc/stdio/: standard IO support sources,
2946         * (printf_small.c): printf_small() source, supports float print,
2947         * (printf_tiny.c): printf_tiny() source, does not support floats,
2948         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2949         enable global optimizations for entire library source, other
2950         Makefiles in the source tree are also modified to reflect this,
2951         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2952         function,
2953         * doc/sdccman.lyx: updated to reflect new changes,
2954         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2955         sym->onStack if-case,
2956         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2957         sbit, idata, _idata, xdata, _xdata,
2958         * added pragma library, to link an external library, (see doc),
2959         * removed command line options, --pomit-config-words, --pomit-ivt,
2960         --pleave-reset-vector,
2961         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2962         when calling assembler to reflect memory model used, also define
2963         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2964         reflect stack model used,
2965         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2966         on stack return NULL,
2967
2968 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2969
2970         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2971           of the operands is volatile. Fixes #1020220
2972
2973 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2974
2975         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2976         * (OptimizeRegUsage): make sure that there is really no other flow where
2977           the first pCode is used
2978
2979 2005-01-22 Raphael Neider <rneider AT web.de>
2980
2981         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2982           to fix #1106967 (pCode->seq are not set up correctly)
2983
2984 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2985
2986         * src/SDCCglue.c (glue): make sure code area is declared before the
2987         static initialization area.
2988
2989 2005-01-21 Raphael Neider <rneider AT web.de>
2990
2991         * device/lib/Makefile.in: fixed test for pic16 install dir
2992         * device/lib/pic16/*/Makefile*: modified compile flags to enable
2993           optimizations
2994         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2995           added --optimize-goto compiler switch and pragma wparam documentation
2996         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2997         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2998           and PRODH closing bug #1071770 (peephole optimizer)
2999
3000 2005-01-19 Raphael Neider <rneider AT web.de>
3001
3002         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3003           cmdLine buffers (used when calling sdcpp...) are large enough
3004           (MAX_PATH=256 truncates arguments leading to system halts when
3005           used in MinGW...)
3006         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3007         * (genUminus): rewritten to for efficiency
3008         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3009           used uninitialized in some cases)
3010         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3011           copy the third byte from the int -- now assumes 0x80 (data memory)
3012         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3013           operands (genAddLit expects the iCode's operands to swapped as
3014           well), fixed leftover bytes (crashed for short left operands)
3015         * (pic16_genMinusDec): performance improvements, removed false
3016           PIC14 emitSKPNCs
3017         * (pic16_genMinus): fixed to cope with differently sized operands
3018         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3019           for --obanksel > 1
3020         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3021         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3022           new banksel optimization
3023         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3024           analysis for temporary registers (segfaults...)
3025         * src/pic16/peeph.def: added rule
3026
3027 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3028
3029         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3030         which converts a float number to its ASCII representation
3031         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3032         functions to convert the fractional and integer part of a float to ASCII,
3033         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3034         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3035         ram
3036         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3037         _STATMEM macros,
3038         * device/include/pic16/adc.h: added GPL info,
3039         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3040         a pCodeOp as tested operand,
3041         * (genNearPointerGet): optimized bit testing, does not use
3042         intermediate register for bit value, test directly instead with
3043         BTFSS, BTFSC, works only for single bits,
3044         * (genpic16Code): dump the name of the iCode in the asm,
3045         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3046         renamed to pic16_decodeOp,
3047         * (serialRegAssign): do not allocate a temporary register for iCode
3048         sequences that test a single bit for 1/0
3049
3050 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3051
3052         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3053         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3054         access stack and frame pointers. They are initially assigned to
3055         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3056         accessing SFRs. Updated all occurences of modification of stack or
3057         frame pointer in gen.c and pcode.c,
3058         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3059         assigning of a literal value to pointers,
3060         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3061         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3062         selected
3063
3064 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3065
3066         * doc/sdccman.lyx: update documentation about stack pragma, added
3067         some info for stack memory models
3068
3069 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3070
3071         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3072
3073 2005-01-08 Raphael Neider <rneider AT web.de>
3074
3075         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3076           udata sections to fix bug #1097823
3077
3078 2005-01-05 Raphael Neider <rneider AT web.de>
3079
3080         * src/pic16/gen.c (genGenericShift): added handling of differently
3081           sized left operand and result
3082
3083 2005-01-04 Raphael Neider <rneider AT web.de>
3084
3085         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3086         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3087           to hold the condition bit)
3088         * added new version of genCmp (old code available via #define)
3089         * added new version of genShiftLeft/genShiftRight in a generic
3090           way, now supports shifting by negative values
3091         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3092           shiftCount (expected by genGenericShift)
3093         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3094         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3095           dump
3096         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3097           is an invalid literal too...)
3098
3099 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3100
3101         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3102         from Raphael Neider,
3103         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3104         for 8-bit literals. This fixes some literal operands which are sign
3105         extended to 16-bits ints when instruction needs only 8-bits.
3106
3107 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3108
3109         * device/lib/logf.c: added mcs51 assembly version
3110         * device/lib/expf.c: added mcs51 assembly version
3111         * device/lib/_logexpf.c: new shared asm code for expf and logf
3112         * device/include/math.h: add defines for assembly math library
3113         * device/lib/Makefile.in: build new _logexpf.c
3114         * device/lib/libfloat.lib: use new _logexpf.c
3115
3116 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3117
3118         * src/pic/device.c
3119         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3120           device types which have less than 0x7f registers.
3121
3122 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3123
3124         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3125
3126 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3127
3128         * device/lib/printf_fast.c: only build on supported arch.
3129         * device/lib/printf_tiny.c: only build on supported arch.
3130         * device/lib/printf_fast_f.c: only build if asm float lib
3131         * device/lib/_fsget1arg.c: only build if asm float lib
3132         * device/lib/_fsget2args.c: only build if asm float lib
3133         * device/lib/_fsnormalize.c: only build if asm float lib
3134         * device/lib/_fsreturnval.c: only build if asm float lib
3135         * device/lib/_fsrshift.c: only build if asm float lib
3136         * device/lib/_fsswapargs.c: only build if asm float lib
3137         * device/include/stdio.h: don't provide print_fast,
3138           print_fast_f, print_tiny prototypes if --xstack used
3139
3140 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3141
3142         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3143         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3144           to the SOURCES
3145
3146 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3147
3148         * device/lib/printf_fast_f.c: same as printf_fast, but
3149           with floating point enabled
3150         * device/lib/printf_fast.c: minor tweaks
3151         * device/include/stdio.h: add printf_fast_f
3152
3153 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3154
3155         * src/SDCCmain.c: make --float-reent default for mcs51
3156         * device/lib/_fsadd.c: added mcs51 assembly version
3157         * device/lib/_fssub.c: added mcs51 assembly version
3158         * device/lib/_fsmul.c: added mcs51 assembly version
3159         * device/lib/_fsdiv.c: added mcs51 assembly version
3160         * device/lib/_fseq.c: added mcs51 assembly version
3161         * device/lib/_fsneq.c: added mcs51 assembly version
3162         * device/lib/_fsgt.c: added mcs51 assembly version
3163         * device/lib/_fslt.c: added mcs51 assembly version
3164         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3165         * device/lib/Makefile.in: add _fscmp to build
3166         * device/lib/libfloat.lib: add _fscmp to build
3167
3168 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3169
3170         * device/lib/_fs2slong.c: added mcs51 assembly version
3171         * device/lib/_fs2sint.c: added mcs51 assembly version
3172         * device/lib/_fs2schar.c: added mcs51 assembly version
3173         * device/lib/_fs2ulong.c: added mcs51 assembly version
3174         * device/lib/_fs2uint.c: added mcs51 assembly version
3175         * device/lib/_fs2uchar.c: added mcs51 assembly version
3176         * device/lib/_slong2fs.c: added mcs51 assembly version
3177         * device/lib/_sint2fs.c: added mcs51 assembly version
3178         * device/lib/_schar2fs.c: added mcs51 assembly version
3179         * device/lib/_ulong2fs.c: added mcs51 assembly version
3180         * device/lib/_uint2fs.c: added mcs51 assembly version
3181         * device/lib/_uchar2fs.c: added mcs51 assembly version
3182         * device/include/float.h: added #define to select asm vs c
3183
3184 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3185
3186         * device/lib/printf_fast.c: improvements to float output
3187         * device/include/float.h: add defines for assembly float library
3188         * device/lib/_fsget1arg.c: receive 1 float arg
3189         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3190         * device/lib/_fsnormalize.c: normalize a float
3191         * device/lib/_fsreturnval.c: return float, various helper routines
3192         * device/lib/_fsrshift.c: right shift a float's mantissa
3193         * device/lib/_fsswapargs.c: swap 2 floats
3194         * device/lib/Makefile.in: build these 6 new files for mcs51
3195         * device/lib/libfloat.lib: add these 6 files to the library
3196
3197 2004-12-26 Borut Razem <borut.razem AT siol.net>
3198
3199         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3200           built by gcc 3.4.2
3201
3202 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3203
3204         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3205           and fully reentrant and register bank neutral.
3206         * device/lib/printf_fast.c: added float (not enabled by default),
3207           added compact/slower integer (also not enabled by default),
3208           improved size/speed of fast integer code, other minor changes
3209         * device/include/stdio.h, device/lib/Makefile.in,
3210           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3211
3212 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3213
3214         * src/pic16/pcode.c: declaring variables other than at the start of a
3215           block is not supported in C by VC6.
3216
3217 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3218
3219         * applied a previous patch from Raphael Neider that wasn't included
3220         in the previous commits, which fixes infinite loops within jumptable
3221         improvements,
3222         * made some fixes that previous patches introduced
3223
3224 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3225
3226         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3227         that fixes an issue with AOP_PCODE asmop's offset,
3228         * (pic16_popCopyReg): update instance field too,
3229         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3230         function of pic port,
3231         * (genCmp, genAnd, genAssign),
3232         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3233
3234 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3235
3236         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3237         variables initial values to idata section,
3238         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3239         variables in some functions. This utilizes parmBytes field of iCode
3240         structure to hold the offset of the variable in stack. (might be
3241         able to use the stack field too?)
3242         * applied patch from Raphael Neider # ### , # ###
3243         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3244         variable initial values in idata section,
3245         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3246         for static variables with initial value
3247         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3248         applied fix in while loop from Raphael Neider.
3249
3250 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3251
3252         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3253         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3254         * src/ds390/ralloc.c (serialRegAssign): spill bits
3255         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3256         * support/Util/SDCCerr.c,
3257         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3258         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3259         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3260
3261 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3262
3263         * device/include/sdcc-lib.h: inserted LGPL, added includes
3264           asm/ds390/features.h and asm/mcs51/features.h
3265         * device/include/asm/default/features.h,
3266         * device/include/asm/gbz80/features.h,
3267         * device/include/asm/z80/features.h: added empty _AUTOMEM
3268           and _STATMEM
3269         * device/include/asm/ds390/features.h,
3270         * device/include/asm/mcs51/features.h: added files with defines for
3271           _AUTOMEM and _STATMEM indicating automatic and static storage class
3272         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3273         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3274         * src/SDCCicode.c (geniCodeCast),
3275         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3276         * src/SDCCloop.c (loopInduction): removed unused variable lr
3277         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3278           to convertToFcall to include char modulo (RFE 1065037), added check
3279           if left operand is unsigned and use abs of literal value
3280         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3281           as it doesn't work after conversion from peephole.def to peephole.rul
3282         * src/mcs51/gen.c (toBoolean): added check for size,
3283           (genModOneByte): optimized code for signed char modulo a literal
3284           power of 2 (thanks to Hubert Sack),
3285           (genRRC): removed unnecessary "clr c",
3286           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3287         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3288           jump optimization,
3289           swapped rules 256.c and 256.d,
3290           extended 256.d by using new multiple checks (thanks Erik),
3291           added rules 256.e and 256.f,
3292           updated rule 261.a and 261.b to new generated code
3293         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3294
3295 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3296
3297         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3298           induction related bugs, including first part of bug #1074377
3299
3300 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3301
3302         * applied patch from bug-report #1076292,
3303         * applied patches for genAnd and Goto-optimizations for Raphael
3304         Neider,
3305         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3306         dump a less iCode information,
3307         * src/pic16/device.h (pic16_options_t): added field debgen,
3308         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3309         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3310         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3311         puclic,
3312         * (various functions): added macros FENTRY and FENTRY2 to functions,
3313         to emit function prologue,
3314         * (various functions): fixed indentation,
3315         * (genNearPointerGet): fixed loading of FSR0,
3316         * (genPackBits): applied patch from Raphael Neider to fix updating
3317         of FSR0 and touching only the modified bits,
3318         * src/pic16/genarith.c (various functions): added macros FENTRY to
3319         emit function prologue in comments,
3320         * src/pic16/pcode.h: added functions debugf2, debugf3,
3321         * src/pic16/ralloc.c: partial fix for packForPush caused
3322         segmentation fault,
3323
3324 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3325
3326         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3327           <stsp AT users.sourceforge.net> with reversed byte order
3328         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3329
3330 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3331
3332         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3333           bug #1074377
3334         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3335         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3336
3337 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3338
3339         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3340
3341 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3342
3343         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3344           conditions,
3345           (setFromConditionArgs): friendly operand parser for peephole rules,
3346           (operandBaseName, operandsNotRelated): new peephole condition
3347           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3348           architecture specific register naming into account, handles n-way
3349           comparisons, and supports quoted literals
3350         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3351
3352 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3353
3354         * src/mcs51/peeph.def: fixed bug #1076940
3355
3356 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3357
3358         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3359
3360 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3361
3362         Adding support for replacing ljmps with sjmps in jumptables
3363         generated for switch statements. For now you need to set the
3364         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3365         Now 4 algorithms for mcs51 jumptable generation are used:
3366         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3367         addresses loaded pc-relative for up to 112 cases and stack-pushing
3368         target addresses loaded with offset from dptr for up to 256 cases.
3369
3370         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3371         * src/mcs51/main.c: adapted constants for switch table generation
3372         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3373
3374 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3377         * support/regression/tests/bug1057979.c: added test for bug 1073386
3378
3379 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3380
3381         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3382         compilers
3383
3384 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3385
3386         * src/pic16/device.h,
3387         * src/pic16/genarith.c,
3388         * src/pic16/glue.c,
3389         * src/pic16/main.c,
3390         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3391
3392 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3393
3394         Large cummulative patch for pic16 port.
3395         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3396         to call when a stack overflow occurs,
3397         * (malloc.h): added CVS Id tag,
3398         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3399         variable,
3400         * added libc directory. The current version of LibC contains string
3401         functions, ctype functions and macros and some functions of the
3402         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3403         be extensively tested in the future. Standard disclaimer here.
3404         Library is not automatically build yet. But one can build it by
3405         invoking 'make' inside the libc directory.
3406         * added ADC library under libio. Preliminary version yet.
3407
3408         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3409         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3410         aopForRemat() now and not by pic16_aopOp(),
3411         * (pic16_popGetTempReg): removed warning messgae when allocating
3412         temporary registers, its a buggy feature and will be removed,
3413         * (pic16_popGet): set register instance field in AOP_CRY,
3414         * (pic16_outBitC): fixed for results in size greater than 1,
3415         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3416         * (pic16_storeForReturn): optimized return of 0,
3417         * (genCmp): experimental code for new genCmp which uses PIC18's
3418         special compare&skip instructions. Initial tests fail some times
3419         with variables grater than 1 byte in size, so new code is disabled,
3420         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3421         a single bit,
3422         * (genCast): began a fix to optimize the casting of a bit to another
3423         bit, now assigning a bitfield to another bitfield will fail, sorry,
3424         * src/pic16/main.c: disabled the use of lr-support feature,
3425         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3426         * added some function prototypes, added function _debugf prototype,
3427         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3428         bits with offset (case PO_GPR_BIT),
3429         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3430         command line,
3431         * (isBankInstruction): modified to return 0 for no banking instruction,
3432         and 1 for banking instruction,
3433         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3434         caused stop processing pCodes after a inline assembly block,
3435         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3436         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3437         registers when it shouldn't,
3438         * src/pic16/ralloc.c (allocReg): add preliminary support for
3439         supporting a limited set of temporary registers,
3440
3441 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3442
3443         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3444           genDataPointerSet): ensure assignments always copy in MSB to LSB
3445           order,
3446           (loadRegFromAop): recognize CLRH optimization,
3447           (genFunction): optimize RECEIVE iCodes in reentrant functions
3448
3449 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3450
3451         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3452           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3453           selected.
3454         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3455         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3456           contiguous with data
3457
3458 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3459
3460         * device/lib/_gptrget.c (_gptrget),
3461         * device/lib/_gptrgetc.c (_gptrgetc),
3462         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3463           instead of sjmp to ret
3464         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3465           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3466
3467 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3468
3469         * .version: bumped version to 2.4.7
3470         * device/lib/_gptrget.c (_gptrget): is now _naked
3471         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3472         * device/lib/_gptrput.c (_gptrput): is now _naked
3473         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3474           (createFunction): fixed xstack
3475         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3476         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3477           or bit either,
3478           (geniCodeCritical): store original interrupt state in an iTemp bit
3479           var unless stack-auto
3480         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3481         * src/SDCCmain.c (setIncludePath): added include/target to search path
3482         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3483         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3484           prototype,
3485           (processFuncArgs): put bit vars in bit area
3486         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3487           unsaveRBank): fixed xstack,
3488           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3489           (genFunction, genEndFunction): fixed xstack,
3490           (genAssign): optimization don't walk backwards through mem
3491         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3492         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3493         * support/regression/Makefile: also make library (for stack-auto) when
3494           making "all" and added "test-mcs51-xstack-auto"
3495         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3496         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3497         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3498         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3499         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3500           make-library by MAKE_LIBRARY
3501         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3502           regression tests for xstack
3503         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3504         * support/regression/tests/critical.c: test for critical on mcs51
3505
3506 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3507
3508         * support/regression/ports/ucz80/spec.mk: use include and lib files from
3509           built version of sdcc instead of installed version
3510
3511 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3512
3513         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3514         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3515           vprintf.c now
3516         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3517         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3518           WARNING: remove device/lib/build/z80/printf.o by hand when
3519           updating from previous build!
3520         * device/lib/z80/printf.c: updated comment
3521         * support/regression/tests/bug1057979.c: test all ports now
3522         * support/regression/tests/bug1065458.c: file added
3523
3524 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3525
3526         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3527           *_start and *_end symbols for static functions
3528
3529 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3530
3531         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3532           and search crt0.o in all library paths,
3533           (setIncludePath): proper handling of --nostdinc,
3534           (setLibPath): proper handling of --nostdlib
3535         * support/regression/Makefile,
3536         * support/regression/ports/ds390/spec.mk,
3537         * support/regression/ports/gbz80/spec.mk,
3538         * support/regression/ports/hc08/spec.mk,
3539         * support/regression/ports/mcs51/spec.mk,
3540         * support/regression/ports/mcs51-large/spec.mk,
3541         * support/regression/ports/mcs51-stack-auto/spec.mk,
3542         * support/regression/ports/z80/spec.mk: use include and lib files from
3543           built version of sdcc instead of installed version
3544         * doc/sdccman.lyx: fixed typo in --nostdinc
3545
3546 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3547
3548         * src/pic/pcode.c,
3549         * src/pic/device.c,
3550         * src/pic/ralloc.c,
3551         * src/pic/gen.c : added support to generate code for struct bit fields.
3552
3553 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3554
3555         * as/xa51/xa_version.h,
3556         * device/include/errno.h,
3557         * device/include/regc515c.h,
3558         * device/lib/_itoa.c,
3559         * device/lib/_ltoa.c,
3560         * device/lib/ser_ir_cts_rts.c,
3561         * sim/ucsim/xa.src/glob.cc,
3562         * sim/ucsim/xa.src/inst_gen.cc,
3563         * sim/ucsim/xa.src/xa_bit.cc,
3564         * sim/ucsim/xa.src/xa_sfr.cc,
3565         * sim/ucsim/z80.src/inst_dd.cc,
3566         * sim/ucsim/z80.src/inst_fdcb.cc,
3567         * support/scripts/keil2sdcc.pl,
3568         * src/pic16/pic16.dsp,
3569         * src/pic16/pic16a.dsp: corrected cvs line endings
3570         * device/lib/printf_large.c: fixed bug 1057979
3571         * src/pic16/gen.c: fixed non-C standard code
3572         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3573         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3574         * support/regression/ports/mcs51/support.c: reload T1 asap
3575         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3576           pdata use and clear idata startup behaviour
3577         * support/regression/tests/bug1057979.c: added
3578
3579 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3580
3581         * device/examples/ds390/ow390/ad26.h,
3582         * device/examples/ds390/ow390/cnt1d.h,
3583         * device/examples/ds390/ow390/crcutil.c,
3584         * device/examples/ds390/ow390/ownet.h,
3585         * device/examples/ds390/ow390/owsesu.c,
3586         * device/examples/ds390/ow390/swt12.h,
3587         * device/examples/ds390/ow390/swtoper.c,
3588         * device/examples/ds390/ow390/temp10.h,
3589         * device/examples/ds390/ow390/thermodl.c,
3590         * device/examples/ds390/tinitalk/tinitalk.dsp,
3591         * device/examples/ds390/tinitalk/tinitalk.dsw,
3592         * device/examples/mcs51/clock/hw.h,
3593         * device/examples/mcs51/simple2/go.bat,
3594         * device/examples/serialcomm/windows/serial.h,
3595         * device/examples/xa51/dummy.c,
3596         * device/examples/xa51/hello.c,
3597         * device/include/80c51xa.h,
3598         * device/include/at89x051.h: corrected cvs line endings
3599
3600 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3601
3602         * src/pic16/main.c (options): added command line --gstack, to trace
3603         stack over/under flows,
3604         * added pragma 'wparam' to allow passing first byte of function
3605         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3606         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3607         call to __gstack_test function and sets up the symbol as extern,
3608         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3609         * popaop): added call to pic16_testStackOverflow,
3610         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3611         wparamList list,
3612         * (genCall, genPcall): now all parameters are passed via stack
3613         except in functions that are pass to wparam pragma in which WREG is
3614         used too,
3615         * (genPcall): REENTRANT flag is checked to see if variable prototype
3616         contains reentrant keyword, don't call a non-reentrant function, via
3617         a reentrant function pointer or vice versa, functions are never
3618         passed via WREG,
3619         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3620         D.Winkler,
3621         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3622         SIGSEGV when accessing a NULL register stucture,
3623         * (pic16_printGPointerType): modified to handle UPPER modifier for
3624         function initializers, changed prototype of function to simpler one,
3625         * (pic16_printIvalFuncPtr): check to see if function is already
3626         added in externs list,
3627         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3628         optimized a move from W to SFR with a move to the same register
3629         later after a CALL,
3630         * device/lib/pic16/debug: NEW directory, contains debug features
3631         which are enabled when linking with libdebug.lib, currently command
3632         line option --gstack enables stack pointer tracing for over/under
3633         flow, corresponding sources are in debug/gstack
3634
3635 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3636
3637         * doc/sdccman.lyx: updated SDCC version,
3638         * (PIC16 port): update list of command line options,
3639         * src/pic16/device.h (structure pic16_options_t): added field gstack
3640         to enable stack overflow tracing on push/pops,
3641         * src/pic16/device.c (statistics structure): added statistics
3642         structure,
3643         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3644         pic16_dump_int_registers): increase statistics counters for each
3645         * variable which is encountered
3646         * (pic16_dump_usection): emit each .udata variable to its own udata
3647         section,
3648         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3649         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3650         parameters via stack, otherwise use old scheme,
3651         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3652         assembler output file,
3653         * src/pic16/main.c: added command line options --gstack to enable
3654         push/pop tracing for stack overflow,
3655         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3656         instructions): added size of each instruction,
3657         * (pic16_countInstruction): estimate size of instructions in
3658         the_pFile list, inline assembly blocks are not counted,
3659         * (pic16_FixRegisterBanking): trace previous register usage, when
3660         banksel optimizations is greater than 0, don't emit a redudant
3661         banksel directive,
3662
3663 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3664
3665         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3666         * src/pic16/ralloc.c : applied same fix for pic16.
3667         * src/pic/gen.c : tidied it up a little.
3668
3669 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3670
3671         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3672         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3673
3674 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3675
3676         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3677
3678 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3679
3680         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3681         non-reentrant function __modsint in the interrupt function (thus
3682         corrupting math operations during serial I/O)
3683         * device/lib/ser_ir.c: as above, changed buffersize
3684         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3685         256.c,d for zeroing
3686         * doc/Makefile: added option -t for rsync
3687
3688 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3689
3690         * src/SDCCast.h (struct ast),
3691         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3692
3693 2004-10-20 Borut Razem <borut.razem AT siol.net>
3694
3695         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3696         package
3697
3698 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3699
3700         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3701         makefile targets,
3702         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3703         support functions to replace long sequences of MOVFF's from access
3704         bank registers to stack and vice versa,
3705         * src/pic16/device.h: added new field opt_flags, where optimization
3706         flags can be set to enable certain features,
3707         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3708         * pBlock, (genFunction, genEndFunction): surroung loop for
3709         saving/loading used registers in stack with PC_INFO pCodes,
3710         INF_LREGS. Code in between can then be optimized by pCode optimizer
3711         to support function calls,
3712         * (genDataPointerSet): fixed bug which loaded float fields in
3713         structures with corrupt data,
3714         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3715         in a standard way debug info on stderr. Feature used for developing
3716         and debugging only,
3717         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3718         obsolete chunks of code,
3719         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3720         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3721         * pic16/src/pcode.c (pic16_newpCodeInfo,
3722         * (pic16_newpCodeOpLocalRegs),
3723         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3724         feature,
3725         * (pic16_pCodeConstString): printing of the initial value of a
3726         symbol as a comment is inhibited since parsing was already done by
3727         copyStr and output is corrupt,
3728         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3729
3730 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3731
3732         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3733
3734 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3735
3736         * as/mcs51/lkarea.c: removed old K&R style,
3737           (lnksect): changed check on boundary error,
3738           (lnksect2): changed check on boundary error,
3739           (lnksect2): extend XSTK to end of page if size = 1
3740         * as/mcs51/lkmain.c: removed old K&R style,
3741           (Areas51): create l_IRAM symbol
3742         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3743         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3744           model-mcs51-stack-auto, added model-mcs51-xstack-auto
3745         * device/lib/_mullong.c: added version to be compiled with xstack
3746         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3747         * device/lib/mcs51/crtxclear.asm: clear pdata as well
3748         * device/lib/mcs51/crtxstack.asm: fixed comment
3749         * src/SDCCglue.c: maxInterrupts defaults to 0,
3750           (emitMaps): added pdata,
3751           (createInterruptVect): (re)moved default,
3752           (glue): added pdata,
3753           (glue): moved __start__xstack to XSTK with default size 1
3754         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3755           and options.float_rent when options.stackAuto is set,
3756           (linkEdit): only write XDATA_NAME if provided on command line
3757         * src/SDCCmem.h,
3758         * src/SDCCmem.c: added pdata
3759         * src/port.h: added pdata_name to PORT
3760         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3761           (saveRegisters, unsaveRegisters): removed usage of B,
3762           (genMinus): fixed accumulator clash,
3763           (genJumpTab): added comment, this needs another look
3764         * src/mcs51/gen.c: added check for "B in use" paranoia,
3765           added pushB() and popB()
3766         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3767           chance
3768         * src/avr/main.c,
3769         * src/ds390/main.c,
3770         * src/hc08/main.c,
3771         * src/mcs51/main.c,
3772         * src/pic/main.c,
3773         * src/pic16/main.c,
3774         * src/xa51/main.c,
3775         * src/z80/main.c: (reset_regparms) made void parameter explicit and
3776           added PSEG (PAG,XDATA) or NULL to port specifier
3777         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3778         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3779           (_mcs51_genInitStartup): removed __start__xstack equ,
3780           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3781         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3782         * src/z80/gen.c (_rleAppend): fixed warnings
3783         * support/regression/tests/zeropad.c: added pdata test
3784         * .version: bumped to 2.4.6
3785
3786 2004-10-17 Borut Razem <borut.razem AT siol.net>
3787
3788         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3789         as a part of nightly build
3790
3791 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3792
3793         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3794         WREG holds the first byte function parameters,
3795         * (aopForSym): take special case for symbols which are in FARSPACE
3796         but in CODESPACE too,
3797         * (assignResultValue): modified to take into account _G.useWreg,
3798         * (genCall): don't use wreg for parameter passing when function is
3799         declared as reentrant, too, added optimization INCF to stack
3800         pointer when stack parameter count is 1,
3801         * (genFunction, genEndFunction): refurnished and fixed to not using
3802         wreg for passing parameters when function has varargs or is
3803         reentrant, fixed bug with symbol name compare for generating
3804         functions in absolute address,
3805         * (pic16_storeForReturn): refurnished,
3806         * (genCmp): began writing a new version of the function, not ready
3807         yet, therefore it is disabled,
3808         * (genAssign): do not read code memory when assigning a function to
3809         a pointer function,
3810         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3811         array of characters, not pointer,
3812         * (pic16initialComments): in debug mode emit an .ident directive for
3813         the assembler,
3814         * (_process_pragma): emit a new warning type (internal to pic16)
3815         when setting stack to default length, emit a similar warning when
3816         placing a function at absolute address and address is not word aligned
3817         * (_pic16_parseOptions): added 'return TRUE' statement,
3818         * (_pic16_linkEdit): if compiling a source, then add the source's
3819         file object, first in the list of objects to link,
3820
3821 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3822
3823         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3824         * src/pic/main.c : removed VC warning.
3825         * src/pic/gen.c : changed comment.
3826
3827 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3828
3829         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3830         reference to a deprecated symbol _GPTRREG was causing failure to
3831         link. Thanks G. M. Gallant for the info.
3832
3833 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3834
3835         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3836         comments for Bugs item #954788.
3837
3838 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3839
3840         * src/pic16/device.c (pic16_dump_gsection,
3841         * pic16_groupRegistersInSection): handle symbols declared to be in
3842         access bank differently,
3843         * src/pic16/gen.c (struct _G): added field resDirect,
3844         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3845         send values read from stack directly to result and don't allocate
3846         temporary values,
3847         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3848         same registers,
3849         * (pic16_sameRegsOfs): NEW,
3850         * (freeAsmop): if _G.resDirect is set then do not mark registers as
3851         free because they were not allocated from temporary pool,
3852         * pic16_popRegFromString): workaround to fix a problem with
3853         allocating variables twice or never,
3854         * (genGenPointerGet): using PRODL instead of FSR0H,
3855         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3856         instead of FSR0H,
3857         * (genAssign): take advantage of the _G.resDirect flag,
3858         * (genCast): around line 11844, use mov2f instead of directly
3859         MOVFF'ing between operands to account for literal values,
3860         * src/pic16/genutils.c: some new debug functions for gpsim have been
3861         added,
3862         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3863         float with integer part only,
3864         * src/pic16/main.c (_process_pragma): handle pragma udata access to
3865         place variables in access bank
3866         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3867         updated sources to reflect recent changes in gen.c
3868
3869 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3870
3871         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3872         sources that searched for headers in installation path, now the
3873         device/include/pic16 is used,
3874         * src/pic16/glue.c (pic16glue),
3875         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
3876         .line directives if not in debug mode, this suppresses assembler's
3877         warnings for ignored directives
3878
3879 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3880
3881         * src/port.h: made reset_regparms prototype void parameter explicit.
3882         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
3883         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
3884         * doc/sdccman.lyx: documented warning disabling and how to use
3885           printf_large to make it print floats.
3886         * device/include/stdbool.h: NEW
3887         * device/lib/_atof.c,
3888         * device/lib/_divuint.c,
3889         * device/lib/_divulong.c,
3890         * device/lib/expf.c,
3891         * device/lib/printf_large.c,
3892         * device/lib/sincosf.c,
3893         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3894         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3895           a completely reentrant lib.
3896
3897 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3898
3899         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3900         * device/include/pic16/stdio.h: fixed bug with colon
3901
3902 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3903
3904         * device/include/pic16/stdio.h,
3905         * device/include/pic16/stdlib.h,
3906         * device/include/pic16/math.h: NEW
3907         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3908         declared as _naked to reduce overhead
3909         * device/lib/Makefile.in (target port-specific-objects-pic16):
3910         changed * to *.* so to ignore the CVS directory,
3911         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3912         stacked variables back in stack,
3913         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3914         corruption
3915
3916 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3917
3918         * .version: bumped version number to 2.4.5
3919         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3920         * support/Util/SDCCerr.c (messages structure): added entry for
3921         W_POSSBUG2
3922
3923         Large cumulative patch for pic16 port and libraries.
3924         * device/include/pic16/sdcc-lib.h,
3925         * device/include/pic16/stdarg.h,
3926         * device/include/asm/pic16/features.h,
3927         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3928         * device/include/pic16/float.h: changes reentrant keyword with
3929         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3930         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3931         updated target build-libraries to include objects from gptr,
3932         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3933         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3934         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3935         all function headings,
3936         * src/SDCCmain.c: added global parameter userIncDirsSet,
3937         * (parseCmdLine): when option -I is encountered add directory to
3938         userIncDirsSet too,
3939         * src/version.awk: added space between control and long,
3940         * src/pic16/NOTES: added some notes for the port,
3941         * src/pic16/gen.c: added prototype for mov2fp function,
3942         * (fReturnpic16[]): properly named return value registers,
3943         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3944         * (aopForSym): added code to handle symbols with onStack flag set,
3945         symbols onStack are allocated PTRSIZE bytes,
3946         * (aopFreeAsmop): handles special case where asmops are stack objects,
3947         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3948         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3949         added argument lock to trace flaws in allocating temporary registers
3950         when developing port,
3951         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3952         * (pic16_popRegFromString): reenabled allocating a direct register
3953         from string,
3954         * (assignResultValue): various beautifications,
3955         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3956         referenced function argument,
3957         * (genIpush): reenabled to allow stacked arguments, handles only
3958         ic->parmPush iCodes,
3959         * (genCall, genPcall): major changes to allow for variable argument
3960         functions, fixed a bug with falsely restoring stack pointer after
3961         returning from call,
3962         * (genFunction): pending code for critical function,
3963         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3964         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3965         * (genNearPointerGet): fixed bug with indirect reading, was always
3966         reading from INDF0
3967         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3968         pointers,
3969         * (genAddrOf): rewrote code to take address of a stacked function parameter
3970         * (genCast): fixed casting to generic pointer type,
3971         * src/pic16/gen.h: added AOP_STA,
3972         * (struct asmop): added field stk,
3973         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3974         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3975         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3976         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3977         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3978         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3979         generic pointers,
3980         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3981         and library paths,
3982         * (pic16_port structure): generic pointer size is set to 3,
3983         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3984         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3985         compiler warning,
3986         * src/pic16/ralloc.c (allocReg): prevent allocating register when
3987         operand is an iTemp,
3988
3989 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3990
3991         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3992         * debugger/mcs51/simi.c: addapt new syntax of s51
3993
3994 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3995
3996         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3997         * src/pic16/pcode.c: commented out some calls to free() in order to
3998         fix bug #989576,
3999
4000 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4001
4002         * src/SDCCicode.h,
4003         * src/SDCCicode.c (isiCodeInFunctionCall),
4004         * src/avr/ralloc.c (selectSpil),
4005         * src/pic/ralloc.c (selectSpil),
4006         * src/pic16/ralloc.c (selectSpil),
4007         * src/ds390/ralloc.c (selectSpil),
4008         * src/hc08/ralloc.c (selectSpil),
4009         * src/xa51/ralloc.c (selectSpil),
4010         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4011         stack in the middle of a function call sequence (fixes bug #1020268)
4012         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4013         costs associated with the minimum switch case.
4014
4015 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4016
4017         * src/SDCC.lex: fixed bug #1030549
4018
4019 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4020
4021         * src/SDCCcse.h (struct cseDef),
4022         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4023         over a function call if the CSE is derived from a symbol whose
4024         address has been taken (fixes bug #1029883)
4025         * support/regression/tests/bug-1029883: a new regression test for
4026         this bug
4027
4028 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4029
4030         * src/hc08/gen.c (emitinline): fixed bug #1029778
4031         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4032         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4033         and starts toward RFE #905167)
4034
4035 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4036
4037         * src/pic16/gen.c (mov2f): New function to move an operand to
4038         another without considering if it is a literal or a register,
4039         * (pic16_sameRegs): don't check if they are both AOP_REG,
4040         * (AccRsh): removed andmask=0 lines,
4041         * (genLeftShift): duplicated to be improved in future versions,
4042         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4043         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4044         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4045         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4046         * (insertBankSwitch): fixed inserting banksel directives algorithm
4047         for instructions that follow a skip instruction, this fixes a report
4048         for broken subtraction code generation,
4049         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4050         iCode is a left op, just in case result and right share the same
4051         registers
4052
4053 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4054
4055         * src/hc08/main.c,
4056         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4057         preservation of HX
4058         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4059         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4060         on 2004-09-12; it was buggy
4061
4062 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4063
4064         * src/SDCCsymt.h: removed RESULT_CHECK
4065         * src/SDCCast.c,
4066         * src/SDCCglue.c,
4067         * src/SDCCval.c,
4068         * src/pic/glue.c,
4069         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4070
4071 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4072
4073         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4074         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4075         configuration values no more rejected by compiler, they are assigned
4076         to configuration registers with a warning message instead,
4077         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4078         the for-loop so last conf register is emitted too,
4079         * (_pic16_initPaths): link library libsdcc.lib by default,
4080         * (_hasNativeMulFor): modified test for multiplication according to
4081         Raphael Neider's remarks. Integer multiplication is also done with
4082         support functions,
4083         * device/include/pic16/pic18fregs.h: corrected type error in while
4084         testing and including 18f6720 header file
4085
4086 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4087
4088         * src/pic16/device.h (pic16_options): removed field use_crt,
4089         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4090         until an optimization to handle single bits is added,
4091         * (pic16_loadFSR0): moved before genUnpackBits,
4092         * (genAnd): some white lines removed,
4093         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4094         leave_reset flags in pic16_options when using crt modules,
4095
4096 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4097
4098         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4099           for bugs 898889 & 979599. Also used some safer print instructions.
4100
4101 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4102
4103         * src/pic16/device.h (pic16_options_t): added field use_crt,
4104         crt_name, no_crt,
4105         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4106         catch a probable future bug,
4107         * src/pic16/gen.c: aopIdx function commented out,
4108         * (genAssign): commented out old code which used aopIdx,
4109         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4110         code, added if conditionals to take into account the --use-crt
4111         command line options,
4112         * src/pic16/main.c (pic16_optionsTable): added new command line
4113         options, --use-crt= and --no-crt,
4114         * (_pic16_linkEdit): now the proper crt object is added in the
4115         linker command line except than when --no-crt is specified,
4116         * src/pic16/pcode.c,
4117         * src/pic16/pcode.h: added some structures and functions for a new
4118         optimization scheme to compansate for instruction overhead between
4119         same iCodes, this scheme is currently under development and is not
4120         working in any way,
4121         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4122         to && operator,
4123         * device/lib/pic16/startup/crt0i.c,
4124         * device/lib/pic16/startup/crt0iz.c: added global char variable
4125         __uflags to force the generation of an idata section
4126
4127 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4128
4129         * doc/Makefile,
4130         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4131         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4132
4133 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4134
4135         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4136         Frieder) and clarified the default code optimization mode
4137
4138 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4139
4140         * src/SDCC.lex (doPragma, process_pragma),
4141         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4142         "opt_code_size", and "opt_code_balanced"
4143         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4144         regrouped options by category, added support for category headers
4145         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4146         and "--opt-code-size"
4147         * doc/sdccman.lyx: documented these new options and pragmas
4148         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4149         preference into account
4150
4151 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4152
4153         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4154           geniCodePreDec): Fixed bug 904237 by generating a warning
4155         * src/SDCCerr.h,
4156         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4157
4158 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4159
4160         * src/pic/device.c : When no max ram set validate full memory range.
4161         * src/pic/pcode.c,
4162         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4163
4164 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4165
4166         * device/lib/_gptrget.c,
4167         * device/lib/_gptrput.c: updated comment
4168         * device/lib/calloc.c,
4169         * device/lib/free.c,
4170         * device/lib/malloc.c,
4171         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4172         * src/SDCCcse.c (cseBBlock),
4173         * src/SDCCicode.c (printOperand, geniCodeArray),
4174         * src/SDCCicode.h (struct operand): fixed bug 868103
4175         * support/regression/tests/bug-868103.c: added
4176         * src/SDCCast.c (searchLitOp),
4177         * src/SDCCcse.h (struct cseDef),
4178         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4179         * src/SDCCicode.h (struct operand),
4180         * src/SDCCsymt.h (struct sym_link),
4181         * src/avr/gen.c (hasInc),
4182         * src/ds390/gen.c (hasInc),
4183         * src/hc08/gen.c (genPlusIncr, hasInc),
4184         * src/mcs51/gen.c (hasInc),
4185         * src/pic16/glue.c (pic16_printIvalChar),
4186         * src/pic16/ralloc.c (regWithIdx),
4187         * src/xa51/gen.c (hasInc) : removed warnings
4188         * src/SDCCast.c (createBlock): added comment ???
4189         * src/hc08/ralloc.c: updated comments
4190
4191 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4192
4193         * doc/sdccman.lyx: updated section on switch statements, added
4194         section about semaphore locking
4195         * doc/Makefile: added option -info for latex2html
4196         * device/lib/_gptrget.c,
4197         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4198
4199 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4200
4201         * src/pic/device.h,
4202         * src/pic/device.c,
4203         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4204          maxram is less than 0x100.
4205
4206 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4207
4208         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4209
4210 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4211
4212         * src/port.h,
4213         * src/mcs51/main.c,
4214         * src/ds390/main.c,
4215         * src/z80/main.c,
4216         * src/hc08/main.c,
4217         * src/pic/main.c,
4218         * src/pic16/main.c,
4219         * src/avr/main.c,
4220         * src/xa51/main.c
4221         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4222         a jump table is the best form for a switch statement, including
4223         automatic insertion of missing cases to make the case range
4224         continuous. Developed in collaboration with Frieder Ferlemann.
4225
4226 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4227
4228         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4229         accumulator result if it needs sign extension
4230
4231 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4232
4233         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4234
4235 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4236
4237         * device/lib/gbz80/printf.c,
4238         * device/lib/z80/printf.c: removed define for NULL
4239
4240 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4241
4242         * as/xa51/xa_link.c,
4243         * device/examples/ds390/ow390/ad26.c,
4244         * device/examples/ds390/ow390/cnt1d.c,
4245         * device/examples/ds390/ow390/counter.c,
4246         * device/examples/ds390/ow390/ds2480.h,
4247         * device/examples/ds390/ow390/ds2480ut.c,
4248         * device/examples/ds390/ow390/findtype.c,
4249         * device/examples/ds390/ow390/gethumd.c,
4250         * device/examples/ds390/ow390/owllu.c,
4251         * device/examples/ds390/ow390/ownetu.c,
4252         * device/examples/ds390/ow390/swt12.c,
4253         * device/examples/ds390/ow390/swtloop.c,
4254         * device/examples/ds390/ow390/temp.c,
4255         * device/examples/ds390/ow390/temp10.c,
4256         * device/examples/ds390/ow390/thermo21.c,
4257         * device/examples/ds390/ow390/tinilnk.c,
4258         * device/examples/ds390/ow390/tstfind.c,
4259         * device/examples/serialcomm/windows/serial.cpp,
4260         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4261         * device/include/reg51.h: fixed line endings for cvs
4262
4263 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4264
4265         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4266         packRegsForAccUse, packRegisters): new accumulator register
4267         packing algorithm
4268         * support/regression/ports/hc08/support.c (_putchar): suppress
4269         warning of unused variable
4270         * src/SDCCicode.c: added SWAP entry to codeTable
4271
4272 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4273
4274         * device/lib/sprintf.c: forgot to add this file before previous commit
4275
4276 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4277
4278         * src/pic16/gen.c (genPackBits): added operand right in function
4279         parameters, load result directly if p_type is POINTER (that is
4280         called by genNearPointerSet)
4281         * (genUnPackBits): added operand left in function parameters,
4282         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4283         FSR0 if accessing bitfields,
4284
4285 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4286
4287         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4288           _print_format; updated printf, sprintf, vsprintf
4289         * device/include/asm/default/features.h: corrected comment/define
4290         * device/lib/Makefile.in: added sprintf.c
4291         * device/lib/libsdcc.lib: added sprintf module
4292         * device/lib/printf_large.c,
4293         * device/lib/vprintf.c,
4294         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4295           into these 3 files
4296         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4297         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4298         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4299           hc08 test
4300         * support/regression/tests/zeropad.c: define idata as data for hc08
4301
4302 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4303
4304         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4305         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4306         labels are referenced at least once (even if a reference is not found)
4307         * src/hc08/gen.c (emitcode): set isComment flag for comments
4308         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4309         loads), rules 6a..6b (optimize jumps to return)
4310
4311 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4312
4313         * device/lib/acosf.c (acosf),
4314         * device/lib/asinf.c (asinf),
4315         * device/lib/atanf.c (atanf),
4316         * device/lib/ceilf.c (ceilf),
4317         * device/lib/cosf.c (cosf),
4318         * device/lib/coshf.c (coshf),
4319         * device/lib/cotf.c (cotf),
4320         * device/lib/fabsf.c (fabsf),
4321         * device/lib/floorf.c (floorf),
4322         * device/lib/log10f.c (log10f),
4323         * device/lib/logf.c (logf),
4324         * device/lib/sinf.c (sinf),
4325         * device/lib/sinhf.c (sinhf),
4326         * device/lib/sqrtf.c (sqrtf),
4327         * device/lib/tanf.c (tanf),
4328         * device/lib/tanhf.c (tanhf),
4329         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4330         replaced all instances of "reentrant" in the library functions
4331         defined in math.h with this macro.
4332         * support/regression/tests/float_trans.c: reenabled test for hc08
4333
4334 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4335
4336         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4337         erroneously deleted
4338
4339 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4340
4341         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4342         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4343         multi-byte volatile operands are used
4344         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4345         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4346         initialization to area GSINIT0 so that it would always precede
4347         any static initializers in GSINIT
4348         * support/regression/tests/zeropad.c: fixed idata define for hc08
4349         * support/regression/tests/bug-927659.c,
4350         * support/regression/tests/float_trans.c: disabled tests for hc08
4351         pending missing library routines
4352         * .version: increased version number to 2.4.4 - hc08 port now passes
4353         regression tests
4354
4355
4356 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4357
4358         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4359         * Makefile.common.in,
4360         * as/Makefile,
4361         * as/hc08/Makefile.in,
4362         * as/mcs51/Makefile.in,
4363         * as/z80/Makefile.in,
4364         * debugger/mcs51/Makefile.in,
4365         * device/include/Makefile.in,
4366         * device/lib/Makefile.in,
4367         * doc/Makefile,
4368         * link/Makefile,
4369         * link/z80/Makefile.in,
4370         * packihx/Makefile.in,
4371         * sim/ucsim/main_in.mk,
4372         * sim/ucsim/avr.src/Makefile.in,
4373         * sim/ucsim/doc/Makefile.in,
4374         * sim/ucsim/gui.src/serio.src/Makefile.in,
4375         * sim/ucsim/hc08.src/Makefile.in,
4376         * sim/ucsim/s51.src/Makefile.in,
4377         * sim/ucsim/xa.src/Makefile.in,
4378         * sim/ucsim/z80.src/Makefile.in,
4379         * src/Makefile.in,
4380         * support/cpp2/Makefile.in,
4381         * support/librarian/Makefile,
4382         * support/makebin/Makefile: added DESTDIR to the install path proposed
4383         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4384         * doc/sdccman.lyx: added DESTDIR documentation
4385
4386 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4387
4388         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4389         instruction for interrupt handlers, use fast returns when returning
4390         from high priority interrupts
4391
4392 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4393
4394         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4395         code generation
4396         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4397         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4398         bugs, ported much of Bernhard's code from mcs51
4399         * src/mcs51/gen.c (genSend),
4400         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4401         than one when calling a reentrant function
4402         * device/lib/_mullong.c: defined an alternate struct layout for big
4403         endian ports (hc08)
4404
4405 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4406
4407         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4408         test
4409
4410 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4411
4412         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4413         are sane and complete before asking the port its prefered parameter
4414         passing method (fixes bug #1017633)
4415         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4416         and _ret3
4417
4418 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4419
4420         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4421         problem in bitfields >= 8 bits.
4422
4423 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4424
4425         * src/SDCCsymt.c: undid changes that were not meant to be committed
4426
4427 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4428
4429         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4430
4431 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4432
4433         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4434           copied and wrong bit got inverted
4435
4436 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4437
4438         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4439         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4440         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4441         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4442         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4443         assignments to bitfields at known addresses
4444         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4445         reads from bitfields at known addresses
4446         * src/hc08/ralloc.c (packRegisters),
4447         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4448         genhc08Code): optimize pointer get values used as conditionals
4449         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4450         and branch
4451
4452 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453
4454         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4455         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4456         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4457         as conditionals
4458
4459 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4460
4461         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4462
4463 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4464
4465         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4466         related problems
4467
4468 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4469
4470         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4471
4472 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4473
4474         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4475         mcs51 port
4476
4477 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4478
4479         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4480
4481 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4482
4483         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4484         cases use more compact code.
4485
4486 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4487
4488         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4489
4490 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4491
4492         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4493
4494 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4495
4496         * src/SDCCsymt.h,
4497         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4498         parameter of changePointer() from symbol* to sym_link*
4499         * src/SDCCast.c (decorateType): call changePointer() for CAST op
4500         * src/SDCCsymt.c (compareType): void* type is castable to other
4501         pointers, but not necesarily an exact match.
4502         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4503         is no longer blindly treated as an exact match.
4504         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4505
4506 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4507
4508         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4509
4510 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4511
4512         * src/pic/gen.c,
4513         * src/pic/pcode.c,
4514         * src/pic/ralloc.h,
4515         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4516
4517 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4518
4519         * src/pic/device.c,
4520         * src/pic/device.h,
4521         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4522
4523 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4524
4525         * src/mcs51/gen.c (emitcode): fixed bug #992819
4526
4527 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4528
4529         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4530           there's no need to make it worse
4531
4532 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4533
4534         * src/mcs51/ralloc.c (deassignLR),
4535         * src/ds390/ralloc.c (deassignLR),
4536         * src/hc08/ralloc.c (deassignLR),
4537         * src/z80/ralloc.c (deassignLR),
4538         * src/pic/ralloc.c (deassignLR),
4539         * src/pic16/ralloc.c (deassignLR),
4540         * src/avr/ralloc.c (deassignLR),
4541         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4542         rlivePoint): fixed another part of bug #971834
4543
4544 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4545
4546         * src/z80/main.c: enabled "critical" keyword
4547         * src/z80/mappings.i,
4548         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4549         functions (fixes bug #979646)
4550         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4551
4552 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4553
4554         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4555           such as c:\mydir.
4556
4557 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4558
4559         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4560           doesn't disable too much optimizations
4561
4562 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4563
4564         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4565
4566 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4567
4568         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4569
4570 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4571
4572         * src/pic/gen.c tidied up tabs
4573         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4574         * src/pic/main.c tidied up tabs
4575         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4576         * src/pic/pcoderegs.c tidied up tabs
4577         * src/pic/ralloc.c tidied up tabs
4578
4579 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4580
4581         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4582         to S_FIXED for pic16 port and when symbol is not in level 0,
4583         allocate for S_REGISTER storage class and pic16 port, too,
4584         * src/pic16/device.h: prototype for checkSym,
4585         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4586         * (pic16_assignConfigWordValue): test the value and the mask to
4587         validate that the value is suitable for the configuration word,
4588         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4589         collect extern declared symbols, don't emit symbol twice, check
4590         first if symbol is in publics set first,
4591         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4592         * added command line '--fstack' which enables an experimental
4593         feature for stack access, too buggy to be used yet...
4594         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4595         * (pic16_allocDirReg): when register has storage class S_REGISTER
4596         allocate in pic16_dynAccessRegs,
4597         * device/include/pic16/pic18f????.h: modified configuration word
4598         naming convention, words started as CONFIG0H but should be CONFIG1H
4599
4600 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4601
4602         * device/include/mcs51reg.h: fixed bug 970993
4603
4604 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4605
4606         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4607         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4608         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4609         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4610         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4611         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4612           error/warning numbers,
4613           added function setWarningDisabled()
4614         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4615         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4616           _memcmp.c _memmove.c calloc.c realloc.c free.c
4617         * support/regression/tests/malloc.c: added tests for new functionality
4618         * support/regression/tests/zeropad.c: added tests for truncated initializers
4619           and initialized char arrays starting with '\x0'
4620         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4621
4622 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4623
4624         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4625
4626 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4627
4628         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4629         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4630         peephole 177.e. Thanks to anonymous
4631
4632 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4633
4634         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4635         function isn't used in the source but referenced as a
4636         variable initializer then declare it as extern in .asm file
4637
4638 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4639
4640         * .version: increased version number to 2.4.3
4641
4642         Adding version extension according to ChangeLog CVS revision
4643         * src/Makefile.in (target all): added dependency 'version.h'
4644         * (rule version.h): added rule to create version.h from ChangeLog,
4645         * (rule dep): added dependency version.h,
4646         * src/version.awk: AWK script to create version.h
4647         * src/SDCCdwarf2.c (dwWriteModule),
4648         * src/SDCCglue.c (initialComments),
4649         * src/SDCCmain.c (printVersionInfo): modified to write after
4650         version string the version extension number,
4651         * src/SDCCutil.c: included "version.h"
4652         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4653         number,
4654         * src/SDCCutil.h: added prototype for getBuildNumber
4655
4656         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4657         includeDirsSet, too,
4658         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4659         const char [] is found in function prototype...
4660
4661         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4662         moving to WREG with source is already in WREG,
4663         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4664         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4665         * (aopForSym): stack'ed symbols are partially supported, added
4666         if-clause to support symbols in FARSPACE,
4667         * (sameRegs): added test for AOP_ACC to see if registers are same,
4668         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4669         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4670         * (pic16_popRegFromString): will not allocate a new register if it
4671         doesn't find one by name, bug may have introduced...
4672         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4673         * (genIpush): revived to use pic16 port's stack,
4674         * (genAddrOf): added incomplete case for stack'ed operand,
4675         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4676         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4677         can handle multibyte operands,
4678         * src/pic16/glue.c (pic16_printIval*): some debug info added,
4679         * (pic16initialComments): added message for MPLAB compatibility
4680         mode enabled,
4681         * src/pic16/main.h: prototype for pic16_mplab_comp,
4682         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4683         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4684         * (_pic16_linkEdit): NEW, handles link stage, transferred here
4685         because of increased complexity of procedure,
4686         * (_process_pragma): stack pragma changed to format 'stack pos len',
4687         emit symbol '_stack_end' to conform with gplink,
4688         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4689         to search for register,
4690         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4691         PO_GPR_REGISTER,
4692         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4693         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4694         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4695         case for PO_GPR_REGISTER,
4696         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4697         dies, the new era is ahead !...
4698         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4699         pic16_dynInternalRegs,
4700         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4701         * (pic16_allocDirReg): minor optimizations and bug fixes,
4702         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4703
4704         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4705         load stack and frame pointer with address of 'stack_end' symbol
4706
4707 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4708
4709         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4710         without source code but only variable initializers
4711
4712 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4713
4714         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4715         external are not declared as extern to reduce overhead while linking
4716
4717 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4718
4719         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4720
4721 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4722
4723         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4724           Yee Keat for the patch
4725         * src/SDCCast.c (decorateType): fixed bug #979599
4726         * src/ds390/gen.h: removed local fReturnSizeDS390
4727         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4728         * src/ds390/gen.c (genAnd, genOr, genXor),
4729         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4730
4731 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4732
4733         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4734         add relFilesSet to $3, manipulate $2 to handle linking of object
4735         files without source files in command line,
4736         * device/include/pic16 (all headers): added ID location macros,
4737         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4738         entries for ID location bytes,
4739         * (pic16_assignIdByteValue): NEW,
4740         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4741         added field dumpcalltree to pic16_options_t,
4742         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4743         is used instead of pic16_Gstack_base_addr, check if (ifx) before
4744         emitting rFalseIfx label after check_carry label,
4745         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4746         pic16_emitDIRegs), NEW
4747         * (pic16glue): dump .calltree file when option --calltree found,
4748         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4749         * (_pic16_genAssemblerPreamble): emit ID locations after
4750         configuration registers,
4751         * (pic16_linkCmd): modifications of the link command,
4752         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4753         * (pic16_pCodeInitRegisters): don't init stack registers,
4754         * (pic16_findPrevInstruction): fixed bug,
4755         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4756         bug with immediate registers,
4757         * (buildCallTree): traces stack push and pop,
4758         * (pct2): dump also stack usage for each function,
4759         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4760         * (pic16_allocDirReg): various modifications,
4761         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4762         fixed to 1,
4763
4764 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4765
4766         * src/pic16/pcode.c: removed buggy double colon
4767
4768 2004-07-01 Borut Razem <borut.razem AT siol.net>
4769
4770         * support/scripts/sdcc.nsi: added include/pic16 to setup
4771
4772 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4773
4774         * device/lib/Makefile.in: fixed bug in target objects-pic16,
4775         * device/lib/pic16/Makefile: prefixed with dash (-) command under
4776         target 'clean',
4777         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4778         specific command line arguments. Also added sample lkr script
4779         for placing a variable at a specific memory bank.
4780         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4781         at a specific memory bank,
4782         * (pic16_dump_isection): fixed bug which caused string literals to
4783         be omitted when dumping idata section,
4784         * (pic16_groupRegistersInSection): added code to handle registers
4785         in specific memory banks,
4786         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4787         public, all references are renamed too,
4788         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4789         AOP_DPTR2,
4790         * (pic16_storeForReturn): added case to handle when dest is WREG,
4791         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4792         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4793         pic16_rel_udata, check to see if that register is marked as being
4794         a member of a specific memory bank,
4795         * (pic16_printIvalCharPtr): added code to add string literals either
4796         to code or the idata sections,
4797         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4798         also accept the 'udata' pragma,
4799         * src/pic16/main.h: new structure types sectName and sectSym
4800         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4801         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4802         * (pic16_findPrevInstruction): fixed, it returned nothing,
4803         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4804         instruction combinations,
4805         * (pic16_FixRegisterBanking): heavily reorganised,
4806         * (pic16_AnalyzeBanking): if generating banksel directives is
4807         disabled, then don't call FixRegisterBanking at all,
4808         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4809         completely removed,
4810         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4811
4812 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4813
4814         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4815         Phuah Yee Keat <yk.phuah AT nestac.com>
4816
4817 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4818
4819         * src/pic16/glue.c (pic16createInterruptVect): function now emits
4820         correctly the IVT even if it is relocated to some other location
4821
4822 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4823
4824         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4825         * device/include/pic16/pic18f2220.h: NEW,
4826         * device/lib/pic16/libdev/pic18f2220.c: NEW,
4827         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4828         * src/pic16/device.c (struct Pics16): added info for 18f2220,
4829         * src/pic16/device.h (struct pic16_options): added ivt_loc and
4830         nodefaultlibs, ivt_loc is the location of the interrupt vector
4831         table, and nodefaultlibs signs that default libraries should not be
4832         linked in link stage,
4833         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4834         according to --ivt-loc argument,
4835         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4836         when pragma stack is found,
4837
4838 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4839
4840         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4841         256 (range check), 257 (do while), 258.a-f (bit banging
4842         f.e. on 3-wire SPI bus)
4843
4844 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4845
4846         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4847         variables used exclusively within a loop
4848
4849 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4850
4851         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4852
4853 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4854
4855         * src/SDCClrange.c (computeClash): fixed bug #971834
4856
4857 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4858
4859         * src/mcs51/gen.c (genCmp): fixed bug #975903
4860         * src/hc08/gen.c (operandsEqu),
4861         * src/ds390/gen.c (operandsEqu),
4862         * src/z80/gen.c (operandsEqu),
4863         * src/pic/gen.c (operandsEqu),
4864         * src/pic16/gen.c (operandsEqu),
4865         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4866         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4867
4868 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4869
4870         * src/SDCCcse.c (cseBBlock): fixed bug #966963
4871
4872 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
4873
4874         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
4875         default case in switch statement,
4876         * glue.c (pic16_initPointer): expr is initialised via decoarteType
4877         to eliminate problem with initialisation of pointers, but problem
4878         still exists,
4879         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
4880         * (emitStaticSegment): removed various lines emitting debug info,
4881         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
4882         added processor registers for utilizing EEPROM,
4883         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
4884         configurable and set 8
4885
4886 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4887
4888         * .version: increased version number to 2.4.2,
4889
4890         Cumulative patch for pic16 port
4891         * src/pic16/device.c: changed scheme to dump initial values for
4892         variables in idata segment, all print_idata* functions were removed,
4893         now the pic16_printIval* will be called,
4894         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4895         * _pic16_printPointerType, pic16_printPointerType,
4896         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4897         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4898         NEW, similar to the respective functions in SDCCglue.c,
4899         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4900         way, emitting hex bytes,
4901         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4902
4903 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4904
4905         * src/avr/ralloc.c (serialRegAssign),
4906         * src/xa51/ralloc.c (serialRegAssign),
4907         * src/pic/ralloc.c (serialRegAssign),
4908         * src/pic16/ralloc.c (serialRegAssign),
4909         * src/hc08/ralloc.c (serialRegAssign),
4910         * src/z80/ralloc.c (serialRegAssign),
4911         * src/ds390/ralloc.c (serialRegAssign),
4912         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4913
4914 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4915
4916         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4917         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4918
4919 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4920
4921         Cumulative patch for pic16 port:
4922         * src/pic16/device.h (typedef PIC16_device) modified fields for
4923         defining microcontrollers,
4924         * src/pic16/device.c: added new info for all devices in Pics16 array,
4925         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4926         to be optimised out by the pCode optimiser,
4927         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4928         specially, bug reported by G.M. Gallant,
4929         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4930         as force'd so that cannot be optimised out by pCode optimiser,
4931         * src/pic16/pcode.c,
4932         * src/pic16/pcodepeeph.c,
4933         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4934         they are disabled by default, but can be enabled explicit with
4935         command argument --denable-peeps, for testing,
4936         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4937         --pomit-ivt in COMPILE_FLAGS
4938
4939 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4940
4941         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4942           compilation on MSVC
4943
4944 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4945
4946         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4947
4948 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4949
4950         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4951         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4952
4953 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4954
4955         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4956         would only assign 0x300001 register.
4957
4958 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4959
4960         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4961         in COMPILE_FLAGS. Thanks to G. Gallant for report.
4962
4963 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4964
4965         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4966         for ds80c400
4967         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4968         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4969         added peephole 254 (left shift), 255 (jump table)
4970
4971 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4972
4973         * device/lib/Makefile.in: removed comment line with model-pic16,
4974         * (target port-specific-objects-pic16): the libraries and objects
4975         are copied to the build directory form the device/lib/pic16/bin
4976         directory
4977
4978         Cumulative patch concerning pic16 port:
4979         * library directory has been re-organized,
4980         * added support for PIC18F1220,
4981         * added headers and library sources for chips 18f1220,18f6520,
4982         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4983
4984         * configuration registers setting has changed, now each supported
4985         device has a complete description of the registers it uses,
4986         * all initialisations are moved to idata sections, these section
4987         can be absolute or relocatable,
4988         * fixed initialisation of codespace variables,
4989         * fixed warning about PCLATU and gpsim,
4990         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4991         * (genAssign): use table reads when assigning from variables in codespace,
4992         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4993         char/int variables placed in codespace,
4994         * (pic16_emitConfigRegs): NEW, emits a list with configuration
4995         registers set in .asm file, no need for --pomit-config-words anymore,
4996         * (pic16glue): some 8051 legacy segments are commented out
4997         (to be removed completely),
4998         * added support for alternative assembler and linker with --asm=
4999         and --link= command line arguments,
5000         * peepholes are disabled automatically in the port, no need to
5001         specify on command line,
5002         * port supports natively char/int/long multiplication, but converts
5003         all divisions to support functions,
5004         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5005         to the file set in variable $2,
5006         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5007         strings in ASCII format and not in hex,
5008         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5009         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5010         allocate proper register if iCodes aren't temporary,
5011
5012 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5013
5014         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5015
5016 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5017
5018         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5019         is commented out
5020
5021 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5022
5023         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5024         computed address is reused
5025         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5026         multi-byte bitfields
5027
5028 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5029
5030         * src/z80/gen.c: (genArrayInit): must check for pointers too
5031
5032 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5033
5034         * support/regression/tests/zeropad.c: never meant to commit the
5035           nestedstruct test: removed, added check for GCC version
5036
5037 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5038
5039         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5040         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5041         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5042           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5043           bugs 928906 and 954082 half-empty initializers
5044         * src/SDCCsymt.h,
5045         * src/SDCCsymt.c (getAllocSize): added for above fix
5046         * src/z80/gen.c (genArrayInit): fixed bug 741044
5047         * support/regression/tests/zeropad.c: added tests
5048
5049 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5050
5051         * src/pic16/device.c (pic16_dump_section): corrected bug which
5052         caused some symbols of the libraries to be misplaced
5053
5054 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5055
5056         * src/pic16/glue.c,
5057         * src/pic16/ralloc.h,
5058         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5059         to fix conflict with pic port
5060
5061 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5062
5063         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5064         externs configuration variables,
5065         * src/pic16/ralloc.h,
5066         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5067         prototype in header, commented out some debug messages
5068
5069 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5070
5071         * src/pic16/glue.c,
5072         * src/pic16/main.c,
5073         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5074         for gpasm COFF object generation. Thanks to D. Hawkins for
5075         his patch info
5076
5077 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5078
5079         * src/ds390/main.c,
5080         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5081         Brock for spotting this)
5082         * src/ds390/gen.c (genEndFunction),
5083         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5084         interrupt handler and critical. Disable push/pop optimizations when
5085         peephole optimizations disabled.
5086
5087 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5088
5089         Updated pic16 library sources and headers.
5090         * device/lib/pic16/pic18f*/ ,
5091         * device/include/pic16/*.h: modified to handle structured SFR
5092         definitions
5093
5094 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5095
5096         * src/port.h (PORT structure): added hook initPaths, now each
5097         port can declare its own default search paths,
5098         which can been seen with the --print-search-dirs option,
5099         see pic16 port for example,
5100         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5101         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5102         * (doPrintSearchDirs): NEW, replaces in a central manner the
5103         printing of search dirs which was split in set*Paths functions,
5104         * (main): added call to port->initPaths and doPrintSearchDirs,
5105         * src/avr/main.c,
5106         * src/ds390/main.c,
5107         * src/hc08/main.c,
5108         * src/izt/i186.c,
5109         * src/izt/tlcs900h.c,
5110         * src/mcs51/main.c,
5111         * src/pic/main.c,
5112         * src/pic16/main.c: modified port structures to reflect addition of
5113         initPaths hook,
5114
5115         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5116         * (pic16_dump_section): for registers in same address reserve memory once,
5117         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5118         to no_banksel,
5119         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5120         result is greater in size than right or left,
5121         * (pic16_genUMult8X8_8): there are some cases where the result can
5122         be 16 bits size, so handle these,
5123         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5124         * (pic16_outBitC): modified to emit pcodes,
5125         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5126         or not,
5127         * (genDivOneByte): implemented algorithm to divide 8-bits,
5128         * (genCmp): uncommented goto, but issues still exist,
5129         * (genAnd): fixed a bug with variables >8bits,
5130         * (genPackBits): optimization added that uses BCF/BSF to change a
5131         single bit,
5132         * (genAssign): fixed bug when assigning floating point literals,
5133         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5134         __sdcc_gsinit_startup label,
5135         * src/pic16/main.c (_pic16_init): removed search directory
5136         initialisations,
5137         * (_pic16_initPaths): NEW, used to initialise search directories,
5138         * (_hasNativeMulFor): support functions for all except char/int
5139         multiplication, and char division,
5140         * (PIC16_port struct): modified entry for native mul support,
5141         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5142         no_banksel option,
5143         * (buildCallTree): call to register_usage is ifdef'ed out,
5144
5145 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5146
5147         * device/include/string.h: applied Stas Sergeev's patch to make this
5148         header file compatible with the preprocessor -Wundef option
5149         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5150         failure (fixes bug #941458)
5151
5152 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5153
5154         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5155         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5156         that the variable, not the function, should be static
5157         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5158         to be consistent with non-literal case
5159
5160 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5161
5162         * src/SDCCast.c (isConformingBody): fixed bug #949967
5163         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5164         convilong): fixed bug #952086
5165
5166 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5167
5168         * src/SDCCmem.c (allocVariables): fixed bug #955321
5169
5170 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5171
5172         * src/hc08/main.c (_hc08_genAssemblerEnd),
5173         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5174         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5175         completely eliminated the use of a temporary file
5176         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5177         when more than one file linked
5178         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5179
5180 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5181
5182         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5183         which fixes bug #543481
5184         * support/regression/tests/bug-751703.c: fixed comments left from a
5185         cut and paste error
5186         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5187         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5188         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5189         scopes
5190         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5191         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5192         are now changed to underscores in moduleName
5193
5194 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5195
5196         * as/mcs51/lkmem.c: better fix for bug #954173
5197
5198 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5199         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5200
5201         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5202         * device/include/c8051f000.h,
5203         * device/include/c8051f120.h,
5204         * device/include/c8051f300.h,
5205         * device/include/c8051f310.h,
5206         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5207         PWM16) and detab'ed
5208
5209 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5210
5211         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5212         and mailing lists, doc'ed --no-peep-comments, removed reference
5213         to knoppix (newest version has no LyX/LaTeX), other minor changes
5214         * src/SDCCglue.c (glue): save 2 bytes stack space with
5215         option --main-return. The ljmp could probably be avoided too
5216
5217 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5218
5219         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5220
5221 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5222
5223         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5224         * src/SDCCopt.c (isLocalWithoutDef),
5225         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5226         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5227         (credit to Maarten Brock for patch #949363, on which this is based)
5228         * support/regression/tests/bug-751703.c: some test cases of extern used
5229         within inner scopes.
5230
5231 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5232
5233         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5234         SPEC_STRUCT
5235         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5236         struct definitions
5237         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5238         dwWriteLabel): fix to create valid debugger symbols even when
5239         the module name has non-alphanumeric symbols in it
5240         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5241         when a variable's allocation has been optimized away
5242
5243
5244 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5245
5246         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5247         * src/hc08/main.c,
5248         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5249         * src/mcs51/main.c,
5250         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5251         * src/ds390/main.c,
5252         * src/z80/gen.c (z80_emitDebuggerSymbol),
5253         * src/z80/main.c,
5254         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5255         * src/pic/main.c,
5256         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5257         * src/pic16/main.c,
5258         * src/avr/gen.c (avr_emitDebuggerSymbol),
5259         * src/avr/main.c,
5260         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5261         * src/xa51/main.c,
5262         * src/SDCCdebug.c (emitDebuggerSymbol),
5263         * src/SDCCdebug.h,
5264         * src/port.h: added a debugger struct to the port struct. Added a
5265         callback for defining debugger symbols
5266
5267         * src/SDCCast.c (createLabel),
5268         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5269         with isitmp = 1
5270         * src/SDCCicode.h,
5271         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5272         iCode back to the ast for the function
5273
5274         * src/hc08/ralloc.c (hc08_assignRegisters),
5275         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5276         unneeded fields from the regs struct.
5277         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5278         pushReg() & pullReg() functions instead of emitcode()
5279
5280         * src/hc08/gen.c (genLabel, genhc08Code),
5281         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5282
5283         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5284         debugger hooks
5285
5286         * src/hc08/gen.c (genEndFunction, genhc08Code),
5287         * src/hc08/gen.h,
5288         * src/mcs51/gen.c (genEndFunction, gen51Code),
5289         * src/mcs51/gen.h,
5290         * src/ds390/gen.c (genEndFunction, gen390Code),
5291         * src/ds390/gen.h,
5292         * src/z80/gen.c (genEndFunction, genZ80Code),
5293         * src/z80/gen.h,
5294         * src/z80/z80.h,
5295         * src/pic/gen.c (genEndFunction, genpic14Code),
5296         * src/pic/gen.h,
5297         * src/pic16/gen.c (genEndFunction, genpic16Code),
5298         * src/pic16/gen.h,
5299         * src/avr/gen.c (genEndFunction, genAVRCode),
5300         * src/avr/gen.h,
5301         * src/xa51/gen.c (genEndFunction, genXA51Code),
5302         * src/xa51/gen.h,
5303         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5304         specific code to cdbFile.c and out of the backend code generators
5305
5306         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5307         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5308         starting address is now 0
5309
5310         * as/hc08/asm.h,
5311         * as/hc08/m08pst.c,
5312         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5313         assembler directive for DWARF support
5314         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5315
5316         * src/src.dsp,
5317         * src/Makefile.in,
5318         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5319
5320 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5321
5322         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5323         and inappropriate peephole optimization in jump tables
5324
5325 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5326
5327         * as/hc08/m08pst.c,
5328         * src/SDCCglue.c: sdccopt works for the hc08 port now
5329
5330 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5331
5332         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5333
5334 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5335
5336         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5337
5338 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5339
5340         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5341         rules
5342         * src/SDCCmain.c,
5343         * src/SDCCglobl.h,
5344         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5345         comments from the peephole optimizer replacement rules
5346         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5347         symbols
5348         * src/SDCCcse.c (updateSpillLocation),
5349         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5350         equivalents
5351         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5352         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5353         objects far pointers
5354
5355 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5356
5357         * src/SDCCsymt.h: a missing part of my last change
5358         * src/pic/ralloc.c (regTypeNum),
5359         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5360
5361 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5362
5363         * src/SDCCicode.h,
5364         * src/SDCCicode.c (aggrToPtrDclType),
5365         * src/SDCCptropt.h,
5366         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5367         ptrPseudoSymConvert),
5368         * src/pic/ralloc.c (regTypeNum),
5369         * src/pic16/ralloc.c (regTypeNum),
5370         * src/hc08/ralloc.c (regTypeNum),
5371         * src/ds390/ralloc.c (regTypeNum),
5372         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5373         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5374
5375 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5376
5377         * link/z80/lkmain.c (afile),
5378         * as/hc08/lkmain.c (afile),
5379         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5380         prevent a pointer problem when a filename has no directory and
5381         no extension specified.
5382
5383 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5384
5385         * link/z80/lkmain.c (afile): allow periods in directory names
5386         * link/z80/lkmain.c (afile),
5387         * as/mcs51/lkmain.c (afile),
5388         * as/hc08/lkmain.c (afile): allow linker script file to have an
5389         extension other than ".lnk"
5390         * link/z80/lklex.c (getfid),
5391         * link/z80/lkmain.c (parse),
5392         * as/mcs51/lklex.c (getfid),
5393         * as/mcs51/lkmain.c (parse),
5394         * as/hc08/lklex.c (getfid),
5395         * as/hc08/lkmain.c (parse): Support comments in the linker script
5396         file on lines by themselves and after filenames
5397
5398 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5399
5400         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5401
5402 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5403
5404         * src/z80/peeph-z80.def: removed some peephole rules that don't
5405         work with multibyte arithmetic (fixed bug #937126)
5406         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5407         to registers and not global variables
5408         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5409         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5410         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5411         checking for assignments not internally generated (fixed bug #931895)
5412         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5413         structure member (fixed bug #930072)
5414
5415 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5416
5417         * src/SDCCmain.c (linkEdit),
5418         * src/hc08/main.c (_hc08_parseOptions),
5419         * as/hc08/Makefile.in,
5420         * as/hc08/aslink.h,
5421         * as/hc08/asm.h,
5422         * as/hc08/m08pst.c,
5423         * as/hc08/lkrloc.c (relr, rele),
5424         * as/hc08/lkarea.c (lnkarea)
5425         * as/hc08/lkmain.c (afile, parse),
5426         * as/hc08/lkelf.c: support for ELF output
5427         * as/hc08/lks19.c (s19),
5428         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5429
5430 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5431
5432         * as/mcs51/lkihx.c: Fixed bug #899105.
5433
5434 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5435
5436         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5437         .dsp files from Unix to DOS.
5438
5439 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5440
5441         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5442         function pointers; we have been compliant for several months now.
5443         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5444         change that was accidently commented out
5445         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5446         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5447         bug #922319
5448
5449 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5450
5451         * src/hc08/gen.c: output of all of the internal debugging information
5452         is now controlled by the D() macro; it is disabled by default
5453
5454 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5455
5456         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5457         harder to keep the same registers during a CAST iCode
5458         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5459         long via int can be done in a single cast, if the signedness is
5460         correct.
5461         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5462         putchar() in tinibios.c in ds390's library
5463
5464 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5465
5466         * src/SDCCast.c (decorateType): fixed bug #898889,
5467         cast result of a literal complement too
5468         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5469         fixed check for bitfields
5470
5471 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5472
5473         * src/SDCCicode.c (geniCodeLogic): made it static,
5474         (geniCodeLogicAndOr): added in order to fix bug #905492,
5475         (ast2iCode): fixed bug #905492
5476         * support/regression/tests/bug-905492.c: added
5477         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5478         (processParms): fixed bug #927659: don't copy parms, this will clear
5479         decorated flag
5480         * support/regression/tests/bug-927659.c: added
5481
5482 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5483
5484         * src/SDCCast.c (addCast): don't cast float to char
5485         * device/lib/libsdcc.lib: added _memmove
5486
5487 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5488
5489         * device/lib/large/Makefile: fixed parallel execution by
5490         replacing `make` by `$(MAKE)`
5491
5492 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5493
5494         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5495         offsets (fixes bug #923936)
5496
5497 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5498
5499         * device/lib/small/Makefile: fixed parallel execution by
5500         replacing `make` by `$(MAKE)`
5501
5502 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5503
5504         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5505
5506 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
5507
5508         * src/pic/gen.c (genCpl): multi-byte complements were not working.
5509         * src/regression/Makefile: Regression test was not running.
5510
5511 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5512
5513         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5514         complement if possible
5515         * src/SDCCval.c (valComplement),
5516         * src/SDCCicode.c (operandOperation): fixed complement of literal
5517         * support/regression/tests/onebyte.c (testComplement): added
5518
5519 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5520
5521         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5522         return an optimized tree; actually replace actParm with the new tree
5523         * src/SDCCast.h: added some parantheses to remove side effects
5524         * support/regression/tests/bug-920866.c
5525
5526 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
5527         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5528         Bit operands were not being handled properly in the pic14 port.
5529         (now src/regression/add.c passes again).
5530
5531 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5532
5533         * src/SDCC.y (labeled_statement): case and default no longer require
5534         a following statement (RFE #893037)
5535
5536 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5537
5538         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5539         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5540         disabled (fixes bug #916294)
5541         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5542         "mov a,acc"; patch provided by Lenny Story
5543         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5544
5545 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5546
5547         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5548         functions
5549         * src/ds390/gen.c (genFunction, genEndFunction),
5550         * src/ds390/ralloc.c (ds390_assignRegisters),
5551         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5552         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5553         pushed if there are parameters passed on the stack. Also, a cleaner
5554         way to decide if r0/r1 should be pushed/popped. (Together they fix
5555         bug #918693)
5556
5557 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5558
5559         * doc/sdccman.lyx,
5560         * device/lib/mcs51/crtpagesfr.asm,
5561         * device/lib/mcs51/crtxinit.asm,
5562         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5563         to avoid confusion with Si Lab's SFRPAGE register.
5564
5565 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5566
5567         * src/SDCCglue.c (emitMaps): allow public sfr variables
5568         * src/SDCCglue.c (initialComments): include compiler build date
5569         with compiler version and put the timestamp of the generated
5570         assembly file on a serperate line to be less confusing.
5571         * src/port.h: added genInitStartup hook
5572         * src/avr/main.c,
5573         * src/ds390/main.c,
5574         * src/hc08/main.c,
5575         * src/pic/main.c,
5576         * src/pic16/main.c,
5577         * src/xa51/main.c,
5578         * src/z80/main.c: genInitStartup initialize as NULL (default to
5579         historical behaviour)
5580         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5581         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5582         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5583         library instead of hard coding it into the compiler.
5584         * support/regression/ports/mcs51-stack-auto/spec.mk,
5585         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5586         * device/lib/mcs51/Makefile,
5587         * device/lib/small/Makefile,
5588         * device/lib/large/Makefile,
5589         * device/lib/mcs51/crtpagesfr.asm,
5590         * device/lib/mcs51/crtstart.asm,
5591         * device/lib/mcs51/crtxclear.asm,
5592         * device/lib/mcs51/crtxinit.asm,
5593         * device/lib/mcs51/crtclear.asm,
5594         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5595         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5596         and into user configurable files.
5597         * device/lib/clean.mk: clean mcs51 directory too
5598         * support/regression/tests/longlit.c: added static to T1 declaration
5599         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5600         accesses in the initialization code
5601
5602 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5603
5604         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5605         OSCTRIMVAL as noted in bug #916008
5606
5607 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5608
5609         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5610         in loops with multiple exits (reported as incorrect registers
5611         used by Martin Helmling in Sdcc-user list)
5612
5613 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5614
5615         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5616         made ds390 register extensions look less like error messages
5617
5618 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5619
5620         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5621         reported by Adam Wozniak in Sdcc-user list
5622
5623 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5624
5625         * src/SDCCast.c (decorateType): fixed with bug and promotion in
5626         arithmetic optimizations, added debug output
5627
5628 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5629
5630         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5631         * sdcc.spec: updated and split sdcc into 3 rpms
5632         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5633         needed for literals of LEFT_OP and '+'
5634         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5635         introduced RESULT_TYPE_NOPROM
5636         (geniCodeMultiply): fixed logic for decision if mul is optimized to
5637         left shift
5638         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5639         limited promotion to int only for '*'
5640         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5641
5642 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5643
5644         * src/pic16/gen.c (genSkip),
5645         (genc16bit2lit), (gencjneshort): commented out
5646         (is_LitOp): new helper function, checks operand type
5647         (genCmpEq): rewritten
5648
5649 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5650
5651         * support/regression/tests/bug-908454.c: added
5652
5653 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5654
5655         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5656         * src/SDCCicode.c (usualBinaryConversions): op needs int type
5657         (geniCodeCast): cosmetic, don't preserve bit storage class
5658         (geniCodeLeftShift): added promotion
5659         (geniCodeLogic): fixed regression
5660         * src/SDCCsymt.c (computeTypeOr): accept bits too
5661         (compareType): 2nd part of fix for bug #908454, needed for bitfields
5662
5663 2004-03-07  Borut Razem <borut.razem AT siol.net>
5664
5665         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5666
5667 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5668
5669         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5670         version of pic16_genPackRegisters which does not check if ic is a
5671         CAST operator,
5672         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5673         function cause string1.c regression test fails
5674
5675 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5676
5677         * sim/ucsim/configure.in,
5678         * sim/ucsim/configure,
5679         * sim/ucsim/doc/Makefile.in: use docdir
5680         * src/SDCC.y: fixed sbit atrributes
5681         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5682         * src/SDCCast.c (decorateType): |^& need special promotion handling
5683         * src/SDCCast.h,
5684         * src/SDCCsymt.h: moved definition of RESULT_TYPE
5685         * src/SDCCsymt.h (computeType),
5686         * src/SDCCicode.c: computeType() needs op
5687         * src/SDCCsymt.c (checkTypeSanity),
5688         * doc/sddman.lyx: "plain" bitfields are unsigned
5689         * src/SDCCsymt.c (computeTypeOr): added
5690         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5691         |^& ops
5692         * src/SDCCval.c (val*): computeType() needs op
5693         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5694         * support/regression/tests/onebyte.c: added tests for |^&
5695
5696 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5697
5698         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5699         for writing icode into asm output.
5700
5701 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5702
5703         * src/pic16/device.c: added some debug lines enabled
5704         with macro DEBUG_CHECK,
5705         * src/pic16/genarith.c: more debug in genPlus,
5706         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5707         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5708         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5709         * (aopForSym): onStack symbols are re-placed in data memspace,
5710         and onStack flag is cleared,
5711         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5712         copy temporary pcodeop,
5713         * (genPcall): added warning for not updating PCLATU,
5714         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5715         always true for pic16 port,
5716         * (genMultOneWord): NEW, supports integer multiplication,
5717         * (genMult): modified to call genMultOneWord,
5718         * (ifxForOp): added warning when return NULL,
5719         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5720         flag is set before call to operandFromSymbol for implicit
5721         added structures,
5722         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5723         options.intlong_rent are set by default,
5724         * (_hasNativeMulFor): modified to allow port generation of integer
5725         multiplication,
5726         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5727         set regtype to REG_SFR for all registers, restricting seting the
5728         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5729
5730 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5731
5732         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5733         more than 500 times in the regression tests
5734
5735 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5736
5737         * support/Util/SDCCerr.h,
5738         * support/Util/SDCCerr.c,
5739         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5740         enumerator_list),
5741         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5742         for symbol conflicts.
5743         * support/valdiags/tests/enum.c,
5744         * support/valdiags/tests/tentdecl.c,
5745         * support/valdiags/tests/struct.c: expect possible error messages
5746         referring to original symbol definitions.
5747         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5748         * src/SDCCsymt.h,
5749         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5750
5751 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5752
5753         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5754
5755 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5756
5757         * src/pic16/ralloc.c (newReg): fixed bug #908929
5758
5759 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5760
5761         * src/ds390/gen.c: added missing #include "main.h"
5762
5763 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5764
5765         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5766         checking if symbol is already in set,
5767         * src/pic16/device.h: prototype for checkAddSym,
5768         * src/pic16/gen.c: (_G): added entry interruptvector,
5769         * (assignResultValue): removed some commented out lines,
5770         * (genFunction): check for ISR via sym->type, absolute section for
5771         interrupt code is created via a new pBlock, the goto instruction is
5772         placed now correctly at the interrupt vector position, changed all
5773         references from ivec to _G.interruptvector,
5774         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5775         is the interrupt is a high priority one, same for return from ISR,
5776         * src/pic16/glue.c: changed all calls of addSetHead for publics and
5777         externs to calls of checkAddSym,
5778         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5779         pic16_pcode_verbose flag is set,
5780         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5781         * src/pic16/pcoderegs.c: message about how many registers are saved
5782         will only be emitted if pic16_pcode_verbose flag is set,
5783
5784 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5785
5786         * src/ds390/ralloc.h,
5787         * src/ds390/ralloc.c (ds390_regWithIdx),
5788         * src/ds390/gen.c (emitcode),
5789         * src/ds390/main.h,
5790         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5791         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5792         ds390operandCompare, getRegsRead, getRegsWritten,
5793         initializeAsmLineNode): customized instruction size calculation for
5794         ds390, started basis for some register optimizations
5795         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5796         corresponding assembly output
5797         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5798         missing push/pop of r0/r1. Optimized push/pops
5799
5800 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5801
5802         * src/mcs51/main.c (instructionSize): fixed ACALL size
5803         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5804
5805 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5806
5807         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5808         the sorting of rlist with NULL elements
5809         * (print_idataType, print_idata): NEW to create idata sections
5810         * src/pic16/device.h: idataSymSet new variable
5811         * src/pic16/gen.c (genFunction): fixed some bugs in string
5812         comparing, improved the absolute section creation for ISRs,
5813         added FSR0L/FSR0H in registers that are saved in an ISR,
5814         * (genInline): fixed the processing of inline snippets,
5815         now they undergo no process by the peephole optimizer
5816         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5817         are placed in idataSymSet,
5818         * (pic16emitStaticSeg): extern symbols are added in externs,
5819         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5820         switching when aboslute variables are placed in access bank memory
5821         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5822         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5823         commented out with #if,
5824         * (pic16_packRegisters): reintroduce the check for CAST because some
5825         symbols are not correctly handled,
5826         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5827         pCodeInstruction instead of pCode,
5828         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5829         pCodeAsmDir definition,
5830         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5831         directive, then the argument directive is emitted without the leading
5832         tab, hack for inline labels which must be in the first column,
5833         * (compareLabel,pic16_findNextInstruction),
5834         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5835         * (insertBankSwitch): modified for the new pCodeAsmDir,
5836
5837 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5838         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5839
5840         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5841         instance,
5842         * (pushSide): commented out with #if,
5843         * (assignResultValue): fixed some typos in saving
5844         registers,
5845         * (genPcall): FIXED and sync'ed with genCall,
5846         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5847         * (genNearPointerGet): fixed to handle some more cases,
5848         implementation scheme via table reads,
5849         * (genConstPointerGet): modified to access code memory correct,
5850         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5851         and improved to handle some cases
5852         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5853         instead of "RETLW" for init data
5854         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5855         not IN_DIRSPACE, work around to reduce bank switching when aboslute
5856         variables are placed in access bank memory (<0x80 and >=0xf80),
5857         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5858         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5859         TBLWT_POSTDEC,TBLWT_PREINC
5860         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5861         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5862         directives
5863         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5864         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5865         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5866         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5867
5868 2004-02-29  Borut Razem <borut.razem AT siol.net>
5869
5870         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5871         support/Util/findme.h, support/Util/system.h: enhance binary relative
5872         search for lib and include by using findProgramPath()
5873
5874 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5875
5876         * src/SDCCpeeph.h,
5877         * src/SDCCpeeph.c (pcDistance),
5878         * src/port.h,
5879         * src/mcs51/ralloc.h,
5880         * src/mcs51/ralloc.c (mcs51_regWithIdx),
5881         * src/mcs51/main.h,
5882         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
5883         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5884         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
5885         size calculation port specific, started basis for some register
5886         optimizations
5887         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5888         missing push/pop of r0/r1. Optimized push/pops
5889         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5890         * device/lib/_modsint.c (_modsint),
5891         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5892         and stack version so regression tests pass
5893
5894 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5895
5896         * src/Makefile.in (dep): include SLIBOBJS in dependency check
5897         * src/SDCCast.c (decorateType): catch another small optimization
5898         with '?' operator
5899         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5900         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5901         modified to finally use computeType() all over SDCC,
5902         see Feature Request #877103
5903         * src/SDCCval.h: cosmetic
5904         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5905         valCompare(); regression tested in muldiv.c
5906         * support/regression/tests/muldiv.c (testMod): mod sign follows
5907         dividend only
5908
5909 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5910
5911         * src/SDCCast.c (decorateType): fixed bug #902362
5912         * doc/INSTALL.txt: fixed install instructions for win32
5913
5914 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5915
5916         * device/include/Makefile.in (install): fixed by replacing spaces
5917         by tabs
5918         * doc/README.txt,
5919         * doc/INSTALL.txt: updated for release
5920         * doc/sdccman.lyx: added warning for --xstack being buggy
5921
5922 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5923
5924         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
5925         to eliminate build warnings.
5926         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5927
5928 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5929            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5930
5931         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5932         removed -penable-stack, added comment for stack pragma, added
5933         warning for not initializing the stack/frame registers, removed
5934         comment at interrupts section
5935
5936         Stack is made permanent, there is no ability to disable stack usage.
5937         * src/pic16/device.h,
5938         * src/pic16/device.c: removed all references to USE_STACK macro,
5939         * src/pic16/device.c (pic16_dump_section): when no elements in
5940         rlist, free rlist before return,
5941         * (pic16_dump_int_registers): NEW, internal registers are a new set
5942         of general purpose registers reused by each function,
5943         * (checkAddReg): returns 1 if registers is added to set,
5944         * (pic16_groupRegistersInSection): when a registers is of type
5945         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5946         * src/pic16/device.h: memRange and Assigned Memory are deleted,
5947         SRCASECMP macro is moved here from device.c
5948         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5949         PO_PCLATU, PO_PRODL, PO_PRODH,
5950         * (pic16_pCodeOpType, genMinus,
5951         changed compares to "a" register, with AOP_ACC,
5952         * (pic16_genPlus): fixed some bugs and indented properly,
5953         * (pic16_addSign): changed size to size+offset in the MOVWF
5954         instruction,
5955         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5956         multiply 8-bit operand by literal, result is 8-bit,
5957         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5958         multiply 2 8-bit operand, result is 8-bit,
5959         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5960         genUMult8X*_16,
5961         * src/pic16/gen.c: changed accUse to contain WREG only,
5962         * (pic16_emitcomment): renamed to pic16_emitpcomment,
5963         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5964         true, do not use immediate addressing any more unless sym is a
5965         pointer in codespace,
5966         * (aopForRemat): do not use immediate addressing when symbol not in
5967         codespace and when symbol's address is requested,
5968         * (aopOp): for-loop in if(sym->accUse) is modified for the new
5969         accUse size (= 1),
5970         * (aopGet): added case for AOP_ACC and don't return "accumulator
5971         bug" but WREG instead,
5972         * (popGetTempReg): pushes contents of temporary register in stack,
5973         * (popReleaseTempReg): pops contents of temporary register from
5974         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5975         * (pic16_popGet): separated case AOP_ACC to return register WREG
5976         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5977         or PO_IMMEDIATE and initializes their instance/offset appropriately,
5978         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5979         the use of immediate pointers to certain cases only.
5980
5981         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5982         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5983         * (assignResultValue, genCall, genRet): modified to use the new
5984         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5985         genPcall is still broken,
5986         * (genFunction): added code to create 'A' type pBlocks when
5987         interrupt functions are generated, code not extensively tested yet,
5988         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5989         * (genEndFunction): modified so ISRs pop stored registers from stack,
5990         * (genMultOneByte): cleanup,
5991         * (AccRsh): added flag andmask, to and result with appropriate mask,
5992         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5993         * (genDataPointerGet): fixed and reenabled its use,
5994         * (genNearDataPointerGet): bugs fixed,
5995         * (genDataPointerSet): bugs fixed,
5996         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5997         pic16_DumpSymbol, pic16_DumpOp,
5998         * src/pic16/genutils.h: function prototypes for the above functions,
5999         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6000         pointers,
6001         * (pic16emitRegularMap): many many many improvements, but needs a
6002         major cleanup,
6003         * src/pic16/main.c: enable_stack in pic16_options is removed,
6004         * (_pic16_parseOptions): removed command line options -penable-stack,
6005         * (_process_pragma): emit stack symbol only when stack pragma is
6006         processed,
6007         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6008         redirected to FSR0L/FSR0H pair,
6009         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6010         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6011         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6012         for immediates,
6013         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6014         * (dumpPicOptype): NEW,
6015         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6016         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6017         with movff instruction,
6018         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6019         added pic16_int_regs, some packRegsFor* functions are commented out,
6020         because produce errors,
6021         * src/pic16/NOTES: minor modifications
6022
6023 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6024
6025         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6026         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6027         --pack-iram.
6028         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6029         * as/mcs51/lkaomf51.c: fixed bug #895763
6030
6031 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6032
6033         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6034
6035 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6036
6037         * doc/sdccman.lyx: added details about the HC08 storage classes and
6038         interrupts, fixed the register usage info for z80 & gbz80
6039
6040 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6041
6042         * doc/sdccman.lyx: added more pic16 port documentation
6043         * device/include/pic16/: added header pic18fregs.h
6044
6045 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6046
6047         * doc/sdccman.lyx: added Vangelis' contribution
6048
6049 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6050
6051         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6052         extend to the next CALL or PCALL, not just to the next CALL.
6053
6054 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6055
6056         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6057
6058 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6059
6060         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6061         bug #895752 and a better fix for bug #716790
6062
6063 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6064
6065         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6066
6067 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6068
6069         * doc/sdccman.lyx: minor changes, minor changed
6070
6071 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6072
6073         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6074         which can't handle SDCC_NEWONEBYTEOPS,
6075         (geniCodeMultiply): removed conversion from mult to shift for pic14
6076         and pic16
6077
6078 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6079
6080         * src/hc08/gen.h,
6081         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6082         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6083         thus fixing bug #895406
6084
6085 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6086
6087         * device/lib/_modsint.c,
6088         * device/lib/_modslong.c: sign follows divisor only
6089         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6090         signs or signedness can be ignored
6091         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6092         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6093         added optimization for IFX,
6094         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6095         arguments;
6096         reenabled optimization for IFX, which was removed on 2004-01-11
6097         * src/SDCCast.h: added return type IFX
6098         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6099         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6100         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6101         SDCC_OLDONEBYTEOPS selects the old behaviour
6102         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6103         changed again and commented promotion rule
6104         * src/SDCCval.c (valDiv): promotion no longer necessary
6105         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6106         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6107         rewritten
6108         * support/regression/tests/onebyte.c: added
6109
6110 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6111
6112         * gen.c (genInline): reverted to old code for assemnling inline
6113         code because of bug reported James Chadd
6114
6115 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6116
6117         * ralloc.h: missing declarations from previous patch,
6118         seems that patch for ralloc.h was never applied, fixed
6119
6120 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6121            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6122
6123         * pcode.c,
6124         * pcode.h,
6125         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6126         indirect addressing. Marked FSR0 as deprecated
6127         * gen.c (pointerCode): commented out, not needed now
6128         (pic16_popGet2p): new MOVFF helper function
6129         (genGenPointerGet),
6130         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6131         (shiftRLong): removed duplicate debugging info
6132
6133 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6134
6135         * src/ds390/gen.c (genNearPointerGet),
6136         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6137         optimization with bits, but not bitfields.
6138         * src/ds390/ralloc.c (packRegisters),
6139         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6140
6141 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6142
6143         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6144
6145 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6146
6147         * src/SDCCsymt.h,
6148         * src/SDCCicode.c (operandFromSymbol),
6149         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6150         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6151         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6152         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6153         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6154         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6155         bug #892038
6156         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6157         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6158         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6159         * src/SDCCsymt.c (newSymbol),
6160         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6161         enumerator_list),
6162         * src/SDCCval.h,
6163         * src/SDCCval.c (newiList): fixed bug #885705
6164
6165 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6166
6167         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6168         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6169
6170 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6171
6172         * device/include/c8051f120.h,
6173         * device/include/c8051f300.h,
6174         * device/include/c8051f310.h: added/updated header files for Silicon
6175         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6176         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6177         in new section Submitting patches
6178
6179 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6180
6181         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6182         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6183         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6184         genGenPointerSet),
6185         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6186         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6187         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6188         genGenPointerSet),
6189         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6190         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6191         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6192         genGenPointerSet),
6193         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6194         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6195         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6196         genGenPointerSet): fixed bug #892400
6197         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6198         to eliminate build warnings.
6199         * src/SDCCast.c (processParms),
6200         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6201         fixed bug 751859
6202         * support/valdiag/valdiag.py: added GCC to the list of defines active
6203         when compiling with gcc
6204
6205 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6206
6207         * support/Util/SDCCerr.h,
6208         * support/Util/SDCCerr.c,
6209         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6210         with an incomplete type (fixed bug #883734)
6211         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6212
6213 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6214
6215         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6216
6217 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6218
6219         * src/SDCCast.c (decorateType),
6220         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6221         function pointer implementation
6222         * support/regression/tests/funptrs.c: added tests to verify both forms
6223         of function pointers work correctly. Added tests to verify parameters
6224         are passed in the correct order.
6225
6226 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6227
6228         * device.c (regCompare): registers are sorted by ascending
6229         address and increasing size,
6230         * main.c (_pic16_finaliseOptions): removed the declaration
6231         of compiler macro MCU. Now a macro of the format pic18fxxxx
6232         will be defined from the command line
6233
6234 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6235             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6236
6237         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6238         PCOP_RLCF was overwritten!
6239         * gen.c (genSkip): commented out calls to pic16_emitcode,
6240         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6241         * (genlshTwo),
6242         * (genRRC): added debugging info,
6243         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6244         overwritten while shifting,
6245         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6246         overwritten while shifting,
6247         * (AccLsh),
6248         * (AccRsh),
6249         * (shiftLLeftOrResult),
6250         * (shiftRLeftOrResult),
6251         * (shiftRLong),
6252         * (shiftLLong): Implemented with pic16_emitpcode
6253         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6254         * (genLeftShift): Fixed bug, operand for shift by variable always
6255         was "and"ed with 0x0f,
6256         * (genLeftShiftLiteral),
6257         * (genrshTwo),
6258         * (genRightShiftLiteral): added debugging info,
6259         * (genrshFour): added comment,
6260         * (genRightShift): determined signedness from operand "left"
6261         instead of "result"
6262
6263 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6264
6265         * src/SDCCicode.c (geniCodeParms),
6266         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6267         function pointers, fixed function pointer bugs #861242 and #861896
6268
6269 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6270
6271         * device/include/c8051f000.h,
6272         * device/include/c8051f120.h,
6273         * device/include/c8051f300.h: added header files for Silicon
6274         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6275
6276 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6277
6278         * src/SDCCast.c (processParams): added new type flow and restructured
6279         (gatherAutoInit): added new type flow
6280         (addCast): cosmetic changes
6281         (getLeftResultType): added new type flow for array indices, patch
6282         provided by Stas, see FR #877103
6283         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6284         array index patch by Stas
6285         * src/SDCCast.h: added prototype getResultTypeFromType()
6286         * src/SDCCval.h,
6287         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6288         * src/pic/glue.c (pic14emitStaticSeg),
6289         * src/pic16/glue.c (pic16emitStaticSeg),
6290         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6291         for initialization of symbols
6292         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6293         * support/Util/SDCCerr.h:
6294         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6295         * .version: bumped version number to 2.3.8
6296         * device/include/Makefile.in (install),
6297         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6298         avoid warnings
6299
6300 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6301
6302         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6303         Slade Rich fixed an optimization bug
6304         * src/pic/pcodepeep.c,
6305         * src/pic/pcoderegs.c
6306         * doc/Makefile (install): added test for directory
6307
6308 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6309
6310         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6311         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6312         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6313         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6314         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6315         * as/mcs51/asexpr.c (term),
6316         * as/hc08/asexpr.c (term): fixed bug #887146
6317
6318 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6319
6320         * src/z80/gen.c (genMult): handle single byte result product
6321         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6322         DUMMY_READ_VOLATILE (fixed bug #886367)
6323
6324 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6325
6326         * support/regression/tests/libmullong.c: fixed logic, on little endian
6327         hosts we ended without a mullong_wrapper()
6328
6329 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6330
6331         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6332         virus/worm forged address usage.
6333
6334 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6335
6336         Fixed promotion, it should be done on AST level:
6337         * src/SDCCast.c (addCast): added promotion to int
6338         (decorateType): updated call to upCast()
6339         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6340         usualUnaryConversions()
6341
6342 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6343
6344         * support/regression/tests/literalop.c (mulWrapper): Added a
6345         wrapper to remove integer overflow warnings.
6346
6347         * support/regression/tests/float_trans.c: Made work on host.
6348
6349         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6350         location of sz80.
6351
6352         * support/regression/generate-cases.py (main): Changed from inline
6353         to a main method.
6354
6355         * doc/Makefile (install): Changed to depth first to get rid of
6356         missing directory install warning.
6357
6358         * as/Makefile (install-doc): Made work on Mac.
6359
6360 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6361
6362         * src/SDCCast.c: added an additional type flow in decorateType() of
6363         opposite direction, see feature request #860006; it's enabled at runtime
6364         by setting the environment variable SDCC_NEWTYPEFLOW
6365         * src/SDCCast.h: changed prototype of decorateType()
6366         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6367         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6368         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6369         see feature request #877103
6370         * src/SDCCval.c: updated call of decorateType()
6371         (valBitwise): fixed bug #882876
6372         (valMinus): added promotion
6373         (valLogicAndOr): result is unsigned
6374         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6375         * src/SDCCsymt.c (computeType),
6376         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6377         must not cause an unsigned operation
6378         * src/pic/glue (pic14emitRegularMap),
6379         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6380
6381 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6382
6383         * src/pic/pcode.c (PCodeID): commented out left over debug code
6384
6385 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6386
6387         * support/valdiag/tests/overflow.c: added shift tests
6388         * src/pic/device.c,
6389         * src/pic/gen.c,
6390         * src/pic/gen.h,
6391         * src/pic/glue.c,
6392         * src/pic/main.c,
6393         * src/pic/pcode.c,
6394         * src/pic/pcode.h,
6395         * src/pic/pcodepeep.c,
6396         * src/pic/pcoderegs.c,
6397         * src/pic/ralloc.c,
6398         * src/pic/ralloc.h: applied patch from Slade Rich;
6399         added support for multiple code pages and multiple RAM banks on the
6400         PIC 14 port. The ASM files now no longer simply assume all the
6401         code / RAM are in the same page / bank. This means the linker can
6402         safely allocate code/RAM of separate ASM files to different pages/banks.
6403         * doc/sdccman.lyx: added Slade's tips
6404         * src/mcs51/peeph.def: fixed bug #880768
6405
6406 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6407
6408         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6409         * src/SDCCast.c (decorateType): fixed bug #880197
6410
6411 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6412
6413         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6414         getopt.h.
6415
6416         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6417         strtof is not part of C89 and isn't included with Mac OS X.
6418
6419 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6420
6421         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6422         shiftL2Left2Result): fixed bug #879326
6423         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6424         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6425         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6426         address fetch for clr instruction
6427         * device/lib/hc08/_mulint.c: created optimized assembly version
6428         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6429
6430 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6431
6432         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6433         proposed in FR #877103
6434
6435 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6436
6437         * src/SDCCval.c (cheapestVal): added missing checks
6438         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6439         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6440
6441 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6442
6443         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6444         equal operands
6445
6446 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6447
6448         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6449         loaded with the linker search paths (-L arguments) and the libraries
6450         to be linked with the current source (-l arguments). Changes
6451         currently will affect only the pic16 port.
6452         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6453         include path the port specific paths and port specific libraries,
6454         * gplink command now contains the $3 argument,
6455         * src/pic16/device.h,
6456         * src/pic16/device.c,: structure PIC_device is made public and
6457         renamed to PIC16_device, the same for variable Pics which is renamed
6458         to Pics16. Updated all references to them.
6459         * src/pic16/glue.c (pic16glue): corrected bug with code
6460         initialization which bypassed the variable initializations block.
6461
6462         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6463         COMPILE_FLAGS and added the --nostdinc option
6464
6465 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6466
6467         * device/include/mc68hc908jb8.h: Register defs for another member
6468         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6469
6470 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6471
6472         Documenting changes from previous commits.
6473         * configure.in (version 1.56),
6474         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6475         when generating output files to configure the pic16 library,
6476         but now I've commented it out, since gputils aren't installed in the
6477         SF compile farm, so library won't compile
6478
6479         * device/lib/Makefile.in (version 1.56): initially I've added in
6480         target 'all' the prerequestive 'model-pic16' so it compiled the
6481         pic16 library, but now I've commented it out for the same reasons
6482         above,
6483         * added targets 'model-pic16' and 'objects-pic16' to compile the
6484         library
6485         * added target 'port-specific-objects-pic16' to handle the
6486         generated libraries and copy them into the build/ directory
6487         * added target 'clean-intermediate-pic16' to clean intermediate
6488         files into pic16 directory
6489         * in target 'installdirs' added line to create directory pic16 in
6490         the installation path
6491
6492         * device/include/Makefile.in (version 1.11): in target 'install'
6493         added lines to copy all header files to installation path,
6494         * in target 'installdirs' added line create directory for pic16
6495         headers in the installation path
6496
6497 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6498
6499         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6500          a function call
6501
6502 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6503
6504         * configure,
6505         * device/lib/configure.in,
6506         * device/lib/configure: fixed for autoconf 2.57
6507
6508 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6509
6510         * src/z80/main.c (_parseOptions): fixed the portmode= command line
6511         option so that it actually works. Made it specific to the z80, since
6512         the gbz80 doesn't have these kinds of I/O ports.
6513
6514 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6515
6516         * device/include/z180.h,
6517         * device/lib/_memcpy.c,
6518         * device/lib/_memmove.c,
6519         * device/lib/_mulint.c,
6520         * device/lib/ser_ir.c,
6521         * device/lib/ser_ir_cts_rts.c,
6522         * device/lib/_strcmp.c,
6523         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6524         * src/z80/main.c (_process_pragma): add support for pragmas bank and
6525         portmode; added deprecation warning for bank= and protmode= forms.
6526         Also, guard against buffer overflow.
6527         * src/z80/gen.c (aopGet): generate better code for sfr banked read
6528
6529 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6530
6531         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6532         changed interrupt vector table generation to only emit declared vectors.
6533         * device/include/Makefile.in: added missing backslash
6534         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6535
6536 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6537
6538         Mainly changes to support compilation of the device libraries
6539         * src/pic16/device.c: stack is allocated via symbol and not
6540         via literal number. The symbol is placed in the corresponding
6541         position of the data ram
6542         * (pic16_dump_section): relocatable and absolute uninitialized
6543         data are now emitted in sorted order to reduce section naming,
6544         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6545         weren't marked as being in the access bank,
6546
6547 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6548
6549         Added portion of GNU PIC Library under the directory
6550         device/include/pic16 and device/lib/pic16. These files
6551         contain the declarations of SFRs for the PIC18Fxx2 devices.
6552         The directory is initialized via configure from toplevel.
6553
6554 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6555
6556         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6557         the spilllocations to be compared correctly
6558
6559 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6560
6561         * src/SDCCast.c (decorateType): fixed bug introduced today
6562
6563 2004-01-12  Borut Razem <borut.razem AT siol.net>
6564
6565         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6566         doc/sdccman.lyx: upper case pragmas are deprecated
6567
6568 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6569
6570         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
6571         in simpler and even better code
6572
6573 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6574
6575         * src/SDCCicode.c (operandOperation): fixed bug #874819
6576         * src/SDCCast.c (decorateType): fixed
6577         char foo (unsigned long ul) { return ul > 0; }
6578
6579 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6580
6581         * doc/sdccman.lyx: Moved and added some sections, small changes
6582         all over. Telling LaTeX to be less strict with word spacing
6583         to better keep the right margin. Changed some notes about
6584         maintainance of the ports in section 3.2.1 - is it OK like this?
6585
6586 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6587
6588         SDCC source changes:
6589         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6590         convilong): modified to inform the pic16 port that builtin functions
6591         are external
6592
6593         PIC16 PORT specific changes:
6594         * src/pic16/device.c pic16_dump_equates() added,
6595         processor registers declared internally by the port are emitted in
6596         the translation as equates,
6597         * src/pic16/gen.c: inline code is passed unprocessed to the
6598         translation,
6599         * (pic16_popGetLit2): fnuction modified to take second operand as
6600         pCodeOp pointer and not as literal,
6601         * (popRegFromIdx): prefixed with pic16_,
6602         * (pic16_popCombine2): modified to receive already allocated pCode
6603         operands,
6604         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6605         * (genFunction): initializes local stack frame and pushes on stack
6606         all the registers used by this function,
6607         * (genEndFunction): restores all registers from stack and restores
6608         stack frame,
6609         * src/pic16/glue.c (pic16emitRegularMap): various changes and
6610         improvements,
6611         * (pic16glue): changed the program startup sequence,
6612         * added new dbName code 'A' for functions placed in absolute section
6613         * src/pic16/main.c: added function attribute _naked,
6614         * added pragma 'code' to place a fnuction at an absolute address,
6615         * added command line arguments --debug-ralloc and --pcode-verbose,
6616         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6617         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6618         * (pic16_newpCodeOpLit2): modified to take the second operand as
6619         pCodeOp pointer,
6620         * (pic16_printpBlock): modified to emit each function in a separate
6621         section,
6622         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6623         UPPER for immediate operands,
6624         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6625         instruction,
6626         * src/pic16/peeph.def: all peepholes with movff are commented out,
6627         because there is a problem in the pcode peep optimizer,
6628         * src/pic16/ralloc.c: the register allocator can now reuse local
6629         function symbols for another function. This saves register usage.
6630         * src/pic16/ralloc.h: added flag isLocal in structure regs,
6631
6632         Added file src/pic16/NOTES with information about program writing on
6633         the current port version.
6634
6635 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6636
6637         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6638         and peephole 252 (array access)
6639
6640 2004-01-09  Borut Razem <borut.razem AT siol.net>
6641
6642         * src/SDCCmain.c : fixed #872250: -l command line defined library
6643           files are scanned before standard library files
6644
6645 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6646
6647         * src/SDCCast.c (decorateType): fixed bug #874046
6648
6649 2004-01-09  Borut Razem <borut.razem AT siol.net>
6650
6651         * support/scripts/sdcc.nsi: remove previous installation
6652
6653 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6654
6655         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6656         bytes for last interrupt vector (mcs51)
6657         * sdcc.spec: fixed typo
6658
6659 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6660
6661         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6662         gen51Code): more efficient parameter receive for --model-large
6663         ("bug" #845294)
6664
6665 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6666
6667         * src/ds390/main.c,
6668         * src/z80/main.c: added missed needLinkerScript flags (more than
6669         one port structure defined in these file)
6670         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6671         bug #795325
6672
6673 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6674
6675         * src/SDCCmain.c: removed various references to DEFAULT_PORT
6676         * src/port.h: added flag needLinkerScript in port->linker
6677         structure to inform whether to create a .lnk file or not,
6678         * src/avr/main.c,
6679         * src/ds390/main.c,
6680         * src/hc08/main.c,
6681         * src/mcs51/main.c,
6682         * src/pic/main.c,
6683         * src/pic16/main.c,
6684         * src/xa51/main.c,
6685         * src/z80/main.c: changed appropriately to configure
6686         needLinkerScript flag
6687         * src/pic/gen.c,
6688         * src/pic16/gen.c (genAddrOf): fixed bug #863624
6689         * src/pic/glue.c: added variable udata_section_name to
6690         override default uninitialized data segment definition for
6691         devices only with SHAREBANK memory (reported from Erik Epetrich)
6692         * (pic14emitOverlay): modified to emit a commented overlay segment
6693         directive when no overlay data exist
6694         * (picglue): modified to emit uninitialized data segment
6695         according to udata_section_name
6696         * src/pic/main.c (_pic14_parseOptions): added command line
6697         options --udata-section-name=[name] to override default
6698         udata definition name
6699         * modified _linkCmd and _asmCmd to include compiler passed
6700         arguments via -W option
6701         * src/pic16/main.c: added $l in _asmCmd, changed extension for
6702         object file from '.rel' to '.o' in port->linker structure,
6703         changed size of fptr from 2 to 3 in port structure
6704
6705 2004-01-07  Borut Razem <borut.razem AT siol.net>
6706
6707         * support/scripts/sdcc.nsi: update PATH
6708         * support/scripts/sdcc.ico: craeted
6709
6710 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6711
6712         * device/include/Makefile.in: fix install
6713         * doc/Makefile: fix install
6714
6715 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6716
6717         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6718         in bug #860505
6719         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6720         how the function variable allocation summary is displayed; also
6721         include information about variables allocated to the overlay
6722         segment
6723
6724 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6725
6726         * as/mcs51/lkmain.c: Help about -Y option
6727         * as/mcs51/lkarea.c: Fixed gcc warnings
6728
6729 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6730
6731         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6732         fixed warning
6733         * support/valdiag/tests/overflow.c: added
6734         * src/SDCCast.c (decorateType),
6735         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6736         LEFT_OP (left shift)
6737
6738 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6739
6740         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6741         (default behaviour).
6742
6743 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6744
6745         A python script to validate compiler diagnostic messages. It can be
6746         used to verify that sdcc complains about bad c source code and
6747         gives a good location of the error.
6748         * support/valdiag/Makefile,
6749         * support/valdiag/valdiag.py,
6750         * support/valdiag/tests/*
6751
6752 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6753
6754         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6755         * src/SDCCsymt.c (newEnumType),
6756         * src/SDCCsymt.h
6757         * support/Util/SDCCerr.c,
6758         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6759         enum related bugs.
6760         * support/regression/tests/enum.c: added test for enum values that
6761         require at least 2 bytes of storage.
6762
6763 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6764
6765         * src/common.h: added ifndef/define/endif macros
6766         around the header file.
6767         Bug reported from Jesus Calvino-Fraga
6768
6769 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6770
6771         * sdcc.spec: updated
6772         * device/include/Makefile.in: don't install CVS directories
6773         * device/lib/Makefile.in: added removal of CVS directories after install
6774         * doc/Makefile: fixed install, added local_icons
6775         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6776         * src/mcs51/gen.c (genRightShift): fixed bug #870788
6777         * src/ds390/gen.c (genRightShift): fixed bug #870788
6778         * src/SDCCast.c (decorateType): fixed bug #870781
6779
6780 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6781
6782         PIC16 port related changes:
6783         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6784         added variable stackPos,
6785
6786         * gen.c: genCall, assignResultValue: added support for
6787         pushing/retrieving function parameters to/from stack,
6788         genFunction,genEndFunction: setup stack frame for the
6789         generated function,
6790         genAddrOf: will be changed according to bug 863624
6791
6792         * added files genutils.c and genutils.h which contain gen*
6793         debugged and optimised functions extracted from gen.c
6794
6795         * glue.c: added variable 'externs' which holds extern symbols,
6796         pic16emitRegularMap: is modified to properly handle relocatable
6797          symbols under the new scheme,
6798         pic16createInterruptVect: is modified
6799         pic16printPublics: is modified to emit 'global' assembler directives,
6800         added pic16_printExterns to print extern symbols,
6801         pic16glue: initializes stack/frame pointer in the beginning of
6802         the assembly output. Temporary hack, will be corrected later,
6803         because gplink yet does not support stack and SDCC does not
6804         yet support a type of crt0.o object to create the final binary.
6805
6806         * Removed many lines that contain 8051 legacy code.
6807         * The code is finally placed under a 'code' directive.
6808         * Added port specific options.
6809
6810         * _process_pragma: simplified since now we do not need *special*
6811         include file to define SFR registers. But a separate header
6812         will be needed. This will be developed later.
6813         * _pic16_parseOptions: added, parses port specific options:
6814         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6815         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6816         --preplace-udata-with=
6817
6818         * _pic16_setDefaultOptions: modified to initialize section names,
6819         but hack is temporarly out of order since it needs improvement.
6820         * _pic16_genAssemblerPreamble: configuration words are emitted by
6821         their address instead of their name. This part is incomplete and
6822         supports only the 18Fxx2 devices. Other devices will emit an error
6823         during assembly since they do not contain the same set of config
6824         registers
6825         * _pic16_genIVT: is modified,
6826
6827         * pcode.c: added definitions for some hardware registers that are needed
6828         for stack support
6829         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6830         All PCI entries are updated. Now LFSR is supported.
6831         * Removed pic16_pciTRIS is mentioned by mdubuc in source
6832         * added pic16_newpCodeOpLit2 to support instructions with
6833         two literal arguments
6834         * pic16_pCode2str: corrected code that emits assembler instructions
6835         with two literal operands and those that have an access bit modifier
6836         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6837         this fixes a bug which caused some labels to be lost, when an
6838         assembler directive was added, i.e. banksel,
6839         * pic16_FixRegisterBanking: improved logic that causes the insertion
6840         of bank switching,
6841         * InlineFunction: functions that are called once, are not any more
6842         inlined. This can be a port option in the future,
6843
6844         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6845
6846         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6847         hold the corresponding uninitialized symbols,
6848         * pic16_allocProcessorRegister: registers have explicit marked the
6849         accessBank field,
6850         * pic16_allocInternalRegister: registers are explicit marked as
6851         not used,
6852         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6853         processing list, so bit registers were lost,
6854         *
6855
6856         * ralloc.h: added field 'accessBank' and original symbol operand
6857         in register definition,
6858         * removed the field isMapped from register definition,
6859
6860         ** Several functions have been removed from various sources:
6861         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6862         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6863         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6864         pic16_assignRelocatableRegisters
6865
6866         ** others have been introduced:
6867         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6868         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6869
6870 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6871
6872         * support/scripts/inc2h.pl: changed definition of BIT_AT
6873         to emit 'sbit at' instead of 'bit at'. This was a request.
6874
6875         PIC16 port related preliminary changes:
6876         * gen.c: prefixed function popRegFromString with
6877         pic16_ and all references to it corrected
6878         * pcode.c: all pic16_pc_* hardware registers prefixed
6879         with underscore (_),
6880         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
6881         * ralloc.c: newReg(): when register is REG_SFR then
6882         set address to rIdx,
6883         pic16_allocProcessorRegister(): marks register wasUsed=0
6884         pic16_writeUsedRegs(): added a call to assign processor
6885         registers via pic16_assignFixedRegisters
6886
6887 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6888
6889         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6890         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6891         variables in unused register banks.  Also the SSEG is placed
6892         wherever there is enough space for it, and IDATA can be anywhere
6893         in internal RAM.  For now compile using -Wl-Y[stack_size].
6894         The mem file is different for this option as well, since it
6895         makes no sense of talking about DSEG lenght.
6896
6897 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6898
6899         * src/SDCClrange.c: fixed bug 869095 that caused segfault
6900         in certain cases, e.g. when ROM assignment, patch provided
6901         from Albert den Haan.
6902
6903 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6904
6905         Many signedness and type propagation fixes:
6906         * src/SDCCicode.c: made geniCodeCast() static
6907         replaced SPEC_ by IS_ (cosmetic)
6908         (operandOperation): fixed div and mod operation
6909         (usualBinaryConversions): added support for promotion of char
6910         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6911         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6912         (geniCodeAdd): an array index will stay unsigned, even if promoted
6913         from char to int
6914         (geniCodeArray): ditto
6915         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6916         * src/SDCCsymt.c (computeType): added more support for char;
6917         promotion of char is selectable by promoteCharToInt, fixed signedness
6918         for all cases
6919         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6920         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6921         * src/SDCCval (val*): replaced signedness calculation by
6922         computeType()
6923         rearranged if-branches (cosmetic)
6924         (valShift): added warning W_SHIFT_CHANGED
6925         (valCompare): fixed problem with different types
6926         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6927         * support/regression/tests/literalop.c: added many cases
6928         * support/regression/tests/ast_constant_folding.c: changed finally to
6929         'unsigned int'
6930         * .version: new year, new version: 2.3.7
6931         * src/SDCCmain.c (main): applied patch #866468
6932         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6933         provided by Scott Bronson
6934         * doc/sdccman.lyx: updated documentation for sdcdb
6935         updated and added chapter tips
6936
6937 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6938
6939         * src/SDCCsymt.h: missing from yesterday's commits
6940
6941 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6942
6943         * src/SDCC.y (struct_or_union_specifier),
6944         * support/Util/SDCCerr.c,
6945         * support/Util/SDCCerr.h: verify that struct & union tags are used
6946         as declared.
6947
6948 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6949
6950         * src/SDCCglobl.h: missing from yesterday's commits
6951
6952 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6953
6954         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6955         sft_attributes, struct_declaration, parameter_declaration,
6956         type_name, start_block, declaration_list),
6957         * src/SDCC.lex (check_type): support redefinition of typedef names
6958
6959 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6960
6961         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6962         aligned xdata arrays. Erik helped me with the if clause.
6963
6964 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6965
6966         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6967         warning
6968
6969 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6970
6971         * src/SDCCast.h,
6972         * src/SDCCast.c (newAst_),
6973         * src/SDCCicode.h,
6974         * src/SDCCicode.c (ast2iCode, newiCode),
6975         * src/SDCCglobl.h,
6976         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6977         expr, statement, expression_statement, selection_statement,
6978         iteration_statement, expr_opt, jump_statement): foundation for tracking
6979         sequence points
6980         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6981         point code too)
6982
6983 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6984
6985         * support/Util/SDCCerr.c,
6986         * src/SDCCast.h,
6987         * src/SDCCast.c (createCase, createDefault, decorateType),
6988         * src/SDCClabel.c (labelUnreach),
6989         * src/SDCC.y (labeled_statement, jump_statement): More improvements
6990         to error messages.
6991         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6992         (with thanks to Stas Sergeev)
6993         * device/include/time.h,
6994         * device/lib/time.c (CheckTime): suppress unreachable code warning
6995
6996 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6997
6998         * src/SDCCast.c (createIvalCharPtr),
6999         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7000         bug #753752)
7001         * support/regression/tests/nullstring.c: tests for these two bugs
7002
7003 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7004
7005         * support/Util/SDCCerr.h,
7006         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7007         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7008         about storage class and 'at' used inside struct or union
7009         * src/SDCCBBlock.c (iCodeFromeBBlock),
7010         * src/SDCCcse.c (ifxOptimize),
7011         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7012         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7013         printIval, emitStaticSeg, emitOverlay),
7014         * src/SDCClabel.c (deleteIfx),
7015         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7016         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7017         gatherAutoInit, processParms),
7018         * support/Util/SDCCerr.h,
7019         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7020         reporting for post-parse errors.
7021
7022 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7023
7024         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7025         implicit casts via union; they don't work on big endian systems
7026         (possible fix for bug #861138)
7027
7028 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7029
7030         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7031         * src/mcs51/main.c: fixed the fix for bug #737001
7032
7033 2003-12-15  Borut Razem <borut.razem AT siol.net>
7034
7035         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7036
7037 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7038
7039         * support/makebin/makebin.c: put output in binary mode
7040
7041 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7042
7043         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7044         xdata and data memory on startup. Set the environment variable
7045         SDCC_NOGENRAMCLEAR to disable this.
7046         * src/mcs51/peephole.def,
7047         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7048         (allows non-interrupt and interrupt code to safely compete for a resource
7049         without the non-interrupt code having to disable interrupts)
7050
7051 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7052
7053         * src/SDCCicode.c (geniCodeAdd),
7054         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7055         with valFromType if type might be a pointer and host is big endian).
7056         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7057         types, not just integer types.
7058         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7059         multiply defined with mismatching "at" address.
7060
7061 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7062
7063         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7064         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7065         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7066         with embedded nulls (fixed bug #753752)
7067
7068 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7069
7070         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7071         Apparently this did not see much testing (endless loop)
7072
7073 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7074
7075         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7076
7077 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7078
7079         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7080         gracefully handle NULL memmap pointers
7081
7082 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7083
7084         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7085         instead of deleting the iCode when an operand is volatile
7086         * src/z80/gen.c (genDummyRead),
7087         * src/mcs51/gen.c (genDummyRead),
7088         * src/ds390/gen.c (genDummyRead),
7089         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7090         not just IC_RIGHT
7091         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7092         * src/SDCC.y: fixed bug #850420
7093
7094 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7095
7096         Applied z80 i/o port patch from Peter Townson and fixed some operators
7097         to better handle operands in A register.
7098         * device/include/z180.h
7099         * src/SDCC.y
7100         * src/SDCCglue.c
7101         * src/z80/gen.c
7102         * src/z80/gen.h
7103         * src/z80/main.c
7104         * src/z80/peeph-z80.def
7105         * src/z80/peeph.def
7106         * src/z80/z80.h
7107
7108 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7109
7110         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7111
7112 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7113
7114         * device/lib/hc08/_mullong.c: Removed extra #endif
7115
7116 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7117
7118         * sim/ucsim/hc08.src/inst.cc,
7119         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7120         carries from x to h
7121         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7122         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7123         * device/include/stdarg.h: fixed varargs for hc08
7124         * device/lib/Makefile.in,
7125         * device/lib/hc08/Makefile,
7126         * device/lib/hc08/_mulint.c,
7127         * device/lib/hc08/_mullong.c: fixed some endian problems
7128
7129 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7130
7131         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7132         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7133         * device/lib/_gptrget.c,
7134         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7135
7136 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7137
7138         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7139         * src/SDCCast.c (astErrors): fixed bug #846007
7140         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7141
7142 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7143
7144         * src/SDCCast.c (decorateType): disabled a transformation I added in
7145         revision 1.188 (access to fields of a structure at an absolute address);
7146         it breaks with bitfields, extern declarations, and gcse analysis.
7147         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7148         could be assigned through a pointer, so don't complain.
7149         * src/SDCCast.c (astErrors),
7150         * src/SDCCast.h,
7151         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7152
7153 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7154
7155         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7156         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7157         output of __config directives, since gpasm now supports them
7158         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7159         pre-processor macro, i.e. -DMCU=p18f452
7160         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7161         and modified to handle 'cast' icode similarly to '=' icode
7162         * src/pic16/device.h (typedef struct PIC_device): added field
7163         'extMIface' to indicate that chip has external memory interface
7164         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7165         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7166         18F8720
7167
7168 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7169
7170         * src/SDCC.y (pointer): fixed bug #846006
7171         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7172         * src/SDCCast.c (decorateType): fixed bug #846009
7173         * src/ds390/peeph.def,
7174         * src/ds390/gen.c (genAnd, genOr),
7175         * src/mcs51/peeph.def,
7176         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7177
7178 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7179
7180         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7181         * src/SDCCdflow.c
7182         * src/SDCCcse.c
7183         * src/SDCCcse.h
7184         * src/SDCCBBlock.h
7185         * src/SDCCBBlock.c
7186
7187 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7188
7189         fixed bug #845089
7190         * src/SDCCbitv.h,
7191         * src/SDCCbitv.c: added function to free a bitvector
7192         * src/SDCClrange.h,
7193         * src/SDCClrange.c: added function to recompute the liveranges
7194         * src/avr/ralloc.c,
7195         * src/ds390/ralloc.c,
7196         * src/hc08/ralloc.c,
7197         * src/mcs51/ralloc.c,
7198         * src/pic/ralloc.c,
7199         * src/pic16/ralloc.c,
7200         * src/xa51/ralloc.c,
7201         * src/z80/ralloc.c: recompute the liveranges after register packing
7202
7203 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7204
7205         * src/SDCCloop.c (newInduction): fixed bug #845630
7206
7207 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7208
7209         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7210         inadvertantly left behind from my 2003-11-12 change
7211
7212 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7213
7214         Updated headers I neglected to commit yesterday.
7215         * src/SDCClrange.h,
7216         * src/SDCCicode.h
7217
7218 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7219
7220         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7221         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7222         * src/SDCCopt.c (eBBlockFromiCode),
7223         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7224         the creation of the key hash table from the sequencing so it can be used
7225         earlier (for some GCSE bug fixes still pending)
7226
7227 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7228
7229         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7230         * support/regression/tests/addsub.c: testing genPlus shortcut
7231
7232 2003-11-15  Borut Razem <borut.razem AT siol.net>
7233
7234         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7235
7236 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7237
7238         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7239         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7240         ordering is immaterial.
7241         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7242
7243 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7244
7245         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7246         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7247         (SIGSEV) of bug #840381
7248         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7249         unlink new file before rename if new and old filenames are the same)
7250
7251 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7252
7253         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7254         uninitialized variables) for the mcs51. Set environment variable
7255         SDCC_GENRAMCLEAR to test.
7256         xdata initialization slightly shorter
7257
7258 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7259
7260         * src/SDCCsymt.h,
7261         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7262         #838241 & 780691 (basicly the same bug)
7263         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7264         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7265
7266 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7267
7268         * src/SDCCmain.c (linkEdit): "fix" #834252
7269
7270 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7271
7272         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7273         * src/SDCCast.h,
7274         * src/SDCC.y: fixed bug #819403
7275
7276 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7277
7278         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7279         the reentrant attribute.
7280         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7281         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7282         simulation
7283         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7284         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7285         erroneously reduced to a literal.
7286         * src/hc08/ralloc.c (packRegisters, rematStr),
7287         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7288         some cases
7289
7290 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7291
7292         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7293         * doc/sdccman.lyx: changed from 'article' to 'book'
7294         * doc/Makefile: readded test_suite_spec and cdbfileformat
7295
7296 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7297
7298         * device/include/stdlib.h: include malloc.h to comply with ANSI
7299         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7300
7301 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7302
7303         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7304         * doc/clean.mk: also remove *.out files
7305         * doc/sdccman.lyx: some additions, larger top/bottom margins
7306
7307 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7308
7309         * src/SDCC.y: fixed bug #837365
7310         * support/regression/tests/bitopcse.c
7311         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7312         a symbol (might be valop instead)
7313         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7314         * device/lib/clean.mk: added hc08 to the cleaning list
7315
7316 2003-11-04  Borut Razem <borut.razem AT siol.net>
7317
7318         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7319           made 2003-11-04
7320         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7321           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7322           malloc is declared in standard stdlib.h
7323
7324 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7325
7326         * device/lib/hc08/Makefile: need to clean .rel not .o files
7327         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7328
7329 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7330
7331         * src/port.h,
7332         * src/hc08/main.c,
7333         * src/mcs51/main.c,
7334         * src/ds390/main.c,
7335         * src/z80/main.c,
7336         * src/avr/main.c,
7337         * src/pic/main.c,
7338         * src/pic16/main.c,
7339         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7340         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7341         tests (which uses the port's oclsExpense function)
7342         * src/SDCC.y,
7343         * src/SDCCast.c,
7344         * src/SDCCicode.c,
7345         * src/hc08/gen.c,
7346         * src/ds390/gen.c,
7347         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7348
7349 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7350
7351         * src/SDCCcse.c (ifxOptimize),
7352         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7353         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7354         deleting the IFX iCode.
7355         * src/hc08/ralloc.c: reduced unneeded slocs
7356         * src/hc08/gen.c: fixed bug in asmopToBoolean
7357
7358 2003-11-04  Borut Razem <borut.razem AT siol.net>
7359
7360         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7361           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7362           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7363           transferred to configure
7364
7365 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7366
7367         Use headers defined in the C[++] standards:
7368         * sim/ucsim/gui.src/serio.src/fileio.cc
7369         * sim/ucsim/gui.src/serio.src/frontend.cc
7370         * sim/ucsim/gui.src/serio.src/main.cc
7371         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7372         * support/Util/NewAlloc.c
7373         * as/hc08/lklibr.c
7374         * as/mcs51/lklibr.c
7375         * as/z80/aslist.c
7376         * as/z80/assym.c
7377
7378 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7379
7380         * Added MSVC projects for hc08 assembler and linker:
7381         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7382         /as/hc08/link_hc08.dsp
7383
7384 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7385
7386         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7387
7388 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7389
7390         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7391
7392 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7393
7394         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7395
7396 2003-10-31  Borut Razem <borut.razem AT siol.net>
7397
7398         * support/cpp2/cpplib.h,
7399           support/cpp2/cpplib.c,
7400           support/cpp2/cpplex.c,
7401           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7402           to switch _asm block preprocessing on / off. Default is
7403           #pragma preproc_asm +
7404
7405 2003-10-31  Borut Razem <borut.razem AT siol.net>
7406
7407         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7408           when outputting comment blocks (when executed with -C option) and
7409           _asm (SDCPP specific) blocks
7410
7411 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7412
7413         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7414
7415 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7416
7417         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7418
7419 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7422         * src/SDCCast.c (decorateType): fixed bug #832664
7423
7424 2003-10-31  Borut Razem <borut.razem AT siol.net>
7425
7426         * support\cpp2\cpplex.c: fixed for SDCPP:
7427           comments(when executed with -C option) and _asm blocks
7428           were included even if they where in skipped #if block.
7429           Applied solution from GCC cpp 3.3.2
7430
7431 2003-10-31  Borut Razem <borut.razem AT siol.net>
7432
7433         * src/SDCC.lex: sdcc now understands both formats:
7434           '# <line_number> <file_name>' and
7435           '#line <line_number> <file_name>'
7436         * support/cpp2/cppmain.c: sdcpp now generates the standard
7437           '# <line_number> <file_name>' instead of former
7438           '#line <line_number> <file_name>'
7439
7440 2003-10-30  Borut Razem <borut.razem AT siol.net>
7441
7442         * support/cpp2/cpphash.h,
7443         * support/cpp2/cpplib.h
7444         * support/cpp2/cpplex.c,
7445         * support/cpp2/cppmain.c,
7446         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7447
7448 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7449
7450         Fixed a number of problems revealed by bug #827883.
7451         * src/SDCCloop.c (loopInvariants): Spill location of the
7452         result operand should be recomputed if extracted from
7453         a loop. Also, don't extract assignments of an iTemp
7454         from a literal.
7455         * src/SDCCast.c (isConformingBody): loop reversal should
7456         not occur if the control variable is involved with a
7457         relational operator.
7458
7459 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7460
7461         * .version: bumped to 2.3.6 to reflect the big improvements
7462         made by Erik and Klaus. Thanks!
7463
7464 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7465
7466         Replaced the livrange code.
7467         * src/SDCClrange.c: added new LR code
7468         * src/SDCCloop.c,
7469         * src/SDCCBBlock.h: removed remainig parts from old LR code
7470         * src/ds390/ralloc.c,
7471         * src/ds390/gen.c: minor fixes to make it work with new code
7472
7473 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7474
7475         * as/hc08/asm.h,
7476         * as/hc08/lkrloc.c,
7477         * src/hc08/gen.c,
7478         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7479         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7480         (tweaked fix for bug #818696)
7481
7482 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7483
7484         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7485
7486 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7487
7488         * src/SDCCmain.c,
7489         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7490         * src/mcs51/gen.c (gencjneshort),
7491         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7492         more efficient (per Scott Bronson's suggestion)
7493
7494 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7495
7496         Extended the semantics of the critical keyword to include
7497         individual statements. See RFE #827755 and #799831
7498         * src/SDCC.y
7499         * src/SDCCicode.c
7500         * src/SDCCopt.c
7501         * src/SDCCast.c
7502         * support/Util/SDCCerr.c
7503         * support/Util/SDCCerr.h
7504         * src/mcs51/gen.c
7505         * src/ds390/gen.c
7506         * src/hc08/gen.c
7507
7508 2003-10-19  Borut Razem <borut.razem AT siol.net>
7509
7510         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7511
7512 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7513
7514         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7515         Fixed bug #818696
7516         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7517         and predecrement operand is displayed
7518
7519 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7520
7521         * src/SDCCval.c (valMinus): fixed bug #826041
7522
7523 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7524
7525         Some hc08 related updates that I missed earlier
7526         * sim/ucsim/stypes.h
7527         * support/regression/ports/hc08/spec.mk
7528
7529 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7530
7531         New target "hc08" for the Motorola 68hc08 family of micros
7532
7533         * configure
7534         * configure.in
7535         * Makefile
7536         * src/hc08/*
7537         * src/SDCCmain.c
7538         * src/port.h
7539         * sim/ucsim/hc08.src/*
7540         * sim/ucsim/configure.in
7541         * src/ucsim/configure
7542         * sim/ucsim/packages_in.mk
7543         * as/hc08/*
7544         * as/Makefile
7545         * device/include/mc68hc908qy.h
7546         * device/lib/hc08/*
7547         * device/lib/Makefile.in
7548         * support/regression/ports/hc08/*
7549         * support/regression/Makefile
7550
7551 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7552
7553         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7554         regression test
7555         * src/ds390/gen.c (genCast): fixed bug #821957
7556
7557 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7558
7559         * device/lib/logf.c: "fixed" overlay bug
7560         * support/regression/ports/host/spec.mk: added m library
7561         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7562         * support/regression/tests/float_trans: added (for Eric)
7563
7564 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7565
7566         * src/mcs51/gen.c (genCpl): fixed bug
7567         http://sf.net/mailarchive/message.php?msg_id=6263915
7568
7569 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7570
7571         * src/SDCCast.c (decorateType): added extended constant folding
7572         * src/SDCCsymt.c (computeType): cleanup
7573         * src/SDCCval.c (valShift): minor optimization
7574         * support/regression/tests/ast_constant_folding.c: added
7575
7576 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7577
7578         * src/SDCCmain.c: removed some unintended changes
7579
7580 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7581
7582         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7583         * src/z80/gen.c: fixed part of bug #817589
7584         * src/SDCCsymt.c (checkFunction): fixed bug #817895
7585
7586 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7587
7588         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7589         * src/SDCCcflow.c
7590         * src/SDCCcse.c
7591         * src/SDCCdflow.c
7592         * src/SDCClabel.c
7593         * src/SDCClrange.c
7594         * src/SDCCmem.c
7595         * src/SDCCopt.c
7596         * src/SDCCpeeph.c
7597         * src/SDCCset.c
7598         * src/avr/ralloc.c
7599         * src/ds390/ralloc.c
7600         * src/izt/ralloc.c
7601         * src/mcs51/ralloc.c
7602         * src/pic/ralloc.c
7603         * src/pic16/ralloc.c
7604         * src/xa51/ralloc.c
7605         * src/z80/ralloc.c
7606         * src/z80/gen.c: removed unused label "release:"
7607
7608 2003-10-06  Borut Razem <borut.razem AT siol.net>
7609
7610         * src/SDCC.lex: removed definition of unused variables
7611           save_optimize and save_options
7612
7613 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7614
7615         * clean.mk: removed '=' in "-maxdepth=1"
7616         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7617         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7618
7619 2003-10-06  Borut Razem <borut.razem AT siol.net>
7620
7621         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7622           my_unput() replaced by unput()
7623
7624 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7625
7626         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7627         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7628         type-punned pointer will break strict-aliasing rules"
7629         Old LR behaviour is again default; Klaus' LR can be choosen by
7630         defining the environment variable LRKLAUS
7631         * src/SDCCBBlock.h
7632         * src/SDCCloop.c
7633         * src/SDCClrange.c
7634         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7635         * clean.mk: fixed removal of files in bin/CVS/
7636         * device/lib/clean.mk: fixed removal of directories small and large
7637         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7638         * src/SDCCicode.c,
7639         * src/SDCCval.c: removed superflous test for pedantic
7640
7641 2003-10-05  Borut Razem <borut.razem AT siol.net>
7642
7643         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7644           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7645           message "unmatched #pragma SAVE and #pragma RESTORE"
7646
7647 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7648
7649         * doc/sdccman.lyx: various additions and updates (interrupts, inline
7650           assembly, critical functions, atomic, nojtbound)
7651
7652 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7653
7654         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7655         * src/SDCCBBlock.h
7656         * src/SDCCloop.c
7657         * src/SDCCloop.h
7658         * src/SDCClrange.c
7659
7660 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7661
7662         * src/z80/gen.h,
7663         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7664         * src/mcs51/gen.h
7665         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7666         * src/ds390/gen.h
7667         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7668         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7669         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7670
7671 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7672
7673         * src/z80/gen.c (genRet): fixed bug #524753
7674         * src/z80/gen.c (genCast): fixed internal error on cast from
7675         pointer to long
7676         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7677         fix for bug #477835 to the z80
7678         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7679         for tracking iCodes in the peephole optimizer for z80
7680
7681 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7682
7683         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7684         the other part of bug #814548
7685         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7686
7687 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
7688
7689         * src/SDCCcse.c: fixed part of bug #814548
7690
7691 2003-09-28  Borut Razem <borut.razem AT siol.net>
7692
7693         * src/asm.c: rewrite of printILine() to use temporary file instead
7694           a pipe
7695         * src/xa51/main.c: commented out declaration of int rewinds
7696
7697 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7700
7701 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7702
7703         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7704         * src/asm.c (printILine): Fixed bug #811015
7705
7706 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7707
7708         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7709         freeing.
7710
7711 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7712
7713         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7714         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7715         to correctly handle general case of AOP_PAIRPTR
7716         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7717
7718 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7719
7720         * src/mcs51/ralloc.c (fillGaps),
7721         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7722         register positioning bug)
7723
7724 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
7725
7726         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7727
7728 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7729
7730         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7731         genCodePointerGet, genGenPointerGet, genFarPointerSet,
7732         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7733         (ralloc doesn't intentionally do this now, but perhaps later)
7734         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7735         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7736         register positioning bugs (Fixed bug #762602 and #795325)
7737         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7738         (Fixed bug #808779)
7739         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7740         lines that --i-code-in-asm generates
7741
7742 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7743
7744         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7745         trying to fclose a FILE* that was already closed.
7746
7747 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7748
7749         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7750         of const struct should be treated as if const themselves)
7751
7752 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
7753
7754         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7755
7756 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7757
7758         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7759         Unix (/n) and DOS (/r/n) line terminations.
7760
7761 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7762
7763         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7764         bug #613775
7765
7766 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7767
7768         * src/mcs51/gen.c (genFunction, genEndFunction),
7769         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7770         and restore of EA so that stack offsets to parameters are
7771         correct when using both critical and reentrant/stack-auto.
7772         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7773         size (can be triggered in error if sloc is shared between
7774         different sized objects)
7775         * device/include/float.h: fixed macros to explicitly use
7776         unsigned long where needed
7777
7778 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
7779
7780         Feature req. 799831: added code to allow nesting of critical functions
7781         * src/mcs51/gen.c (genFunction, genEndFunction)
7782         * src/ds390/gen.c (genFunction, genEndFunction)
7783
7784 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7785
7786         * src/SDCCsymt.c (sclsFromPtr),
7787         * src/SDCCsymt.h,
7788         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7789         support for standard C idiom of memory mapped variables; for
7790         example, *((xdata int*)0x1234) = 1 is now internally equivalent
7791         to xdata int at 0x1234 tempvar = 1.
7792         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7793         provided by Akiya ISHIDA
7794
7795 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
7796
7797         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7798         * src/SDCCval.c (constVal): added reduction from int to char
7799         * src/SDCCval.c (valMult, valDiv): fixed sign handling
7800         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7801         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7802         to ignore the sign
7803         * support/regression/tests/shifts.c: fixed
7804
7805 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7806
7807         * src/z80/gen.c (genXor): Fixed bug #805445
7808
7809 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7810
7811         Fixed bug #621531 (const & volatile confusion in the type chain).
7812         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7813         refer to the const or volatile state of the pointer itself.
7814
7815         * src/SDCCast.c
7816         * src/SDCCglue.c
7817         * src/SDCCicode.c
7818         * src/SDCCsymt.c
7819         * src/SDCCval.c
7820         * src/SDCC.y
7821         * src/SDCCsymt.h
7822         * src/pic/gen.c
7823         * src/pic/ralloc.c
7824         * src/pic16/gen.c
7825         * src/pic16/ralloc.c
7826         * support/regression/tests/const.c
7827
7828 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7829
7830         When checking for duplicated modules, use absolute paths
7831         instead of relative paths.  Files changed:
7832
7833         * as/mcs51/lklib.c
7834         * link/z80/lklib.c
7835
7836 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7837
7838         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7839
7840 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7841
7842         * device/include/string.h: added size_t typedef, changed
7843         prototypes to use size_t, eliminated separate reentrant and
7844         non-reentrant declarations, added _memmove declaration
7845         * device/lib/_memcpy.c: changed to use size_t instead of int,
7846         changed /4 to >>2 to avoid division library call
7847         * device/lib/_memcmp.c,
7848         * device/lib/_memset.c,
7849         * device/lib/_strncat.c,
7850         * device/lib/_strncpy.c,
7851         * device/lib/_strncmp.c: changed to use size_t instead of int
7852         * device/lib/_memmove.c: new file (fixed bug #772294)
7853         * device/lib/Makefile.in: added _memmove.c
7854         * device/lib/z80/asm_strings.s: fixed bug #772290
7855         * support/regression/tests/bitfields.c: attempt to fix host assertion
7856         failure on amd64-unknown-linux2.2
7857
7858 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859
7860         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7861         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7862         * as/z80/asmain.c (main): fixed bug #801766
7863
7864 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
7865
7866         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7867         compilers
7868
7869 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7870
7871         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7872         reported in bug #800609
7873
7874 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
7875
7876         * Top header beautifications in src/pic16 directory:
7877           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
7878           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
7879           pcoderegs.h, ralloc.c, ralloc.h
7880         * main.c: added top header and GPL license notice
7881         * pcode.c: fixed the if-conditional warning
7882
7883 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
7884
7885         * device/lib/_mullong.c: replaced int by short for gcc
7886
7887 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7888
7889         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7890         and JUMPTABLE iCodes properly now (worked by accident before)
7891         * src/mcs51/gen.c (leftRightUseAcc),
7892         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7893         iCode properly now. Use getSize instead of nRegs since a & b
7894         aren't part of the nRegs tally.
7895
7896 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
7897
7898         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7899         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7900           before instructions that use the _STATUS register
7901
7902 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
7903
7904         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7905         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7906         fetching of the pointer
7907         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7908         copied from genNearPointerSet()
7909         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7910         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7911         If they pop r0/r1 they must be called in the opposite order than aopOp().
7912         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7913         (resp. --stack-auto), prepared for --xstack
7914
7915 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7916
7917         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7918
7919 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
7920
7921         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7922         these ports have their own __sdcc_external_start()
7923
7924 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
7925
7926         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7927         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7928         type for bits was changed. It resulted in bit variables becoming
7929         global, which is not permitted in PIC 14 assembly output.
7930
7931 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7932
7933         * doc/sdccman.lyx: various additions and updates. Rearranged sections
7934
7935 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7936
7937         Z80 and MCS51 linkers complaint if a public symbol is defined
7938         in more than one library module:
7939
7940         * as/mcs51/lklib.c
7941         * link/z80/lklib.c
7942         * as/mcs51/Makefile.in
7943
7944 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7945
7946         A few small changes that speed up the peephole optimizer.
7947
7948         * src/SDCCpeeph.c
7949
7950 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7951
7952         Try to make the peephole optimizer smarter by maintaining
7953         an association between the assembly source code and the
7954         iCodes that originated them. Put this information to use
7955         with a new peephole rule condition "notVolatile" so that
7956         the rules can be aggressive yet still safe.
7957
7958         * src/SDCCpeeph.c
7959         * src/SDCCpeeph.h
7960         * src/mcs51/gen.c
7961         * src/mcs51/peeph.def
7962
7963 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7964
7965         Fixed bug #741761
7966
7967         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7968         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7969         if the left or right operand symbols have the accuse flag set.
7970
7971 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7972
7973         Changed the type of the result of the ! (NOT) operator to char;
7974         previously it returned the same type as the source. This allows
7975         us to eliminate all the genFloatNot functions (all of its target
7976         implementations were very buggy) since !float can use the same
7977         code as !long now.
7978
7979         * src/SDCCicode.c (ast2iCode): ! returns char
7980         * src/mcs51/gen.c (genNot, genNotFloat),
7981         * src/ds390/gen.c (genNot, genNotFloat),
7982         * src/z80/gen.c (genNot, genNotFloat),
7983         * src/pic/gen.c (genNot, genNotFloat),
7984         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7985
7986 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
7987
7988         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7989         1. Interrupt would not compile properly. Ensure PCLATH register is saved
7990            during interrupts. Ensure WSAVE is located at a shared bank address.
7991         2. Fixed page selection in some places
7992         3. Fixed BTFSS/C to where necessary use registers directly and not simply
7993            the registers name strings.
7994         4. Fixed "signed / unsigned compare" compiler warnings.
7995         5. The PIC port manages its own allocation of the general purpose
7996            registers, but makes no attempt to reuse them. As a result when
7997            compiling it soon runs out of general purpose registers. Some
7998            additional code was added to the files pcode.c and device.c to walk
7999            through the function call tree and rename the registers so that they
8000            get reused.
8001
8002         * src/pic/device.c
8003         * src/pic/gen.c
8004         * src/pic/glue.c
8005         * src/pic/pcode.c
8006         * src/pic/pcode.h
8007         * src/pic/ralloc.c
8008         * src/pic/ralloc.h
8009         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8010         genPlus() & genMinus() when the result is the same as left or right
8011
8012 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8013
8014         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8015
8016 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8017
8018         Made bitfield a distinct type from bit so that bitfields
8019         convert as per ANSI C and bits retain their traditional
8020         boolean style behaviour. Implemented bitfield support in
8021         the z80 port.
8022
8023         * src/SDCCsymt.h,
8024         * src/SDCCsymt.c,
8025         * src/SDCCast.c,
8026         * src/cdbFile.c,
8027         * src/mcs51/gen.c,
8028         * src/ds390/gen.c: bit v bitfield split
8029         * src/z80/gen.c: New support for bitfields
8030         * support/regression/tests/bitfields.c: reenabled z80,
8031         added more tests
8032
8033 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8034
8035         Rules 246.x, 247.x relate to bitfields, the others speed up
8036         access to xdata mapped I/O devices.
8037
8038         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8039
8040 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8041
8042         Cleaned up genPackBits and genUnpackBits and added two helper
8043         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8044         for literal assignments in genPackBits (thanks to Frieder for
8045         reminding me).
8046
8047         * src/mcs51/gen.c
8048         * src/ds390/gen.c
8049
8050 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8051
8052         Fixed bug #748310 (pointer to function type mishandled when the
8053         function name is omitted). Also fixed a SIGSEGV when a function
8054         attribute (reentrant, etc) is used on a non-function or on a
8055         function but misplaced before the parameter list.
8056
8057         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8058         bug #748310
8059         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8060         * support/Util/SDCCerr.h,
8061         * support/Util/SDCCerr.c: Added func attr misuse error msg
8062
8063 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8064
8065         Fixed bug #787649 by anonymous
8066         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8067         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8068
8069 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8070
8071         Fixed numerous bitfield problems.
8072
8073         * src/SDCC.y: More bitfield related error checking
8074         * src/SDCCsymt.h,
8075         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8076         * support/Util/SDCCerr.h,
8077         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8078         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8079         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8080         * support/regression/tests/bitfields.c: tests added
8081
8082 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8083
8084         Made the constant following the "interrupt" keyword optional. If
8085         omitted, the function will not automatically be given an entry
8086         in the interrupt vector table (similar to #pragma NOIV, but
8087         less syntacticly kludgy). The interrupt number is also now
8088         range checked. Also fixed a bug in the high order bit example
8089         in the manual.
8090
8091         * src/SDCC.y
8092         * src/SDCCmem.c
8093         * src/SDCCglue.c
8094         * src/SDCCsymt.h
8095         * support/Util/SDCCerr.c
8096         * support/Util/SDCCerr.h
8097         * doc/sdccman.lyx
8098
8099 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8100
8101         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8102         * src/SDCCicode.c (operandOperation): rewritten some ops
8103         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8104         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8105         other type
8106         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8107         be re-activated by defining REDUCE_LITERALS)
8108         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8109         unsigned, but are signed by default
8110         * src/SDCCval.c (constVal): rearranged
8111         * src/SDCCval.c (valMod): preliminary fix
8112         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8113         * support/regression/literalop.c: added, work in progress
8114
8115 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8116
8117         Generate warnings for useless declarations like "char data;"
8118         that don't do what new users expect.
8119
8120         * src/SDCC.y
8121         * support/Util/SDCCerr.h
8122         * support/Util/SDCCerr.c
8123
8124 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8125
8126         * src/SDCCval.c (valMult): fix overflow detection of negative int
8127
8128 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8129
8130         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8131
8132         Changes to support big endian targets:
8133
8134         * src/ports.h
8135         * src/SDCCglue.c
8136         * src/avr/main.c
8137         * src/ds390/main.c
8138         * src/izt/i186.c
8139         * src/mcs51/main.c
8140         * src/pic/main.c
8141         * src/pic16/main.c
8142         * src/xa51/main.c
8143         * src/z80/main.c
8144
8145 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8146
8147         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8148         * device/lib/time.c: fixed warning "integer overflow in expression"
8149
8150 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8151
8152         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8153         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8154         constants are unsigned; added recognition of "u" flag for unsigned
8155         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8156         * src/SDCCval.c (valDiv, valMod): fixed signdness
8157         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8158         signedness of modulo, left and right shift
8159         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8160         * support/Util/SDCCerr.h: added warning W_INT_OVL
8161         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8162         * src/SDCCast.c (ast_print): improved output of constants
8163
8164 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8165
8166         Fixed some warnings when building with MSVC:
8167
8168         * as\mcs51\asdata.c
8169         * as\z80\asdata.c
8170         * as\mcs51\asm.h
8171         * as\z80\asm.h
8172         * link\z80\aslink.h
8173         * link\z80\lkdata.c
8174         * link\z80\lkeval.c
8175         * link\z80\lkgb.c
8176         * link\z80\lkihx.c
8177         * link\z80\lks19.c
8178         * link\z80\lksym.c
8179         * support\cpp2\cpplib.c
8180         * src\ds390\gen.c
8181         * src\mcs51\gen.c
8182
8183 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8184
8185         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8186
8187 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8188
8189         * support\librarian\clean.mk: Do not remove Makefile.
8190         * support\librarian\Makefile: added.
8191
8192 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8193
8194         Added librarian to MSVC build:
8195         * all.dsp
8196         * sdcc.dsw
8197         * support\librarian\librarian.dsp
8198
8199         'configure' not needed for librarian, removed:
8200         * support\librarian\configure
8201         * support\librarian\configure.in
8202         * support\librarian\config_in.h
8203         * support\librarian\Makefile.in
8204
8205         Hopefully these ones built the librarian and the rest of sdcc properly:
8206         * Makefile
8207         * Makefile.common.in
8208
8209         Messed up 'configure', so revert to previous version:
8210         * configure
8211         * configure.in
8212
8213 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8214
8215         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8216         there, while the mantissa of a double is "only" 53 bits wide.
8217
8218 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8219
8220         Adding sdcclib to the build.  MSVC project coming soon.
8221         Files added/changed:
8222
8223         * support\librarian\clean.mk
8224         * support\librarian\configure
8225         * support\librarian\configure.in
8226         * support\librarian\config_in.h
8227         * support\librarian\Makefile.bcc
8228         * support\librarian\Makefile.in
8229         * support\librarian\sdcclib.c
8230         * Makefile.bcc
8231         * Makefile
8232         * Makefile.common.in
8233         * configure
8234         * configure.in
8235
8236 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8237
8238         Linker now complaints if linked modules have conflicting options, for
8239         example, one compiled using --model-large and another one compiled with
8240         --model-small.  The following files were modified:
8241
8242         * as\mcs51\asdata.c
8243         * as\mcs51\aslink.h
8244         * as\mcs51\asm.h
8245         * as\mcs51\asmain.c
8246         * as\mcs51\asout.c
8247         * as\mcs51\i51pst.c
8248         * as\mcs51\lkdata.c
8249         * as\mcs51\lklibr.c
8250         * as\mcs51\lkmain.c
8251         * as\z80\asdata.c
8252         * as\z80\asm.h
8253         * as\z80\asmain.c
8254         * as\z80\asout.c
8255         * as\z80\z80pst.c
8256         * link\z80\aslink.h
8257         * link\z80\lkdata.c
8258         * link\z80\lklibr.c
8259         * link\z80\lkmain.c
8260         * src\SDCCglue.c
8261
8262 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8263
8264         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8265         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8266
8267 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8268
8269         * src/z80/mappings.i: fix _mul[us][int,long] entries
8270
8271 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8272
8273         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8274
8275 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8276
8277         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8278         * support/regression/tests/bitopcse.c: added
8279         fixed warning:
8280         * src/avr/gen.c:
8281         * src/pic/gen.c:
8282         * src/pic16/gen.c:
8283         * src/z80/gen.c:
8284         * src/xa51/gen.c:
8285
8286 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8287
8288         added support for new library format to z80, gbz80 linkers:
8289         *link/z80/aslink.h
8290         *link/z80/lklex.c
8291         *link/z80/lklib.c
8292         *link/z80/lklist.c
8293
8294 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8295
8296         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8297         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8298
8299 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8300
8301         added DUMMY_READ_VOLATILE:
8302         * src/SDCC.y:
8303         * src/avr/gen.c:
8304         * src/xa51/gen.c:
8305         * src/z80/gen.c:
8306         * src/pic/gen.c:
8307         * src/pic16/gen.c:
8308         * src/mcs51/gen.c:
8309         * src/ds390/gen.c:
8310         * src/SDCCcse.c (algebraicOpts): many improvements
8311         * src/SDCCcse.h: removed algebraicOpts()
8312         * src/SDCCicode.c (picDummyRead): added
8313
8314 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8315
8316         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8317         "Insufficient space in data memory".
8318
8319 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8320
8321         * src/mcs51/gen.c: fixed bug #771358
8322         * src/z80/gen.c: fixed bug #759087
8323
8324 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8325
8326         * src/pic16/glue.c: minor cleanup by Vangelis
8327
8328 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8329
8330         * device/include/regc515c.h: fixed #758477
8331         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8332         * device/lib/_gptrput.c: saved a few bytes
8333         * my tab spacing is 8, yours too?)
8334         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8335         * device/lib/serial.c: process RX bytes earlier than TX bytes
8336         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8337
8338 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8339
8340         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8341
8342 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8343
8344     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8345
8346 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8347
8348         * device/lib/Makefile.in: bad fix, reverted to 1.43
8349
8350 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8351
8352         * device/lib/Makefile.in: added missing z80 object files
8353
8354 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8355
8356         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8357         pic16 progress by Vangelis:
8358         * src/SDCCglobl.h:
8359         * src/SDCCmain.c:
8360         * src/pic/Makefile:
8361         * src/pic:
8362         * pic/Makefile:
8363         * pic16/device.c:
8364         * pic16/device.h:
8365         * pic16/gen.c:
8366         * pic16/gen.h:
8367         * pic16/genarith.c:
8368         * pic16/glue.c:
8369         * pic16/main.c:
8370         * pic16/pcode.c:
8371         * pic16/pcode.h:
8372         * pic16/pcodepeep.c:
8373         * pic16/peeph.def:
8374
8375 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8376
8377     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8378
8379 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8380
8381     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8382     added gbz80 build to MSVC project.
8383     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8384     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8385     from 8051 stuff and setup so it links using a .lnk file.
8386
8387 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8388
8389     * support/librarian/sdcclib.c: sdcc librarian.
8390     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8391     with sdcclib.
8392
8393 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8394
8395     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8396
8397 2003-07-02  Borut Razem <borut.razem AT siol.net>
8398
8399         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8400         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8401         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8402         src/xa51/main.c, src/z80/main.c:
8403         virtualization of glue() function: each port has it's own glue function,
8404         which is accessed by do_glue function pointer in PORT.general structure
8405
8406 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8407
8408         * DS800C400 fun, improved ROM interface and tinibios.
8409
8410 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8411
8412         * More support for DS80C400. Now includes beginning of interface to ROM.
8413
8414 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8415
8416         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8417
8418 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8419
8420         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8421
8422 2003-06-19  Borut Razem <borut.razem AT siol.net>
8423
8424         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8425
8426 2003-06-19  Borut Razem <borut.razem AT siol.net>
8427
8428         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8429         fixed Z80 port - crt0.o: cannot open.
8430
8431 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8432
8433         * support/Util/MySystem.c (merge_command): revert bad fix
8434
8435 2003-06-18  Borut Razem <borut.razem AT siol.net>
8436
8437         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8438
8439 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8440
8441         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8442         option --use-stdout sends errors to stdout instead of stderr.
8443
8444 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8445
8446         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8447
8448 2003-06-15  Borut Razem <borut.razem AT siol.net>
8449
8450         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8451         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8452         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8453         fixed width array of pointers replaced with sets;
8454         multiple include and lib paths ared transferred to preprocessor and linker
8455         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8456         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8457         fixed width array of pointers
8458         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8459         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8460         fixupPath(), getPathDifference()
8461         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8462         fixed width array of pointers
8463
8464 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8465
8466         * src/pic16/ralloc.c: fix warnings
8467         * src/pic16/pcode.c: fix warning
8468
8469 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8470
8471          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8472         know all the details, but essentially this set of changes enable
8473         the pic16 port to generate movff instructions and generate assembler
8474         directives,
8475         * src/SDCCmain.c:
8476         * src/pic16/gen.c:
8477         * src/pic16/glue.c:
8478         * src/pic16/pcode.c:
8479         * src/pic16/device.c:
8480         * src/pic16/main.c:
8481         * src/pic16/pcode.h:
8482         * src/pic16/pcoderegs.c:
8483         * src/pic16/ralloc.c:
8484         * src/pic16/ralloc.h:
8485
8486 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8487
8488         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8489         added option --vc, so sdcc errors and warnings are compatible with
8490         Microsoft Visual Studio.
8491
8492 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8493
8494         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8495           device/lib/libfloat.lib: added atof function.
8496
8497 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
8498
8499         * doc/sdccman.lyx: updated to Lyx 1.3
8500         * doc/cdbfileformat.lyx: updated to Lyx 1.3
8501         * doc/test_suite_spec.lyx: updated to Lyx 1.3
8502         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8503
8504 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
8505
8506         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8507
8508 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8509
8510         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8511           additions to the "related tools/documentation" section
8512
8513 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
8514
8515         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8516
8517 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
8518
8519         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8520         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8521
8522 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
8523
8524         * doc/sdccman.lyx: fix double dash and other minor things
8525         * doc/Makefile: fix double dash
8526
8527 2003-05-28  Karl Bongers(patches from Martin Helmling)
8528         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8529           condition and ignore commands.
8530
8531 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8532
8533         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8534           is in parts still quite out of date, I did changes as far as I felt makes sense
8535           for a non-native english speaker.
8536           Please feel free to add to the manual or to correct my changes.
8537         * doc/Makefile: undid touching the date of intermediate tex files.
8538
8539 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8540
8541         * doc/sdccman.lyx: Manual has an index now
8542
8543 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
8544
8545         Finalize muluint/mulsint and mululong/mulslong merging:
8546         * device/lib/_mulint.c
8547         * device/lib/_mullong.c
8548         * device/lib/gbz80/mul.s
8549         * device/lib/gbz80/stubs.s
8550         * device/lib/z80/mul.s
8551         * device/lib/z80/stubs.s
8552         * src/SDCCsymt.c (initCSupport)
8553
8554 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8555
8556         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8557         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8558           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8559           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8560           instead of /Zm500.
8561
8562 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8563
8564         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8565           the regression tests I'm not brave enough to enable 245.b, 245.c
8566         * doc/sdccman.lyx: added latex preamble for hyperref package.
8567           Using pdflatex this will give you a hyperlinked pdf file with
8568           bookmarks. (prepend '%' before /usepackage if this breaks something)
8569
8570 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8571
8572          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8573
8574 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
8575
8576         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8577
8578 2003-05-21    <johan AT balder>
8579
8580         * src/SDCCglue.c (printIval): fixed bug #739934
8581
8582 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8583
8584         Applied patch from bug 737905 (renamed yylineo to mylineno):
8585         * src/altlex.c
8586         * src/SDCCast.c
8587         * src/SDCglobl.h
8588         * src/SDCC.lex
8589         * src/SDCCsymt.c
8590         * src/SDCCval.c
8591         * src/pic16/pcode.c: Cleaned warnings
8592         * src/pic16/pcodeflow.c: Cleaned warnings
8593         * src/pic16/pcoderegs.c: Cleaned warnings
8594
8595 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
8596
8597         * src/pic16/pcode.c: Cleaned warnings
8598         * src/pic16/pcodepeep.c: Cleaned warnings
8599         * src/pic16/ralloc.c: Cleaned warnings
8600
8601 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8602
8603         * doc/sdccman.lyx: fixed bug 739745
8604         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8605
8606 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
8607
8608         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8609         it can be defined with CFLAGS when running configure
8610         * src/SDCCmain.c: fixed compiling + linking with object files
8611
8612 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
8613
8614         * configure.in: configure for pic16 port,
8615             added --disable-pic16-port
8616         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8617         * src/SDCCmain.c: linkOptions is changed to set *,
8618             added if/endif conditional macros to remove options help
8619             messages from optionsTable when a port is not configured, added
8620             support for the PIc16 port in the ports table, when executing
8621             the compiler with no port specified on command line, a default
8622             port is selected with the new macro DEFAULT_PORT which is
8623             defined in port.h, in setDefaultOptions() linkOptions is removed
8624             from initialization assignment, since now it is a set,
8625             parseCmdLine uses setParseWithComma for linkOptions, in
8626             linkEdit() linkOptions are accessed with new function indexSet()
8627             which returns the i'th item of a set variable. See SDCCset.c, in
8628             linkEdit() when calling buildCmdLine(), added linkOptions as
8629             last argument. Now users can pass arguments to gplink via the
8630             -Wl option, main() uses pic16glue() to glue up pic16 programs
8631         * src/SDCCpeeph.c: various changes to support pic16
8632         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
8633             return the i'th item of the set
8634         * src/SDCCset.h: added function prototype for indexSet()
8635         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8636         * src/clean.mk: added pic16 in CLEANALLPORTS variable
8637         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8638             added macro DEFAULT_PORT
8639         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8640         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8641             generated
8642         * src/pic16/glue.c: commented out some error producing lines
8643         * src/pic16/main.c: __config directives are commented out to stop
8644             gpasm complaining and test the linkage with gplink, _linkCmd and
8645             _asmCmd changed to be more gplink and gpasm friendly
8646         * src/pic16/peeph.def: peep rule 3 is commented out, since it
8647             produced an error when parsed, peep rule 12 is added to utilize
8648             movff, but it is commented out since the pCode does not support
8649             yet a command with 2 address arguments
8650
8651 2003-05-18    <johan AT balder>
8652
8653         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8654         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8655 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
8656
8657         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8658   Added feature to script commands from file.
8659
8660 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
8661
8662         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8663         * src/SDCCutil.c: include ctype.h for win32
8664
8665 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
8666
8667         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8668
8669 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
8670
8671         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8672   Fixed so you can set breakpoints prior to run, run does not stop
8673   on entry now.  Add tbreak.  Other enhancements and fixes for use
8674   with ddd.
8675
8676 2003-05-12  Borut Razem <borut.razem AT siol.net>
8677
8678         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8679
8680 2003-05-11  Borut Razem <borut.razem AT siol.net>
8681
8682         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8683         the path of bin directory, so that PATH is the only env. variable, which has to be set
8684         in case of standard installation.
8685         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8686         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8687         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8688
8689 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8690
8691         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8692         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8693         temp files are in the port dir; clean the gen/test directory when
8694         generating new test.c
8695         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8696         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8697         * support/regression/tests/zeropad.c: added
8698
8699 2003-05-09    <johan AT balder>
8700
8701         * src/SDCCglue.c: fixed bug #597940
8702
8703 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
8704
8705         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8706   cache sfr, optimize next,step, fix off by one sourceline,
8707   support ddd list function.
8708         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8709
8710 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8711
8712         * support/regression/HTMLgen.py: added compare_s2f()
8713         * support/regression/Makefile: redo 1.27
8714         * support/regression/generate-cases.py: redo 1.5
8715
8716 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
8717
8718         * support/regression/tests/float.c: workaround 33 bit hex constant
8719         * support/regression/tests/simplefloat.c: fix division for host
8720
8721 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
8722
8723         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8724         that tame's the PIC's over-aggressive optimizer.
8725
8726 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8727
8728          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8729          support for MSVC.
8730
8731 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
8732
8733         Initial support for DS80C400. "Hello world" runs on TINIm400
8734         (with polled I/O).
8735
8736 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
8737
8738          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8739          * Some notes on ddd usage added in debugger/README
8740          Martin Helmling adding more features and fixes for ddd GUI debugger.
8741          Code added for nexti, stepi, up, down, and other adjustments.
8742
8743 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
8744
8745         * src/pic/pCodepeep.c non-wildcard asmops are now handled
8746         * src/pic/peeph.def Added two rules to optimize carry manipulation
8747         * src/pic/* removed debug printfs
8748
8749 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
8750
8751         * debugger/mcs51/cmd.c: added header newalloc.h
8752
8753 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
8754
8755         * as/Makefile: new EXEEXT
8756         * as/z80/Makefile: remove trailing slash of BUILDIR
8757         * as/z80/clean.mk: new EXEEXT
8758         * Makefile.common.in: add to CFLAGS (and others), don't replace it
8759         * support/cpp2/Makefile.in: new EXEEXT
8760         * src/pic/glue.c (pic14emitRegularMap): fixed warning
8761
8762 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
8763
8764         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8765         EXEEXT was introduced to fix all related problems with targets
8766         "clean", "install" and "uninstall"; a couple of further flaws
8767         especially with "clean" have been fixed too
8768         * as/mcs51/Makefile.in
8769         * as/mcs51/clean.mk
8770         * as/z80/Makefile
8771         * Makefile
8772         * clean.mk
8773         * debugger/mcs51/Makefile.in
8774         * debugger/mcs51/clean.mk
8775         * link/z80/Makefile
8776         * link/z80/Makefile.in
8777         * link/z80/clean.mk
8778         * link/Makefile
8779         * packihx/Makefile.in
8780         * packihx/clean.mk
8781         * sim/ucsim/Makefile
8782         * sim/ucsim/clean.mk
8783         * sim/ucsim/avr.src/Makefile.in
8784         * sim/ucsim/avr.src/clean.mk
8785         * sim/ucsim/s51.src/Makefile.in
8786         * sim/ucsim/s51.src/clean.mk
8787         * sim/ucsim/xa.src/Makefile.in
8788         * sim/ucsim/xa.src/clean.mk
8789         * sim/ucsim/z80.src/Makefile.in
8790         * sim/ucsim/z80.src/clean.mk
8791         * sim/ucsim/main_in.mk
8792         * sim/ucsim/packages_in.mk
8793         * sim/ucsim/gui.src/Makefile.in
8794         * sim/ucsim/gui.src/serio.src/Makefile.in
8795         * sim/ucsim/gui.src/serio.src/clean.mk
8796         * src/Makefile.in
8797         * src/clean.mk
8798         * support/cpp2/Makefile.in
8799         * support/cpp2/clean.mk
8800         * support/makebin/Makefile
8801         * support/makebin/clean.mk
8802         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8803         * doc/sdccman.lyx: --program-suffix no longer needed
8804
8805 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
8806
8807          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8808          Martin Helmling added support for ddd GUI debugger.
8809          Code added to display assembly, set variables, and other commands
8810          to interface to ddd.
8811
8812 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
8813
8814         * as/Makefile: fix target clean
8815         * as/clean.mk: fix target clean
8816         * as/z80/clean.mk: fix target clean
8817
8818 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
8819
8820         * Makefile.common.in: added  AT EXEEXT AT
8821         * configure.in: removed all mingw32 stuff
8822         * configure: rebuilt from configure.in
8823         * doc/sdccman.lyx: updated section "installation"
8824         * support/scripts/sdcc_mingw32: adapted to configure
8825         * support/scripts/sdcc_cygwin_mingw32: added
8826
8827 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
8828
8829         * src/pic Added object file support for the PIC port
8830         * src/pic Applied patch from Craig Franklin (this started the object file support)
8831         * src/regression Updated the PIC regression tests for object files
8832
8833 2003-04-20  Borut Razem <borut.razem AT siol.net>
8834
8835         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8836           lklex.c: In function `getfid':
8837           lklex.c:203: warning: array subscript has type `char'
8838         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8839           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8840         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8841           stack handling macros
8842
8843 2003-04-19  Borut Razem <borut.razem AT siol.net>
8844
8845         * "handling space characters in file path" task:
8846         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8847         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8848         * support/Util/MySystem.h: make it self-sufficient
8849         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8850           src/z80/main.c, sdcc/as/mcs51/lklex.c:
8851           handling space characters in file path
8852         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8853           (it will be used by assemblers, which have their own includes, e.g. gpasm)
8854         * support/Util/MySystem.c: handling space characters in executable's path
8855
8856 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
8857
8858         * as/z80/Makefile: fix permanent rebuild of z80
8859         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8860         * support/regression/tests/bitfields.c: added Johan's bitfields.c
8861
8862 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
8863
8864         * src/SDCCopt.c: add special case optimization to replace modulo by
8865           a power of two with a bitwise AND.
8866
8867 2003-04-18    <johan AT balder>
8868
8869         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8870
8871 2003-04-17    <johan AT balder>
8872
8873         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
8874         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
8875
8876 2003-04-13  Borut Razem <borut.razem AT siol.net>
8877
8878         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
8879         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
8880           fixed mingw problem in adl_NORMALIZE_PATH
8881
8882 2003-04-12  Borut Razem <borut.razem AT siol.net>
8883
8884         * fixed "#pragma SAVE/RESTORE can not be nested":
8885         * src/SDCC.lex: reworked pragma handling functions
8886         * sdcc/src/SDCCglobl.h: reworked stack handling macros
8887         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8888
8889 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8890
8891         * src/SDCCutil.c (pathEquivalent): defined but not used
8892         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8893         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8894         * configure: rebuilt from configure.in
8895         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8896         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8897         * device/include/Makefile.in: replace sdcc_datadir
8898         * device/lib/Makefile.in: replace sdcc_datadir
8899         * Makefile.common.in: add LDFLAGS from configure
8900         * packihx/Makefile.in: use LDFLAGS
8901         * src/Makefile.in: use LDFLAGS
8902         * support/cpp2/Makefile.in: add LDFLAGS from configure
8903         * support/makebin/Makefile: use LDFLAGS
8904         * .version: bumped version number to 2.3.5
8905
8906 2003-04-12  Borut Razem <borut.razem AT siol.net>
8907
8908         * completed "different paths" task:
8909         * src/SDCCmacro.c: fixed bug in handling quotes
8910         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8911         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8912
8913 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8914
8915         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8916
8917 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8918
8919         * ds390/gen.c ds390/peeph.def: fix bug 706781
8920
8921 2003-04-11  Borut Razem <borut.razem AT siol.net>
8922
8923         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8924
8925 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
8926
8927         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8928         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8929          set - this bit used to not be set...).
8930         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8931           bad code in PIC Port
8932         * src/regression/and2.c added to test bug 609268
8933         * src/regression/Makefile added and2.c to regression test
8934
8935
8936 2003-04-08    <johan AT CP255758-A>
8937
8938         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8939         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8940         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8941
8942 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
8943
8944         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8945         fix bug #487815
8946         * support/cpp2/Makefile.in: fix bug #487815
8947         * configure: rebuilt from configure.in
8948         * Makefile.common.in: docdir changed, new path suffixes
8949         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8950         * sdcc_vc_in.h: reflect changes from sdccconf.h
8951         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8952         * src/SDCCutil.h: remove BINDIR hack
8953         * doc/sdccman.lyx: update new path hierarchy
8954
8955 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8956
8957         * src/SDCCpeeph.c: added okToRemoveSLOC test
8958
8959 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8960
8961         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8962
8963 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8964
8965         * src/SDCCpeeph.c: added labelIsReturnOnly test
8966         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8967
8968 2003-04-05    <johan AT balder>
8969
8970         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8971         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8972         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8973         * src/SDCCast.c: fixed a warning
8974         * src/SDCCast.h: fixed a warning
8975         * src/SDCCicode.c (operandFromAst): fixed a warning
8976
8977 2003-04-04    <johan AT balder>
8978
8979         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8980         * src/SDCCast.c (decorateType): fixed bug #715076
8981         * src/SDCC.y: fixed bug #702907
8982
8983 2003-04-03    <johan AT balder>
8984
8985         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8986         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8987         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8988         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8989         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8990
8991 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
8992
8993         * _decdptr.c: fix return values
8994         * _gptrget.c: fix return values
8995         * _gptrgetc.c: fix return values
8996         * _gptrput.c: fix return values
8997         * _mulint.c: fix return values
8998         * as/z80/Makefile: fix 'make -j' problem
8999
9000 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9001
9002         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9003         * configure.in: big cleanup, updated to autoconf 2.5x
9004         * configure: rebuilt from configure.in
9005         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9006         * sdcc_vc_in.h: reflect changes from sdccconf.h
9007         * doc/Makefile: fixed a flaw in "make install"
9008
9009 2003-04-02    <johan AT balder>
9010
9011         * src/ds390/gen.c (genCmp): no comments
9012         * src/mcs51/gen.c (genCmp): no comments
9013         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9014         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9015
9016 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9017
9018         * support/regression/generate-cases.py: place generated file in given sub directory
9019         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9020         * support/regression/Makefile: improvements for 'make -j';
9021         side effect: it's simpler and faster now
9022
9023 2003-03-31  Borut Razem <borut.razem AT siol.net>
9024
9025         * src/z80/main.c: link-{port} and as-{port} defined without path
9026         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9027
9028 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9029
9030         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9031
9032 2003-03-30  Borut Razem <borut.razem AT siol.net>
9033
9034         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9035           changed type of list parameter to set
9036         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9037         * src/port.h: changed type of do_assemble() parameter to set
9038         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9039           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9040           definition of "cppoutfilename" macro with NULL value in preProcess()
9041         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9042         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9043         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9044           replaced with set *binPathSet
9045         * shash_add() deallocates the item, if allready exsists, before adding the new one
9046         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9047
9048 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9049
9050         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9051           a nested for loop bug in the PIC port
9052         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9053           for loops
9054
9055 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9056
9057         * support/Util/dbuf.h: remove C++ stuff to make it portable
9058
9059 2003-03-28  Borut Razem <borut.razem AT siol.net>
9060
9061         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9062           literal strings in stringLiteral()
9063         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9064         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9065           to the project
9066
9067 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9068
9069         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9070
9071 2003-03-26    <johan AT balder>
9072
9073         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9074         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9075         * src/SDCCast.c (decorateType): fixed " -v < 3"
9076
9077 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9078
9079         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9080         Added Lenny Story's debug infrastructure changes:
9081         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9082         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9083         * src/cdbFile.c: added
9084         * src/SDCCdebug.c: added
9085         * src/SDCCdebug.h: added
9086         * src/SDCCast.c (createFunction)
9087         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9088         * src/SDCCmain.c (parseCmdLine, main)
9089         * src/SDCCmem.c (redoStackOffsets)
9090         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9091         * src/SDCCsymt.h
9092         * src/common.h
9093         * src/avr/gen.c (genAVRCode)
9094         * src/ds390/gen.c (gen390Code)
9095         * src/mcs51/gen.c (gen51Code)
9096         * src/pic/gen.c (genpic14Code)
9097         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9098         * src/xa51/gen.c (genXA51Code)
9099         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9100
9101 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9102
9103         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9104         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9105
9106 2003-03-22    <johan AT balder>
9107
9108         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9109
9110 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9111
9112         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9113         * doc/cdbfileformat.lyx: added, written by Lenny Story
9114         * doc/Makefile: added cdbfileformat.lyx
9115         * doc/clean.mk: added cdbfileformat.lyx
9116
9117 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9118
9119         * src/mcs51/peeph.def: fix bug #705773
9120
9121 2003-03-20    <johan AT balder>
9122
9123         An sfr/sbit can have an "at #" AND an initializer
9124         * src/SDCCsymt.c (checkSClass):
9125         * src/SDCCmem.c (allocGlobal):
9126         * src/SDCCmem.c (allocLocal):
9127         * src/SDCCast.c (createBlock):
9128
9129 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9130
9131         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9132
9133 2003-03-16    <johan AT balder>
9134
9135         Undid the hackup of const and volatile, the problem is much bigger
9136         * src/SDCC.y:1.65
9137         * src/SDCCast.c:1.171
9138         * src/SDCCglue.c:1.138
9139         * src/SDCCicode.c:1.146
9140         * src/SDCCsymt.c:1.150
9141         * src/SDCCval.c:1.65
9142
9143 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9144
9145         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9146         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9147
9148 2003-03-13    <johan AT balder>
9149
9150         Hackup const and volatile modifiers in type chains a bit:
9151         * src/SDCC.y:1.63
9152         * src/SDCCast.c:1.169
9153         * src/SDCCglue.c:1.136
9154         * src/SDCCicode.c:1.143
9155         * src/SDCCsymt.c1.146
9156         * src/SDCCsymt.h1.59
9157         * src/SDCCval.c:1.63
9158
9159 2003-03-12    <johan AT balder>
9160
9161         * src/SDCCBBlock.h: more LRH debugging junk
9162         * src/SDCCcflow.h: more LRH debugging junk
9163         * src/SDCCloop.c: more LRH debugging junk
9164         * src/SDCC.y (struct_declaration): fixed bug #697590
9165         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9166         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9167         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9168
9169 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9170         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9171         test function names must now match exactly).
9172         * src/SDCCcse.c: added special case in findCheaperOp to allow
9173         extending a short integer. Makes less awful code for bug 700121 test case.
9174
9175 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9176
9177         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9178         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9179
9180 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9181
9182         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9183         actually called (operandsNotEqual() was called for all
9184         operandsNotEqualX tests).
9185
9186 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9187
9188         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9189         with shorter literals. Fixes bug 700121.
9190
9191 2003-03-11    <johan AT balder>
9192
9193         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9194
9195 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9196
9197         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9198         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9199
9200 2003-03-10  Borut Razem <borut.razem AT siol.net>
9201
9202         * src/SDCCmain.c: pipe preprocessor's output
9203         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9204         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9205         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9206         which closes all pipes in pipeSet set
9207         * src/SDCCset.c: free deleted item in function deleteSetItem()
9208         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9209         moved from z80 to src subproject
9210         * .version: increased version number to 2.3.4
9211
9212 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9213
9214         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9215         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9216         * support/regression/ports/xa51/spec.mk: fix typo
9217
9218 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9219
9220         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9221
9222 2003-03-09  Borut Razem <borut.razem AT siol.net>
9223
9224         * src/SDCCmain.c: pipe preprocessor's output
9225         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9226         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9227         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9228         which closes all pipes in pipeSet set
9229         * src/SDCCset.c: free deleted item in function deleteSetItem()
9230         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9231         moved from z80 to src subproject
9232
9233 2003-03-09  Borut Razem <borut.razem AT siol.net>
9234
9235         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9236         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9237         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9238         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9239         * src/SDCCglobl.h: unification of WIN32 native definitions
9240
9241 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9242
9243         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9244
9245 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9246
9247         * src/configure.in:   check for endianess (even while cross-compiling)
9248         * src/configure:      check for endianess (even while cross-compiling)
9249         * src/configure_in.h: check for endianess (even while cross-compiling)
9250         * src/avr/gen.c:        remove old endianess stuff
9251         * src/mcs51/gen.c:      remove old endianess stuff
9252         * src/ds390/gen.c:      remove old endianess stuff
9253         * src/pic/gen.c:        remove old endianess stuff
9254         * src/pic/genarith.c:   remove old endianess stuff
9255         * src/pic/glue.c:       fix endianess check
9256         * src/pic16/gen.c:      remove old endianess stuff
9257         * src/pic16/genarith.c: remove old endianess stuff
9258         * src/pic16/glue.c:     fix endianess check
9259         * src/xa51/gen.c:       remove old endianess stuff
9260         * src/z80/gen.c:        fix endianess check
9261         * src/SDCCglue.c:       fix endianess check
9262         * src/ds390/peeph.def: fix bug 700036
9263
9264 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9265
9266         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9267         * src/configure: find appropriate data-types on host for SDCC's int and long
9268         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9269         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9270         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9271
9272 2003-03-07    <johan AT balder>
9273
9274         Just a big NOOP:
9275                 some minor cleanups before the big shot
9276                 OP_DEFS and OP_USES now use Kevin's protection
9277                 new option --nolabelopt
9278
9279         * src/SDCCBBlock.c:
9280         * src/SDCCast.c,:
9281         * src/SDCCcflow.c:
9282         * src/SDCCcse.c:
9283         * src/SDCCicode.c:
9284         * src/SDCCicode.h:
9285         * src/SDCClabel.c:
9286         * src/SDCCloop.c:
9287         * src/SDCCmain.c:
9288         * src/ds390/ralloc.c:
9289         * src/mcs51/ralloc.c:
9290         * src/pic/ralloc.c:
9291         * src/xa51/ralloc.c:
9292         * src/z80/ralloc.c:
9293
9294 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9295
9296         * src/pic/pcode.c (get_op): fix 64 bit warnings
9297         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9298         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9299         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9300         * support/regression/tests/malloc.c: fix 64 bit warnings
9301
9302 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9303
9304         * src/mcs51/gen.c (genMinus): fixed bug 696436
9305
9306 2003-03-02  Borut Razem <borut.razem AT siol.net>
9307
9308         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9309
9310 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9311
9312         * configure.in: test for mkstemp
9313         * sdccconf_in.h: add HAVE_MKSTEMP
9314
9315 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9316
9317         * device/include/ctype.h: removed warning while using --stack-auto
9318         * device/include/malloc.h: removed warning while using --stack-auto
9319         * device/include/string.h: removed warning while using --stack-auto
9320
9321 2003-02-23  Borut Razem <borut.razem AT siol.net>
9322
9323         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9324         because NDEBUG is defined (see man assert)
9325         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9326
9327 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9328
9329         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9330         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9331
9332 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9333
9334         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9335         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9336
9337 2003-02-18    <johan AT balder>
9338
9339         * as/mcs51/asmain.c (asmbl): module can start with a digit
9340         * as/z80/asmain.c (asmbl): module can start with a digit
9341
9342 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9343
9344         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9345         * src/asm.c: fix pipe() for Mingw32
9346
9347 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9348
9349         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9350         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9351         make -V work again; --c1mode reads now from stdin
9352         * doc/sdccman.lyx: added --c1mode
9353         * support/Util/SDCCerr.c: new messages for c1 mode
9354         * support/Util/SDCCerr.h: new messages for c1 mode
9355         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9356
9357 2003-02-15    <johan AT balder>
9358
9359         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9360
9361 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9362
9363         * doc/sdccman.lyx: Environment variables, -o and other minor things
9364
9365 2003-02-14    <johan AT balder>
9366
9367         * src/xa51/main.c: before anyone really tries to use it :)
9368
9369         * Install doc's in share/sdcc/doc
9370         * removed some obsolete files
9371         * Do a proper make distclean and uninstall
9372         M Makefile.common.in
9373         R sdccbuild.sh
9374         M as/Makefile
9375         M device/include/Makefile.in
9376         M device/lib/Makefile.in
9377         M doc/sdccman.lyx
9378         M link/Makefile
9379         M sim/ucsim/doc/Makefile.in
9380         M src/clean.mk
9381         R src/avr/peeph.rul
9382         R src/xa51/peeph.rul
9383         M support/cpp2/Makefile.in
9384         M support/makebin/Makefile
9385
9386
9387 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9388
9389         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9390
9391 2003-02-10  Borut Razem <borut.razem AT siol.net>
9392
9393         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9394         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9395         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9396         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9397         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9398         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9399         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9400         src/z80/Makefile.bcc: Borland Makefile cleanup
9401         * as/z80/Makefile.bcc: Added Borland Makefile
9402         * support/cpp2/borland.h: Removed
9403
9404 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9405
9406         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9407         * src/SDCC.lex: new pragma NOIV
9408         * src/SDCCglobl.h: new pragma NOIV
9409         * src/SDCCmem.c: new pragma NOIV
9410
9411 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9412
9413         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9414
9415 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9416
9417         * src/SDCCmain.c: signal handling is switched off by --debug
9418         * doc/Makefile: small fix for install; use clean.mk again
9419         * doc/clean.mk: clean *.pdf and *.html too
9420
9421 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9422
9423         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9424         * device/lib/printfl.c: fix a ds390 bug by making it portable
9425         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9426         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9427         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9428         * debugger/mcs51/cmd.c: converted multi-line string literals
9429         * sim/ucsim/globals.cc: converted multi-line string literals
9430         * src/SDCCmain.c: introduced signal handler to remove temp files
9431         * doc/Makefile: small tweaks, implement clean
9432         * doc: removed generated files
9433
9434 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9435
9436         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9437         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9438         Address Record is not correctly generated for DS390."
9439
9440 2003-02-02  Borut Razem <borut.razem AT siol.net>
9441
9442         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9443         * as/mcs51/asm.h: fixed compilation with Borland C
9444         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9445         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9446         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9447         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9448         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9449         src/z80/Makefile.bcc: delete $(LIB) only if exist
9450         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9451
9452 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9453
9454         * device/include/malloc.h: introduced NULL
9455         * device/include/string.h: introduced NULL
9456         * device/include/stdlib.h: introduced NULL
9457         * device/lib/_memcpy.c: removed NULL
9458         * device/lib/_strcat.c: removed NULL
9459         * device/lib/_strchr.c: removed NULL
9460         * device/lib/_strcmp.c: removed NULL
9461         * device/lib/_strcpy.c: removed NULL
9462         * device/lib/_strcspn.c: removed NULL
9463         * device/lib/_strlen.c: removed NULL
9464         * device/lib/_strncat.c: removed NULL
9465         * device/lib/_strncmp.c: removed NULL
9466         * device/lib/_strncpy.c: removed NULL
9467         * device/lib/_strpbrk.c: removed NULL
9468         * device/lib/_strrchr.c: removed NULL
9469         * device/lib/_strspn.c: removed NULL
9470         * device/lib/_strstr.c: removed NULL
9471         * device/lib/_strtok.c: removed NULL
9472         * device/lib/malloc.c: removed NULL, include own header
9473
9474 2003-02-02    <johan AT balder>
9475
9476         * 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
9477         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9478         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9479         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9480         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9481         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9482
9483 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9484
9485         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9486         area 'DATA'"
9487
9488 2003-02-01    <johan AT balder>
9489
9490         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9491
9492 2003-01-31    <johan AT CP255758-A>
9493
9494         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9495
9496 2003-01-30    <johan AT balder>
9497
9498         * src/SDCCBBlock.c: automatic bug detection
9499         * src/SDCCicode.c: automatic bug detection
9500
9501 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9502
9503         * src/SDCCglobl.h:   now --xram-size 0 works
9504         * src/SDCCmain.c:    now --xram-size 0 works
9505
9506 2003-01-29    <johan AT balder>
9507
9508         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9509
9510 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9511
9512         * as/mcs51/aslink.h: Added options --xram-size and --code-size
9513         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9514         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9515         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
9516         * src/SDCCglobl.h:   Added options --xram-size and --code-size
9517         * src/SDCCmain.c:    Added options --xram-size and --code-size
9518
9519 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
9520
9521         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9522         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9523
9524 2003-01-27    <johan AT balder>
9525
9526         * src/SDCC.y: fixed bug #613764
9527
9528 2003-01-26    <johan AT balder>
9529
9530         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
9531         * src/SDCCsymt.h: fixed bug #673374
9532         * src/SDCCglue.c: fixed bug #661910
9533         * src/SDCCast.c: fixed bug #458099 and 673374
9534
9535 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
9536
9537         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9538         * as/mcs51/strcmpi.h: added
9539         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9540         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9541         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9542         * as/mcs51/assym.c: strcmpi -> as_strcmpi
9543         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9544         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9545         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9546         * as/mcs51/Makefile.aslink: new module strcmpi
9547         * as/mcs51/Makefile.asx8051: new module strcmpi
9548         * as/mcs51/Makefil.bcc: new module strcmpi
9549         * as/mcs51/Makefile.in: new module strcmpi
9550         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9551
9552 2003-01-26    <johan AT balder>
9553
9554         * src/SDCCglue.c: reverted back to 1.124
9555         * src/SDCCast.c: reverted back to 1.156
9556         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9557
9558 2003-01-25    <johan AT balder>
9559
9560         * src/SDCCglue.c: A better fix for bug #661910
9561         * src/SDCCast.c: A better fix for bug #661910
9562         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9563
9564 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9565
9566         * src/Makefile.in: remove spawn.o
9567         * src/SDCCmain.c: remove spawn.h
9568         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9569         * src/spawn.c: removed
9570         * src/spawn.h: removed
9571         * support/regression/ports/ds390/spec.mk: link with -r
9572
9573 2003-01-24    <johan AT CP255758-A>
9574
9575         * src/ds390/gen.c (aopOp): fixed bug #667458
9576         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9577         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9578         (createIvalCharPtr): an ival doesn't always have a storage class anymore
9579
9580 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9581
9582         * src/mcs51/peeph.def: better assembler identation by Frieder
9583         * src/mcs51/gen.c: better assembler identation by Frieder
9584
9585 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
9586
9587         * as/z80/string.h: removed for gcc 3.2
9588         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9589         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9590
9591 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9592
9593         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9594         * src/SDCCpeeph.c (replaceRule): fix bug #663503
9595         * support/regression/Makefile: separate temp files for ports
9596         * support/regression/generate-cases.py: separate temp files for ports
9597         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9598         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9599
9600 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9601
9602         * moved tinitalk to device/examples/ds390
9603
9604 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
9605
9606         * as/mcs51/lkmem.c: rflag is for DS390
9607         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9608         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9609                          (linkEdit): move mem- and map-files the same way as ihx-files
9610         * src/z80/main.c (_setDefaultOptions): removed --generic
9611         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9612         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9613         * src/pic/glue.c (picglue): --c1mode works again
9614         * src/pic16/glue.c (pic16glue): --c1mode works again
9615         * src/asm.c (printCLine): fix #660034
9616
9617 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
9618
9619         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9620         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9621         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9622         * as/mcs51/lkmem (summary): better fix for sp problem
9623         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9624         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9625         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9626                                               remove --stack-after-data
9627
9628 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
9629
9630         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9631         * src/SDCCutil.c (join): ugly bug: missing '\0'
9632         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9633
9634 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9635
9636         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9637         * src/port.h: typo
9638         * src/pic/main.c (_asmCmd): gpasm supports -o
9639         * src/z80/main.c: more general macros
9640         * device/lib/Makefile.in: remove intermediate files
9641
9642 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9643
9644         * .version: Bumped version number to 2.3.3
9645         * src/SDCCBBlock.c: new option -o
9646         * src/SDCCglobl.h: new option -o
9647         * src/SDCCglue.c: new option -o
9648         * src/SDCCmain.c: new option -o
9649         * src/asm.c: new option -o
9650         * src/ds390/main.c: new option -o
9651         * src/pic/glue.c: new option -o
9652         * src/pic/pcode.c: new option -o
9653         * src/pic/ralloc.c: new option -o
9654         * src/pic16/glue.c: new option -o
9655         * src/pic16/pcode.c: new option -o
9656         * src/pic16/ralloc.c: new option -o
9657         * src/z80/main.c: new option -o
9658         * device/lib/Makefile.in: use -o
9659         * support/regression/ports/ds390/spec.mk: use -o
9660         * support/regression/ports/gbz80/spec.mk: use -o
9661         * support/regression/ports/mcs51/spec.mk: use -o
9662         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9663         * support/regression/ports/z80/spec.mk: use -o
9664         * support/regression/ports/ucz80/spec.mk: use -o
9665         * support/regression/ports/xa51/spec.mk: use -o
9666         * support/regression/fwk/lib/timeout.c: fix usage string
9667
9668 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
9669         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9670
9671 2003-01-07    <johan AT balder>
9672
9673         * src/SDCCast.c (decorateType): fixed bug #600035
9674
9675 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
9676         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9677         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9678         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9679         * src/pic/pcode.c: outcommented unused variable to remove warnings
9680         * src/pic/ralloc.c: outcommented unused variable to remove warnings
9681
9682 2003-01-06    <karl AT turbobit.com>
9683         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9684    regression tests.
9685
9686 2003-01-06    <johan AT balder>
9687
9688         * src/SDCCicode.c: fixed array add
9689
9690 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
9691         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9692         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9693
9694 2003-01-04    <johan AT balder>
9695
9696         * src/SDCCval.c (getNelements): fixed the initialized array of structures
9697
9698 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9699         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9700
9701 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9702         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9703         * support/regression/tests/bug-524697.c: fit mem usage into 8032
9704
9705 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9706         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9707
9708 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
9709         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9710
9711 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
9712         * src/mcs51/main.c: removed {bindir}{sep} from aslink
9713
9714 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9715
9716     * in \sdcc\as\mcs51\ changed these files in order to create an
9717     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9718     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
9719     following files to include the previous two files: aslink.dsp,
9720     Makefile.aslink, Makefile.bcc, and Makefile.in.
9721
9722     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9723     .adb instead of .cdb
9724
9725 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9726
9727         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9728         value from option --iram-size.
9729
9730 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9731
9732         * \sdcc\as\mcs51\lklist.c: added boundary check before using
9733         dram[] array.
9734
9735 2002-09-18    <wiml AT hhhh.org>
9736
9737         * SDCClrange.h: exposed setFromRange() and setToRange()
9738         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9739           packRegsForAccUse() (bug 542397)
9740         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9741           multiple times and emitting the fetch operations more than once
9742           added aopGetUsesAcc() function to allow binary operators to
9743           fetch their operands in the correct order; made genMinus() emit
9744           compact code for X = LITERAL - Y
9745
9746 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9747         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9748         sprintf() in line 1267.
9749
9750 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9751         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9752         like ports.
9753
9754 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9755         Changes to aslink (All the changes are marked with 'JCF'):
9756
9757         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9758         summary().
9759
9760         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9761         area BSEG.  Also moves, if possible, the DATA area down into the internal
9762         ram so more space is available.
9763
9764         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9765         sflag.
9766
9767         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9768         not bytes.  Function summary() which creates a memory usage summary
9769         file with extension .mem.  Reports of overlaping stack and small stack
9770         size.  If the space for the stack is less than 16 bytes aslink trows a
9771         warning.
9772
9773         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9774         the 8051.  Option 'y' for memory summary output file.
9775
9776         Changes to sdcc (All the changes are marked with 'JCF'):
9777
9778         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9779
9780         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
9781         overlaying area for it (uses RegBankUsed[4]).
9782
9783         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9784         bank zero as used by default.  By default aslink locates the stack
9785         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
9786         the creation of the .mem file.  Delegates the allocation of data area
9787         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
9788         the begining of the stack area to aslink.
9789
9790         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
9791         glue() in SDCCglue.c creates an area for it.
9792
9793 2002-09-03  Borut Razem <borut.razem AT siol.net>
9794         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9795         sdcc/src/pic/glue.c:
9796         introduced atexit() handler for teporay files removal in case of
9797         errors, assertions, ...
9798
9799 2002-08-29  Borut Razem <borut.razem AT siol.net>
9800         * sdcc/support/cpp2/auto-host_vc_in.h:
9801         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9802         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9803         Maybe there is a similar problem with BORLANDC? It should be checked!
9804
9805         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9806         corrected improper use of assert: the assignment to clr variable was done inside the assert.
9807         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9808         was not executed, and the compiler (cl) launched a warning:
9809         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9810
9811 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9812         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9813
9814 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9815         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9816
9817         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9818           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9819           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9820           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9821           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9822           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9823           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9824         - added Release configuration in VS projects
9825         - review of compiler an linker options
9826         - VC .exe files are generated in bin_vc directory, not to interfere
9827           with binaries generated from other projects (cygwin, mingw, bcc ...)
9828
9829         * sdcc/src/yacc.dsp: added
9830
9831         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9832         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9833         and insert the version number definitions from .version
9834
9835         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9836
9837         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9838         added - genarate auto-host.h using auto-host_vc_in.h as template
9839
9840         * sdcc/sdcc_vc.h,
9841         removed from CVS, generated automatically
9842
9843 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
9844         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9845
9846 2002-08-11  Borut Razem <borut.razem AT siol.net>
9847         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9848
9849 2002-08-10  Borut Razem <borut.razem AT siol.net>
9850         * src/SDCCmain.c (main):
9851         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9852         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9853         The consequence was that some temporary files were not removed.
9854
9855         * src/SDCCglue.c:
9856         unification of code in functions tempfilename() and tempfile():
9857         function tempnam() is defined in Visual Studio 6.0 and .NET
9858
9859         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9860
9861         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9862           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9863         - removed compiler command line option /WX: Treats all warnings as errors
9864         - update a list of source files, included into the project
9865
9866         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9867           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9868         changed project type to Generic Project so that can be correcly converted to VS.NET project
9869
9870         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9871
9872         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
9873
9874         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
9875
9876         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
9877         added return 0 statements after assert() to make compiler happy
9878
9879         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
9880         added newline in the def file to keep MSC compiler satisfied
9881
9882         * sdcc/src/z80/gen.c:
9883         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
9884           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
9885         - solved MSC error in function aopDump()
9886
9887         * sdcc_vc.h: define PREFIX as "\\sdcc"
9888
9889 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
9890         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9891
9892 2002-06-22  Scott Dattalo <scott AT dattalo.com>
9893         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9894         - Rewrote the register banking algorithm.
9895         - Added pCode live-range analysis to registers (for now, only non-used and
9896         singly-used registers optimized away)
9897
9898         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9899
9900         * 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.
9901
9902 2002-05-10  Scott Dattalo <scott AT dattalo.com>
9903         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9904
9905 2002-04-22  Michael Hope  <michaelh AT vroom>
9906
9907         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9908
9909         * configure.in (DD_COPT): Added include support required for gbdk.
9910
9911         * .version: Bumped version number just to increase it.
9912
9913         * src/SDCCmain.c: Added -nostdinc to the default options.
9914
9915 2002-04-15  Michael Hope  <michaelh AT vroom>
9916
9917         * device/lib/z80/printf.c (sprintf): Added.
9918
9919         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9920
9921         * src/z80/peeph.def: Added transpose redundent load rule.
9922
9923         * src/z80/main.c: Added force callee saves for jaune.
9924
9925         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9926
9927         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9928
9929 2002-03-28  Johan Knol  <johan AT balder>
9930
9931         * src/SDCCval.c: fixed bug #532436
9932
9933 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9934         * /src/port.h:
9935         Added "char *Processor" field to the port structure.
9936
9937         * /src/SDCCmain.c:
9938         Added -p option. Allows port dependent processor to be specified.
9939
9940         * all ports:
9941         Initialized the new field char *Processor field to NULL in all ports
9942
9943         * /src/pic/*:
9944         Compiler generated registers for interrupt context saving
9945         were not getting allocated.
9946
9947 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
9948
9949         * /src/SDCCast.c:
9950         Fixed left shift. Will promote the left side of a left shift
9951         if a) left shifting more than size of operand or b) when assigned
9952         to something size > size of left side
9953
9954 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9955         * src/pic/*
9956         tons of changes. Register allocation has been
9957         rewritten. Added customization for the various PICs. Flow
9958         analysis is restructured. ...
9959
9960         * src/pic/device.h:
9961         Added
9962
9963         * src/pic/device.c:
9964         Added. device.c is a PIC port hack to accomodate variations
9965         in PIC devices.
9966
9967 2002-03-13  Michael Hope  <michaelh AT vroom>
9968
9969         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
9970
9971 2002-03-04  johanknol  <johanknol AT manik>
9972
9973         * /src/SDCCval.c: fixed
9974
9975         const unsigned char arr[][2] = { { 0, 1 } };
9976         t18.c:1: error: Initializer element is not constant
9977
9978 2002-03-04  bela  <bela AT manik>
9979
9980         * /device/include/mcs51reg.h:
9981         ds89c420 register definition update
9982
9983 2002-03-03    <johan AT FRIJA>
9984
9985         * support/Util/SDCCerr.c: did something, but don't no why anymore
9986
9987         * support/regression/tests/bug-524691.c: made it a little less shy
9988
9989         * src/SDCCast.c (decorateType): fixed bug #524697
9990
9991         * src/SDCCast.c: made some lineno improvements
9992
9993         * src/SDCCval.c (getNelements): changed warning to error
9994
9995         * src/SDCCglue.c (printIvalArray): changed warning to error
9996
9997         * src/SDCCicode.c: fixed a warning for mingw
9998
9999         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10000
10001         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10002
10003 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10004
10005         * src/ds390/peeph.def:
10006         Added some more peephole rules
10007
10008         * src/ds390/gen.c: Various fixes & enhancements
10009
10010         * src/SDCClrange.c, src/SDCClrange.h:
10011         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10012
10013         * src/ds390/ralloc.c:
10014         various fixes & enhancements (ds390) specific
10015
10016         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10017         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10018         from rallocs.
10019
10020         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10021
10022 2002-03-02    <johan AT FRIJA>
10023
10024         * src/SDCCast.c (decorateType): fixed bug #524708
10025
10026         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10027
10028         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10029
10030 2002-03-01  Michael Hope  <michaelh AT vroom>
10031
10032         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10033
10034         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10035
10036 2002-03-01    <johan AT FRIJA>
10037
10038         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10039
10040         * src/SDCCast.c (decorateType): fixed bug #524209
10041
10042         * src/SDCCval.c (valNot): fixed bug #524195
10043
10044 2002-02-26    <johan AT balder>
10045
10046         * src/xa51/gen.c: fixed a warning
10047
10048         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10049
10050         * src/SDCCast.c (decorateType): fixed bug #522534
10051
10052 2002-02-23    <johan AT balder>
10053
10054         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10055
10056 2002-02-22    <johan AT balder>
10057
10058         * src/SDCCast.c: fixed bug #514865
10059
10060         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10061
10062 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10063
10064         * sdcc/src/SDCCloop.c:
10065         Previous fix was not good. basic blocks that have "break" or "return" are
10066         not really partof a loop , but live ranges used in these blocks should
10067         be live thru the entire loop, so set partOfLoop but don't add them to
10068         loop region
10069
10070 2002-02-21    <johan AT FRIJA>
10071
10072         * src/SDCCcse.c: fixed bug #514308
10073
10074 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10075
10076         * src/SDCCloop.c:
10077         Fixed BUG #519583. If a conditional block ended in a return/break
10078         statement inside a loop, it was not being considered part of the loop.
10079
10080         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10081
10082 2002-02-10  Karl Bongers <karl AT turbobit.com>
10083
10084         * debugger/*:
10085         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10086         with lots of comments and notes.
10087
10088         * device/examples/test2.c:
10089         Fix bug, "red" variable not being initialized(compiler complained).
10090
10091         * device/examples/Makefile, examples/test3.c:
10092         Add Makefile in device/examples folder, compiles test3.c
10093         for use as a multiple module SDCDB test case.
10094
10095         * sim/ucsim/cmd.src/cmdset.cc:
10096         Took out debug printfs in ucsim "next" command.
10097
10098         * sim/ucsim/xa.src:
10099         Karl and Johan start ucsim XA support.  Most dissassembly working,
10100         about 75% emulation done(plenty of work remaining).
10101
10102         * sim/ucsim/z80.src:
10103         Add Z80 support to ucsim, add test-ucz80 regression test,
10104         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10105         Notice z80 compiler fails on examples/test3.c/crc code.
10106
10107 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10108
10109         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10110         Added support for --parms-in-bank1
10111
10112         * src/ds390/peeph.def:
10113         added a few more peephole optimzations
10114
10115         * src/ds390/main.c:
10116         1) added __builtin_inp & __builtin_outp used to read in data of given length
10117            from a memory mapped port
10118         2) added __builtin_memcmp
10119         3) added __builtin_swapw swap bytes of a short
10120
10121         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10122         1) handle multiple send & receives from register bank1
10123         2) ralloc can now allocate DPTR1 to some liveRanges
10124
10125         * src/SDCCsymt.c, src/SDCCsymt.h:
10126         changes to handle multiple sends & receives
10127
10128         * src/SDCCptropt.h:
10129         added some pointer arithmetic optimization
10130
10131         * src/SDCCptropt.c:
10132         added some pointer arithmetic optimizations but not stable yet so not
10133         called from anywhere (will get this working shortly)
10134
10135         * src/SDCCopt.c: fixed for multiple sends & receives
10136
10137         * src/SDCCmain.c:
10138         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10139         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10140            set preprocessor defines (depending on options)
10141
10142         * src/SDCCicode.c, src/SDCCicode.h:
10143         changes made to handle multiple sends & receives
10144
10145         * src/SDCCglobl.h:
10146         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10147
10148         * src/SDCCcse.c, src/SDCCcse.h:
10149         added function findbackward def (to be used in upcoming optimization)
10150
10151         * src/SDCCcflow.c, src/SDCCcflow.h:
10152         added function returnAtEnd - to determine if a basic block terminates with
10153         a RETURN iCode
10154
10155         * src/SDCCast.c, src/SDCCast.h:
10156         added option parms-in-bank1
10157
10158         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10159         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10160         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10161         adjusted for --parms-in-bank1 option
10162
10163         * device/include/string.h:
10164         donot redefine "reentrant" keyword
10165
10166         * device/include/ds80c390.h: Added some more SFRs
10167
10168 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10169
10170         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10171
10172 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10173
10174         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10175
10176 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10177
10178         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10179
10180 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10181
10182         * Added --xram-movc option
10183
10184 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10185
10186         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10187
10188 2002-01-11  Johan Knol
10189
10190         * Added math lib of Jesus Calvino-Fraga
10191
10192 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10193
10194         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10195         * support/regression/Makefile: new target test-mcs51-stack-auto
10196         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10197
10198 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10199
10200         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10201
10202 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10203
10204         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10205
10206 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10207
10208         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10209
10210         * src/SDCCglue.h: add definition for printIvalChar()
10211
10212 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10213
10214         * src/SDCCast.c: fix #498138 by Johan
10215
10216         * src/SDCCglue.c: fix #498138 by Johan
10217
10218 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10219
10220         * support/regression/Makefile: fix clean
10221
10222         * support/regression/ports/ds390/support.c: fix transmission of last character
10223
10224 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10225
10226         * /sdcc/src/ds390/gen.c:
10227         a) improved computing address of stack variable
10228         b) took out some #if 0 code
10229         c) improved parmBytes adjustment
10230         d) improved genPlusIncr & genMinusIncr
10231         e) genCmp could generate bad code (when left assigned to DPTR)
10232         f) Fixed bug in hasInc
10233
10234         * /sdcc/src/ds390/ralloc.c:
10235         a) packRegsForSupport could mess up live information (Fixed)
10236         b) packRegsDPTRuse could be incorrect for left & right shift
10237
10238         * /sdcc/src/mcs51/ralloc.c:
10239         packRegsForSupport could mess up the live information (Fixed)
10240
10241         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10242
10243         * /sdcc/src/SDCCast.c:
10244         can reverse a loop even if function call is present as long
10245         as the loop control variable is local & is not passed as parameter
10246
10247 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10248
10249         * /sdcc/ChangeLog: *** empty log message ***
10250
10251         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10252         More builtin function additions for TININative
10253
10254         * /sdcc/src/ds390/ralloc.c:
10255         Had broken the regression testsuite
10256
10257         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10258
10259         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10260         Added funcattr hasStackParms will be set for reentrant functions when there
10261         are paramteres on the stack, this helps in minimizing frame pointer generation
10262         typeFromStr can handle function pointers now
10263
10264         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10265         *** empty log message ***
10266
10267 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10268
10269         * /src/ds390/gen.c, /src/ds390/main.c:
10270         More builtin function additions for TININative
10271
10272         * /src/ds390/ralloc.c:
10273         Had broken the regression testsuite
10274
10275         * /src/SDCCast.c: Fixed a bug in dumptree
10276
10277         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10278         Added funcattr hasStackParms will be set for reentrant functions when there
10279         are paramteres on the stack, this helps in minimizing frame pointer generation
10280         typeFromStr can handle function pointers now
10281
10282         * /doc/builtins.txt, /doc/TININative.txt:
10283         *** empty log message ***
10284
10285
10286 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10287
10288         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10289         ALPHA version for -mTININative
10290
10291         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10292         updated to reflect changes in the port structure
10293
10294         * /src/port.h:
10295         added function do_assemble (similar to do_link) if non-null this function
10296         will be called to do assembly (-mTININative) requires a multi command
10297         assembly
10298         added function genAssemblerEnd will be called to generate assembler Epilogue
10299
10300         * /src/SDCCsymt.c:
10301         added _JavaNative to debug info printing
10302
10303         * /src/SDCCmain.c: added option --tini-libid
10304         added port->do_assemble function (-mTININative) has a multi command assemble
10305
10306         * /src/SDCCglue.c: Disabled "constExpr" check
10307         added port->genAssemblerEnd function
10308
10309         * /src/SDCCglobl.h: Added option --tini-libid value
10310
10311         * /src/SDCCast.h:
10312         tookout optimizeCompare from the header (has no external references)
10313
10314         * /src/SDCCast.c: made one more function "static"
10315
10316 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10317
10318         * src/z80/mappings.i: Added z80asm support.
10319
10320         * src/z80/main.c: Added z80asm support on --asm=z80asm
10321
10322         * src/z80/gen.c: Fixed asm portability issues.
10323
10324         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10325
10326         * src/SDCCglue.c (printExterns): Added global/extern split.
10327
10328 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10329
10330         * support/regression/Makefile: added test for mcs51 model large
10331
10332         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10333
10334         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10335
10336 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10337
10338         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10339
10340 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10341
10342         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10343
10344         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10345
10346 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10347
10348         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10349
10350         * support/regression/tests/simplefloat.c: Port to mcs51.
10351
10352 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10353         * support/regression/tests/bug-485362.c: Added.
10354
10355         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10356
10357         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10358
10359         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10360
10361         * src/z80/gen.c (aopDump): Added a dump function.
10362
10363 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10364         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10365
10366         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10367
10368         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10369
10370         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10371
10372         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10373
10374         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10375
10376         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10377
10378         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10379
10380         * support/regression/ports/ds390/support.c: Use tinibios.
10381
10382         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10383
10384 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10385
10386         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10387         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10388
10389         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10390
10391         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10392
10393 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10394
10395         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10396
10397         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10398         (packRegsForIYUse): Created and optimised.
10399
10400 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10401
10402         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10403 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10404
10405         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10406
10407         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10408
10409         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10410
10411 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10412
10413         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10414
10415         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10416
10417 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10418
10419         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10420
10421         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10422
10423         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10424
10425 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10426
10427         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10428         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10429         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10430
10431         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10432
10433         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10434         (genNotFloat): Added.
10435         (genUminusFloat): Added.
10436
10437         * device/lib/z80/Makefile: Added floating pt stubs.
10438
10439         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10440
10441         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10442
10443         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10444
10445 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10446
10447         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10448
10449         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10450
10451         * sdcc/support/regression/Makefile: Add port ds390.
10452
10453         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10454
10455         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10456
10457         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10458
10459         * sdcc/support/regression/ports/ds390/support.c: Added.
10460
10461         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10462
10463         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10464
10465         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10466
10467 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10468
10469         * device/include/malloc.h: Added z80 and gbz80 support.
10470
10471         * device/lib/gbz80/heap.s: Added.
10472
10473         * device/lib/z80/heap.s: Added.
10474
10475         * device/lib/malloc.c: Added z80 and gbz80 support.
10476
10477         * support/regression/tests/malloc.c (testMalloc): Added.
10478
10479         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10480
10481         * support/regression/tests/bug-478094.c: Added.
10482
10483         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10484
10485 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
10486
10487         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10488
10489         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10490
10491         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10492
10493         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10494
10495         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10496
10497 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10498
10499         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10500
10501 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
10502
10503         * support/regression/tests/bug-477927.c: Added.
10504
10505         * src/z80/peeph.def: Added minor rules.
10506
10507         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10508
10509         * src/z80/peeph.def: Added jump optimisation modification.
10510
10511 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
10512
10513         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10514
10515 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
10516
10517         * support/regression/tests/funptrs.c: Added.
10518
10519 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
10520
10521         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10522
10523 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
10524
10525         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10526
10527         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10528
10529         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10530         (movLeft2ResultLong): Created.
10531
10532         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10533         (joinPushes): Added.  Joins two char pushes into a word push.
10534
10535 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
10536
10537         * support/cpp2/Makefile.in (install): Added creation of dest dir.
10538
10539         * support/makebin/Makefile (install): Added creation of dest dir.
10540
10541 2001-10-24 Karl Bongers <karl AT turbobit.com>
10542
10543         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10544
10545 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
10546
10547         * src/z80/ralloc.c: Turned off faulty pack for one use.
10548
10549         * src/z80/peeph-gbz80.def: Removed redundent restart options.
10550
10551         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10552
10553 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
10554
10555         * support/regression/Makefile: Improved clean
10556
10557         * support/regression/ports/gbz80/spec.mk: Added clean
10558
10559         * support/regression/ports/host/spec.mk: Added clean
10560
10561         * support/regression/ports/z80/spec.mk: Added clean
10562
10563         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10564
10565         * support/regression/ports/mcs51/timeout.c: little improvements
10566
10567 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
10568
10569         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10570
10571         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10572
10573         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10574
10575 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
10576
10577         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10578
10579         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10580
10581 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
10582         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10583
10584         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10585
10586         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10587
10588         * src/mcs51/main.c (_linkCmd): Added bin path to command.
10589
10590         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10591
10592         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10593
10594         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10595
10596         * support/regression/tests/longor.c: Added.
10597
10598 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
10599
10600         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10601
10602         * as/mcs51/aslink.h: define PATH_MAX
10603
10604         * as/mcs51/asm.h: define PATH_MAX
10605
10606         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10607
10608         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10609
10610         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10611
10612         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10613
10614         * src/SDCCglobl.h: define PATH_MAX
10615
10616         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10617
10618         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10619
10620 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
10621
10622         * src/z80/gen.c (gencjneshort): Fixed
10623
10624         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10625
10626 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
10627
10628         * support/regression/tests/bug-469671.c: Added.
10629
10630         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10631
10632 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
10633
10634         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10635
10636         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
10637
10638 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
10639
10640         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10641
10642         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
10643
10644         * src/device/lib/_mullong.c : removed hint: nooverlay bug
10645
10646         * src/device/lib/_divuint.c : removed hint: nooverlay bug
10647
10648         * src/device/lib/_divulong.c: removed hint: nooverlay bug
10649
10650         * src/device/lib/_moduint.c : removed hint: nooverlay bug
10651
10652         * src/device/lib/_modulong.c: removed hint: nooverlay bug
10653
10654 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
10655
10656         * 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.
10657
10658         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
10659
10660         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10661
10662 2001-10-07    <johan AT FRIJA>
10663
10664         * device/lib/gets.c (gets): fixed the return value.
10665
10666 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
10667         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10668
10669         * 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.
10670
10671         * 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.
10672
10673         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10674
10675         * src/pic/gen.c: Removed Safe_strdup.
10676
10677         * configure.in: Added option to enable libgc support.
10678
10679         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10680         (bitVectUnion): Optimised.
10681         (bitVectIntersect): Optimised.
10682         (bitVectBitsInCommon): Optimised.
10683         (bitVectCplAnd): Optimised.
10684
10685         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
10686
10687 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10688
10689         * src/SDCCmain.c: distinguish between assembler debug and plain options
10690
10691         * src/avr/main.c:   remove standard assembler options
10692
10693         * src/ds390/main.c: remove standard assembler options
10694
10695         * src/mcs51/main.c: remove standard assembler options
10696
10697         * src/port.h: removed "PENDING" comment
10698
10699 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10700
10701         * src/device/lib/_mulint.c  : new, with assember functions
10702
10703         * src/device/lib/_mullong.c : new, with assember functions
10704
10705         * src/device/lib/_divuint.c : with assember functions
10706
10707         * src/device/lib/_divsint.c : with assember functions
10708
10709         * src/device/lib/_divulong.c: with assember functions
10710
10711         * src/device/lib/_divslong.c: with assember functions
10712
10713         * src/device/lib/_moduint.c : with assember functions
10714
10715         * src/device/lib/_modsint.c : with assember functions
10716
10717         * src/device/lib/_modulong.c: with assember functions
10718
10719         * src/device/lib/_modslong.c: with assember functions
10720
10721         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
10722
10723         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10724
10725         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
10726                                       replaced _mululong.c and _mulslong.c by _mullong.c
10727
10728 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10729
10730         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10731
10732 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10733
10734         * src/SDCCglue.c: test, if win32api is available for MINGW
10735
10736 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10737
10738         * src/SDCCsymt.c: no more _modifier in printTypeChain()
10739         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10740         * support/regression/ports/gbz80/spec.mk: removed GENERIC
10741         * support/regression/ports/host/spec.mk: removed GENERIC
10742         * support/regression/ports/mcs51/spec.mk: removed GENERIC
10743         * support/regression/ports/z80/spec.mk: removed GENERIC
10744
10745 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
10746
10747         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10748
10749         * support/regression/tests/bug-467035.c: Created.
10750
10751 2001-10-01    <johan AT FRIJA>
10752
10753         * src/SDCC.y: fixed bug #466586 part 1
10754
10755 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
10756
10757         * SDCCicode.c: z80 has no generic pointers
10758         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10759
10760 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
10761
10762         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10763
10764 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
10765
10766         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10767
10768         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10769
10770 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
10771
10772         * configure.in: Fixed up so that ucsim is only configured once.
10773
10774         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10775
10776         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10777         (getPathDifference): As above.
10778
10779         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
10780
10781         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10782
10783 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
10784         * .version: Updated to 2.3.1
10785
10786         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10787         Added copyright header.
10788
10789         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10790         (assemble): Added support for macro based assembler commands.
10791         (linkEdit): Added support for macro based linker commands.
10792         (preProcess): Changed the pre-processor to use macros.
10793         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10794         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10795
10796         * device/lib/z80/crt0.s: Added module name for debugging.
10797
10798 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
10799
10800         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10801
10802         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10803
10804         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10805
10806         * src/Makefile.in: Added SDCCmacro and SDCCutil
10807
10808 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
10809
10810         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10811
10812 2001-09-16    <johan AT FRIJA>
10813
10814         * 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.
10815
10816 2001-09-15    <johan AT FRIJA>
10817
10818         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10819         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10820
10821 2001-09-11    <johan AT FRIJA>
10822
10823         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10824
10825 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
10826
10827         * support/regression/tests/bug-460444.c: Added test case.
10828
10829         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10830         (genCast): Added justification for all of the asserts.
10831
10832 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
10833
10834         * support/regression/support.c: _xdata replaced by xdata
10835
10836         * support/regression/spec.mk: removed _generic
10837
10838 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
10839
10840         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10841
10842         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10843         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10844
10845         * src/z80/peeph.def: Added a rule to optimise shift then compare.
10846
10847         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10848
10849         * support/regression/tests/bug-460010.c: Added test case.
10850
10851         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10852
10853 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
10854
10855         * support/regression/Makefile: inter-port-clean adjusted for mcs51
10856
10857         * support/regression/testfwk.c: removed workaround for bug #436344
10858
10859         * support/regression/tests/bp.c: use less memory with mcs51
10860
10861         * support/regression/tests/bug-441448.c: use less memory
10862
10863         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10864
10865         * support/regression/collate-results.py: typo
10866
10867 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
10868
10869         * support/regression/tests/fetchoverlap.c: Added new test case.
10870
10871         * support/regression/tests/bp.c: Added new test case.
10872
10873         * support/regression/tests/bug-448984.c: Added new test case.
10874
10875         * support/regression/tests/pow2shifts.c: Added new test case.
10876
10877         * src/z80/gen.c: Turned off the noise it normally generates for the release.
10878         (genlshTwo): Fixed right shift for count > 8.
10879
10880         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
10881
10882 2001-09-08    <johan AT FRIJA>
10883
10884         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
10885
10886 2001-09-07    <johan AT FRIJA>
10887
10888         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10889
10890         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10891
10892 2001-09-06    <johan AT FRIJA>
10893
10894         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10895         * bernhard noted me at this: "() equals to (void)" (1.38)
10896
10897 2001-09-05    <johan AT FRIJA>
10898
10899         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10900
10901 2001-09-04    <johan AT FRIJA>
10902
10903         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10904
10905
10906 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
10907
10908         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
10909
10910 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
10911
10912         * link/z80/aslink.h: Fixed path for PATH_MAX
10913
10914 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
10915
10916         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10917
10918         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10919
10920         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10921
10922         * 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.
10923
10924 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
10925
10926         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10927         (genCmp): Fixed up genCmp for the GB with longs.
10928
10929         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10930
10931         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10932
10933         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10934
10935         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10936
10937 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
10938
10939         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
10940
10941 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
10942
10943         * 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.
10944
10945         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10946
10947 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
10948
10949         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
10950
10951         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10952
10953 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
10954
10955   * sim/ucsim/configure:    little improvement of Cygwin-detection
10956   * sim/ucsim/configure.in: little improvement of Cygwin-detection
10957   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10958   * support/regression/tests/bug-221100.c: small changes for mcs51
10959   * support/regression/tests/bug-221168.c: small changes for mcs51
10960   * support/regression/tests/bug-227710.c: small changes for mcs51
10961   * support/regression/tests/staticinit.c: small changes for mcs51
10962   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10963   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10964   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10965
10966 $Revision$