* support/regression/tests/bug-460010.c,
[fw/sdcc] / ChangeLog
1 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * support/regression/tests/bug-460010.c,
4         * support/regression/tests/bug-524691.c,
5         * support/regression/tests/bug-716242.c: removed conditional defines
6           that are already in testfwk.h
7
8 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
9
10         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
11           (AccAXRsh1): added, shift right by 1,
12           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
13            AccAXLrl1
14         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
15
16 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
17
18         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
19         remove cast to same type
20         * src/SDCCast.c (decorateType): fix for RFE 1475742,
21         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
22         * as/z80/Makefile,
23         * link/z80/Makefile: removed, they have moved to
24         Makefile.in files
25         * configure,
26         * configure.in: replaced duplicate message about ucsim by missing sdcpp
27         * install-sh: fix bug #1204398 by setting umask 0022
28         * device/lib/Makefile: separate build of z80 and gbz80 lib
29
30 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
31
32         Enabled VPATH feature: changed nearly all Makefiles (149 files).
33         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
34
35         One basic decision: e.g. src/clean.mk includes further files. In order
36         to make this work there are two solutions:
37         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
38           run configure on them. This way they can use
39           'include $(srcdir)/port-clean.mk'
40         - always include clean.mk by the Makefile at the same level. To avoid
41           that `make clean` tries to include and build Makefile.dep the
42           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
43           implemented, because now even `make uninstall` doesn't create
44           Makefile.in. clean.mk could be eliminated by pasting it in
45           Makefile.in.
46
47         * debugger/mcs51/Makefile.in: build own objects from library sources
48         (SLIB, SDCC) in current directory
49
50         * configure, configure.in: renamed --disable-device-lib-build in
51         --disable-device-lib; added --enable-doc, the required tools are
52         searched by configure; added result message; the toolchain for the
53         belonging ports are now only built, if the port is enabled.
54
55         * support/regression/*: all output is written in directory gen, because
56         the fwk and ports directories don't livet in the build tree using vpath
57
58         * doc/sdccman.lyx: renamed --disable-device-lib-build to
59         --disable-device-lib, added --enable-doc, added section VPATH
60
61         * sim/ucsim/configure.in,
62         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
63         z80 are enabled by default
64
65 2006-04-24 Raphael Neider <rneider AT web.de>
66
67         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
68             config word, "pic14_"-prefixed some extern functions
69           (pic14_emitConfigWord): emit __config directive(s) if assignment to
70             config word has been found
71         * src/pic/device.h: added prototypes
72         * src/pic/pcode.c: added "pic14_"-prefix where needed
73         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic fixup
74         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config words,
75           (pic14emitRegularMap): ignore config words,
76           (pic14createInterruptVect): moved generating __config directives away
77           (picglue): have __config directives emitted
78
79 2006-04-24 Borut Razem <borut.razem AT siol.net>
80
81         * doc/Makefile: sync with nightly build makefile
82
83 2006-04-24 Raphael Neider <rneider AT web.de>
84
85         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
86             registers that have not been assigned proper liveranges,
87             fixes #1469504 and #1474602,
88           (pCodeRegOptimizeRegUsage): fixed typo in comment
89
90 2006-04-24 Borut Razem <borut.razem AT siol.net>
91
92         * device/examples/main8051.c: deleted - it was removed from CVS
93           24.mar.2000 and after that modified 18.feb.2001, so it reappered
94           after the transition to Subversion
95         * src/SDCCalloc.h: deleted - it was removed  from CVS
96           3.feb.2001 and after that modified 18.feb.2001, so it reappered
97           after the transition to Subversion
98         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
99           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
100           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
101           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
102
103 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * as/asx8051.dsp: added mcs51/strcmpi.h
106         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
107         * as/hc08/aslink.h: updated lnksect prototype
108         * as/hc08/asm.h,
109         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
110         * as/hc08/asmain.c,
111         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
112           (newdot): handle A_ABS
113         * as/hc08/asout.c,
114         * as/mcs51/asout.c (outarea): output address
115         * as/hc08/lkaomf51.c,
116         * as/mcs51/lkaomf51.c: disabled unused array UsageType
117         * as/hc08/m08pst.c,
118         * as/mcs51/i51pst.c,
119         * as/z80/z80pst.c: "ABS" is not A_OVR
120         * as/hc08/lkarea.c (newarea): read a_addr,
121           (lnkarea): added codemap array, sort absolute areas to the front,
122            combine all GSINITx/GSFINAL,
123           (find_empty_space, allocate_space): new functions,
124           (lnksect): return next address, handle absolute sections
125         * as/mcs51/lkarea.c (newarea): read a_addr,
126           lnksect2 prototype changed,
127           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
128           (find_empty_space, allocate_space): new, factored out of lnksect2,
129           (lnksect2): return next address, handle absolute sections
130         * as/hc08/lkhead.c,
131         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
132         * as/hc08/lklibr.c (addfile, fndsym),
133         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
134           index out of range and detect both '\' and '/'
135         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
136         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
137           regression tests (ds390 cannot return bool yet)
138         * doc/sdccman.lyx: changed version number, document changed --no-peep,
139           document critical interrupts on z80, document changed SDCC define
140         * src/asm.c (_asxxxx_mapping): fixed .org directive,
141           (_a390_mapping): added .org directive
142         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
143           (genMultOneByte): fixed warnings
144         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
145           ones
146         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
147         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
148           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
149         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
150         * src/pic16/main.c: removed newReg prototype
151         * src/pic16/pcode.c,
152         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
153           warnings
154         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
155           ones
156         * src/pic16/ralloc.c
157         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
158           to fix warnings
159         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
160           from short to PIC_OPTYPE
161         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
162         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
163           optype from short to PIC_OPTYPE
164         * src/port.h: made int_size unsigned to fix warnings
165         * src/SDCC.y: fixed warning on MSVC
166         * src/SDCCicode.c (getArraySizePtr): return unsigned int
167         * src/SDCCopt.c (convertToFcall): fixed warnings
168         * src/SDCCsymt.h: removed double prototype for genSymName
169         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
170           offset int to fix warnings
171
172 2006-04-22 Borut Razem <borut.razem AT siol.net>
173
174         * doc/sdccman.lyx, */Makefile, */Makefile.in:
175           references to CVS replaced with Subversion
176
177 2006-04-21 Borut Razem <borut.razem AT siol.net>
178
179         * doc/sdccman.lyx, */Makefile, */Makefile.in:
180           references to CVS replaced with Subversion
181
182 2006-04-19 Borut Razem <borut.razem AT siol.net>
183
184         * src/version.awk: adapted for svn
185         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
186           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
187           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
188           /binutils-avr/etc/*.vi, *.jin: removed all properties
189           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
190
191 2006-04-19 Borut Razem <borut.razem AT siol.net>
192
193         * CVS to Subversion migration completed
194
195 2006-04-18 Borut Razem <borut.razem AT siol.net>
196
197         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
198           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
199
200 2006-04-17 Borut Razem <borut.razem AT siol.net>
201
202         * device/include/Makefile.in: added pic/*.inc to the installation
203
204 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
205
206         * support/regression/collate-results.py: fixed output in case of
207         a valdiag error
208         * support/regression/generate-cases.py: fixed splitting of pathnames
209         with dots
210         * as/hc08/lklibr.c (addfile),
211         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
212
213 2006-04-11 Raphael Neider <rneider AT web.de>
214
215         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
216         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
217         * src/pic16/pcode.c (assignValnums): fixed #1460578
218
219 2006-04-11 Raphael Neider <rneider AT web.de>
220
221         * device/lib/pic/libdev/*.c,
222         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
223           fixes #1468739, enables compilation in --std-c99 mode
224         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
225
226 2006-04-11 Raphael Neider <rneider AT web.de>
227
228         * src/pic/device.c (find_device): removed debug output
229           (list_valid_pics): enabled verbose listing of supported devices
230         * device/include/stdbool.h: define bool as char for pic14/16 as well
231
232 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
233
234         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
235
236 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
237
238         * .version: bumped version to 2.5.6
239         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
240
241 2006-04-06 Raphael Neider <rneider AT web.de>
242
243         * .version: bumped version to 2.5.6 (pic14 ABI changed)
244         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
245         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
246           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
247             pic14_constructAbsMap
248           (pic14printPublics): declare absolute global symbols as global
249           (pic14createInterruptVect),
250         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
251           (newReg): assume new registers unused, use correct name in
252             hashtable (reg->name instead of name), more debugLog output
253         * src/pic/device.h (PIC_device): added fields for verbose output
254         * src/pic/device.c: moved device definition to pic14devices.txt,
255             added routines for runtime parsing of pic14devices.txt,
256             added support for second config word
257         * src/pic/main.c (_process_pragma): removed #pragma maxram,
258           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
259           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
260           (_pic14_parseOptions): moved pCodeInitRegisters here
261           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
262         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
263           (pCodeInitRegisters): rewrapped comments, perpared new approach to
264             handling the pseudo stack
265         * device/lib/Makefile.in: ignore failures in objects-pic16,
266         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
267         * device/lib/pic/NEWS: document new dependency on picXXX.lib
268         * device/lib/pic/Makefile.subdir,
269         * device/lib/pic16/Makefile.subdir: improved clean rules
270         * device/lib/pic/libdev/: NEW, pic14 device libraries
271         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
272         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
273         * device/include/Makefile.in: create subdir and install pic14 headers
274         * device/include/pic/p16f_common.inc: removed unused declarations
275         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
276             PICs from inc2h.pl v1.6,
277             replaced BIT_AT macros with struct declarations
278         * device/include/pic/pic14devices.txt: definition of supported devices,
279             all above improvements contributed by Zik Saleeba, thanks
280         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
281         * support/scripts/sdcc.nsi: also install pic14 device libraries and
282             headers
283
284 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
285
286         * device/include/mcs51/c8051f410.h: added interrupt numbers,
287         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
288           thanks to Charles Olds
289
290 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
291
292         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
293
294 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
295
296         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
297         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
298         * support/regression/bug1464657.c: added, new test
299
300 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
301
302         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
303           version number
304
305 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
306
307         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
308           --no-peep and --peep-file <file> are used don't use default rules but
309           do use the <file>
310
311 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
312
313         * src/mcs51/gen.c (genCall): fixed bug 1457608
314
315 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
316
317         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
318         changes seem to cause (trigger?) problems with the build system.
319
320 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
321
322         * src/SDCCpeeph.c (operandsLiteral): new, added,
323           (callFuncByName): inserted operandsLiteral
324         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
325
326 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
327
328         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
329         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
330
331 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
332
333         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
334           implemented patch 1120823 Thanks to Willy De la Court (normal
335           interrupts need an interrupt number now if they are made critical),
336           and enabled nesting of critical functions though not for gbz80
337           (genCritical, genEndCritical): added functions
338           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
339         * src/z80/mappings.i: added "ei" to all mappings
340
341 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
342
343         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
344         submitted by the Debian SDCC maintainer Aurelien Jarno:
345         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
346         archive with gcc 4.1 on mips and wrote the patch"
347
348 2006-03-16 Raphael Neider <rneider AT web.de>
349
350         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
351           the left operand is shorter than the result (c* = lit-c* + int),
352           fixes bug #1450796
353         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
354           OP_SYMBOL
355
356 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
357
358         * src/.version: increased version number to 2.5.5
359         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
360         linking is done manually in pic16 port's _linkEdit,
361         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
362         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
363         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
364         allocate asmop as AOP_ACC,
365         (aopForRemat): added parameter 'bool result' in function declaration,
366         (pic16_aopGet): return AOP_ACC when accessing WREG,
367         (pic16_popGetTempReg): minor modification,
368         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
369         'pic16_allocWithIdx',
370         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
371         calling function in absolute addresses,
372         (genAssign): take into account AOP_ACC asmop,
373         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
374         * src/pic16/pcoderegs.c: some debug functions and lines added,
375         * src/pic16/ralloc.c (decodeRegType): added but commented out,
376         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
377         register too,
378         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
379         call to allocReg, not by manually allocating a new one,
380         (pic16_assignRegisters): now before going through the register
381         allocating functions mark all registers as free. This eliminates some
382         side effects resulting from peephole parser done earlier in the backbone
383
384 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
385
386         * src/SDCCicode.c (geniCodeLogic),
387         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
388
389 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
392           (genSend): bugfix, do not allocate and free twice,
393           (shiftRLong): handle partially overlapping aops
394         * support/regression/tests/bitopcse.c: fixed warning redefined idata
395
396 2006-03-08 Borut Razem <borut.razem AT siol.net>
397
398         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
399           for pic16
400
401 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
402
403         * support/regression/tests/bug1409955.c: new, added
404         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
405         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
406           (aopForSym, aopOp): increment asmop.allocated if reused,
407           (freeAsmop): decrement asmop.allocated and check for zero instead of
408           using asmop.freed,
409           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
410           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
411            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
412            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
413            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
414            genSignedRightShift, genRightShift, genDataPointerGet,
415            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
416            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
417             in reverse order from allocation,
418           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
419             added swappedLR to keep track
420         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
421           pdata & code for GCC, z80, gbz80 & hc08
422         * support/regression/tests/zeropad.c: moved defines to testfwk.h
423
424 2006-03-08 Raphael Neider <rneider AT web.de>
425
426         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
427
428 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * device/include/mcs51/c8051f410.h: new SiLabs mcu
431         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
432         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
433
434 2006-03-06 Borut Razem <borut.razem AT siol.net>
435
436         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
437           made the linker quiet
438
439 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
440
441         * src/pic16/gen.c (genPcall): fixed bug #1443644
442         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
443         which dumps before the function entry point a data byte which represents
444         the number of the local variables used by the specified function, added
445         'xinst' for initial support for Extended Instruction Support,
446         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
447         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
448         port->fun_prefix anymore (may change later),
449         (genFunction, genEndFunction): do not store/restore local registers for
450         _main (this should take care the --main-return command line option in
451         the future),
452         (genOr): removed some legacy pic-port instructions,
453         * src/pic16/genarith.c (genAddLit): re-enabled old code because
454         performing operations with SFR's causes data to be written more than
455         once to each SFR. Perhaps SFRs should be handled in special cases...
456         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
457         pcode.h
458         * src/pic16/main.c (_process_pragma): stack bound checking did not take
459         into account for stack starting position,
460         (struct OPTIONS pic16_optionsTable): added command line argument
461         --extended or -y for Extended Instruction Support,
462         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
463         (deassignLRs): *** perhaps the most important change, old 'for' code
464         (commented out for reference), didn't account for some registers which
465         were left marked 'not free' after a pointer operation. The change
466         reduces register usage a lot in some cases
467
468 2006-03-04 Borut Razem <borut.razem AT siol.net>
469
470         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
471           _clean
472         * support/regression/tests/bug-524697.c: decreased array size for
473           mcs51 to fit into the internal RAM
474         * support/regression/Makefile.in: a little bit more verbose
475
476 2006-03-03 Borut Razem <borut.razem AT siol.net>
477
478         * support/regression/fwk/lib/testfwk.c,
479           support/regression/fwk/include/testfwk.h: introduced function
480           _prints(), nonrecursive _printn(), call _initEmu() from main()
481         * support/regression/ports/gbz80/support.asm,
482           support/regression/ports/ucz80/support.asm,
483           support/regression/ports/z80/support.asm,
484           support/regression/ports/ds390/support.c,
485           support/regression/ports/hc08/support.c,
486           support/regression/ports/host/support.c,
487           support/regression/ports/mcs51/support.c,
488           support/regression/ports/xa51/support.c: added empty _initEmu()
489           function
490         * support/regression/ports/pic16/gpsim.cmd,
491           support/regression/ports/pic16/spec.mk,
492           support/regression/ports/pic16/support.c,
493           support/regression/Makefile.in: added pic16 regression test
494
495 2006-03-01 Raphael Neider <rneider AT web.de>
496
497         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
498           genConstPointerGet): use safe way of generating MOVFF to cover
499             literals as well as registers, fixes bug #1440527
500         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
501             dereference
502           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
503             more correctly, fixes bug #1232186
504           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
505         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
506             gplink guess the correct processor in more cases, applied patch
507             from Till Riedel attached to and fixing bug #1436552
508
509 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
510
511         * support/regression/tests/array.c: added, contains check for #1434401
512         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
513
514 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
515
516         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
517         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
518         * device/include/mcs51/c8051f326.h,
519         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
520         * device/include/mcs51/c8051f000.h,
521         * device/include/mcs51/c8051f018.h,
522         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
523           PCON_IDLE,PCON_STOP and added sfr16 definitions
524
525 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
526
527         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
528           genGetWord): fixed bug 1409955
529
530 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
531
532         * device/include/hc08/mc68hc908gp32.h,
533         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
534
535 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
536
537         * src/SDCCast.c (constExprValue): return NULL if not a value
538         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
539         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
540         * support/regression/tests/bitfields.c: enabled signed bitfield for all
541
542 2006-02-13 Borut Razem <borut.razem AT siol.net>
543
544         * src/regression/ptrarg.c: added, fails due to bug #1430967
545         * src/regression/Makefile: ptrarg.c added, ...
546
547 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
548
549         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
550         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
551
552 2006-02-11 Borut Razem <borut.razem AT siol.net>
553
554         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
555           print "Processor: xxx" message to stdout only if --verbose
556
557 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
558
559         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
560         * support/regression/tests/bug1426356.c: added
561         * support/regression/tests/bitfields.c: removed 2 tests
562
563 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
564
565         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
566         * device/include/mcs51/c8051f330.h,
567         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
568           PCON_IDLE,PCON_STOP and added sfr16 definitions
569         * device/lib/_divsint.c,
570         * device/lib/_divuint.c,
571         * device/lib/_divulong.c,
572         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
573           register bank bug for small stackauto
574
575 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
576
577         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
578
579 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
580
581         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
582         * all.dsp: corrected several bin paths
583         * device/include/mcs51/c8051f120.h,
584         * device/include/mcs51/c8051f300.h,
585         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
586           to PCON_IDLE,PCON_STOP
587         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
588         * device/lib/printf_large.c (output_float): fixed bug 1388703
589         * support/regression/tests/bug1057979.c: added test for bug 1388703
590
591 2006-02-08 Raphael Neider <rneider AT web.de>
592
593         * src/pic/pcode.c (pciTRIS): fixed typo,
594           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
595           (LinkFlow): fixed handling of flows that end in a call,
596           (ReuseReg): perform safety check earlier
597         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
598             to work with flows at the beginning of a pBlock,
599             fixes #1426557 (Symbol not previously defined),
600           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
601             usage information
602           (RemoveUnusedRegisters): update register usage info
603         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
604             created, reuse existing ones instead
605         * src/pic/gen.c (genPcall): fixed #1424719
606
607 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
608
609         * link/z80/lkmain.c,
610         * link/z80/lklex.c,
611         * link/z80/lkdata.c,
612         * link/z80/aslink.h: fixed build on current cygwin:
613         replaced getline() by lk_getline()
614
615 2006-02-01 Borut Razem <borut.razem AT siol.net>
616
617         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
618           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
619           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
620           src/regression/bool1.c, src/regression/bool2.c,
621           src/regression/bool3.c, src/regression/call1.c,
622           src/regression/compare.c, src/regression/compare10.c,
623           src/regression/compare2.c, src/regression/compare3.c,
624           src/regression/compare4.c, src/regression/compare5.c,
625           src/regression/compare6.c, src/regression/compare7.c,
626           src/regression/compare8.c, src/regression/compare9.c,
627           src/regression/configword.c, src/regression/for.c,
628           src/regression/inline.c, src/regression/mult1.c,
629           src/regression/nestfor.c, src/regression/or1.c,
630           src/regression/pointer1.c, src/regression/ptrfunc.c,
631           src/regression/rotate1.c, src/regression/rotate2.c,
632           src/regression/rotate3.c, src/regression/rotate4.c,
633           src/regression/rotate5.c, src/regression/rotate6.c,
634           src/regression/rotate7.c, src/regression/string1.c,
635           src/regression/struct1.c, src/regression/sub.c,
636           src/regression/sub2.c, src/regression/switch1.c,
637           src/regression/while.c, src/regression/xor.c,
638           src/regression/create_stc, src/regression/simulate,
639           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
640           regression tests
641         * src/regression/gpsim_assert.h: added
642
643 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
644
645         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
646         ((void (code *) (void)) 0) ();
647         * as/hc08/aslex.c,
648         * as/hc08/aslink.h,
649         * as/hc08/asm.h,
650         * as/hc08/asmain.c,
651         * as/hc08/lkdata.c,
652         * as/hc08/lklex.c,
653         * as/hc08/lkmain.c,
654         * as/mcs51/aslex.c,
655         * as/mcs51/aslink.h,
656         * as/mcs51/asm.h,
657         * as/mcs51/asmain.c,
658         * as/mcs51/lkdata.c,
659         * as/mcs51/lklex.c,
660         * as/mcs51/lkmain.c,
661         * as/z80/aslex.c,
662         * as/z80/asm.h,
663         * as/z80/asmain.c: fixed build on current cygwin:
664         replaced getline() by as_getline()
665
666 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
667
668         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
669         declarator in the symbol chain
670         * src/SDCCsymt.h,
671         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
672         parameter list for function pointers
673         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
674         * support/regression/tests/bug-716242.c: added
675
676 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
677
678         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
679         offset if possible
680         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
681
682 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
683
684         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
685         inifinitely recurseable, added static
686         * support/regression/tests/bug-1408066.c: added
687
688 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
689
690         * src/SDCCicode.h,
691         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
692         renamed, added possibility to create "postLoopLbl"-labels
693         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
694         newiTempLoopHeaderLabel
695         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
696         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
697         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
698         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
699         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
700         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
701         (basicInduction): fixed bug #136564, made static,
702         (loopInduction): changed parameter of basicInduction, made static,
703         (addPostLoopBlock): added
704         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
705         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
706         findLoopEndSeq
707         * support/regression/tests/bug-136564.c: added
708         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
709         --std-sdcc99 to LIBSDCCFLAGS
710
711 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
712
713         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
714         while loop
715         * support/regression/tests/bug-1406131.c: added
716
717 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
718
719         * src/SDCCast.c (decorateType): fix promotion of unary minus
720         * src/SDCCsymt.c (computeType): beautified
721         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
722         (valUnaryPM, valComplement): fix sign and promotion,
723         (valNot): ANSI: result type is int (SDCC: unsigned char)
724         * support/regression/tests/uminus.c: speedup by removing superflous
725         test case 'int'
726         * support/regression/tests/onebyte.c: added promotion and signedness
727         tests for unary minus
728         * support/regressions/tests/bug-477927.c: disable warning about
729         uninitialized variables
730         * support/regression/tests/not.c: added
731
732 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
733
734         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
735         * src/mcs51/gen.c (gen51Code): show final register usage after
736         fillGaps in asm with --i-code-in-asm
737         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
738         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
739         incUsed, rliveClear, adjustIChain): made static,
740         (setFromRange): excluded because it's unused,
741         (findPrevUseSym, markWholeLoop): added,
742         (findPrevUse): rewritten; fixes bug 895992; now a complete search
743         through all branches of predecessors enables sdcc to emit the warning
744         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
745         (rlivePoint): made static, added parameter emitWarnings which is only
746         true during the first run out of two,
747         (findRecursiveSucc, findRecursivePred): removed,
748         (computeLiveRanges): made static, added parameter emitWarnings,
749         (dumpIcRlive): added for debugging only
750         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
751         removed prototype of setFromRange()
752         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
753         in call of computeLiveRanges()
754         * support/regression/tests/bug-895992.c: added
755         * support/regression/tests/bug-971834.c: added
756         * support/valdiag/tests/bug-895992.c: added
757         * support/valdiag/tests/bug-971834.c: added
758
759 2005-12-18 Raphael Neider <rneider AT web.de>
760
761         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
762           (genUnpackBits): improved code for direct operands,
763           (genPackBits): improved code for literal assignment to bitfields
764             and for direct destination operands (no FSR indirection),
765             prevented redundant AND, fixes #1362800,
766           (AccLsh): added parameter to disable masking of the result
767         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
768           skip instructions with side-effects (like incfsz),
769           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
770         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
771         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
772           fixes #1375263
773
774 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
775
776         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
777         volatile variables as spill location
778
779 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
780
781         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
782         replacing literals
783         * support/regression/tests/bug-1376320.c: added
784
785 2005-12-08 Raphael Neider <rneider AT web.de>
786
787         * src/pic/device.c: renamed is_shared to pic14_is_shared
788         * src/pic/gen.c (genIfx): re-enabled handling of sbits
789         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
790           (is_valid_identifier): added for above workaround
791
792 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
793
794         * device/lib/Makefile.in: fixed to enable port-specific-objects
795         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
796           char, thanks Hubert Sack
797         * doc/sdccman.lyx: documented --xstack-loc,
798           elaborated a bit more on interrupts and pitfalls,
799           removed "setjmp/longjmp unsupported",
800           documented some unsupported C99 features
801         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
802         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
803           if, thanks Hubert Sack
804         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
805         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
806           make make_library
807         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
808           regression tests can report resource usage (rfe 700441)
809         * support/regression/collate-results.py: report resource usage
810         * support/regression/ports/ds390/spec.mk,
811         * support/regression/ports/hc08/spec.mk,
812         * support/regression/ports/mcs51/spec.mk,
813         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
814         * support/regression/ports/ds390/uCsim.cmd,
815         * support/regression/ports/hc08/uCsim.cmd,
816         * support/regression/ports/mcs51/uCsim.cmd,
817         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
818         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
819           library, use the default one
820         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
821           building the library
822
823 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
824
825         * config.dsp: added dependency on .version and configure_vc.awk
826         * device/include/setjmp.h: updated for --stack-auto and --xstack
827         * device/include/mcs51/at89c51snd1c.h: corrected line endings
828         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
829         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
830         * device/lib/libsdcc.lib: added _setjmp
831         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
832           (decorateType): fixed bug 1372851,
833           (optimizeGetHbit): fixed warning
834         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
835           array initialisation
836         * support/regression/tests/bug1057979.c: added test for bug 1358192
837         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
838
839 2005-12-03 Borut Razem <borut.razem AT siol.net>
840
841         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
842           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
843
844 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
845
846         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
847         createIval): implement symbol independant "flexible array member",
848         (createIvalCharPtr): implemented flexible array initialisation with a
849         string
850         * src/SDCCsymt.c (copyStruct): removed,
851         (getSize): fixed misleading comment,
852         (getAllocSize): removed, the additional allocation size is now in
853         sym->flexArrayLength,
854         (checkStructFlexArray): new, syntax checks for flexible array members,
855         (compStructSize): added syntax checks for "flexible array members"
856         (copyStruct): removed,
857         (copyLinkChain): removed inefficient fix for bug 770487
858         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
859         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
860         symbol->flexArrayLength
861         * src/SDCCerr.c,
862         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
863         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
864         * support/regression/tests/structflexarray.c: added
865         * support/valdiag/tests/structflexiblearray.c: added
866
867 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
868
869         * src/SDCCast.c (decorateType): fixed bug 1368489
870         * support/Util/SDCCerr.c,
871         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
872
873 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
874
875         * device/include/mcs51/at89c51snd1c.h: added file submitted by
876           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
877
878 2005-11-27 Borut Razem <borut.razem AT siol.net>
879
880         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
881           support/cpp2/mkdeps.h: added command line option
882           -obj-ext=<extension> to SDCPP to define object file externion, used
883           for generation of make dependencies (-M)
884         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
885
886 2005-11-26 Borut Razem <borut.razem AT siol.net>
887
888         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
889           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
890           added pic and pic16 libraries
891
892 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
893
894         * device/include/float.h: Corrected typo in prototype of __fsgt
895
896 2005-11-25 Borut Razem <borut.razem AT siol.net>
897
898         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
899           added creation of model-mcs51-stack-auto libraries
900
901 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
902
903         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
904         and fields-list too
905         * src/SDCCast.c (createIvalArray): removed obsolete comment
906
907 2005-11-24 Borut Razem <borut.razem AT siol.net>
908
909         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
910           added missing device/lib/mcs51/crt*.asm sources
911
912 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
913
914         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
915
916 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
917
918         * device/lib/_fs2schar.c,
919         * device/lib/_fs2sint.c,
920         * device/lib/_fs2slong.c: optimized inline asm
921
922 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
923
924         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
925           Better handling of floats between -1.0 and 0.0.
926
927 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
928
929         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
930           (the missing "if"s prohibited removal of redundant labels)
931
932 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
933
934         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
935           Properly convert floats between -1.0 and 0.0 to long, int, and char
936           types (max integer value of negative floats tends to zero).
937         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
938           Removed changes made so to work properly with floats between
939           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
940           and _fs2char.c
941
942 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
943
944         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
945         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
946         (genCast) cosmetic change
947         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
948         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
949         from mcs51
950         * support/regression/tests/bitfields (testSignedBitfields): added
951
952 2005-11-18 Borut Razem <borut.razem AT siol.net>
953
954         * sdcc/device/lib/Makefile.in: remove all unnecessary files
955         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
956           introduced SILENT option to make building of pic16 libraries less
957
958 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
959
960         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
961           Now they work properly with floats between -1.0 and 0.0
962         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
963
964 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
965
966         * src/SDCCicode.c (printOperand): added missing else
967
968 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
969
970         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
971         reformatted for better readability
972         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
973         signed bitfields
974
975 2005-11-17 Borut Razem <borut.razem AT siol.net>
976
977         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
978           introduced SILENT option to make building of pic16 libraries less
979           verbose - used for nightly snapshot build
980         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
981           available on Win32 platforms.
982         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
983           medium, large, pic and pic16
984
985 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
986
987         * device/lib/printf_large.c: Temporary patch for bug 1358192:
988           printf("%f"...) sets fraction to zero.
989
990 2005-11-16 Raphael Neider <rneider AT web.de>
991
992         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
993           fixes #1357221
994         * src/pic/gen.c (genIfx): implemented for CARRY bit
995         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
996           to generic pointers, fixes #1357332,
997           (pic16_movLit2f): NEW,
998           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
999
1000 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1001
1002         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1003
1004 2005-11-11 Raphael Neider <rneider AT web.de>
1005
1006         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1007         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1008           compute pointer's type from operand,
1009           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1010           improved single bit reads, fixes bug #1353379
1011
1012 2005-11-09 Borut Razem <borut.razem AT siol.net>
1013
1014         * support/scripts/sdcc.nsi: added lib/pic to the package
1015
1016 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1019
1020 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1021
1022         * support/regression/tests/bug1348008.c: added
1023         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1024         * support/regression/tests/bug1337835.c: updated comment
1025
1026 2005-11-06 Borut Razem <borut.razem AT siol.net>
1027
1028         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1029           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1030           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1031           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1032           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1033           dynamic construction of cl_error_class and derivates - 2.nd try
1034
1035 2005-11-05 Borut Razem <borut.razem AT siol.net>
1036
1037         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1038           bug, which caused Bus Errors on sparc solaris
1039
1040 2005-11-04 Borut Razem <borut.razem AT siol.net>
1041
1042         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1043           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1044           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1045           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1046           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1047           and derivates to resolve the initialization problem on OSX
1048
1049 2005-11-02 Borut Razem <borut.razem AT siol.net>
1050
1051         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1052           corrected typo - #include <winsock2.h>
1053
1054 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1055
1056         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1057           (_asxxxx_mapping): added org directive for future enhancements
1058
1059 2005-11-01 Borut Razem <borut.razem AT siol.net>
1060
1061         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1062           enabled sockets on WIN32
1063         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1064
1065 2005-10-31 Borut Razem <borut.razem AT siol.net>
1066
1067         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1068           WIN32 backslash path delimiters should be escaped when used in C strings
1069         * support/regression/tests/bitfields.c: exclude failing assertions for
1070           __CYGWIN32__ and __MINGW32__ hosts
1071
1072 2005-10-30 Borut Razem <borut.razem AT siol.net>
1073
1074         * src/SDCCutil.c: corrected double comparison typo
1075
1076 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1077
1078         * device/lib/medium/Makefile: added for new memory model medium
1079         * device/include/asm/mcs51/features.h: updated for medium/pdata
1080         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1081           added Multiply & Accumulate sbit's and MAC0_PAGE define
1082         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1083         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1084         * device/lib/_mullong.c: update for medium model
1085         * device/lib/incl.mk: added medium model
1086         * doc/sdccman.lyx: documented medium model
1087         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1088         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1089         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1090         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1091           (allocParms): set SCLS and OCLS to pdata for medium model
1092         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1093           for pdata,
1094           (powof2): return <0 if not power of 2
1095         * src/avr/gen.c (genBitWise): use updated powof2
1096         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1097           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1098           (shiftLLeftOrResult): use B if necessary
1099         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1100         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1101         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1102         * support/regression/Makefile.in: added test-mcs51-medium
1103         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1104
1105 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1106
1107         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1108         specifier unsigned
1109         * device/lib/time.c (mktime): fixed bug 1334315
1110
1111 2005-10-28 Raphael Neider <rneider AT web.de>
1112
1113         * device/include/pic/p16f_common.inc: added common declarations
1114         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1115
1116 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1117
1118         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1119           (aopPutUsesAcc): added to predict accumulator use,
1120           (assignResultValue): save acc if necessary,
1121           (genMinusDec): store result if indirectly addressed,
1122           (genDivOneByte):  save acc if necessary,
1123           (movLeft2Result): bugfix if left already in acc,
1124           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1125             attention to accumulator use (esp. pdata),
1126           (genReceive): receive pdata correctly
1127         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1128         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1129
1130 2005-10-27 Raphael Neider <rneider AT web.de>
1131
1132         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1133
1134 2005-10-27 Raphael Neider <rneider AT web.de>
1135
1136         * .version: changed version to 2.5.4
1137         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1138         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1139           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1140             arithmetics support routines
1141         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1142         * device/lib/Makefile.in: also create installdir for pic
1143
1144         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1145           pic14 port as well
1146         * src/pic/device.c (dump_sfr): rewritten to delegate register
1147           placement to the linker (use `extern sym' rather than sym EQU addr),
1148           (validAddress): fixed to check last specified address
1149         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1150           (popGetLit): truncate literal value to 8 bit,
1151           (popGet): moved assert to more appropriate place
1152           (popGetExternal): create pCode operand from and mark the according
1153             symbol as being `extern'
1154           (popGetAddr): added sanity check on immediate's offset, provide
1155             GPOINTER tag on demand
1156           (aopPut): fixed for immediates,
1157           (mov2w_op): move operand's address or contents to WREG (depending on
1158             operand type), safer variant of mov2w,
1159           (movwf,call_libraryfunc): NEW, handy abbreviations,
1160           (get_argument_pcop,get_return_val_pcop,pass_argument,
1161           get_returnvalue): interface for accessing function parameters and
1162             return values,
1163           (assignResultValuei,genRet): use new parameter/return value interface
1164           (pic14_getDataSize): back to old version handling generic pointers,
1165           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1166             provided implementation and/or fixed old one,
1167           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1168             calls, removed legacy 8051 reference code
1169           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1170           (loadSignToC): NEW, move the operands sign bit to CARRY,
1171           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1172             genRightShiftSigned, accepts negative shift counts,
1173           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1174           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1175             generic pointers, __data pointers and __code pointers,
1176           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1177             and signed bitfields, limit bitfields to 8 bit,
1178           (genDataPointerGet): fixed number of bytes read,
1179           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1180           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1181             pointers to constant data are no longer assumed to point to __code
1182             space, removed invalid pointer types,
1183           (bitpatternFromVal): retrieve the PICs representation of an integer
1184             or float literal,
1185           (genDataPointerSet): fixed assigning to po_immediate operands,
1186           (genGenPointerSet): implemented as library call,
1187           (genIfx): fixed incorrect condition,
1188           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1189             provide GPOINTER tag according to destination's storage class,
1190           (genCast): added code to handle casting to generic pointers, added
1191             sign-/zero extension of the result
1192           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1193         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1194         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1195           extend the result
1196         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1197           address/register resides in the shared banks
1198           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1199             put all variables into separate sections (have the linker arrange
1200             them)
1201           (picglue): put init code and interrupt handlers in separate sections
1202         * src/pic/main.c: added port specific options table, modified to PORT
1203           structure to make GPOINTERs 3 byte, added pic14_options
1204           (_pic14_do_link): private linking routine (update paths to libraries,
1205             add libsdcc.lib by default)
1206         * src/pic/main.h: declare pic14_options
1207         * src/pic/pcode.c: fixed instructions i/o relations,
1208           (RegCond): reverted to correct version,
1209           (newpCodeOpLit): truncate literals to 8 bit,
1210           (genericPrint): added debug output,
1211           (getRegFromInstruction): fixed for various operand types, simplified
1212           (BuildFlow): fixed broken handling of isntructions with labels
1213           (LinkFlow): start at last instruction in flow (skip trailing comments),
1214             pass the flow on to the next instruction after CALL
1215           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1216           (insertPCodeInstruction): fixed inserting after a skip instruction,
1217           (DoBankSelect): fixed for labeled instructions
1218           (OptimizepBlock): honor --nopeep switch
1219           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1220         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1221         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1222           (pCodeOptime2pCodes): allow disabling this optimization via
1223             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1224             but is still buggy), started implementation of a dataflow based
1225             pCode optimization (CSE + dead code elimination)
1226           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1227         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1228           names are independant of the stack location and therefore portable across
1229           devices
1230
1231 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1232
1233         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1234           (selectSpil): fixed bug 1337835 by not spilling bit variables
1235         * support/regression/tests/bug1337835.c: added test for this bug
1236         * src/mcs51/peeph.def: restart after rule 3.c,
1237           addded rules 263.x to optimize loading constants
1238
1239 2005-10-26 Raphael Neider <rneider AT web.de>
1240
1241         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1242         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1243           (genAssign): emit warning when casting literals to generic pointer
1244             type, also applies when taking the address of a fixed variable,
1245           (genCast): improved casting to generic pointers
1246         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1247           extern variables, added verbose error message
1248         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1249
1250 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1251
1252         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1253         carry must be complemented too
1254         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1255         could be emitted by genMinus
1256         * src/SDCCval.c (constVal): fixed bug 1305065
1257
1258 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1259
1260         * src/SDCCast.c (addCast): added promotion for bit variables
1261         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1262         promotion casts + optimisation
1263         (optimizeGetWord): fix warning 'i' might be used uninitialized
1264         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1265         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1266
1267 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1268
1269         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1270         all chars are promoted to int; promotion should be handled in SDCCast.c
1271
1272 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1273
1274         * device/lib/_strcmp.c: Fixed bug 1326457
1275
1276 2005-10-11 Raphael Neider <rneider AT web.de>
1277
1278         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1279         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1280
1281 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1282
1283         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1284         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1285
1286 2005-10-04 Raphael Neider <rneider AT web.de>
1287
1288         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1289           device/lib/pic16/pics.all: added pic18f1320
1290         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1291
1292 2005-09-30 Raphael Neider <rneider AT web.de>
1293
1294         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1295         * src/pic16/devices.inc: NEW, provides device descriptions
1296         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1297
1298 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1299
1300         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1301           GETHBIT
1302
1303 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1304
1305         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1306           documented Any Order Bit, Higher Order Byte and Higher Order Word
1307         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1308         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1309           (optimizeGetAbit): new, to get any bit, not only the high bit,
1310           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1311           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1312           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1313           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1314             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1315             GETABIT, GETBYTE, GETWORD: decorate them,
1316           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1317           (ast_print): added GETABIT, GETBYTE, GETWORD
1318         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1319         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1320           (geniCodeBinary): new generic binary icode,
1321           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1322         * src/port.h: updated comment for PORT.hasExtBitOp
1323         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1324           (genGetByte): new, to get a single byte,
1325           (genGetWord): new, to get a word from a long,
1326           (gen51Code): added GETABIT, GETBYTE, GETWORD
1327         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1328
1329 2005-09-23 Raphael Neider <rneider AT web.de>
1330
1331         * configure.in, configure: have device/lib/pic configured
1332         * device/lib/Makefile.in: added model-pic14
1333         * device/lib/clean.mk: added pic/ to clean rule
1334         * device/lib/pic: added rudimentary pic14 library providing support
1335           functions for multiplication/division/generic pointer access
1336         * src/SDCCopt.c (convilong): mark support functions as extern
1337           for pic14 port as well
1338         * src/pic/gen.c (genMult): added assertions,
1339           (genpic14Code): emit warning on unhandled iCodes
1340         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1341         * src/pic/pcode.c (pCodeOpCopy),
1342         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1343           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1344           SFR_REGISTER}), made safe for future extensions
1345         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1346           instructions even if preceeded by SKIP instructions (also remove
1347           them); removed unused code
1348         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1349           prevents leaving parts of the structure uninitialized after copying
1350
1351 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1352
1353         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1354           ago by me
1355         * support/regression/tests/addsub.c: added test for the bug
1356
1357 2005-09-21 Raphael Neider <rneider AT web.de>
1358
1359         * device/include/pic16/pic18f1220.h,
1360           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1361         * device/lib/pic16/Makefile.rules: added missing opening paren
1362         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1363           are provided in genutils.c,
1364           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1365           operand/result sizes,
1366           (genCmp): assert on NULL pointers first, then check deref'ed values
1367         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1368           result size
1369
1370 2005-09-18 Raphael Neider <rneider AT web.de>
1371
1372         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1373           as these are now unused,
1374           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1375         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1376           local, avoids uninitialized pointer dereference on r->name
1377         * src/pic16/ralloc.c (newReg): fixed indentation
1378
1379 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1380
1381         * src/SDCCval.c (constVal): fixed bug 730366
1382         * support/Util/SDCCerr.c,
1383         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1384
1385 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1386
1387         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1388
1389 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1390
1391         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1392
1393 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1394
1395         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1396           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1397         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1398           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1399         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1400         * packihx/packihx.c (hexDigit): made c unsigned char
1401         * as/mcs51/lklibr.c (fndsym),
1402         * link/z80/lkgb.c (gb),
1403         * link/z80/lklibr.c (fndsym),
1404         * link/z80/lkrloc.c (relr),
1405         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1406         * src/SDCC.lex (checkCurrFile, process_pragma),
1407         * src/SDCCglue.c (spacesToUnderscores),
1408         * src/SDCCmain.c (setParseWithComma, processFile),
1409         * src/asm.c (tvsprintf, printCLine),
1410         * src/avr/gen.c (emitcode, aopPut),
1411         * src/ds390/gen.c (emitcode),
1412         * src/hc08/gen.c (emitcode, emitinline),
1413         * src/mcs51/gen.c (emitcode, genInline),
1414         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1415           tokenizeLineNode),
1416         * src/pic/ralloc.c (debugLog),
1417         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1418           tokenizeLineNode),
1419         * src/pic16/ralloc.c (debugLog),
1420         * src/z80/main.c (_process_pragma):
1421            made all ctype.h function calls safe
1422         * src/SDCCopt.c: include math.h for fabs
1423         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1424           and used them throughout the code to make ctype.h function calls safe
1425         * src/ds390/main.c (asmLineNodeFromLineNode),
1426         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1427         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1428            unsigned char*
1429         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1430           (newpCodeAsmDir): made ctype.h function calls safe
1431         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1432           pic16_emitcode):  made lbp unsigned char*
1433         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1434           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1435         * src/xa51/gen.c (emitcode),
1436         * src/z80/gen.c (_emit2): made lbp unsigned char*
1437         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1438            char*
1439
1440 2005-09-05 Raphael Neider <rneider AT web.de>
1441
1442         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1443           access bank splitpoint
1444
1445 2005-09-05 Raphael Neider <rneider AT web.de>
1446
1447         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1448
1449 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1450
1451         * .version: changed to version 2.5.3
1452         * doc/sdccman.lyx: changed version to 2.5.3,
1453           documented --codeseg and --constseg and pragma codeseg and constseg,
1454           documented bit parameters (reentrant) and bit returning
1455         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1456            currFunc->recvSize, but is this ok for all ports?
1457           (ast2iCode): result of ~ on unsigned char must be cast to int for
1458            bool to work
1459         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1460           function pointers in bit space
1461         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1462           (processFuncArgs): call port.reg_parm() with reentrancy info
1463         * src/port.h,
1464         * src/avr/main.c,
1465         * src/ds390/main.c,
1466         * src/hc08/main.c,
1467         * src/pic/main.c,
1468         * src/pic16/main.c,
1469         * src/xa51/main.c,
1470         * src/z80/main.c: port.reg_parm prototype extended with
1471           "bool reentrant" parameter
1472         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1473           options.stackAuto for allocating bit register parameters
1474         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1475           (genSend): set BitBankUsed if it is,
1476           (selectRegBank): factored out of genCall for use in genPcall,
1477           (genCall): removed redundant dtype assignmen, use selectRegBank,
1478           (genPcall): handle returning in Carry properly, save in F0 if needed,
1479           (genReceive): handle bit register parameters
1480         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1481           (mcs51_assignRegisters): enable bit registers for all reentrant
1482            functions and don't set BitBankUsed unconditionally
1483         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1484         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1485         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1486
1487 2005-08-27 Borut Razem <borut.razem AT siol.net>
1488
1489         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1490         ppc-osx (Darwin) does not support -u option. It seems that it is
1491         supported only on Linux - GNU cp
1492
1493 2005-08-25 Borut Razem <borut.razem AT siol.net>
1494
1495         * sim/ucsim/gui.src/serio.src/Makefile.in,
1496           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1497           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1498           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1499           install and strip, since the strip at /usr/ccs/bin should be used
1500           on solaris
1501
1502 2005-08-24 Borut Razem <borut.razem AT siol.net>
1503
1504         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1505
1506 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1507
1508         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1509         ffffffffu
1510
1511 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1512
1513         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1514         * as/mcs51/lkmain.c (link_main): fixed warning
1515         * device/include/stdbool.h: ds390 has no advanced bit support yet
1516         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1517         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1518         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1519           and updated their macros
1520         * src/SDCCval.c (constVal): updated comment for renamed b_long
1521
1522 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1523
1524         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1525         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1526           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1527           (oprio): set priority for '['
1528         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1529            and adb_24_bit
1530         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1531         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1532         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1533         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1534           added overlayable BIT_BANK area
1535         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1536           (summary2): explain 'T' in legenda
1537         * as/mcs51/lkrloc.c: replaced old K&R style,
1538           (relr): added R_BIT processing,
1539           (errmsg): added "Bit-addressable relocation error",
1540           (adb_bit): added for converting from byte- to bit-addressable space,
1541           (adb_24_bit): added for converting from byte- to bit-addressable space
1542         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1543            used in reentrant functions now even as return value
1544         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1545         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1546           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1547         * src/SDCCglobl.h: added indicator BitBankUsed
1548         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1549            the bit registers b0-b7
1550         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1551           (geniCodeCast): fixed bug 1263853,
1552           (geniCodeLogicAndOr): put result in bool or char,
1553           (geniCodeReceive): added parameter func for accessing the return type,
1554           (geniCodeFunctionBody): pass func to geniCodeReceive
1555         * src/SDCCmain.c: added indicator BitBankUsed
1556         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1557         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1558           (checkSClass): don't put automatic bool/bit on stack,
1559           (checkFunction): removed check on function cannot return bit
1560         * src/SDCCsymt.h: added newBoolLink prototype
1561         * src/mcs51/gen.c (rb1regs): added bit registers,
1562           (movc): created for assigning to carry,
1563           (pushReg, popReg): created for pushing registers,
1564           (sameRegs): check both AOP_REG and AOP_CRY types,
1565           (aopOp): handle bit registers,
1566           (aopPut): optimization no self-assign,
1567           (saveRegisters): push reg->base (bits) only once for bit registers,
1568            and use pushReg,
1569           (unsaveRegisters): pop reg->base only once and use popReg,
1570           (assignResultValue): added parameter func and return in carry for bits,
1571           (genIpush): optimization no reload in A if not changed,
1572           (genSend): bit parameters in reentrant functions are passed in bit
1573            registers by first assigning to bits in B, then save registers and
1574            copy B to bits,
1575           (genCall): handle returning in Carry properly, save it in F0 if needed,
1576           (genPcall): updated assignResultValue call, this is not safe yet for bit
1577            returning function !!!
1578           (genFunction): don't generate equ's for bit registers and use pushReg,
1579           (genEndFunction): take care of bit returning functions and use popReg,
1580           (genRet): return bit in Carry,
1581           (genIfx): optimize bit registers and other directly addressable bits,
1582           (genReceive): updated assignResultValue call
1583         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1584           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1585            registers when using stack-auto
1586         * src/mcs51/ralloc.c (_G): added allBitregs,
1587           (regs8051): added the bit registers,
1588           (createStackSpil): use macro IS_BIT,
1589           (getRegBit): added to allocate a bit register, else spill,
1590           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1591           (updateRegUsage): factored out to ease stepping while debugging,
1592           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1593            also allocate bit registers,
1594           (fillGaps): handle bit registers,
1595           (findAllBitregs): added to create bit vector with all bit registers,
1596           (mcs51_allBitregs): returns this bit vector,
1597           (mcs51_assignRegisters): when using stack-auto use bit registers for
1598            passing parameters and creating local variables
1599         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1600
1601 2005-08-22 Borut Razem <borut.razem AT siol.net>
1602
1603         * device/lib/Makefile.in: replaced find option -or with -o
1604           to make it run on solaris
1605
1606 2005-08-22 Raphael Neider <rneider AT web.de>
1607
1608         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1609           fixes #1265442 (crash on Solaris)
1610
1611 2005-08-20 Borut Razem <borut.razem AT siol.net>
1612
1613         * configure, configure.in: added tests for libsocket and libnsl libraries,
1614           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1615           from support/regression/Makefile.in
1616         * support/regression/Makefile.in: added
1617         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1618         * sim/ucsim/libtool: regenerated on sparc-solaris
1619         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1620           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1621           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1622           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1623           sparc-solaris, which doesn't use GNU ld linker
1624         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1625         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1626
1627 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1628
1629         * src/mcs51/peeph.def: updated comments
1630
1631 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1632
1633         * device/lib/_gptrget.c,
1634         * device/lib/_gptrput.c: slightly shorter
1635         * doc/sdccman.lyx: incremented version
1636         * src/mcs51/peeph.def: moved peephole comments to the line of first
1637           change to better keep line correlation, reanimated 186.e
1638         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1639
1640 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1641
1642         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1643           David Saxton with quotes around file name.
1644
1645 2005-08-15 Borut Razem <borut.razem AT siol.net>
1646
1647         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1648           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1649           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1650           make tests run on x86_64 platform
1651
1652 2005-08-13 Raphael Neider <rneider AT web.de>
1653
1654         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1655           as it might be executed DURING a build (parallel make is wonderful)
1656
1657 2005-08-13 Raphael Neider <rneider AT web.de>
1658
1659         * device/lib/Makefile.in (port-specific-objects-pic16):
1660           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1661         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1662           dependency
1663         * device/lib/pic16/Makefile.rules: build subdirs before creating
1664           the library, removed builddir rule, create $(builddir) early in
1665           recurse rule, use empty recurse rule for leaf directories
1666         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1667           mkdir errors (race condition), removed duplicate suffix "hex"
1668           from clean rules
1669         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1670         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1671           prevents mkdir -p from aborting on Alpha
1672
1673 2005-08-12 Raphael Neider <rneider AT web.de>
1674
1675         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1676           db-statements in order to allow for arrays of pointers in code
1677           sections to be placed without interspersed 0-padding, fixes
1678           bug #1256215
1679         * (emitStatistics): fixed division by zero for pic18f1220
1680         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1681           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1682         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1683         * (pic16_pCodeConstString): keep track of already emitted string
1684           literals to prevent "duplicate definitions of symbol _str_NR"
1685         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1686           debug message
1687         * device/lib/Makefile.in: ignore failing PIC16 library builds
1688         * device/lib/pic16/Makefile: do not build if gputils are missing
1689         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1690
1691 2005-08-10 Raphael Neider <rneider AT web.de>
1692
1693         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1694           my last commit)
1695
1696 2005-08-10 Raphael Neider <rneider AT web.de>
1697
1698         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1699           Rokas' patch to add the new fixed point type "__fixed16x16"
1700         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1701           functions for __fixed16x16 arithmetics
1702         * device/lib/pic16: reimplemented the build system to support
1703           a separate build directory, better handling of libio (create
1704           the library in a separate subdir for each architecture) and
1705           easier configuration (centralized in Makefile.common)
1706
1707 2005-08-07 Raphael Neider <rneider AT web.de>
1708
1709         * src/pic16/gen.c (genrshTwo): fixed sign extension
1710         * src/pic16/device.c: added pic18f2320, 4220 and 4320
1711         * device/include/pic16/pic18f2220.h: changed some bit definitions,
1712           added T0CONbits
1713         * device/include/pic16/pic18f4220.h: NEW, header for
1714           pic18f4220 and pic18f4320
1715         * device/include/pic16/pic18fregs.h: added new devices,
1716           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1717         * device/include/pic16/signal.h: resolved name clashes
1718           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1719           to also allow testing for interrupt enable bits, added
1720           comments on how to use the macros
1721         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1722         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1723           register definitions for the devices
1724         * device/lib/pic16/pics.all: added new devices
1725         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1726           allocated memory
1727         * device/lib/pic16/libc/stdlib/memfree: do not count
1728           the block header as free memory
1729         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1730           simplified and added missing end-of-blocklist-marker
1731           (reported by Peter Onion, fixes #1252814)
1732         * (_mergeHeapBlock): fixed loop condition
1733         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1734           len==0, restructured code
1735         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1736           up a bit, reduced bitfield accesses, prevent endless loops
1737           in case of heap corruption
1738         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1739           "unreferenced arguments/must return a value" warnings
1740         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1741           replaced BAUDREG with SPBRG
1742         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1743           device/lib/pic16/debug/gstack/gstack.c: replaced
1744           _naked, _asm, _endasm with __naked, __asm, __endasm
1745
1746 2005-08-05 Raphael Neider <rneider AT web.de>
1747
1748         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1749           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1750
1751 2005-08-05 Borut Razem <borut.razem AT siol.net>
1752
1753         * device/lib/Makefile.in: added missing ';'
1754         * configure: removed ^M characters
1755
1756 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1757
1758         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1759           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1760           License
1761
1762 2005-08-04 Borut Razem <borut.razem AT siol.net>
1763
1764         * configure.in: pic16 libraries build 2nd try - enable running
1765           configure in device/lib/pic16
1766         * configure: regenerated from configure.in
1767         * device/lib/Makefile.in: create $(PORT)/bin directory
1768
1769 2005-08-03 Raphael Neider <rneider AT web.de>
1770
1771         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1772           to get/set values via pointers
1773         * (genUnpackBits,genPackBits): changed detection of
1774           ptr->bitfield vs. sym.bitfield, fixed access via generic
1775           pointers, removed dead (wrong) code for multibyte bitfields
1776         * (genNearPointerGet, genGenPointerGet): removed useless code,
1777           fixed bitfield detection, fixes #1250594
1778         * (genNearPointerSet): removed useless code
1779         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1780           and introduced macro pic16_emitpcode that conditionally emits
1781           the origin of the following pCode (useful for debugging SDCC)
1782         * src/pic16/pcode.c: changed (and disabled) some debug outputs
1783         * (createDefmap): fixed handling of LFSR for --optimize-df
1784
1785 2005-08-02 Borut Razem <borut.razem AT siol.net>
1786
1787         * device/lib/Makefile.in: pic16 libraries build enabled since
1788           gputils-0.13.2 are now localy installed at sourceforge's compile farm
1789
1790 2005-08-02 Raphael Neider <rneider AT web.de>
1791
1792         * src/pic16/gen.c (genPackBits): removed deprecated warning
1793         * (genGenPointerSet): fixed bitfield detection
1794
1795 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1796
1797         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1798
1799 2005-07-31 Raphael Neider <rneider AT web.de>
1800
1801         * device/lib/pic16/libdev/pic18f458.c,
1802           device/include/pic16/pic18f458.h: added missing T0CONbits
1803
1804 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1805
1806         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1807
1808 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1809
1810         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1811
1812 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1813
1814         * device/include/mcs51/at89c51ed2.h: added.
1815
1816 2005-07-23 Raphael Neider <rneider AT web.de>
1817
1818         * src/pic/gen.h: added emitpcode macro for debugging
1819         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1820           and replace by macro adding debug information on demand
1821         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1822         * (gencjne): tried to fix; replaced with correct (slower) code
1823         * (gen{Unp,P}ackBits): fixed single bit access
1824         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1825         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1826           previous instruction
1827         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1828           register has to be handled with care (forbidding movement
1829           of assignments/uses, removing assignments completely, ...)
1830         * (pCodeOptime2pCodes): make use of regIsSpecial
1831         * added lots of debugging output (commented out)
1832         * src/pic/rallloc.c (deassignLRs): prevent operand registers
1833           from being reused as result UNLESS it is known to work
1834
1835 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1836
1837         * support/Util/dbuf.h: include <stddef.h> for size_t
1838         * .version: changed to version 2.5.2
1839
1840 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1841
1842         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1843
1844 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1845
1846         * src/hc08/gen.c (genMinus): fixed bug #1241835,
1847           (genModOneByte): removed needless psha/pula
1848
1849 2005-07-22 Raphael Neider <rneider AT web.de>
1850
1851         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1852           have PIC14 handled like PIC16, fixes broken pic14 linker calls
1853         * src/pic/gen.c (resolveIfx): do not "invent" labels
1854         * (genSkipc): changed to positive logic
1855         * (genSkipCond): removed as no longer needed
1856         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1857           backport from PIC16
1858         * (genLeftShift): check operands are in different registers
1859         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1860           INCF does not update CARRY...
1861         * src/pic/main.c: fixed _linkCmd
1862         * src/pic/pcode.c (unlinkpCode): added inactive code
1863         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1864           alive (do not assign result and operand overlapping registers)
1865
1866 2005-07-22 Raphael Neider <rneider AT web.de>
1867
1868         * src/pic/device.c (dump_sfr): replaced register declaration with
1869           call to emitSymbolToFile() to avoid duplicate symbols
1870         * (assignRelocatableRegisters): do not declare external symbols
1871         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1872           right (take size of type, not etype)
1873         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1874         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1875         * (packRegsForAccUse): disabled assignment of WREG as
1876           the result reg to prevent occurence of just fixed #1235003,
1877           fixes #1242954
1878         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1879           symbols (avoids duplicate symbols in .asm file)
1880         * (pic14emitRegularMap): use emitSymbolToFile()
1881         * src/pic/gen.c (aopOp): fixed spillLocation handling
1882         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1883         * (genDataPointerSet): removed unneccessary variables/output
1884
1885 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1886
1887         * as/mcs51/lkarea.c: enlarged codemap for banked memory
1888         * device/lib/mcs51/crtbank.asm: added # to 0x0F
1889
1890 2005-07-21 Raphael Neider <rneider AT web.de>
1891
1892         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1893           architecture cannot handle them efficiently, fixes bug #1235003
1894         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1895           check for empty sets before using them (fixes bug #1232190)
1896
1897 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1898
1899         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1900           (lnksect2): generate warnings for memory overlap
1901         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1902           constseg to set the name of these segments so you can instruct the linker
1903           to place them in banks
1904         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1905         * src/SDCCglobl.h: added MODEL_HUGE to enum,
1906           added code_seg and const_seg to options
1907         * src/SDCCglue.c (emitMaps): use options.const_seg,
1908           (createInterruptVect): put interrupt vectors in segment HOME,
1909           (glue): put HOME before static segment and put the main glue in HOME,
1910           (glue): use options.code_seg
1911         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1912         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1913           these segments so you can instruct the linker to place them in banks
1914           (linkEdit): use code_loc for HOME segment which should be the first
1915           segment in code memory now
1916         * src/SDCCmem.c: fixed more stuff like bug 1238386
1917         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1918           (changePointer): don't change function pointers to code pointers for
1919           banked functions,
1920           (compareType): added exceptional check for banked function pointers
1921         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1922         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1923           after static in code memory
1924         * src/mcs51/gen.c: added aopLiteralLong prototype,
1925           (aopForSym): use getSize for functions,
1926           (genCall): generate banked calls over one trampoline __sdcc_banked_call
1927           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1928           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1929           the segment,
1930           (genPcall): use call for literal function pointers and generate banked
1931           calls over the one trampoline so there's only one place for the user to
1932           modify according to his/hers hardware,
1933           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1934           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1935         * src/mcs51/main.c: added keyword banked,
1936           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1937         * support/Util/SDCCerr.c,
1938         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1939           needed for passing the bank and address to the trampoline
1940         * device/lib/mcs51/crtbank.asm: added for bankswitching
1941         * device/lib/mcs51/Makefile: added crtbank
1942
1943 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1944
1945         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1946           for fields at offset 0 of a struct or union as reported
1947           on 2005-07-07 in the developer mailing list.
1948
1949 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1950
1951         * src/SDCCmem.c: fixed bug 1238386
1952
1953 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1954
1955         * src/mcs51/peeph.def: added labelrefcounting for peepholes
1956           (patch #1144962), added peephole 300, enabled 259.x
1957         * doc/sdccman.lyx: removed screenshot and provided link instead
1958
1959 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1960
1961         * doc/sdccman.lyx: added section about debugging with ddd
1962         * doc/figures/ddd_example.eps: screenshot of debugging session
1963
1964 2005-07-04 Raphael Neider <rneider AT web.de>
1965
1966         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1967           like CODE pointers, fixes #1115683
1968         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1969           call, fixes bugs #1232211, #1228110,
1970           fixed wrong casts to pCodeFlow from pCodeInstructions
1971
1972 2005-07-04 Raphael Neider <rneider AT web.de>
1973
1974         * src/pic/gen.c (popGet): changed assert to allow for
1975           bit operands
1976         * (popGetAddr): changed signature to provide
1977           an additional index, patched all call sites
1978         * (genCmpEq): handle literal-like operands correctly
1979         * (genAddrOf): added sanity checks on __code/__data pointers
1980         * (genAssign): added handling of symbols from __code section
1981         * (gencjne): do not generate code for comparisons whose result
1982           is neither stored nor used, fixes bug #1171114
1983         * (AccLsh, AccRsh): operate on operand instead of WREG
1984         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1985           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1986           by known count
1987         * rewrote complete shift-by-literal logic, commented unused
1988           functions out
1989         * (genConstPointerGet): get multiple bytes (if result size > 1),
1990           fixed handling of non-immediate addresses
1991         * (genPointerGet): handle CODE pointers like CONST pointers
1992         * (genpic14Code): insert C-SRC lines as Cource-pCodes
1993         * ({aop,op}_isLitLike): NEW, single place to decide whether an
1994           operand is to be treated as a literal or not
1995         * (mov2w,genPcall,genCmpEq),
1996           src/pic/genarith.c: use aop_isLitLike() to decide between
1997           literal/register contents
1998         * (addSign): added missing offset
1999         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2000           only emit comment in debug-mode,
2001           use {aop,op}_isLitLike throughout the file
2002         * src/pic/glue.c: fix initializers for pointers (work in progress)
2003         * src/pic/pcode.c (get_op): honor index on _const symbols
2004         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2005         * (dumppBlock): added pCode size estimation
2006         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2007           check for IS_SYMOP before OP_SYMBOL'ing
2008         * fixed indentation, compacted switch-statements
2009         * (allocReg): find free register and allocate it instead of
2010           allocating new registers all the time
2011         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2012           registers as its operands (necessary only for multibyte GETs)
2013
2014 2005-07-01 Raphael Neider <rneider AT web.de>
2015
2016         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2017           debugging .asm-output macros FENTRY + FEXIT
2018         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2019           way... I wonder...
2020         * (emitpComment): NEW, printf to pCode
2021         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2022           offset handling
2023         * (popGetAddr): NEW, variant of popGet to access an immediates
2024           high(er) bytes instead of the n'th byte of memory they reference,
2025           replaced popGet with popGetAddr where neccessary
2026         * (genDataPointerGet): reactivated and fixed implementation
2027         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2028           accesses
2029         * (genDataPointerSet): fixed multibyte assignments
2030         * (genpic14Code): fixed --i-code-in-asm handling
2031         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2032         * (genPlus): fixed index-out-of-bounds error
2033         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2034         * src/pic/ralloc.c: added debugging output macro FENTRY2
2035         * (spillThis): fixed indentation, enbraced for-body for clarity
2036         * (rematStr): commented out as now unused
2037         * (regTypeNum): commented out special spill case (overwrites
2038           arbitrary values)
2039         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2040
2041 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2042
2043         * doc/sdccman.lyx: documented sfr16/sfr32,
2044           added example for using storage class with function pointers
2045         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2046
2047 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2048
2049         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2050         * device/lib/_itoa.c,
2051         * device/lib/_ltoa.c: optimized codesize
2052         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2053           but don't know how to suppress the double warning.
2054         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2055         * support/Util/SDCCerr.c,
2056         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2057
2058 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2059
2060         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2061           fixed old K&R prototypes
2062         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2063         * device/lib/_gptrget.c,
2064         * device/lib/_gptrgetc.c,
2065         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2066           also new versions for small generic pointers and banked generic pointers
2067         * src/port.h: added const_name
2068         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2069         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2070         * src/SDCCcse.c (findPrevIc): check all associative operators
2071         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2072         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2073         * src/SDCCmem.c: updated comments,
2074           set far-space to 0 for pdata, results in optimized code
2075         * src/SDCCmem.h: added macro CONST_NAME
2076         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2077           moving the info into the highest bits, see also gptrget/gptrput
2078         * src/src.dsp: added sdcc.ico to project files
2079         * src/avr/gen.c (genCast): fixed bug 0x%d
2080         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2081         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2082           relation between ptr_type and DCL_TYPE,
2083           (genCast): fixed bug 0x%d
2084         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2085           (CODE)" for const_name
2086         * src/hc08/gen.c (genCast): fixed bug 0x%d
2087         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2088           (hc08_port): added "CONST (CODE)" for const_name
2089         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2090           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2091           between ptr_type and DCL_TYPE,
2092           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2093           operand* and took AOP() inside function so sfr-ness can be checked,
2094           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2095           new prototype,
2096           (genFunction, genEndFunction): optimized stack setup,
2097           (genMinus): optimized for literals with ending zeroes (in bytes),
2098           (genCast): fixed bug 0x%d
2099         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2100           (mcs51_port): added "CONST (CODE)" for const_name
2101         * src/mcs51/peeph.def: made rule 226 more generic
2102         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2103         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2104         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2105         * src/z80/main.c (z80_port): added NULL for const_name,
2106           (gbz80_port): added NULL for const_name
2107         * support/regression/tests/bug663539.c,
2108         * support/regression/tests/sfr16.c: new tests
2109
2110 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2111
2112         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2113
2114 2005-06-24 Raphael Neider <rneider AT web.de>
2115
2116         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2117           corrected typos...
2118         * device/include/pic16/signal.h: added USBIF
2119           and SIG_USB
2120
2121 2005-06-24 Raphael Neider <rneider AT web.de>
2122
2123         * device/lib/pic16/libdev/pic18f2455.c,
2124           device/include/pic16/pic18f2455.h: NEW
2125         * device/include/pic16/pic18fregs.h,
2126           device/lib/pic16/pics.all,
2127           src/pic16/device.c: added 18f2455
2128         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2129           device/include/pic16/{pic18f[68][567].h,usart.h}:
2130           replaced MULTIPLE_USARTS define with more relaible
2131           compatibility sfrs (for USART access)
2132
2133 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2134
2135         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2136           and the output asm file line is printed on two lines.
2137
2138 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2139
2140         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2141           BGT, BLE, BHI, and BLS instructions
2142         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2143           genCmpEq): removed
2144         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2145           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2146           fixes bug #1216342
2147         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2148
2149 2005-06-15 Raphael Neider <rneider AT web.de>
2150
2151         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2152         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2153         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2154           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2155           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2156
2157 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2158
2159         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2160           Marcel Telka in bug #1215704
2161
2162 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2163
2164         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2165           located in shared memory bank.
2166
2167 2005-05-31 Raphael Neider <rneider AT web.de>
2168
2169         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2170           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2171           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2172
2173 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2174
2175         * device/lib/_strncpy.c: fixed the fix
2176
2177 2005-05-26 Raphael Neider <rneider AT web.de>
2178
2179         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2180           initializers with \0, bug #1208187
2181         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2182           intializers with \0, bug #1208187
2183
2184 2005-05-26 Raphael Neider <rneider AT web.de>
2185
2186         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2187           initializers with \0, bug #1208187
2188         * src/pic16/main.c (_process_pragma): added sanity checks
2189           for stack position and size, emit warnings when appropriate
2190
2191 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2192
2193         * device/lib/_strncpy.c: fixed not filling with \0
2194
2195 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2196
2197         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2198           createFunction),
2199         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2200           compound_statement),
2201         * src/SDCCsymt.h,
2202         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2203
2204 2005-05-24 Raphael Neider <rneider AT web.de>
2205
2206         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2207
2208 2005-05-24 Raphael Neider <rneider AT web.de>
2209
2210         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2211           TRISE definitions, closes bug #1162453
2212
2213 2005-05-22 Raphael Neider <rneider AT web.de>
2214
2215         * src/pic16/main.c (_process_pragma): check for missing
2216           arguments to pragmas code and udata
2217         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2218           consistency fixes to match other headers (thanks to Jim Paris)
2219         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2220
2221 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2222
2223         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2224
2225 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2226
2227         * support/regression/tests/bug1198642.c: new test
2228         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2229         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2230         * support/scripts/resource.h,
2231         * support/scripts/resource.rc,
2232         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2233         * support/scripts/sdcc.ico: added 32x32 icon
2234
2235 2005-05-18 Raphael Neider <rneider AT web.de>
2236
2237         * device/lib/pic16/libdev/pic18f*.c,
2238         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2239           keywords to "__sfr" and "__at (X)"
2240         * device/include/pic16/pic18fregs.h: added pic18f4520
2241         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2242           #1203088 (MPLAB compatibility)
2243
2244 2005-05-17 Raphael Neider <rneider AT web.de>
2245
2246         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2247         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2248         * device/lib/pic16/pics.all: added new devices
2249         * src/pic16/device.c: added support for pic18f4520
2250
2251 2005-05-16 Raphael Neider <rneider AT web.de>
2252         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2253         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2254         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2255           convenience function for bit access
2256
2257 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * device/lib/printf_large.c: fixed bug 1193299
2260         * support/regression/tests/bug1057979.c: added test %3.3s
2261
2262 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2263
2264         * device/include/mcs51/8051.h,
2265         * device/include/mcs51/8052.h: made parseable with lint
2266         * device/include/mcs51/lint.h: added include file for (sp)lint
2267         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2268         * doc/cdbfileformat.lyx,
2269         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2270
2271 2005-05-14 Raphael Neider <rneider AT web.de>
2272
2273         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2274         * device/lib/pic16/libc/stdlib/itoa.c (new)
2275         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2276         * device/lib/pic16/libio/Makefile: exclude subdir according to
2277           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2278         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2279         * src/pic16/gen.c (genFunction): prevent annoying warning
2280         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2281           nameclashes on BeOS
2282         * support/cpp2/cppmain.c (cpp_output_string): new
2283         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2284           fixes bug 1116802
2285
2286 2005-05-13 Borut Razem <borut.razem AT siol.net>
2287
2288         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2289
2290 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2291
2292         * .version: changed to version 2.5.1; back to bleeding edge development
2293
2294 2005-05-11 Borut Razem <borut.razem AT siol.net>
2295
2296         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2297           generate PDF version 1.3 documents
2298
2299 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2300
2301         * .version: changed to version 2.5.0
2302
2303 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2304
2305         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2306
2307 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2308
2309         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2310         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2311         well as many smaller updates.
2312         * .version: changed to version 2.5.0-pre1
2313
2314 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2315
2316         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2317
2318 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2319
2320         * support/regression/tests/bug1185672.c: added
2321         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2322           bug 1185672
2323         * src/mcs51/gen.c (genCall): added comments, made it look safer
2324         * src/mcs51/gen.c (genEndFunction): simplified
2325
2326 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2327
2328         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2329
2330 2005-04-14 Borut Razem <borut.razem AT siol.net>
2331
2332         * fixed bug 1045046 - SIGSEGV with really simple code?:
2333           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2334           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2335
2336 2005-04-14 Borut Razem <borut.razem AT siol.net>
2337
2338         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2339           src/pic16/device.h: temporarily disabled experimental #inline pragma
2340           for 2.5.0 release
2341
2342 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2343
2344         * device/include/z80/stdio.h,
2345         * device/include/z80/string.h: removed these highly incomplete files so
2346           SDCC can use the default ones in device/include/
2347
2348 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2349
2350         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2351         gcc warning.
2352         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2353         fix sdcpp warnings.
2354
2355 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2356
2357         * device/include/malloc.h: removed redundant __reentrant prototypes
2358         * device/lib/_mullong.c: added working xstack variant in asm (C version
2359           doesn't pass regression tests)
2360         * device/lib/bpx.c: used __data and made bpx char for mcs51
2361         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2362           (createFunction): fixed bug with xstackPtr
2363         * src/SDCCcse.c: corrected comments
2364         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2365           (killDeadCode, eBBlockFromiCode): removed unused code
2366         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2367           corrected comments
2368         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2369           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2370           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2371           (genModOneByte): fixed warning in MSVC
2372         * src/mcs51/main.c (): added comments
2373         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2374
2375 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2376
2377         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2378
2379 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2380
2381         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2382
2383 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2384
2385         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2386         characters arrays of larger size than the declared one.
2387
2388 2005-04-10 Borut Razem <borut.razem AT siol.net>
2389
2390         * src/pic/gen.c (genInline),
2391           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2392           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2393           (findNextInstruction), (findPrevInstruction),
2394           (findInstructionUsingLabel),
2395           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2396         * src/pic/pcode.c (findLabel): added missing '\n'
2397         * src/src.dsp: added SDCCdwarf2.c to the project
2398
2399 2005-04-09 Borut Razem <borut.razem AT siol.net>
2400
2401         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2402
2403 2005-04-08 Raphael Neider <rneider AT web.de>
2404
2405         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2406           into the chain after a given one) and mergeDefmapSymbols (combine
2407           defmap entries for each symbol per pcode)
2408         * (createDefmap): have defmap entries merged in the end
2409         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2410           a symbol before replacing one access type's symbol, merge symbols in
2411           the end (replacement symbol might already have an entry)
2412         * (assignValnums): keep reference to written WREG intact
2413
2414 2005-04-08 Raphael Neider <rneider AT web.de>
2415
2416         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2417           Alpha)
2418
2419 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2420
2421         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2422         bytes
2423
2424 2005-04-07 Raphael Neider <rneider AT web.de>
2425
2426         * device/include/pic16/usart.h: added compatibility defines for
2427           devices with more than one USART
2428         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2429
2430 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2431
2432         * device/lib/Makefile.in: updated for port specific include
2433
2434 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2435
2436         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2437
2438 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2439
2440         * device/include/8051.h,
2441         * device/include/8052.h,
2442         * device/include/at89S8252.h,
2443         * device/include/at89c55.h,
2444         * device/include/at89x051.h,
2445         * device/include/at89x51.h,
2446         * device/include/at89x52.h,
2447         * device/include/mcs51reg.h,
2448         * device/include/reg51.h,
2449         * device/include/reg764.h,
2450         * device/include/regc515c.h,
2451         * device/include/sab80515.h: (re)moved these 12 files
2452         * device/include/mcs51/8051.h,
2453         * device/include/mcs51/8052.h,
2454         * device/include/mcs51/at89S8252.h,
2455         * device/include/mcs51/at89c55.h,
2456         * device/include/mcs51/at89x051.h,
2457         * device/include/mcs51/at89x51.h,
2458         * device/include/mcs51/at89x52.h,
2459         * device/include/mcs51/mcs51reg.h,
2460         * device/include/mcs51/reg51.h,
2461         * device/include/mcs51/reg764.h,
2462         * device/include/mcs51/regc515c.h,
2463         * device/include/mcs51/sab80515.h: and added them here
2464
2465 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2466
2467         * device/include/stdarg.h: changed SDCC specific keywords to double
2468           underlined form.
2469         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2470           mcs51 and ds390.
2471         * device/include/hc08/mc68hc908gp32.h,
2472         * device/include/hc08/mc68hc908jb8.h,
2473         * device/include/hc08/mc68hc908jkjl.h,
2474         * device/include/hc08/mc68hc908qy.h: fixed comments
2475         * device/include/mcs51/README: updated
2476         * device/include/mcs51/c8051f120.h: added PINRSF
2477         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2478         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2479           amidst code. Also inline is not supported.
2480
2481 2005-04-06 Raphael Neider <rneider AT web.de>
2482
2483         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2484         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2485           callers stack/frame pointers
2486
2487 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2488
2489         * device/include/pic16/usart.h: added, missing in previous commit,
2490         * device/include/pic16/adc.h: fixed typo,
2491         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2492         commit,
2493         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2494         <p18fxxx.inc>
2495         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2496         uninitialized because a bug appears with gplink
2497         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2498         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2499         complains for unrecognised option
2500
2501 2005-04-05 Raphael Neider <rneider AT web.de>
2502
2503         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2504           structs as well (using memcpy)
2505         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2506           on ISRs (GOTO has no label)
2507         * src/pic16/device.h: added OF_OPTIMIZE_DF
2508         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2509           new data flow analysis/optimization
2510         * src/pic16/pcode.c: added (prototypes for and implementation of)
2511           dataflow analysis functions, fixed pCodeInstructions' inCond and
2512           outCond values, made RCALL a branch instruction
2513         * (pic16_unlinkpCode): keep C line if possible
2514         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2515           C line moved if possible
2516         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2517         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2518           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2519         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2520           new flow)
2521         * (pic16_getJumptabpCode): NEW, needed in...
2522         * (LinkFlow): fixed handling of jumptables, calls and conditional
2523           branches
2524         * (pic16_InsertCommentAfter): NEW
2525         * (pic16_pCodeReplace): made verbose and flow preserving
2526         * (AnalyzeFlow): added call to data flow analysis
2527         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2528         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2529         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2530
2531 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2532
2533         * src/SDCCast.c (decorateType): fixed bug #1105626
2534
2535 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2536
2537         * device/include/asm/pic16/features.h,
2538         * pic18f*.h headers,
2539         * device/include/pic16/adc.h,
2540         * device/include/pic16/delay.h,
2541         * device/include/pic16/i2c.h,
2542         * device/include/pic16/malloc.h,
2543         * device/include/pic16/stdio.h,
2544         * device/include/pic16/stdlib.h,
2545         * device/include/pic16/string.h,
2546         * device/lib/pic16/libc/stdio/printf_tiny.c,
2547         * device/lib/pic16/libc/stdio/printf_small.c,
2548         * device/lib/pic16/libc/stdio/strmgpsim.c,
2549         * device/lib/pic16/libc/stdio/strmmssp.c,
2550         * device/lib/pic16/libc/stdio/strmusart.c,
2551         * device/lib/pic16/libc/stdio/vfprintf.c,
2552         * device/lib/pic16/libc/stdlib/ltoa.c,
2553         * device/lib/pic16/libc/stdlib/putchar.c,
2554         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2555         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2556         * device/lib/pic16/libc/stdlib/memchrram.c,
2557         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2558         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2559         * device/lib/pic16/libio/adc/adcbusy.c,
2560         * device/lib/pic16/libio/adc/adcread.c,
2561         * device/lib/pic16/libio/adc/adcsetch.c,
2562         * device/lib/pic16/libio/usart/ubaud.c,
2563         * device/lib/pic16/libio/usart/ubusy.c,
2564         * device/lib/pic16/libio/usart/udrdy.c,
2565         * device/lib/pic16/libio/usart/uopen.c,
2566         * device/lib/pic16/libio/usart/uputc.c,
2567         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2568         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2569         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2570         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2571         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2572         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2573         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2574         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2575         specific keywords to double underlined form,
2576         * device/lib/pic16/libc/Makefile.rules,
2577         * device/lib/pic16/libsdcc/Makefile.rules,
2578         * device/lib/pic16/libm/Makefile,
2579         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2580         to compile with C standard set in Makefile.common
2581         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2582         rand.c and crc.c in compilation process,
2583         * device/lib/pic16/libsdcc/int/divuint.c,
2584         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2585         `c' from signed to unsigned,
2586         * device/lib/pic16/startup/crt0.c,
2587         * device/lib/pic16/startup/crt0i.c,
2588         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2589         keywords to double underlined form, bug fixes in _do_cinit function
2590         which prevented the correct initialization of the .idata segment,
2591         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2592         core to enter a infinite loop
2593         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2594
2595 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2596
2597         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2598
2599 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2600
2601         * device/include/Makefile.in: add support for hc08 subdirectory
2602         * device/include/hc08/: new subdirectory
2603         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2604         Lucas Loizaga, thanks!
2605         * device/include/hc08/mc68hc908qy.h,
2606         * device/include/hc08/mc68hc908gp32.h,
2607         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2608         their own directory. Changed internal macro names to use the compiler
2609         reserved namespace. Changed SDCC specific keywords to double
2610         underlined form.
2611         * device/include/math.h,
2612         * device/include/malloc.h,
2613         * device/include/stdarg.h,
2614         * device/include/stdbool.h
2615         * device/include/string.h,
2616         * device/include/tinibios.h,
2617         * device/include/ds400rom.h,
2618         * device/include/8051.h,
2619         * device/include/8052.h,
2620         * device/include/80c51xa.h,
2621         * device/include/at89c55.h,
2622         * device/include/at89S8252.h,
2623         * device/include/at89x51.h,
2624         * device/include/at89x52.h,
2625         * device/include/ds80c390.h,
2626         * device/include/reg764.h,
2627         * device/include/regc515c.h,
2628         * device/include/sab80515.h,
2629         * device/include/mcs51/c8051f000.h,
2630         * device/include/mcs51/c8051f018.h,
2631         * device/include/mcs51/c8051f020.h,
2632         * device/include/mcs51/c8051f040.h,
2633         * device/include/mcs51/c8051f060.h,
2634         * device/include/mcs51/c8051f120.h,
2635         * device/include/mcs51/c8051f300.h,
2636         * device/include/mcs51/c8051f310.h,
2637         * device/include/mcs51/c8051f320.h,
2638         * device/include/mcs51/c8051f330.h,
2639         * device/include/mcs51/c8051f350.h,
2640         * device/include/z180.h: Changed SDCC specific keywords to double
2641         underlined form.
2642
2643 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2644
2645         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2646         18F4455,
2647         * (pic16_assignConfigWordValue): disable testing of configuration
2648         register value with config mask,
2649         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2650         function with port->fun_prefix,
2651         * (genFunction): when generating a naked interrupt function never
2652         create an absolute segment placed in interrupt vector address, place
2653         the actual interrupt function at IVA instead, when an interrupt
2654         function is generated with unspecified interrupt then do not create
2655         the absolute section,
2656         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2657         code for generating a call to generic pointer get/put function with
2658         a call to function pic16_callGenericPointer(),
2659         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2660         the call to the generic pointer get/put functions with prefixing the
2661         function name with port->fun_prefix,
2662         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2663         * src/pic16/main.c (_process_pragma): prefix function with
2664         port->fun_prefix,
2665         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2666         calling assembler, old 18Fxxxx macro is deprecated,
2667         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2668         PC_ASMDIR in while condition,
2669         * (findInstruction): add PC_ASMDIR in while condition,
2670         * (buildCallTree): prefix main with port->fun_prefix,
2671         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2672         identifier for variable with banked access in instructions BTFSS,
2673         BTFSC, BCF, BSF, BTG
2674         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2675         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2676         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2677         perform optimization when enviroment variable NO_REG_OPT is set,
2678         * (insideLRBlock): NEW, return 1 if register is inside an
2679         INF_LOCALREGS block,
2680         * (RemoveRegFromLRBlock): remove a register that is completely
2681         eliminated by register optimization, but it is still left in local
2682         register store/restore in/from stack block,
2683         * (Remove2pcodes): after removing register, check to see if it
2684         should be removed from local register store/restore in/from stack
2685         block,
2686         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2687         DUMMY_READ_VOLATILE,
2688
2689         * device/include/pic16/adc.h: minor prototype modifications and
2690         update,
2691         * device/include/pic16/malloc.h: added GPL notice various
2692         modifications,
2693         * device/include/pic16/stdint.h: NEW, standard header for ints
2694         * device/include/pic16/delay.h: NEW, header for delay functions,
2695         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2696         delay1mtcy,
2697         * device/include/pic16/signal.h: NEW, header providing helper macros
2698         for implementing signal handlers,
2699         * device/include/pic16/stdio.h: added prototypes for functions,
2700         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2701         prototypes for stdin and stdout, added macro PUTCHAR to
2702         automatically implement putchar function prototype,
2703         * device/include/pic16/usart.h: modified and updated USART library,
2704         * device/lib/pic16/libio/adc/,
2705         * device/lib/pic16/libio/i2c: some modifications to improve library
2706         performance,
2707         * device/lib/pic16/libc/stdio/: modifications for the new printf*
2708         family of functions,
2709         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2710         family of functions and other sources,
2711         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2712         of the PIC18Fxx[28] devices,
2713         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2714         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2715         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2716         _do_cinit function, because the previous failed when local variables
2717         where not placed in the same memory bank,
2718         * device/lib/pic16/libsdcc/char/: various modifications to improve
2719         library performance,
2720         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2721         information on the new functions of the c library and more...
2722
2723 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2724
2725         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2726
2727 2005-03-26 Raphael Neider <rneider AT web.de>
2728
2729         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2730           if condition == CARRY)
2731         * (genCmp): adapted to new genSkipc semantics
2732         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2733           on rIfx (genCmp was broken)
2734
2735 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2736
2737         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2738         * src/z80/main.c (_keywords[]),
2739         * src/SDCCglobal.h (struct options),
2740         * src/SDCC.y,
2741         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2742         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2743         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2744         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2745         always available in leading double underscore form. The C99 support is
2746         mostly missing, but it's a start.
2747         * support/regression/tests/bug-227710.c: fixed nonconforming use of
2748         reserved identifier "__data".
2749
2750 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2751
2752         * src/mcs51/peeph.def: fixed bug 1170013
2753
2754 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2755
2756         * device/include/mcs51reg.h: fixed bug 842007
2757
2758 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2759
2760         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2761         last time.
2762
2763 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2764
2765         * src/port.h (struct PORT),
2766         * src/avr/ralloc.c (avr_assignRegisters),
2767         * src/avr/main.c,
2768         * src/ds390/ralloc.c (ds390_assignRegisters),
2769         * src/ds390/main.c,
2770         * src/hc08/ralloc.c (hc08_assignRegisters),
2771         * src/hc08/main.c,
2772         * src/mcs51/ralloc.c (mcs51_assignRegisters),
2773         * src/mcs51/main.c,
2774         * src/pic/ralloc.c (pic14_assignRegisters),
2775         * src/pic/main.c,
2776         * src/pic16/ralloc.c (pic16_assignRegisters),
2777         * src/pic16/main.c,
2778         * src/xa51/ralloc.c (xa51_assignRegisters),
2779         * src/xa51/main.c,
2780         * src/z80/ralloc.c (z80_assignRegisters),
2781         * src/z80/ralloc.h,
2782         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2783         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2784         * src/SDCCcse.h,
2785         * src/SDCCdflow.c (computeDataFlow),
2786         * src/SDCCdflow.h,
2787         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2788         * src/SDCCloop.h,
2789         * src/SDCCcflow.c (*),
2790         * src/SDCCcflow.h,
2791         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2792         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2793         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2794         immedDom() returning wrong block; probably fixes bug #1160833)
2795
2796 2005-03-20 Borut Razem <borut.razem AT siol.net>
2797
2798         * support/scripts/inc2h.pl: WIN32 port
2799
2800 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2801
2802         * device/lib/makefile.in: added abs.c and labs.c
2803
2804 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2805
2806         * device/include/stdint.h: added
2807         * device/lib/abs.c: added
2808         * device/lib/labs.c: added
2809         * device/include/stdlib.h: added abs() and labs() prototypes
2810         * device/lib/libsdcc.lib: added abs and labs
2811         * device/include/float.h,
2812         * device/lib/_fsmul.c,
2813         * device/lib/printf_fast.c,
2814         * device/lib/printf_tiny.c: updated comments
2815
2816 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2817
2818         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2819         bug #1164313
2820
2821 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2822
2823         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2824         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2825
2826 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2827
2828         * device/lib/printf_large.c: removed inline assembly for portability and
2829           readability. Use printf_fast if speed or size are more important.
2830         * src/pic16/gen.c: removed conditions around use of DEBUGpc
2831         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2832
2833 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2834
2835         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2836         prevent compiler warning
2837
2838 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2839
2840         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2841         moved to level 0 and declared as static. Also they are explicit
2842         placed in access bank. This was necessery because some times they
2843         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2844         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2845         optimizations. Currently only compare to unsigned char is implemented,
2846         * src/pic16/gen.c: added fReturnIdx array,
2847         * (struct resolvedIfx) is moved to gen.h and made public,
2848         * (struct _G): added sregsAlloc and sregsAllocSet fields,
2849         * (aopForSym): added an optimization to directly store in stack of
2850         the operand of a SEND iCode,
2851         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2852         but as registers instead (AOP_REG) using the fReturnIdx array,
2853         * (pic16_freeAsmop): remove the freed register from the
2854         _G.sregsAlloc field,
2855         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2856         a compare of 'WREG',
2857         * (pic16_popGetTempRegCond): changed function prototype, now
2858         function takes also a bitVector argument v which holds the current
2859         set of registers that are allocated for stack access by aopForSym,
2860         registers allocated in aopForSym for accessing stack symbols are not
2861         any more part of the functions usedRegs field,
2862         * (genCall): some times aopOp is called for a stack variable to be
2863         send, aopForSym might perform the push, if this is true make sure
2864         that genCall doesn't push the variable twice by testing _G.resDirect,
2865         * (genFunction): changed testing for unspecified interrupt number
2866         from 256 to INTNO_UNSPEC,
2867         * modified selection scheme of frame pointer generation. Previously
2868         if function did use local registers a frame pointer was generated,
2869         now a frame pointer is generated only if function has arguments
2870         (that need PLUSW2 register access), or has stack arguments, or the
2871         compiler is not instructed to omit the frame pointer,
2872         * (genEndFunction): before restoring local registers that were saved
2873         in the function preamble, also restore the registers that *might*
2874         have been allocated for stack access,
2875         * (genRet): removed some old comments,
2876         * (genCmp, the active (RN's) version): added a call to the
2877         pic16_genCmp_special function to perform the compare with a more
2878         robust and optimized way,
2879         * (genInline): a feature has been added in inline code generation,
2880         which allows a wildcard variable substitution when writing inline
2881         assembly. Code is incomplete and experimental therefore undocumented,
2882         * (genCast): changed order of aopOp for result and right to allow
2883         aopForSym to directly load the result if possible,
2884         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2885         perform an optimized compare on some selected special occasions,
2886         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2887         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2888         generate an IVT any more,
2889         * src/pic16/main.c (pic16_optionsTable): added command line option
2890         --optimize-cmp,
2891         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2892         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2893         macros,
2894         * src/pic16/NOTES: Raphael Neider added in list of active developers
2895         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2896         jumptable_end to prevent bug #,
2897         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2898         inCond and outCond fields,
2899         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2900         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2901         turn off register spilling,
2902         * (packRegsForOneUse): synced with other ports' versions although it
2903         is not used currently,
2904         * (pic16_packRegisters): added an optimization while reading
2905         structure bitfields, some registers may be saved (malloc code is
2906         decreased by 80 bytes)
2907
2908 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2909
2910         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2911         left is a bitfield, if yes, then don't optimize assignment. Perhaps
2912         this can be optimized more?
2913
2914 2005-03-10 Raphael Neider <rneider AT web.de>
2915
2916         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2917           genNearPointerGet): (hopefully) fixed access to bitfields via
2918           pointers (p->bitN = x; and x = p->bitN; failed)
2919
2920 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2921
2922         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2923
2924 2005-03-09 Raphael Neider <rneider AT web.de>
2925
2926         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2927
2928 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2929
2930         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2931         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2932           (regTypeNum): set REG_BIT type if necessary
2933         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2934         * support/regression/tests/critical.c: check bug 1144613
2935
2936 2005-03-02 Raphael Neider <rneider AT web.de>
2937
2938         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2939
2940 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2941
2942         * src/avr/ralloc.c (serialRegAssign),
2943         * src/ds390/ralloc.c (serialRegAssign),
2944         * src/hc08/ralloc.c (serialRegAssign),
2945         * src/mcs51/ralloc.c (serialRegAssign),
2946         * src/pic/ralloc.c (serialRegAssign),
2947         * src/pic16/ralloc.c (serialRegAssign),
2948         * src/xa51/ralloc.c (serialRegAssign),
2949         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2950
2951 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * src/SDCCast.c (decorateType): fixed bug 1124787
2954
2955 2005-02-20 Hubert Sack <sack AT digiplan.de>
2956         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2957
2958         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2959         patch #1121755
2960
2961 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2962
2963         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2964         to keep the correct label reference count when adding/removing references
2965         to labels. A peephole file using this is appended to patch #1144962.
2966
2967 2005-02-14 Raphael Neider <rneider AT web.de>
2968
2969         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2970         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2971         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2972           retrievals of result operand's value on assignment
2973
2974 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2975
2976         * device/include/pic16/string.h: modified prototype for memccpy()
2977         to memccpy(void *, void *, char, size_t)
2978         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2979         check whether to omit frame pointer or not,
2980         * (genInline): convert all occurences of "\n" to LF in inline
2981         assembler blocks, this helps formatting the inline text,
2982         * (pic16_loadFSR0): modified prototype,
2983         * (genNearPointerGet, genNearPointerSet): reorganization of code,
2984         removed some 8051 legacy code,
2985         * (genPackBits): enabled handling bitfields exceeding one byte in size,
2986         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2987         before allocating temporary registers in functions,
2988
2989 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2990
2991         * support/regression/tests/bitvars.c: corrected the "fix"
2992
2993 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2994
2995         * support/regression/tests/bitvars.c,
2996         * support/regression/tests/bitwise.c,
2997         * support/regression/tests/rotate.c: "fixed" problems on Alpha
2998
2999 2005-02-10 Raphael Neider <rneider AT web.de>
3000
3001         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3002           different size for Alpha
3003         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3004
3005 2005-02-09 Raphael Neider <rneider AT web.de>
3006
3007         * src/SDCC.lex(doPragma) : save and restore warning options as well
3008           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3009         * have #pragma less_pedantic set the errorlevel to WARNING
3010           (fixes #1117001)
3011         * (cloneOptimize) : fixed wrong malloc's size
3012         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3013           facilitate correct handling of #pragma (save|restore)
3014
3015 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3016
3017         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3018
3019 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3020
3021         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3022
3023 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3024
3025         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3026
3027 2005-02-02 Raphael Neider <rneider AT web.de>
3028
3029         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3030         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3031         * (pic16_storeForReturn): fixed to allow returning function pointers
3032         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3033         * device/include/pic16/{stddef.h,stdbool.h}: added
3034
3035 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3036
3037         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3038
3039 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3040
3041         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3042         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3043          appeared to be required
3044
3045 2005-01-31 Borut Razem <borut.razem AT siol.net>
3046
3047         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3048           include/mcs51 and include/z80 directories to the package
3049
3050 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3051
3052         * src/hc08/gen.c (genFunction): fixed bug #1112752
3053
3054 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3055
3056         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3057
3058 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3059
3060         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3061
3062 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3063
3064         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3065
3066 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3067
3068         * device/include/c8051fxxx.h: removed these 6 files
3069         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3070
3071 2005-01-26 Raphael Neider <rneider AT web.de>
3072
3073         * src/pic16/gen.c (genAssign): fixed assignment from longs
3074           in codespace (were cut to three bytes)
3075         * (genDummyRead): implemented (except for CODESPACE...),
3076           fixed bug #1108575
3077         * src/pic16/glue.c (emitStatistics): beautified
3078         * device/lib/pic16/libm/Makefile: added include path
3079
3080 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3081
3082         * src/z80/gen.c (aopPut): fixed bug #1103902
3083
3084 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3085
3086         * device/lib/expf.c: fixed bug #1095792
3087
3088 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3089
3090         * device/lib/pic16/libm: added Math library sources
3091
3092 2005-01-24 Raphael Neider <rneider AT web.de>
3093
3094         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3095           to enable upcast to pCodeOpReg2 (there is no type tag to
3096           differenciate the two and pic16_popGet2p cast into PCOR2)
3097         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3098           (sizeof(sectNames) changed to sizeof(sectName))
3099           Both patches fix segfaults under MinGW.
3100
3101 2005-01-23 Raphael Neider <rneider AT web.de>
3102
3103         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3104           Safe_[mc]?alloc()'ed variables
3105         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3106           of (byte sized) temporaries (assign them to WREG for now)
3107         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3108           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3109           this might fix SIGSEGVs on MinGW...
3110         * src/SDCCopt.c (killDeadCode): restored original behaviour
3111           (volatile operands might get thrown away though)
3112
3113 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3114
3115         * src/pic16/gen.c: fixed bug #1106975,
3116         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3117         pointer update, INTCON is saved, global interrupts are disabled and
3118         restored after updateing TOS.
3119         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3120         * added function attribute 'shadowregs' to take advantage of shadow
3121         registers,
3122         * added function attribute 'wparam' as an alternative to the wparam
3123         pragma,
3124         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3125         user declares a non-ISR function as 'shadowregs',
3126         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3127
3128 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3129
3130         * .version: bumped version number to 2.4.8
3131         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3132         pic16 port,
3133         * device/lib/pic16/libio/i2c/: I2C module support library,
3134         * device/include/pic16/i2c.h: I2C support library header,
3135         * device/lib/pic16/libc/stdio/: standard IO support sources,
3136         * (printf_small.c): printf_small() source, supports float print,
3137         * (printf_tiny.c): printf_tiny() source, does not support floats,
3138         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3139         enable global optimizations for entire library source, other
3140         Makefiles in the source tree are also modified to reflect this,
3141         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3142         function,
3143         * doc/sdccman.lyx: updated to reflect new changes,
3144         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3145         sym->onStack if-case,
3146         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3147         sbit, idata, _idata, xdata, _xdata,
3148         * added pragma library, to link an external library, (see doc),
3149         * removed command line options, --pomit-config-words, --pomit-ivt,
3150         --pleave-reset-vector,
3151         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3152         when calling assembler to reflect memory model used, also define
3153         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3154         reflect stack model used,
3155         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3156         on stack return NULL,
3157
3158 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3159
3160         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3161           of the operands is volatile. Fixes #1020220
3162
3163 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3164
3165         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3166         * (OptimizeRegUsage): make sure that there is really no other flow where
3167           the first pCode is used
3168
3169 2005-01-22 Raphael Neider <rneider AT web.de>
3170
3171         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3172           to fix #1106967 (pCode->seq are not set up correctly)
3173
3174 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3175
3176         * src/SDCCglue.c (glue): make sure code area is declared before the
3177         static initialization area.
3178
3179 2005-01-21 Raphael Neider <rneider AT web.de>
3180
3181         * device/lib/Makefile.in: fixed test for pic16 install dir
3182         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3183           optimizations
3184         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3185           added --optimize-goto compiler switch and pragma wparam documentation
3186         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3187         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3188           and PRODH closing bug #1071770 (peephole optimizer)
3189
3190 2005-01-19 Raphael Neider <rneider AT web.de>
3191
3192         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3193           cmdLine buffers (used when calling sdcpp...) are large enough
3194           (MAX_PATH=256 truncates arguments leading to system halts when
3195           used in MinGW...)
3196         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3197         * (genUminus): rewritten to for efficiency
3198         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3199           used uninitialized in some cases)
3200         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3201           copy the third byte from the int -- now assumes 0x80 (data memory)
3202         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3203           operands (genAddLit expects the iCode's operands to swapped as
3204           well), fixed leftover bytes (crashed for short left operands)
3205         * (pic16_genMinusDec): performance improvements, removed false
3206           PIC14 emitSKPNCs
3207         * (pic16_genMinus): fixed to cope with differently sized operands
3208         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3209           for --obanksel > 1
3210         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3211         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3212           new banksel optimization
3213         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3214           analysis for temporary registers (segfaults...)
3215         * src/pic16/peeph.def: added rule
3216
3217 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3218
3219         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3220         which converts a float number to its ASCII representation
3221         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3222         functions to convert the fractional and integer part of a float to ASCII,
3223         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3224         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3225         ram
3226         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3227         _STATMEM macros,
3228         * device/include/pic16/adc.h: added GPL info,
3229         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3230         a pCodeOp as tested operand,
3231         * (genNearPointerGet): optimized bit testing, does not use
3232         intermediate register for bit value, test directly instead with
3233         BTFSS, BTFSC, works only for single bits,
3234         * (genpic16Code): dump the name of the iCode in the asm,
3235         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3236         renamed to pic16_decodeOp,
3237         * (serialRegAssign): do not allocate a temporary register for iCode
3238         sequences that test a single bit for 1/0
3239
3240 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3241
3242         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3243         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3244         access stack and frame pointers. They are initially assigned to
3245         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3246         accessing SFRs. Updated all occurences of modification of stack or
3247         frame pointer in gen.c and pcode.c,
3248         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3249         assigning of a literal value to pointers,
3250         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3251         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3252         selected
3253
3254 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3255
3256         * doc/sdccman.lyx: update documentation about stack pragma, added
3257         some info for stack memory models
3258
3259 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3260
3261         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3262
3263 2005-01-08 Raphael Neider <rneider AT web.de>
3264
3265         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3266           udata sections to fix bug #1097823
3267
3268 2005-01-05 Raphael Neider <rneider AT web.de>
3269
3270         * src/pic16/gen.c (genGenericShift): added handling of differently
3271           sized left operand and result
3272
3273 2005-01-04 Raphael Neider <rneider AT web.de>
3274
3275         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3276         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3277           to hold the condition bit)
3278         * added new version of genCmp (old code available via #define)
3279         * added new version of genShiftLeft/genShiftRight in a generic
3280           way, now supports shifting by negative values
3281         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3282           shiftCount (expected by genGenericShift)
3283         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3284         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3285           dump
3286         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3287           is an invalid literal too...)
3288
3289 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3290
3291         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3292         from Raphael Neider,
3293         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3294         for 8-bit literals. This fixes some literal operands which are sign
3295         extended to 16-bits ints when instruction needs only 8-bits.
3296
3297 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3298
3299         * device/lib/logf.c: added mcs51 assembly version
3300         * device/lib/expf.c: added mcs51 assembly version
3301         * device/lib/_logexpf.c: new shared asm code for expf and logf
3302         * device/include/math.h: add defines for assembly math library
3303         * device/lib/Makefile.in: build new _logexpf.c
3304         * device/lib/libfloat.lib: use new _logexpf.c
3305
3306 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3307
3308         * src/pic/device.c
3309         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3310           device types which have less than 0x7f registers.
3311
3312 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3313
3314         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3315
3316 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3317
3318         * device/lib/printf_fast.c: only build on supported arch.
3319         * device/lib/printf_tiny.c: only build on supported arch.
3320         * device/lib/printf_fast_f.c: only build if asm float lib
3321         * device/lib/_fsget1arg.c: only build if asm float lib
3322         * device/lib/_fsget2args.c: only build if asm float lib
3323         * device/lib/_fsnormalize.c: only build if asm float lib
3324         * device/lib/_fsreturnval.c: only build if asm float lib
3325         * device/lib/_fsrshift.c: only build if asm float lib
3326         * device/lib/_fsswapargs.c: only build if asm float lib
3327         * device/include/stdio.h: don't provide print_fast,
3328           print_fast_f, print_tiny prototypes if --xstack used
3329
3330 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3331
3332         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3333         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3334           to the SOURCES
3335
3336 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3337
3338         * device/lib/printf_fast_f.c: same as printf_fast, but
3339           with floating point enabled
3340         * device/lib/printf_fast.c: minor tweaks
3341         * device/include/stdio.h: add printf_fast_f
3342
3343 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3344
3345         * src/SDCCmain.c: make --float-reent default for mcs51
3346         * device/lib/_fsadd.c: added mcs51 assembly version
3347         * device/lib/_fssub.c: added mcs51 assembly version
3348         * device/lib/_fsmul.c: added mcs51 assembly version
3349         * device/lib/_fsdiv.c: added mcs51 assembly version
3350         * device/lib/_fseq.c: added mcs51 assembly version
3351         * device/lib/_fsneq.c: added mcs51 assembly version
3352         * device/lib/_fsgt.c: added mcs51 assembly version
3353         * device/lib/_fslt.c: added mcs51 assembly version
3354         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3355         * device/lib/Makefile.in: add _fscmp to build
3356         * device/lib/libfloat.lib: add _fscmp to build
3357
3358 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3359
3360         * device/lib/_fs2slong.c: added mcs51 assembly version
3361         * device/lib/_fs2sint.c: added mcs51 assembly version
3362         * device/lib/_fs2schar.c: added mcs51 assembly version
3363         * device/lib/_fs2ulong.c: added mcs51 assembly version
3364         * device/lib/_fs2uint.c: added mcs51 assembly version
3365         * device/lib/_fs2uchar.c: added mcs51 assembly version
3366         * device/lib/_slong2fs.c: added mcs51 assembly version
3367         * device/lib/_sint2fs.c: added mcs51 assembly version
3368         * device/lib/_schar2fs.c: added mcs51 assembly version
3369         * device/lib/_ulong2fs.c: added mcs51 assembly version
3370         * device/lib/_uint2fs.c: added mcs51 assembly version
3371         * device/lib/_uchar2fs.c: added mcs51 assembly version
3372         * device/include/float.h: added #define to select asm vs c
3373
3374 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3375
3376         * device/lib/printf_fast.c: improvements to float output
3377         * device/include/float.h: add defines for assembly float library
3378         * device/lib/_fsget1arg.c: receive 1 float arg
3379         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3380         * device/lib/_fsnormalize.c: normalize a float
3381         * device/lib/_fsreturnval.c: return float, various helper routines
3382         * device/lib/_fsrshift.c: right shift a float's mantissa
3383         * device/lib/_fsswapargs.c: swap 2 floats
3384         * device/lib/Makefile.in: build these 6 new files for mcs51
3385         * device/lib/libfloat.lib: add these 6 files to the library
3386
3387 2004-12-26 Borut Razem <borut.razem AT siol.net>
3388
3389         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3390           built by gcc 3.4.2
3391
3392 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3393
3394         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3395           and fully reentrant and register bank neutral.
3396         * device/lib/printf_fast.c: added float (not enabled by default),
3397           added compact/slower integer (also not enabled by default),
3398           improved size/speed of fast integer code, other minor changes
3399         * device/include/stdio.h, device/lib/Makefile.in,
3400           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3401
3402 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3403
3404         * src/pic16/pcode.c: declaring variables other than at the start of a
3405           block is not supported in C by VC6.
3406
3407 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3408
3409         * applied a previous patch from Raphael Neider that wasn't included
3410         in the previous commits, which fixes infinite loops within jumptable
3411         improvements,
3412         * made some fixes that previous patches introduced
3413
3414 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3415
3416         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3417         that fixes an issue with AOP_PCODE asmop's offset,
3418         * (pic16_popCopyReg): update instance field too,
3419         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3420         function of pic port,
3421         * (genCmp, genAnd, genAssign),
3422         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3423
3424 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3425
3426         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3427         variables initial values to idata section,
3428         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3429         variables in some functions. This utilizes parmBytes field of iCode
3430         structure to hold the offset of the variable in stack. (might be
3431         able to use the stack field too?)
3432         * applied patch from Raphael Neider # ### , # ###
3433         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3434         variable initial values in idata section,
3435         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3436         for static variables with initial value
3437         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3438         applied fix in while loop from Raphael Neider.
3439
3440 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3441
3442         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3443         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3444         * src/ds390/ralloc.c (serialRegAssign): spill bits
3445         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3446         * support/Util/SDCCerr.c,
3447         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3448         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3449         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3450
3451 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3452
3453         * device/include/sdcc-lib.h: inserted LGPL, added includes
3454           asm/ds390/features.h and asm/mcs51/features.h
3455         * device/include/asm/default/features.h,
3456         * device/include/asm/gbz80/features.h,
3457         * device/include/asm/z80/features.h: added empty _AUTOMEM
3458           and _STATMEM
3459         * device/include/asm/ds390/features.h,
3460         * device/include/asm/mcs51/features.h: added files with defines for
3461           _AUTOMEM and _STATMEM indicating automatic and static storage class
3462         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3463         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3464         * src/SDCCicode.c (geniCodeCast),
3465         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3466         * src/SDCCloop.c (loopInduction): removed unused variable lr
3467         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3468           to convertToFcall to include char modulo (RFE 1065037), added check
3469           if left operand is unsigned and use abs of literal value
3470         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3471           as it doesn't work after conversion from peephole.def to peephole.rul
3472         * src/mcs51/gen.c (toBoolean): added check for size,
3473           (genModOneByte): optimized code for signed char modulo a literal
3474           power of 2 (thanks to Hubert Sack),
3475           (genRRC): removed unnecessary "clr c",
3476           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3477         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3478           jump optimization,
3479           swapped rules 256.c and 256.d,
3480           extended 256.d by using new multiple checks (thanks Erik),
3481           added rules 256.e and 256.f,
3482           updated rule 261.a and 261.b to new generated code
3483         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3484
3485 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3486
3487         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3488           induction related bugs, including first part of bug #1074377
3489
3490 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3491
3492         * applied patch from bug-report #1076292,
3493         * applied patches for genAnd and Goto-optimizations for Raphael
3494         Neider,
3495         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3496         dump a less iCode information,
3497         * src/pic16/device.h (pic16_options_t): added field debgen,
3498         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3499         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3500         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3501         puclic,
3502         * (various functions): added macros FENTRY and FENTRY2 to functions,
3503         to emit function prologue,
3504         * (various functions): fixed indentation,
3505         * (genNearPointerGet): fixed loading of FSR0,
3506         * (genPackBits): applied patch from Raphael Neider to fix updating
3507         of FSR0 and touching only the modified bits,
3508         * src/pic16/genarith.c (various functions): added macros FENTRY to
3509         emit function prologue in comments,
3510         * src/pic16/pcode.h: added functions debugf2, debugf3,
3511         * src/pic16/ralloc.c: partial fix for packForPush caused
3512         segmentation fault,
3513
3514 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3515
3516         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3517           <stsp AT users.sourceforge.net> with reversed byte order
3518         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3519
3520 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3521
3522         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3523           bug #1074377
3524         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3525         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3526
3527 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3528
3529         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3530
3531 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3532
3533         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3534           conditions,
3535           (setFromConditionArgs): friendly operand parser for peephole rules,
3536           (operandBaseName, operandsNotRelated): new peephole condition
3537           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3538           architecture specific register naming into account, handles n-way
3539           comparisons, and supports quoted literals
3540         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3541
3542 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3543
3544         * src/mcs51/peeph.def: fixed bug #1076940
3545
3546 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3547
3548         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3549
3550 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3551
3552         Adding support for replacing ljmps with sjmps in jumptables
3553         generated for switch statements. For now you need to set the
3554         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3555         Now 4 algorithms for mcs51 jumptable generation are used:
3556         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3557         addresses loaded pc-relative for up to 112 cases and stack-pushing
3558         target addresses loaded with offset from dptr for up to 256 cases.
3559
3560         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3561         * src/mcs51/main.c: adapted constants for switch table generation
3562         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3563
3564 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3565
3566         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3567         * support/regression/tests/bug1057979.c: added test for bug 1073386
3568
3569 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3570
3571         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3572         compilers
3573
3574 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3575
3576         * src/pic16/device.h,
3577         * src/pic16/genarith.c,
3578         * src/pic16/glue.c,
3579         * src/pic16/main.c,
3580         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3581
3582 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3583
3584         Large cummulative patch for pic16 port.
3585         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3586         to call when a stack overflow occurs,
3587         * (malloc.h): added CVS Id tag,
3588         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3589         variable,
3590         * added libc directory. The current version of LibC contains string
3591         functions, ctype functions and macros and some functions of the
3592         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3593         be extensively tested in the future. Standard disclaimer here.
3594         Library is not automatically build yet. But one can build it by
3595         invoking 'make' inside the libc directory.
3596         * added ADC library under libio. Preliminary version yet.
3597
3598         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3599         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3600         aopForRemat() now and not by pic16_aopOp(),
3601         * (pic16_popGetTempReg): removed warning messgae when allocating
3602         temporary registers, its a buggy feature and will be removed,
3603         * (pic16_popGet): set register instance field in AOP_CRY,
3604         * (pic16_outBitC): fixed for results in size greater than 1,
3605         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3606         * (pic16_storeForReturn): optimized return of 0,
3607         * (genCmp): experimental code for new genCmp which uses PIC18's
3608         special compare&skip instructions. Initial tests fail some times
3609         with variables grater than 1 byte in size, so new code is disabled,
3610         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3611         a single bit,
3612         * (genCast): began a fix to optimize the casting of a bit to another
3613         bit, now assigning a bitfield to another bitfield will fail, sorry,
3614         * src/pic16/main.c: disabled the use of lr-support feature,
3615         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3616         * added some function prototypes, added function _debugf prototype,
3617         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3618         bits with offset (case PO_GPR_BIT),
3619         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3620         command line,
3621         * (isBankInstruction): modified to return 0 for no banking instruction,
3622         and 1 for banking instruction,
3623         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3624         caused stop processing pCodes after a inline assembly block,
3625         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3626         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3627         registers when it shouldn't,
3628         * src/pic16/ralloc.c (allocReg): add preliminary support for
3629         supporting a limited set of temporary registers,
3630
3631 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3632
3633         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3634           genDataPointerSet): ensure assignments always copy in MSB to LSB
3635           order,
3636           (loadRegFromAop): recognize CLRH optimization,
3637           (genFunction): optimize RECEIVE iCodes in reentrant functions
3638
3639 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3640
3641         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3642           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3643           selected.
3644         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3645         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3646           contiguous with data
3647
3648 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3649
3650         * device/lib/_gptrget.c (_gptrget),
3651         * device/lib/_gptrgetc.c (_gptrgetc),
3652         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3653           instead of sjmp to ret
3654         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3655           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3656
3657 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3658
3659         * .version: bumped version to 2.4.7
3660         * device/lib/_gptrget.c (_gptrget): is now _naked
3661         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3662         * device/lib/_gptrput.c (_gptrput): is now _naked
3663         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3664           (createFunction): fixed xstack
3665         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3666         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3667           or bit either,
3668           (geniCodeCritical): store original interrupt state in an iTemp bit
3669           var unless stack-auto
3670         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3671         * src/SDCCmain.c (setIncludePath): added include/target to search path
3672         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3673         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3674           prototype,
3675           (processFuncArgs): put bit vars in bit area
3676         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3677           unsaveRBank): fixed xstack,
3678           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3679           (genFunction, genEndFunction): fixed xstack,
3680           (genAssign): optimization don't walk backwards through mem
3681         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3682         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3683         * support/regression/Makefile: also make library (for stack-auto) when
3684           making "all" and added "test-mcs51-xstack-auto"
3685         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3686         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3687         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3688         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3689         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3690           make-library by MAKE_LIBRARY
3691         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3692           regression tests for xstack
3693         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3694         * support/regression/tests/critical.c: test for critical on mcs51
3695
3696 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3697
3698         * support/regression/ports/ucz80/spec.mk: use include and lib files from
3699           built version of sdcc instead of installed version
3700
3701 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3702
3703         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3704         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3705           vprintf.c now
3706         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3707         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3708           WARNING: remove device/lib/build/z80/printf.o by hand when
3709           updating from previous build!
3710         * device/lib/z80/printf.c: updated comment
3711         * support/regression/tests/bug1057979.c: test all ports now
3712         * support/regression/tests/bug1065458.c: file added
3713
3714 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3715
3716         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3717           *_start and *_end symbols for static functions
3718
3719 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3720
3721         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3722           and search crt0.o in all library paths,
3723           (setIncludePath): proper handling of --nostdinc,
3724           (setLibPath): proper handling of --nostdlib
3725         * support/regression/Makefile,
3726         * support/regression/ports/ds390/spec.mk,
3727         * support/regression/ports/gbz80/spec.mk,
3728         * support/regression/ports/hc08/spec.mk,
3729         * support/regression/ports/mcs51/spec.mk,
3730         * support/regression/ports/mcs51-large/spec.mk,
3731         * support/regression/ports/mcs51-stack-auto/spec.mk,
3732         * support/regression/ports/z80/spec.mk: use include and lib files from
3733           built version of sdcc instead of installed version
3734         * doc/sdccman.lyx: fixed typo in --nostdinc
3735
3736 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3737
3738         * src/pic/pcode.c,
3739         * src/pic/device.c,
3740         * src/pic/ralloc.c,
3741         * src/pic/gen.c : added support to generate code for struct bit fields.
3742
3743 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3744
3745         * as/xa51/xa_version.h,
3746         * device/include/errno.h,
3747         * device/include/regc515c.h,
3748         * device/lib/_itoa.c,
3749         * device/lib/_ltoa.c,
3750         * device/lib/ser_ir_cts_rts.c,
3751         * sim/ucsim/xa.src/glob.cc,
3752         * sim/ucsim/xa.src/inst_gen.cc,
3753         * sim/ucsim/xa.src/xa_bit.cc,
3754         * sim/ucsim/xa.src/xa_sfr.cc,
3755         * sim/ucsim/z80.src/inst_dd.cc,
3756         * sim/ucsim/z80.src/inst_fdcb.cc,
3757         * support/scripts/keil2sdcc.pl,
3758         * src/pic16/pic16.dsp,
3759         * src/pic16/pic16a.dsp: corrected cvs line endings
3760         * device/lib/printf_large.c: fixed bug 1057979
3761         * src/pic16/gen.c: fixed non-C standard code
3762         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3763         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3764         * support/regression/ports/mcs51/support.c: reload T1 asap
3765         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3766           pdata use and clear idata startup behaviour
3767         * support/regression/tests/bug1057979.c: added
3768
3769 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3770
3771         * device/examples/ds390/ow390/ad26.h,
3772         * device/examples/ds390/ow390/cnt1d.h,
3773         * device/examples/ds390/ow390/crcutil.c,
3774         * device/examples/ds390/ow390/ownet.h,
3775         * device/examples/ds390/ow390/owsesu.c,
3776         * device/examples/ds390/ow390/swt12.h,
3777         * device/examples/ds390/ow390/swtoper.c,
3778         * device/examples/ds390/ow390/temp10.h,
3779         * device/examples/ds390/ow390/thermodl.c,
3780         * device/examples/ds390/tinitalk/tinitalk.dsp,
3781         * device/examples/ds390/tinitalk/tinitalk.dsw,
3782         * device/examples/mcs51/clock/hw.h,
3783         * device/examples/mcs51/simple2/go.bat,
3784         * device/examples/serialcomm/windows/serial.h,
3785         * device/examples/xa51/dummy.c,
3786         * device/examples/xa51/hello.c,
3787         * device/include/80c51xa.h,
3788         * device/include/at89x051.h: corrected cvs line endings
3789
3790 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3791
3792         * src/pic16/main.c (options): added command line --gstack, to trace
3793         stack over/under flows,
3794         * added pragma 'wparam' to allow passing first byte of function
3795         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3796         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3797         call to __gstack_test function and sets up the symbol as extern,
3798         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3799         * popaop): added call to pic16_testStackOverflow,
3800         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3801         wparamList list,
3802         * (genCall, genPcall): now all parameters are passed via stack
3803         except in functions that are pass to wparam pragma in which WREG is
3804         used too,
3805         * (genPcall): REENTRANT flag is checked to see if variable prototype
3806         contains reentrant keyword, don't call a non-reentrant function, via
3807         a reentrant function pointer or vice versa, functions are never
3808         passed via WREG,
3809         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3810         D.Winkler,
3811         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3812         SIGSEGV when accessing a NULL register stucture,
3813         * (pic16_printGPointerType): modified to handle UPPER modifier for
3814         function initializers, changed prototype of function to simpler one,
3815         * (pic16_printIvalFuncPtr): check to see if function is already
3816         added in externs list,
3817         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3818         optimized a move from W to SFR with a move to the same register
3819         later after a CALL,
3820         * device/lib/pic16/debug: NEW directory, contains debug features
3821         which are enabled when linking with libdebug.lib, currently command
3822         line option --gstack enables stack pointer tracing for over/under
3823         flow, corresponding sources are in debug/gstack
3824
3825 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3826
3827         * doc/sdccman.lyx: updated SDCC version,
3828         * (PIC16 port): update list of command line options,
3829         * src/pic16/device.h (structure pic16_options_t): added field gstack
3830         to enable stack overflow tracing on push/pops,
3831         * src/pic16/device.c (statistics structure): added statistics
3832         structure,
3833         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3834         pic16_dump_int_registers): increase statistics counters for each
3835         * variable which is encountered
3836         * (pic16_dump_usection): emit each .udata variable to its own udata
3837         section,
3838         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3839         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3840         parameters via stack, otherwise use old scheme,
3841         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3842         assembler output file,
3843         * src/pic16/main.c: added command line options --gstack to enable
3844         push/pop tracing for stack overflow,
3845         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3846         instructions): added size of each instruction,
3847         * (pic16_countInstruction): estimate size of instructions in
3848         the_pFile list, inline assembly blocks are not counted,
3849         * (pic16_FixRegisterBanking): trace previous register usage, when
3850         banksel optimizations is greater than 0, don't emit a redudant
3851         banksel directive,
3852
3853 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3854
3855         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3856         * src/pic16/ralloc.c : applied same fix for pic16.
3857         * src/pic/gen.c : tidied it up a little.
3858
3859 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3860
3861         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3862         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3863
3864 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3865
3866         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3867
3868 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3869
3870         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3871         non-reentrant function __modsint in the interrupt function (thus
3872         corrupting math operations during serial I/O)
3873         * device/lib/ser_ir.c: as above, changed buffersize
3874         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3875         256.c,d for zeroing
3876         * doc/Makefile: added option -t for rsync
3877
3878 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3879
3880         * src/SDCCast.h (struct ast),
3881         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3882
3883 2004-10-20 Borut Razem <borut.razem AT siol.net>
3884
3885         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3886         package
3887
3888 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3889
3890         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3891         makefile targets,
3892         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3893         support functions to replace long sequences of MOVFF's from access
3894         bank registers to stack and vice versa,
3895         * src/pic16/device.h: added new field opt_flags, where optimization
3896         flags can be set to enable certain features,
3897         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3898         * pBlock, (genFunction, genEndFunction): surroung loop for
3899         saving/loading used registers in stack with PC_INFO pCodes,
3900         INF_LREGS. Code in between can then be optimized by pCode optimizer
3901         to support function calls,
3902         * (genDataPointerSet): fixed bug which loaded float fields in
3903         structures with corrupt data,
3904         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3905         in a standard way debug info on stderr. Feature used for developing
3906         and debugging only,
3907         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3908         obsolete chunks of code,
3909         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3910         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3911         * pic16/src/pcode.c (pic16_newpCodeInfo,
3912         * (pic16_newpCodeOpLocalRegs),
3913         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3914         feature,
3915         * (pic16_pCodeConstString): printing of the initial value of a
3916         symbol as a comment is inhibited since parsing was already done by
3917         copyStr and output is corrupt,
3918         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3919
3920 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3921
3922         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3923
3924 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3925
3926         * as/mcs51/lkarea.c: removed old K&R style,
3927           (lnksect): changed check on boundary error,
3928           (lnksect2): changed check on boundary error,
3929           (lnksect2): extend XSTK to end of page if size = 1
3930         * as/mcs51/lkmain.c: removed old K&R style,
3931           (Areas51): create l_IRAM symbol
3932         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3933         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3934           model-mcs51-stack-auto, added model-mcs51-xstack-auto
3935         * device/lib/_mullong.c: added version to be compiled with xstack
3936         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3937         * device/lib/mcs51/crtxclear.asm: clear pdata as well
3938         * device/lib/mcs51/crtxstack.asm: fixed comment
3939         * src/SDCCglue.c: maxInterrupts defaults to 0,
3940           (emitMaps): added pdata,
3941           (createInterruptVect): (re)moved default,
3942           (glue): added pdata,
3943           (glue): moved __start__xstack to XSTK with default size 1
3944         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3945           and options.float_rent when options.stackAuto is set,
3946           (linkEdit): only write XDATA_NAME if provided on command line
3947         * src/SDCCmem.h,
3948         * src/SDCCmem.c: added pdata
3949         * src/port.h: added pdata_name to PORT
3950         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3951           (saveRegisters, unsaveRegisters): removed usage of B,
3952           (genMinus): fixed accumulator clash,
3953           (genJumpTab): added comment, this needs another look
3954         * src/mcs51/gen.c: added check for "B in use" paranoia,
3955           added pushB() and popB()
3956         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3957           chance
3958         * src/avr/main.c,
3959         * src/ds390/main.c,
3960         * src/hc08/main.c,
3961         * src/mcs51/main.c,
3962         * src/pic/main.c,
3963         * src/pic16/main.c,
3964         * src/xa51/main.c,
3965         * src/z80/main.c: (reset_regparms) made void parameter explicit and
3966           added PSEG (PAG,XDATA) or NULL to port specifier
3967         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3968         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3969           (_mcs51_genInitStartup): removed __start__xstack equ,
3970           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3971         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3972         * src/z80/gen.c (_rleAppend): fixed warnings
3973         * support/regression/tests/zeropad.c: added pdata test
3974         * .version: bumped to 2.4.6
3975
3976 2004-10-17 Borut Razem <borut.razem AT siol.net>
3977
3978         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3979         as a part of nightly build
3980
3981 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3982
3983         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3984         WREG holds the first byte function parameters,
3985         * (aopForSym): take special case for symbols which are in FARSPACE
3986         but in CODESPACE too,
3987         * (assignResultValue): modified to take into account _G.useWreg,
3988         * (genCall): don't use wreg for parameter passing when function is
3989         declared as reentrant, too, added optimization INCF to stack
3990         pointer when stack parameter count is 1,
3991         * (genFunction, genEndFunction): refurnished and fixed to not using
3992         wreg for passing parameters when function has varargs or is
3993         reentrant, fixed bug with symbol name compare for generating
3994         functions in absolute address,
3995         * (pic16_storeForReturn): refurnished,
3996         * (genCmp): began writing a new version of the function, not ready
3997         yet, therefore it is disabled,
3998         * (genAssign): do not read code memory when assigning a function to
3999         a pointer function,
4000         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4001         array of characters, not pointer,
4002         * (pic16initialComments): in debug mode emit an .ident directive for
4003         the assembler,
4004         * (_process_pragma): emit a new warning type (internal to pic16)
4005         when setting stack to default length, emit a similar warning when
4006         placing a function at absolute address and address is not word aligned
4007         * (_pic16_parseOptions): added 'return TRUE' statement,
4008         * (_pic16_linkEdit): if compiling a source, then add the source's
4009         file object, first in the list of objects to link,
4010
4011 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4012
4013         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4014         * src/pic/main.c : removed VC warning.
4015         * src/pic/gen.c : changed comment.
4016
4017 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4018
4019         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4020         reference to a deprecated symbol _GPTRREG was causing failure to
4021         link. Thanks G. M. Gallant for the info.
4022
4023 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4024
4025         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4026         comments for Bugs item #954788.
4027
4028 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4029
4030         * src/pic16/device.c (pic16_dump_gsection,
4031         * pic16_groupRegistersInSection): handle symbols declared to be in
4032         access bank differently,
4033         * src/pic16/gen.c (struct _G): added field resDirect,
4034         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4035         send values read from stack directly to result and don't allocate
4036         temporary values,
4037         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4038         same registers,
4039         * (pic16_sameRegsOfs): NEW,
4040         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4041         free because they were not allocated from temporary pool,
4042         * pic16_popRegFromString): workaround to fix a problem with
4043         allocating variables twice or never,
4044         * (genGenPointerGet): using PRODL instead of FSR0H,
4045         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4046         instead of FSR0H,
4047         * (genAssign): take advantage of the _G.resDirect flag,
4048         * (genCast): around line 11844, use mov2f instead of directly
4049         MOVFF'ing between operands to account for literal values,
4050         * src/pic16/genutils.c: some new debug functions for gpsim have been
4051         added,
4052         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4053         float with integer part only,
4054         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4055         place variables in access bank
4056         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4057         updated sources to reflect recent changes in gen.c
4058
4059 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4060
4061         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4062         sources that searched for headers in installation path, now the
4063         device/include/pic16 is used,
4064         * src/pic16/glue.c (pic16glue),
4065         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4066         .line directives if not in debug mode, this suppresses assembler's
4067         warnings for ignored directives
4068
4069 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4070
4071         * src/port.h: made reset_regparms prototype void parameter explicit.
4072         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4073         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4074         * doc/sdccman.lyx: documented warning disabling and how to use
4075           printf_large to make it print floats.
4076         * device/include/stdbool.h: NEW
4077         * device/lib/_atof.c,
4078         * device/lib/_divuint.c,
4079         * device/lib/_divulong.c,
4080         * device/lib/expf.c,
4081         * device/lib/printf_large.c,
4082         * device/lib/sincosf.c,
4083         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4084         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4085           a completely reentrant lib.
4086
4087 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4088
4089         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4090         * device/include/pic16/stdio.h: fixed bug with colon
4091
4092 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4093
4094         * device/include/pic16/stdio.h,
4095         * device/include/pic16/stdlib.h,
4096         * device/include/pic16/math.h: NEW
4097         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4098         declared as _naked to reduce overhead
4099         * device/lib/Makefile.in (target port-specific-objects-pic16):
4100         changed * to *.* so to ignore the CVS directory,
4101         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4102         stacked variables back in stack,
4103         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4104         corruption
4105
4106 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4107
4108         * .version: bumped version number to 2.4.5
4109         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4110         * support/Util/SDCCerr.c (messages structure): added entry for
4111         W_POSSBUG2
4112
4113         Large cumulative patch for pic16 port and libraries.
4114         * device/include/pic16/sdcc-lib.h,
4115         * device/include/pic16/stdarg.h,
4116         * device/include/asm/pic16/features.h,
4117         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4118         * device/include/pic16/float.h: changes reentrant keyword with
4119         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4120         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4121         updated target build-libraries to include objects from gptr,
4122         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4123         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4124         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4125         all function headings,
4126         * src/SDCCmain.c: added global parameter userIncDirsSet,
4127         * (parseCmdLine): when option -I is encountered add directory to
4128         userIncDirsSet too,
4129         * src/version.awk: added space between control and long,
4130         * src/pic16/NOTES: added some notes for the port,
4131         * src/pic16/gen.c: added prototype for mov2fp function,
4132         * (fReturnpic16[]): properly named return value registers,
4133         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4134         * (aopForSym): added code to handle symbols with onStack flag set,
4135         symbols onStack are allocated PTRSIZE bytes,
4136         * (aopFreeAsmop): handles special case where asmops are stack objects,
4137         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4138         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4139         added argument lock to trace flaws in allocating temporary registers
4140         when developing port,
4141         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4142         * (pic16_popRegFromString): reenabled allocating a direct register
4143         from string,
4144         * (assignResultValue): various beautifications,
4145         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4146         referenced function argument,
4147         * (genIpush): reenabled to allow stacked arguments, handles only
4148         ic->parmPush iCodes,
4149         * (genCall, genPcall): major changes to allow for variable argument
4150         functions, fixed a bug with falsely restoring stack pointer after
4151         returning from call,
4152         * (genFunction): pending code for critical function,
4153         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4154         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4155         * (genNearPointerGet): fixed bug with indirect reading, was always
4156         reading from INDF0
4157         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4158         pointers,
4159         * (genAddrOf): rewrote code to take address of a stacked function parameter
4160         * (genCast): fixed casting to generic pointer type,
4161         * src/pic16/gen.h: added AOP_STA,
4162         * (struct asmop): added field stk,
4163         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4164         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4165         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4166         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4167         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4168         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4169         generic pointers,
4170         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4171         and library paths,
4172         * (pic16_port structure): generic pointer size is set to 3,
4173         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4174         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4175         compiler warning,
4176         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4177         operand is an iTemp,
4178
4179 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4180
4181         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4182         * debugger/mcs51/simi.c: addapt new syntax of s51
4183
4184 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4185
4186         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4187         * src/pic16/pcode.c: commented out some calls to free() in order to
4188         fix bug #989576,
4189
4190 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4191
4192         * src/SDCCicode.h,
4193         * src/SDCCicode.c (isiCodeInFunctionCall),
4194         * src/avr/ralloc.c (selectSpil),
4195         * src/pic/ralloc.c (selectSpil),
4196         * src/pic16/ralloc.c (selectSpil),
4197         * src/ds390/ralloc.c (selectSpil),
4198         * src/hc08/ralloc.c (selectSpil),
4199         * src/xa51/ralloc.c (selectSpil),
4200         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4201         stack in the middle of a function call sequence (fixes bug #1020268)
4202         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4203         costs associated with the minimum switch case.
4204
4205 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4206
4207         * src/SDCC.lex: fixed bug #1030549
4208
4209 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4210
4211         * src/SDCCcse.h (struct cseDef),
4212         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4213         over a function call if the CSE is derived from a symbol whose
4214         address has been taken (fixes bug #1029883)
4215         * support/regression/tests/bug-1029883: a new regression test for
4216         this bug
4217
4218 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4219
4220         * src/hc08/gen.c (emitinline): fixed bug #1029778
4221         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4222         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4223         and starts toward RFE #905167)
4224
4225 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4226
4227         * src/pic16/gen.c (mov2f): New function to move an operand to
4228         another without considering if it is a literal or a register,
4229         * (pic16_sameRegs): don't check if they are both AOP_REG,
4230         * (AccRsh): removed andmask=0 lines,
4231         * (genLeftShift): duplicated to be improved in future versions,
4232         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4233         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4234         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4235         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4236         * (insertBankSwitch): fixed inserting banksel directives algorithm
4237         for instructions that follow a skip instruction, this fixes a report
4238         for broken subtraction code generation,
4239         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4240         iCode is a left op, just in case result and right share the same
4241         registers
4242
4243 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4244
4245         * src/hc08/main.c,
4246         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4247         preservation of HX
4248         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4249         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4250         on 2004-09-12; it was buggy
4251
4252 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4253
4254         * src/SDCCsymt.h: removed RESULT_CHECK
4255         * src/SDCCast.c,
4256         * src/SDCCglue.c,
4257         * src/SDCCval.c,
4258         * src/pic/glue.c,
4259         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4260
4261 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4262
4263         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4264         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4265         configuration values no more rejected by compiler, they are assigned
4266         to configuration registers with a warning message instead,
4267         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4268         the for-loop so last conf register is emitted too,
4269         * (_pic16_initPaths): link library libsdcc.lib by default,
4270         * (_hasNativeMulFor): modified test for multiplication according to
4271         Raphael Neider's remarks. Integer multiplication is also done with
4272         support functions,
4273         * device/include/pic16/pic18fregs.h: corrected type error in while
4274         testing and including 18f6720 header file
4275
4276 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4277
4278         * src/pic16/device.h (pic16_options): removed field use_crt,
4279         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4280         until an optimization to handle single bits is added,
4281         * (pic16_loadFSR0): moved before genUnpackBits,
4282         * (genAnd): some white lines removed,
4283         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4284         leave_reset flags in pic16_options when using crt modules,
4285
4286 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4287
4288         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4289           for bugs 898889 & 979599. Also used some safer print instructions.
4290
4291 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4292
4293         * src/pic16/device.h (pic16_options_t): added field use_crt,
4294         crt_name, no_crt,
4295         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4296         catch a probable future bug,
4297         * src/pic16/gen.c: aopIdx function commented out,
4298         * (genAssign): commented out old code which used aopIdx,
4299         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4300         code, added if conditionals to take into account the --use-crt
4301         command line options,
4302         * src/pic16/main.c (pic16_optionsTable): added new command line
4303         options, --use-crt= and --no-crt,
4304         * (_pic16_linkEdit): now the proper crt object is added in the
4305         linker command line except than when --no-crt is specified,
4306         * src/pic16/pcode.c,
4307         * src/pic16/pcode.h: added some structures and functions for a new
4308         optimization scheme to compansate for instruction overhead between
4309         same iCodes, this scheme is currently under development and is not
4310         working in any way,
4311         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4312         to && operator,
4313         * device/lib/pic16/startup/crt0i.c,
4314         * device/lib/pic16/startup/crt0iz.c: added global char variable
4315         __uflags to force the generation of an idata section
4316
4317 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4318
4319         * doc/Makefile,
4320         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4321         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4322
4323 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4324
4325         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4326         Frieder) and clarified the default code optimization mode
4327
4328 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4329
4330         * src/SDCC.lex (doPragma, process_pragma),
4331         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4332         "opt_code_size", and "opt_code_balanced"
4333         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4334         regrouped options by category, added support for category headers
4335         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4336         and "--opt-code-size"
4337         * doc/sdccman.lyx: documented these new options and pragmas
4338         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4339         preference into account
4340
4341 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4342
4343         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4344           geniCodePreDec): Fixed bug 904237 by generating a warning
4345         * src/SDCCerr.h,
4346         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4347
4348 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4349
4350         * src/pic/device.c : When no max ram set validate full memory range.
4351         * src/pic/pcode.c,
4352         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4353
4354 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4355
4356         * device/lib/_gptrget.c,
4357         * device/lib/_gptrput.c: updated comment
4358         * device/lib/calloc.c,
4359         * device/lib/free.c,
4360         * device/lib/malloc.c,
4361         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4362         * src/SDCCcse.c (cseBBlock),
4363         * src/SDCCicode.c (printOperand, geniCodeArray),
4364         * src/SDCCicode.h (struct operand): fixed bug 868103
4365         * support/regression/tests/bug-868103.c: added
4366         * src/SDCCast.c (searchLitOp),
4367         * src/SDCCcse.h (struct cseDef),
4368         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4369         * src/SDCCicode.h (struct operand),
4370         * src/SDCCsymt.h (struct sym_link),
4371         * src/avr/gen.c (hasInc),
4372         * src/ds390/gen.c (hasInc),
4373         * src/hc08/gen.c (genPlusIncr, hasInc),
4374         * src/mcs51/gen.c (hasInc),
4375         * src/pic16/glue.c (pic16_printIvalChar),
4376         * src/pic16/ralloc.c (regWithIdx),
4377         * src/xa51/gen.c (hasInc) : removed warnings
4378         * src/SDCCast.c (createBlock): added comment ???
4379         * src/hc08/ralloc.c: updated comments
4380
4381 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4382
4383         * doc/sdccman.lyx: updated section on switch statements, added
4384         section about semaphore locking
4385         * doc/Makefile: added option -info for latex2html
4386         * device/lib/_gptrget.c,
4387         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4388
4389 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4390
4391         * src/pic/device.h,
4392         * src/pic/device.c,
4393         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4394          maxram is less than 0x100.
4395
4396 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4397
4398         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4399
4400 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4401
4402         * src/port.h,
4403         * src/mcs51/main.c,
4404         * src/ds390/main.c,
4405         * src/z80/main.c,
4406         * src/hc08/main.c,
4407         * src/pic/main.c,
4408         * src/pic16/main.c,
4409         * src/avr/main.c,
4410         * src/xa51/main.c
4411         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4412         a jump table is the best form for a switch statement, including
4413         automatic insertion of missing cases to make the case range
4414         continuous. Developed in collaboration with Frieder Ferlemann.
4415
4416 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4417
4418         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4419         accumulator result if it needs sign extension
4420
4421 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4422
4423         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4424
4425 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4426
4427         * device/lib/gbz80/printf.c,
4428         * device/lib/z80/printf.c: removed define for NULL
4429
4430 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4431
4432         * as/xa51/xa_link.c,
4433         * device/examples/ds390/ow390/ad26.c,
4434         * device/examples/ds390/ow390/cnt1d.c,
4435         * device/examples/ds390/ow390/counter.c,
4436         * device/examples/ds390/ow390/ds2480.h,
4437         * device/examples/ds390/ow390/ds2480ut.c,
4438         * device/examples/ds390/ow390/findtype.c,
4439         * device/examples/ds390/ow390/gethumd.c,
4440         * device/examples/ds390/ow390/owllu.c,
4441         * device/examples/ds390/ow390/ownetu.c,
4442         * device/examples/ds390/ow390/swt12.c,
4443         * device/examples/ds390/ow390/swtloop.c,
4444         * device/examples/ds390/ow390/temp.c,
4445         * device/examples/ds390/ow390/temp10.c,
4446         * device/examples/ds390/ow390/thermo21.c,
4447         * device/examples/ds390/ow390/tinilnk.c,
4448         * device/examples/ds390/ow390/tstfind.c,
4449         * device/examples/serialcomm/windows/serial.cpp,
4450         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4451         * device/include/reg51.h: fixed line endings for cvs
4452
4453 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4454
4455         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4456         packRegsForAccUse, packRegisters): new accumulator register
4457         packing algorithm
4458         * support/regression/ports/hc08/support.c (_putchar): suppress
4459         warning of unused variable
4460         * src/SDCCicode.c: added SWAP entry to codeTable
4461
4462 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4463
4464         * device/lib/sprintf.c: forgot to add this file before previous commit
4465
4466 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4467
4468         * src/pic16/gen.c (genPackBits): added operand right in function
4469         parameters, load result directly if p_type is POINTER (that is
4470         called by genNearPointerSet)
4471         * (genUnPackBits): added operand left in function parameters,
4472         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4473         FSR0 if accessing bitfields,
4474
4475 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4476
4477         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4478           _print_format; updated printf, sprintf, vsprintf
4479         * device/include/asm/default/features.h: corrected comment/define
4480         * device/lib/Makefile.in: added sprintf.c
4481         * device/lib/libsdcc.lib: added sprintf module
4482         * device/lib/printf_large.c,
4483         * device/lib/vprintf.c,
4484         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4485           into these 3 files
4486         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4487         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4488         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4489           hc08 test
4490         * support/regression/tests/zeropad.c: define idata as data for hc08
4491
4492 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4493
4494         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4495         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4496         labels are referenced at least once (even if a reference is not found)
4497         * src/hc08/gen.c (emitcode): set isComment flag for comments
4498         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4499         loads), rules 6a..6b (optimize jumps to return)
4500
4501 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4502
4503         * device/lib/acosf.c (acosf),
4504         * device/lib/asinf.c (asinf),
4505         * device/lib/atanf.c (atanf),
4506         * device/lib/ceilf.c (ceilf),
4507         * device/lib/cosf.c (cosf),
4508         * device/lib/coshf.c (coshf),
4509         * device/lib/cotf.c (cotf),
4510         * device/lib/fabsf.c (fabsf),
4511         * device/lib/floorf.c (floorf),
4512         * device/lib/log10f.c (log10f),
4513         * device/lib/logf.c (logf),
4514         * device/lib/sinf.c (sinf),
4515         * device/lib/sinhf.c (sinhf),
4516         * device/lib/sqrtf.c (sqrtf),
4517         * device/lib/tanf.c (tanf),
4518         * device/lib/tanhf.c (tanhf),
4519         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4520         replaced all instances of "reentrant" in the library functions
4521         defined in math.h with this macro.
4522         * support/regression/tests/float_trans.c: reenabled test for hc08
4523
4524 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4525
4526         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4527         erroneously deleted
4528
4529 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4530
4531         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4532         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4533         multi-byte volatile operands are used
4534         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4535         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4536         initialization to area GSINIT0 so that it would always precede
4537         any static initializers in GSINIT
4538         * support/regression/tests/zeropad.c: fixed idata define for hc08
4539         * support/regression/tests/bug-927659.c,
4540         * support/regression/tests/float_trans.c: disabled tests for hc08
4541         pending missing library routines
4542         * .version: increased version number to 2.4.4 - hc08 port now passes
4543         regression tests
4544
4545
4546 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4547
4548         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4549         * Makefile.common.in,
4550         * as/Makefile,
4551         * as/hc08/Makefile.in,
4552         * as/mcs51/Makefile.in,
4553         * as/z80/Makefile.in,
4554         * debugger/mcs51/Makefile.in,
4555         * device/include/Makefile.in,
4556         * device/lib/Makefile.in,
4557         * doc/Makefile,
4558         * link/Makefile,
4559         * link/z80/Makefile.in,
4560         * packihx/Makefile.in,
4561         * sim/ucsim/main_in.mk,
4562         * sim/ucsim/avr.src/Makefile.in,
4563         * sim/ucsim/doc/Makefile.in,
4564         * sim/ucsim/gui.src/serio.src/Makefile.in,
4565         * sim/ucsim/hc08.src/Makefile.in,
4566         * sim/ucsim/s51.src/Makefile.in,
4567         * sim/ucsim/xa.src/Makefile.in,
4568         * sim/ucsim/z80.src/Makefile.in,
4569         * src/Makefile.in,
4570         * support/cpp2/Makefile.in,
4571         * support/librarian/Makefile,
4572         * support/makebin/Makefile: added DESTDIR to the install path proposed
4573         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4574         * doc/sdccman.lyx: added DESTDIR documentation
4575
4576 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4577
4578         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4579         instruction for interrupt handlers, use fast returns when returning
4580         from high priority interrupts
4581
4582 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4583
4584         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4585         code generation
4586         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4587         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4588         bugs, ported much of Bernhard's code from mcs51
4589         * src/mcs51/gen.c (genSend),
4590         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4591         than one when calling a reentrant function
4592         * device/lib/_mullong.c: defined an alternate struct layout for big
4593         endian ports (hc08)
4594
4595 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4596
4597         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4598         test
4599
4600 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4601
4602         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4603         are sane and complete before asking the port its prefered parameter
4604         passing method (fixes bug #1017633)
4605         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4606         and _ret3
4607
4608 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4609
4610         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4611         problem in bitfields >= 8 bits.
4612
4613 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4614
4615         * src/SDCCsymt.c: undid changes that were not meant to be committed
4616
4617 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4618
4619         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4620
4621 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4622
4623         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4624           copied and wrong bit got inverted
4625
4626 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4627
4628         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4629         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4630         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4631         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4632         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4633         assignments to bitfields at known addresses
4634         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4635         reads from bitfields at known addresses
4636         * src/hc08/ralloc.c (packRegisters),
4637         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4638         genhc08Code): optimize pointer get values used as conditionals
4639         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4640         and branch
4641
4642 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4643
4644         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4645         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4646         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4647         as conditionals
4648
4649 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4650
4651         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4652
4653 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4654
4655         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4656         related problems
4657
4658 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4659
4660         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4661
4662 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4663
4664         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4665         mcs51 port
4666
4667 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4668
4669         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4670
4671 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4672
4673         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4674         cases use more compact code.
4675
4676 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4677
4678         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4679
4680 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4681
4682         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4683
4684 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4685
4686         * src/SDCCsymt.h,
4687         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4688         parameter of changePointer() from symbol* to sym_link*
4689         * src/SDCCast.c (decorateType): call changePointer() for CAST op
4690         * src/SDCCsymt.c (compareType): void* type is castable to other
4691         pointers, but not necesarily an exact match.
4692         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4693         is no longer blindly treated as an exact match.
4694         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4695
4696 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4697
4698         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4699
4700 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4701
4702         * src/pic/gen.c,
4703         * src/pic/pcode.c,
4704         * src/pic/ralloc.h,
4705         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4706
4707 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4708
4709         * src/pic/device.c,
4710         * src/pic/device.h,
4711         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4712
4713 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4714
4715         * src/mcs51/gen.c (emitcode): fixed bug #992819
4716
4717 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4718
4719         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4720           there's no need to make it worse
4721
4722 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4723
4724         * src/mcs51/ralloc.c (deassignLR),
4725         * src/ds390/ralloc.c (deassignLR),
4726         * src/hc08/ralloc.c (deassignLR),
4727         * src/z80/ralloc.c (deassignLR),
4728         * src/pic/ralloc.c (deassignLR),
4729         * src/pic16/ralloc.c (deassignLR),
4730         * src/avr/ralloc.c (deassignLR),
4731         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4732         rlivePoint): fixed another part of bug #971834
4733
4734 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4735
4736         * src/z80/main.c: enabled "critical" keyword
4737         * src/z80/mappings.i,
4738         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4739         functions (fixes bug #979646)
4740         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4741
4742 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4743
4744         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4745           such as c:\mydir.
4746
4747 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4748
4749         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4750           doesn't disable too much optimizations
4751
4752 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4753
4754         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4755
4756 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4757
4758         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4759
4760 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4761
4762         * src/pic/gen.c tidied up tabs
4763         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4764         * src/pic/main.c tidied up tabs
4765         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4766         * src/pic/pcoderegs.c tidied up tabs
4767         * src/pic/ralloc.c tidied up tabs
4768
4769 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4770
4771         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4772         to S_FIXED for pic16 port and when symbol is not in level 0,
4773         allocate for S_REGISTER storage class and pic16 port, too,
4774         * src/pic16/device.h: prototype for checkSym,
4775         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4776         * (pic16_assignConfigWordValue): test the value and the mask to
4777         validate that the value is suitable for the configuration word,
4778         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4779         collect extern declared symbols, don't emit symbol twice, check
4780         first if symbol is in publics set first,
4781         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4782         * added command line '--fstack' which enables an experimental
4783         feature for stack access, too buggy to be used yet...
4784         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4785         * (pic16_allocDirReg): when register has storage class S_REGISTER
4786         allocate in pic16_dynAccessRegs,
4787         * device/include/pic16/pic18f????.h: modified configuration word
4788         naming convention, words started as CONFIG0H but should be CONFIG1H
4789
4790 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4791
4792         * device/include/mcs51reg.h: fixed bug 970993
4793
4794 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4795
4796         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4797         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4798         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4799         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4800         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4801         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4802           error/warning numbers,
4803           added function setWarningDisabled()
4804         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4805         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4806           _memcmp.c _memmove.c calloc.c realloc.c free.c
4807         * support/regression/tests/malloc.c: added tests for new functionality
4808         * support/regression/tests/zeropad.c: added tests for truncated initializers
4809           and initialized char arrays starting with '\x0'
4810         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4811
4812 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4813
4814         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4815
4816 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4817
4818         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4819         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4820         peephole 177.e. Thanks to anonymous
4821
4822 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4823
4824         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4825         function isn't used in the source but referenced as a
4826         variable initializer then declare it as extern in .asm file
4827
4828 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4829
4830         * .version: increased version number to 2.4.3
4831
4832         Adding version extension according to ChangeLog CVS revision
4833         * src/Makefile.in (target all): added dependency 'version.h'
4834         * (rule version.h): added rule to create version.h from ChangeLog,
4835         * (rule dep): added dependency version.h,
4836         * src/version.awk: AWK script to create version.h
4837         * src/SDCCdwarf2.c (dwWriteModule),
4838         * src/SDCCglue.c (initialComments),
4839         * src/SDCCmain.c (printVersionInfo): modified to write after
4840         version string the version extension number,
4841         * src/SDCCutil.c: included "version.h"
4842         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4843         number,
4844         * src/SDCCutil.h: added prototype for getBuildNumber
4845
4846         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4847         includeDirsSet, too,
4848         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4849         const char [] is found in function prototype...
4850
4851         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4852         moving to WREG with source is already in WREG,
4853         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4854         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4855         * (aopForSym): stack'ed symbols are partially supported, added
4856         if-clause to support symbols in FARSPACE,
4857         * (sameRegs): added test for AOP_ACC to see if registers are same,
4858         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4859         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4860         * (pic16_popRegFromString): will not allocate a new register if it
4861         doesn't find one by name, bug may have introduced...
4862         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4863         * (genIpush): revived to use pic16 port's stack,
4864         * (genAddrOf): added incomplete case for stack'ed operand,
4865         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4866         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4867         can handle multibyte operands,
4868         * src/pic16/glue.c (pic16_printIval*): some debug info added,
4869         * (pic16initialComments): added message for MPLAB compatibility
4870         mode enabled,
4871         * src/pic16/main.h: prototype for pic16_mplab_comp,
4872         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4873         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4874         * (_pic16_linkEdit): NEW, handles link stage, transferred here
4875         because of increased complexity of procedure,
4876         * (_process_pragma): stack pragma changed to format 'stack pos len',
4877         emit symbol '_stack_end' to conform with gplink,
4878         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4879         to search for register,
4880         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4881         PO_GPR_REGISTER,
4882         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4883         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4884         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4885         case for PO_GPR_REGISTER,
4886         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4887         dies, the new era is ahead !...
4888         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4889         pic16_dynInternalRegs,
4890         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4891         * (pic16_allocDirReg): minor optimizations and bug fixes,
4892         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4893
4894         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4895         load stack and frame pointer with address of 'stack_end' symbol
4896
4897 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4898
4899         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4900         without source code but only variable initializers
4901
4902 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4903
4904         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4905         external are not declared as extern to reduce overhead while linking
4906
4907 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4908
4909         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4910
4911 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4912
4913         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4914           Yee Keat for the patch
4915         * src/SDCCast.c (decorateType): fixed bug #979599
4916         * src/ds390/gen.h: removed local fReturnSizeDS390
4917         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4918         * src/ds390/gen.c (genAnd, genOr, genXor),
4919         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4920
4921 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4922
4923         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4924         add relFilesSet to $3, manipulate $2 to handle linking of object
4925         files without source files in command line,
4926         * device/include/pic16 (all headers): added ID location macros,
4927         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4928         entries for ID location bytes,
4929         * (pic16_assignIdByteValue): NEW,
4930         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4931         added field dumpcalltree to pic16_options_t,
4932         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4933         is used instead of pic16_Gstack_base_addr, check if (ifx) before
4934         emitting rFalseIfx label after check_carry label,
4935         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4936         pic16_emitDIRegs), NEW
4937         * (pic16glue): dump .calltree file when option --calltree found,
4938         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4939         * (_pic16_genAssemblerPreamble): emit ID locations after
4940         configuration registers,
4941         * (pic16_linkCmd): modifications of the link command,
4942         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4943         * (pic16_pCodeInitRegisters): don't init stack registers,
4944         * (pic16_findPrevInstruction): fixed bug,
4945         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4946         bug with immediate registers,
4947         * (buildCallTree): traces stack push and pop,
4948         * (pct2): dump also stack usage for each function,
4949         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4950         * (pic16_allocDirReg): various modifications,
4951         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4952         fixed to 1,
4953
4954 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4955
4956         * src/pic16/pcode.c: removed buggy double colon
4957
4958 2004-07-01 Borut Razem <borut.razem AT siol.net>
4959
4960         * support/scripts/sdcc.nsi: added include/pic16 to setup
4961
4962 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4963
4964         * device/lib/Makefile.in: fixed bug in target objects-pic16,
4965         * device/lib/pic16/Makefile: prefixed with dash (-) command under
4966         target 'clean',
4967         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4968         specific command line arguments. Also added sample lkr script
4969         for placing a variable at a specific memory bank.
4970         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4971         at a specific memory bank,
4972         * (pic16_dump_isection): fixed bug which caused string literals to
4973         be omitted when dumping idata section,
4974         * (pic16_groupRegistersInSection): added code to handle registers
4975         in specific memory banks,
4976         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4977         public, all references are renamed too,
4978         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4979         AOP_DPTR2,
4980         * (pic16_storeForReturn): added case to handle when dest is WREG,
4981         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4982         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4983         pic16_rel_udata, check to see if that register is marked as being
4984         a member of a specific memory bank,
4985         * (pic16_printIvalCharPtr): added code to add string literals either
4986         to code or the idata sections,
4987         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4988         also accept the 'udata' pragma,
4989         * src/pic16/main.h: new structure types sectName and sectSym
4990         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4991         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4992         * (pic16_findPrevInstruction): fixed, it returned nothing,
4993         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4994         instruction combinations,
4995         * (pic16_FixRegisterBanking): heavily reorganised,
4996         * (pic16_AnalyzeBanking): if generating banksel directives is
4997         disabled, then don't call FixRegisterBanking at all,
4998         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4999         completely removed,
5000         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5001
5002 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5003
5004         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5005         Phuah Yee Keat <yk.phuah AT nestac.com>
5006
5007 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5008
5009         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5010         correctly the IVT even if it is relocated to some other location
5011
5012 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5013
5014         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5015         * device/include/pic16/pic18f2220.h: NEW,
5016         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5017         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5018         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5019         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5020         nodefaultlibs, ivt_loc is the location of the interrupt vector
5021         table, and nodefaultlibs signs that default libraries should not be
5022         linked in link stage,
5023         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5024         according to --ivt-loc argument,
5025         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5026         when pragma stack is found,
5027
5028 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5029
5030         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5031         256 (range check), 257 (do while), 258.a-f (bit banging
5032         f.e. on 3-wire SPI bus)
5033
5034 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5035
5036         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5037         variables used exclusively within a loop
5038
5039 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5040
5041         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5042
5043 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5044
5045         * src/SDCClrange.c (computeClash): fixed bug #971834
5046
5047 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5048
5049         * src/mcs51/gen.c (genCmp): fixed bug #975903
5050         * src/hc08/gen.c (operandsEqu),
5051         * src/ds390/gen.c (operandsEqu),
5052         * src/z80/gen.c (operandsEqu),
5053         * src/pic/gen.c (operandsEqu),
5054         * src/pic16/gen.c (operandsEqu),
5055         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5056         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5057
5058 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5059
5060         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5061
5062 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5063
5064         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5065         default case in switch statement,
5066         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5067         to eliminate problem with initialisation of pointers, but problem
5068         still exists,
5069         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5070         * (emitStaticSegment): removed various lines emitting debug info,
5071         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5072         added processor registers for utilizing EEPROM,
5073         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5074         configurable and set 8
5075
5076 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5077
5078         * .version: increased version number to 2.4.2,
5079
5080         Cumulative patch for pic16 port
5081         * src/pic16/device.c: changed scheme to dump initial values for
5082         variables in idata segment, all print_idata* functions were removed,
5083         now the pic16_printIval* will be called,
5084         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5085         * _pic16_printPointerType, pic16_printPointerType,
5086         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5087         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5088         NEW, similar to the respective functions in SDCCglue.c,
5089         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5090         way, emitting hex bytes,
5091         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5092
5093 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5094
5095         * src/avr/ralloc.c (serialRegAssign),
5096         * src/xa51/ralloc.c (serialRegAssign),
5097         * src/pic/ralloc.c (serialRegAssign),
5098         * src/pic16/ralloc.c (serialRegAssign),
5099         * src/hc08/ralloc.c (serialRegAssign),
5100         * src/z80/ralloc.c (serialRegAssign),
5101         * src/ds390/ralloc.c (serialRegAssign),
5102         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5103
5104 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5105
5106         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5107         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5108
5109 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5110
5111         Cumulative patch for pic16 port:
5112         * src/pic16/device.h (typedef PIC16_device) modified fields for
5113         defining microcontrollers,
5114         * src/pic16/device.c: added new info for all devices in Pics16 array,
5115         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5116         to be optimised out by the pCode optimiser,
5117         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5118         specially, bug reported by G.M. Gallant,
5119         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5120         as force'd so that cannot be optimised out by pCode optimiser,
5121         * src/pic16/pcode.c,
5122         * src/pic16/pcodepeeph.c,
5123         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5124         they are disabled by default, but can be enabled explicit with
5125         command argument --denable-peeps, for testing,
5126         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5127         --pomit-ivt in COMPILE_FLAGS
5128
5129 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5130
5131         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5132           compilation on MSVC
5133
5134 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5135
5136         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5137
5138 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5139
5140         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5141         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5142
5143 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5144
5145         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5146         would only assign 0x300001 register.
5147
5148 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5149
5150         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5151         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5152
5153 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5154
5155         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5156         for ds80c400
5157         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5158         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5159         added peephole 254 (left shift), 255 (jump table)
5160
5161 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5162
5163         * device/lib/Makefile.in: removed comment line with model-pic16,
5164         * (target port-specific-objects-pic16): the libraries and objects
5165         are copied to the build directory form the device/lib/pic16/bin
5166         directory
5167
5168         Cumulative patch concerning pic16 port:
5169         * library directory has been re-organized,
5170         * added support for PIC18F1220,
5171         * added headers and library sources for chips 18f1220,18f6520,
5172         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5173
5174         * configuration registers setting has changed, now each supported
5175         device has a complete description of the registers it uses,
5176         * all initialisations are moved to idata sections, these section
5177         can be absolute or relocatable,
5178         * fixed initialisation of codespace variables,
5179         * fixed warning about PCLATU and gpsim,
5180         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5181         * (genAssign): use table reads when assigning from variables in codespace,
5182         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5183         char/int variables placed in codespace,
5184         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5185         registers set in .asm file, no need for --pomit-config-words anymore,
5186         * (pic16glue): some 8051 legacy segments are commented out
5187         (to be removed completely),
5188         * added support for alternative assembler and linker with --asm=
5189         and --link= command line arguments,
5190         * peepholes are disabled automatically in the port, no need to
5191         specify on command line,
5192         * port supports natively char/int/long multiplication, but converts
5193         all divisions to support functions,
5194         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5195         to the file set in variable $2,
5196         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5197         strings in ASCII format and not in hex,
5198         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5199         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5200         allocate proper register if iCodes aren't temporary,
5201
5202 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5203
5204         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5205
5206 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5207
5208         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5209         is commented out
5210
5211 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5212
5213         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5214         computed address is reused
5215         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5216         multi-byte bitfields
5217
5218 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5219
5220         * src/z80/gen.c: (genArrayInit): must check for pointers too
5221
5222 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5223
5224         * support/regression/tests/zeropad.c: never meant to commit the
5225           nestedstruct test: removed, added check for GCC version
5226
5227 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5228
5229         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5230         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5231         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5232           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5233           bugs 928906 and 954082 half-empty initializers
5234         * src/SDCCsymt.h,
5235         * src/SDCCsymt.c (getAllocSize): added for above fix
5236         * src/z80/gen.c (genArrayInit): fixed bug 741044
5237         * support/regression/tests/zeropad.c: added tests
5238
5239 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5240
5241         * src/pic16/device.c (pic16_dump_section): corrected bug which
5242         caused some symbols of the libraries to be misplaced
5243
5244 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5245
5246         * src/pic16/glue.c,
5247         * src/pic16/ralloc.h,
5248         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5249         to fix conflict with pic port
5250
5251 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5252
5253         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5254         externs configuration variables,
5255         * src/pic16/ralloc.h,
5256         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5257         prototype in header, commented out some debug messages
5258
5259 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5260
5261         * src/pic16/glue.c,
5262         * src/pic16/main.c,
5263         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5264         for gpasm COFF object generation. Thanks to D. Hawkins for
5265         his patch info
5266
5267 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5268
5269         * src/ds390/main.c,
5270         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5271         Brock for spotting this)
5272         * src/ds390/gen.c (genEndFunction),
5273         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5274         interrupt handler and critical. Disable push/pop optimizations when
5275         peephole optimizations disabled.
5276
5277 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5278
5279         Updated pic16 library sources and headers.
5280         * device/lib/pic16/pic18f*/ ,
5281         * device/include/pic16/*.h: modified to handle structured SFR
5282         definitions
5283
5284 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5285
5286         * src/port.h (PORT structure): added hook initPaths, now each
5287         port can declare its own default search paths,
5288         which can been seen with the --print-search-dirs option,
5289         see pic16 port for example,
5290         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5291         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5292         * (doPrintSearchDirs): NEW, replaces in a central manner the
5293         printing of search dirs which was split in set*Paths functions,
5294         * (main): added call to port->initPaths and doPrintSearchDirs,
5295         * src/avr/main.c,
5296         * src/ds390/main.c,
5297         * src/hc08/main.c,
5298         * src/izt/i186.c,
5299         * src/izt/tlcs900h.c,
5300         * src/mcs51/main.c,
5301         * src/pic/main.c,
5302         * src/pic16/main.c: modified port structures to reflect addition of
5303         initPaths hook,
5304
5305         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5306         * (pic16_dump_section): for registers in same address reserve memory once,
5307         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5308         to no_banksel,
5309         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5310         result is greater in size than right or left,
5311         * (pic16_genUMult8X8_8): there are some cases where the result can
5312         be 16 bits size, so handle these,
5313         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5314         * (pic16_outBitC): modified to emit pcodes,
5315         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5316         or not,
5317         * (genDivOneByte): implemented algorithm to divide 8-bits,
5318         * (genCmp): uncommented goto, but issues still exist,
5319         * (genAnd): fixed a bug with variables >8bits,
5320         * (genPackBits): optimization added that uses BCF/BSF to change a
5321         single bit,
5322         * (genAssign): fixed bug when assigning floating point literals,
5323         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5324         __sdcc_gsinit_startup label,
5325         * src/pic16/main.c (_pic16_init): removed search directory
5326         initialisations,
5327         * (_pic16_initPaths): NEW, used to initialise search directories,
5328         * (_hasNativeMulFor): support functions for all except char/int
5329         multiplication, and char division,
5330         * (PIC16_port struct): modified entry for native mul support,
5331         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5332         no_banksel option,
5333         * (buildCallTree): call to register_usage is ifdef'ed out,
5334
5335 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5336
5337         * device/include/string.h: applied Stas Sergeev's patch to make this
5338         header file compatible with the preprocessor -Wundef option
5339         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5340         failure (fixes bug #941458)
5341
5342 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5343
5344         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5345         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5346         that the variable, not the function, should be static
5347         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5348         to be consistent with non-literal case
5349
5350 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5351
5352         * src/SDCCast.c (isConformingBody): fixed bug #949967
5353         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5354         convilong): fixed bug #952086
5355
5356 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5357
5358         * src/SDCCmem.c (allocVariables): fixed bug #955321
5359
5360 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5361
5362         * src/hc08/main.c (_hc08_genAssemblerEnd),
5363         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5364         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5365         completely eliminated the use of a temporary file
5366         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5367         when more than one file linked
5368         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5369
5370 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5373         which fixes bug #543481
5374         * support/regression/tests/bug-751703.c: fixed comments left from a
5375         cut and paste error
5376         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5377         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5378         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5379         scopes
5380         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5381         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5382         are now changed to underscores in moduleName
5383
5384 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5385
5386         * as/mcs51/lkmem.c: better fix for bug #954173
5387
5388 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5389         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5390
5391         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5392         * device/include/c8051f000.h,
5393         * device/include/c8051f120.h,
5394         * device/include/c8051f300.h,
5395         * device/include/c8051f310.h,
5396         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5397         PWM16) and detab'ed
5398
5399 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5400
5401         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5402         and mailing lists, doc'ed --no-peep-comments, removed reference
5403         to knoppix (newest version has no LyX/LaTeX), other minor changes
5404         * src/SDCCglue.c (glue): save 2 bytes stack space with
5405         option --main-return. The ljmp could probably be avoided too
5406
5407 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5408
5409         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5410
5411 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5412
5413         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5414         * src/SDCCopt.c (isLocalWithoutDef),
5415         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5416         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5417         (credit to Maarten Brock for patch #949363, on which this is based)
5418         * support/regression/tests/bug-751703.c: some test cases of extern used
5419         within inner scopes.
5420
5421 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5422
5423         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5424         SPEC_STRUCT
5425         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5426         struct definitions
5427         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5428         dwWriteLabel): fix to create valid debugger symbols even when
5429         the module name has non-alphanumeric symbols in it
5430         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5431         when a variable's allocation has been optimized away
5432
5433
5434 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5435
5436         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5437         * src/hc08/main.c,
5438         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5439         * src/mcs51/main.c,
5440         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5441         * src/ds390/main.c,
5442         * src/z80/gen.c (z80_emitDebuggerSymbol),
5443         * src/z80/main.c,
5444         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5445         * src/pic/main.c,
5446         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5447         * src/pic16/main.c,
5448         * src/avr/gen.c (avr_emitDebuggerSymbol),
5449         * src/avr/main.c,
5450         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5451         * src/xa51/main.c,
5452         * src/SDCCdebug.c (emitDebuggerSymbol),
5453         * src/SDCCdebug.h,
5454         * src/port.h: added a debugger struct to the port struct. Added a
5455         callback for defining debugger symbols
5456
5457         * src/SDCCast.c (createLabel),
5458         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5459         with isitmp = 1
5460         * src/SDCCicode.h,
5461         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5462         iCode back to the ast for the function
5463
5464         * src/hc08/ralloc.c (hc08_assignRegisters),
5465         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5466         unneeded fields from the regs struct.
5467         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5468         pushReg() & pullReg() functions instead of emitcode()
5469
5470         * src/hc08/gen.c (genLabel, genhc08Code),
5471         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5472
5473         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5474         debugger hooks
5475
5476         * src/hc08/gen.c (genEndFunction, genhc08Code),
5477         * src/hc08/gen.h,
5478         * src/mcs51/gen.c (genEndFunction, gen51Code),
5479         * src/mcs51/gen.h,
5480         * src/ds390/gen.c (genEndFunction, gen390Code),
5481         * src/ds390/gen.h,
5482         * src/z80/gen.c (genEndFunction, genZ80Code),
5483         * src/z80/gen.h,
5484         * src/z80/z80.h,
5485         * src/pic/gen.c (genEndFunction, genpic14Code),
5486         * src/pic/gen.h,
5487         * src/pic16/gen.c (genEndFunction, genpic16Code),
5488         * src/pic16/gen.h,
5489         * src/avr/gen.c (genEndFunction, genAVRCode),
5490         * src/avr/gen.h,
5491         * src/xa51/gen.c (genEndFunction, genXA51Code),
5492         * src/xa51/gen.h,
5493         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5494         specific code to cdbFile.c and out of the backend code generators
5495
5496         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5497         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5498         starting address is now 0
5499
5500         * as/hc08/asm.h,
5501         * as/hc08/m08pst.c,
5502         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5503         assembler directive for DWARF support
5504         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5505
5506         * src/src.dsp,
5507         * src/Makefile.in,
5508         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5509
5510 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5511
5512         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5513         and inappropriate peephole optimization in jump tables
5514
5515 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5516
5517         * as/hc08/m08pst.c,
5518         * src/SDCCglue.c: sdccopt works for the hc08 port now
5519
5520 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5521
5522         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5523
5524 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5525
5526         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5527
5528 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5529
5530         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5531         rules
5532         * src/SDCCmain.c,
5533         * src/SDCCglobl.h,
5534         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5535         comments from the peephole optimizer replacement rules
5536         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5537         symbols
5538         * src/SDCCcse.c (updateSpillLocation),
5539         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5540         equivalents
5541         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5542         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5543         objects far pointers
5544
5545 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5546
5547         * src/SDCCsymt.h: a missing part of my last change
5548         * src/pic/ralloc.c (regTypeNum),
5549         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5550
5551 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5552
5553         * src/SDCCicode.h,
5554         * src/SDCCicode.c (aggrToPtrDclType),
5555         * src/SDCCptropt.h,
5556         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5557         ptrPseudoSymConvert),
5558         * src/pic/ralloc.c (regTypeNum),
5559         * src/pic16/ralloc.c (regTypeNum),
5560         * src/hc08/ralloc.c (regTypeNum),
5561         * src/ds390/ralloc.c (regTypeNum),
5562         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5563         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5564
5565 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5566
5567         * link/z80/lkmain.c (afile),
5568         * as/hc08/lkmain.c (afile),
5569         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5570         prevent a pointer problem when a filename has no directory and
5571         no extension specified.
5572
5573 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5574
5575         * link/z80/lkmain.c (afile): allow periods in directory names
5576         * link/z80/lkmain.c (afile),
5577         * as/mcs51/lkmain.c (afile),
5578         * as/hc08/lkmain.c (afile): allow linker script file to have an
5579         extension other than ".lnk"
5580         * link/z80/lklex.c (getfid),
5581         * link/z80/lkmain.c (parse),
5582         * as/mcs51/lklex.c (getfid),
5583         * as/mcs51/lkmain.c (parse),
5584         * as/hc08/lklex.c (getfid),
5585         * as/hc08/lkmain.c (parse): Support comments in the linker script
5586         file on lines by themselves and after filenames
5587
5588 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5589
5590         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5591
5592 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5593
5594         * src/z80/peeph-z80.def: removed some peephole rules that don't
5595         work with multibyte arithmetic (fixed bug #937126)
5596         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5597         to registers and not global variables
5598         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5599         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5600         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5601         checking for assignments not internally generated (fixed bug #931895)
5602         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5603         structure member (fixed bug #930072)
5604
5605 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5606
5607         * src/SDCCmain.c (linkEdit),
5608         * src/hc08/main.c (_hc08_parseOptions),
5609         * as/hc08/Makefile.in,
5610         * as/hc08/aslink.h,
5611         * as/hc08/asm.h,
5612         * as/hc08/m08pst.c,
5613         * as/hc08/lkrloc.c (relr, rele),
5614         * as/hc08/lkarea.c (lnkarea)
5615         * as/hc08/lkmain.c (afile, parse),
5616         * as/hc08/lkelf.c: support for ELF output
5617         * as/hc08/lks19.c (s19),
5618         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5619
5620 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5621
5622         * as/mcs51/lkihx.c: Fixed bug #899105.
5623
5624 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5625
5626         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5627         .dsp files from Unix to DOS.
5628
5629 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5630
5631         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5632         function pointers; we have been compliant for several months now.
5633         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5634         change that was accidently commented out
5635         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5636         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5637         bug #922319
5638
5639 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5640
5641         * src/hc08/gen.c: output of all of the internal debugging information
5642         is now controlled by the D() macro; it is disabled by default
5643
5644 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5645
5646         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5647         harder to keep the same registers during a CAST iCode
5648         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5649         long via int can be done in a single cast, if the signedness is
5650         correct.
5651         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5652         putchar() in tinibios.c in ds390's library
5653
5654 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5655
5656         * src/SDCCast.c (decorateType): fixed bug #898889,
5657         cast result of a literal complement too
5658         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5659         fixed check for bitfields
5660
5661 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5662
5663         * src/SDCCicode.c (geniCodeLogic): made it static,
5664         (geniCodeLogicAndOr): added in order to fix bug #905492,
5665         (ast2iCode): fixed bug #905492
5666         * support/regression/tests/bug-905492.c: added
5667         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5668         (processParms): fixed bug #927659: don't copy parms, this will clear
5669         decorated flag
5670         * support/regression/tests/bug-927659.c: added
5671
5672 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5673
5674         * src/SDCCast.c (addCast): don't cast float to char
5675         * device/lib/libsdcc.lib: added _memmove
5676
5677 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5678
5679         * device/lib/large/Makefile: fixed parallel execution by
5680         replacing `make` by `$(MAKE)`
5681
5682 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5683
5684         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5685         offsets (fixes bug #923936)
5686
5687 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5688
5689         * device/lib/small/Makefile: fixed parallel execution by
5690         replacing `make` by `$(MAKE)`
5691
5692 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5693
5694         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5695
5696 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
5697
5698         * src/pic/gen.c (genCpl): multi-byte complements were not working.
5699         * src/regression/Makefile: Regression test was not running.
5700
5701 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5702
5703         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5704         complement if possible
5705         * src/SDCCval.c (valComplement),
5706         * src/SDCCicode.c (operandOperation): fixed complement of literal
5707         * support/regression/tests/onebyte.c (testComplement): added
5708
5709 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5710
5711         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5712         return an optimized tree; actually replace actParm with the new tree
5713         * src/SDCCast.h: added some parantheses to remove side effects
5714         * support/regression/tests/bug-920866.c
5715
5716 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
5717         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5718         Bit operands were not being handled properly in the pic14 port.
5719         (now src/regression/add.c passes again).
5720
5721 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5722
5723         * src/SDCC.y (labeled_statement): case and default no longer require
5724         a following statement (RFE #893037)
5725
5726 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5727
5728         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5729         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5730         disabled (fixes bug #916294)
5731         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5732         "mov a,acc"; patch provided by Lenny Story
5733         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5734
5735 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5736
5737         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5738         functions
5739         * src/ds390/gen.c (genFunction, genEndFunction),
5740         * src/ds390/ralloc.c (ds390_assignRegisters),
5741         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5742         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5743         pushed if there are parameters passed on the stack. Also, a cleaner
5744         way to decide if r0/r1 should be pushed/popped. (Together they fix
5745         bug #918693)
5746
5747 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5748
5749         * doc/sdccman.lyx,
5750         * device/lib/mcs51/crtpagesfr.asm,
5751         * device/lib/mcs51/crtxinit.asm,
5752         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5753         to avoid confusion with Si Lab's SFRPAGE register.
5754
5755 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5756
5757         * src/SDCCglue.c (emitMaps): allow public sfr variables
5758         * src/SDCCglue.c (initialComments): include compiler build date
5759         with compiler version and put the timestamp of the generated
5760         assembly file on a serperate line to be less confusing.
5761         * src/port.h: added genInitStartup hook
5762         * src/avr/main.c,
5763         * src/ds390/main.c,
5764         * src/hc08/main.c,
5765         * src/pic/main.c,
5766         * src/pic16/main.c,
5767         * src/xa51/main.c,
5768         * src/z80/main.c: genInitStartup initialize as NULL (default to
5769         historical behaviour)
5770         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5771         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5772         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5773         library instead of hard coding it into the compiler.
5774         * support/regression/ports/mcs51-stack-auto/spec.mk,
5775         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5776         * device/lib/mcs51/Makefile,
5777         * device/lib/small/Makefile,
5778         * device/lib/large/Makefile,
5779         * device/lib/mcs51/crtpagesfr.asm,
5780         * device/lib/mcs51/crtstart.asm,
5781         * device/lib/mcs51/crtxclear.asm,
5782         * device/lib/mcs51/crtxinit.asm,
5783         * device/lib/mcs51/crtclear.asm,
5784         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5785         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5786         and into user configurable files.
5787         * device/lib/clean.mk: clean mcs51 directory too
5788         * support/regression/tests/longlit.c: added static to T1 declaration
5789         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5790         accesses in the initialization code
5791
5792 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5793
5794         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5795         OSCTRIMVAL as noted in bug #916008
5796
5797 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5798
5799         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5800         in loops with multiple exits (reported as incorrect registers
5801         used by Martin Helmling in Sdcc-user list)
5802
5803 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5804
5805         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5806         made ds390 register extensions look less like error messages
5807
5808 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5809
5810         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5811         reported by Adam Wozniak in Sdcc-user list
5812
5813 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5814
5815         * src/SDCCast.c (decorateType): fixed with bug and promotion in
5816         arithmetic optimizations, added debug output
5817
5818 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5819
5820         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5821         * sdcc.spec: updated and split sdcc into 3 rpms
5822         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5823         needed for literals of LEFT_OP and '+'
5824         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5825         introduced RESULT_TYPE_NOPROM
5826         (geniCodeMultiply): fixed logic for decision if mul is optimized to
5827         left shift
5828         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5829         limited promotion to int only for '*'
5830         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5831
5832 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5833
5834         * src/pic16/gen.c (genSkip),
5835         (genc16bit2lit), (gencjneshort): commented out
5836         (is_LitOp): new helper function, checks operand type
5837         (genCmpEq): rewritten
5838
5839 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5840
5841         * support/regression/tests/bug-908454.c: added
5842
5843 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5844
5845         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5846         * src/SDCCicode.c (usualBinaryConversions): op needs int type
5847         (geniCodeCast): cosmetic, don't preserve bit storage class
5848         (geniCodeLeftShift): added promotion
5849         (geniCodeLogic): fixed regression
5850         * src/SDCCsymt.c (computeTypeOr): accept bits too
5851         (compareType): 2nd part of fix for bug #908454, needed for bitfields
5852
5853 2004-03-07  Borut Razem <borut.razem AT siol.net>
5854
5855         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5856
5857 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5858
5859         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5860         version of pic16_genPackRegisters which does not check if ic is a
5861         CAST operator,
5862         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5863         function cause string1.c regression test fails
5864
5865 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5866
5867         * sim/ucsim/configure.in,
5868         * sim/ucsim/configure,
5869         * sim/ucsim/doc/Makefile.in: use docdir
5870         * src/SDCC.y: fixed sbit atrributes
5871         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5872         * src/SDCCast.c (decorateType): |^& need special promotion handling
5873         * src/SDCCast.h,
5874         * src/SDCCsymt.h: moved definition of RESULT_TYPE
5875         * src/SDCCsymt.h (computeType),
5876         * src/SDCCicode.c: computeType() needs op
5877         * src/SDCCsymt.c (checkTypeSanity),
5878         * doc/sddman.lyx: "plain" bitfields are unsigned
5879         * src/SDCCsymt.c (computeTypeOr): added
5880         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5881         |^& ops
5882         * src/SDCCval.c (val*): computeType() needs op
5883         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5884         * support/regression/tests/onebyte.c: added tests for |^&
5885
5886 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5887
5888         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5889         for writing icode into asm output.
5890
5891 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5892
5893         * src/pic16/device.c: added some debug lines enabled
5894         with macro DEBUG_CHECK,
5895         * src/pic16/genarith.c: more debug in genPlus,
5896         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5897         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5898         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5899         * (aopForSym): onStack symbols are re-placed in data memspace,
5900         and onStack flag is cleared,
5901         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5902         copy temporary pcodeop,
5903         * (genPcall): added warning for not updating PCLATU,
5904         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5905         always true for pic16 port,
5906         * (genMultOneWord): NEW, supports integer multiplication,
5907         * (genMult): modified to call genMultOneWord,
5908         * (ifxForOp): added warning when return NULL,
5909         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5910         flag is set before call to operandFromSymbol for implicit
5911         added structures,
5912         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5913         options.intlong_rent are set by default,
5914         * (_hasNativeMulFor): modified to allow port generation of integer
5915         multiplication,
5916         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5917         set regtype to REG_SFR for all registers, restricting seting the
5918         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5919
5920 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5921
5922         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5923         more than 500 times in the regression tests
5924
5925 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5926
5927         * support/Util/SDCCerr.h,
5928         * support/Util/SDCCerr.c,
5929         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5930         enumerator_list),
5931         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5932         for symbol conflicts.
5933         * support/valdiags/tests/enum.c,
5934         * support/valdiags/tests/tentdecl.c,
5935         * support/valdiags/tests/struct.c: expect possible error messages
5936         referring to original symbol definitions.
5937         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5938         * src/SDCCsymt.h,
5939         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5940
5941 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5942
5943         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5944
5945 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5946
5947         * src/pic16/ralloc.c (newReg): fixed bug #908929
5948
5949 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5950
5951         * src/ds390/gen.c: added missing #include "main.h"
5952
5953 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5954
5955         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5956         checking if symbol is already in set,
5957         * src/pic16/device.h: prototype for checkAddSym,
5958         * src/pic16/gen.c: (_G): added entry interruptvector,
5959         * (assignResultValue): removed some commented out lines,
5960         * (genFunction): check for ISR via sym->type, absolute section for
5961         interrupt code is created via a new pBlock, the goto instruction is
5962         placed now correctly at the interrupt vector position, changed all
5963         references from ivec to _G.interruptvector,
5964         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5965         is the interrupt is a high priority one, same for return from ISR,
5966         * src/pic16/glue.c: changed all calls of addSetHead for publics and
5967         externs to calls of checkAddSym,
5968         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5969         pic16_pcode_verbose flag is set,
5970         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5971         * src/pic16/pcoderegs.c: message about how many registers are saved
5972         will only be emitted if pic16_pcode_verbose flag is set,
5973
5974 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5975
5976         * src/ds390/ralloc.h,
5977         * src/ds390/ralloc.c (ds390_regWithIdx),
5978         * src/ds390/gen.c (emitcode),
5979         * src/ds390/main.h,
5980         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5981         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5982         ds390operandCompare, getRegsRead, getRegsWritten,
5983         initializeAsmLineNode): customized instruction size calculation for
5984         ds390, started basis for some register optimizations
5985         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5986         corresponding assembly output
5987         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5988         missing push/pop of r0/r1. Optimized push/pops
5989
5990 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5991
5992         * src/mcs51/main.c (instructionSize): fixed ACALL size
5993         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5994
5995 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5996
5997         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5998         the sorting of rlist with NULL elements
5999         * (print_idataType, print_idata): NEW to create idata sections
6000         * src/pic16/device.h: idataSymSet new variable
6001         * src/pic16/gen.c (genFunction): fixed some bugs in string
6002         comparing, improved the absolute section creation for ISRs,
6003         added FSR0L/FSR0H in registers that are saved in an ISR,
6004         * (genInline): fixed the processing of inline snippets,
6005         now they undergo no process by the peephole optimizer
6006         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6007         are placed in idataSymSet,
6008         * (pic16emitStaticSeg): extern symbols are added in externs,
6009         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6010         switching when aboslute variables are placed in access bank memory
6011         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6012         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6013         commented out with #if,
6014         * (pic16_packRegisters): reintroduce the check for CAST because some
6015         symbols are not correctly handled,
6016         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6017         pCodeInstruction instead of pCode,
6018         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6019         pCodeAsmDir definition,
6020         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6021         directive, then the argument directive is emitted without the leading
6022         tab, hack for inline labels which must be in the first column,
6023         * (compareLabel,pic16_findNextInstruction),
6024         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6025         * (insertBankSwitch): modified for the new pCodeAsmDir,
6026
6027 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6028         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6029
6030         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6031         instance,
6032         * (pushSide): commented out with #if,
6033         * (assignResultValue): fixed some typos in saving
6034         registers,
6035         * (genPcall): FIXED and sync'ed with genCall,
6036         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6037         * (genNearPointerGet): fixed to handle some more cases,
6038         implementation scheme via table reads,
6039         * (genConstPointerGet): modified to access code memory correct,
6040         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6041         and improved to handle some cases
6042         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6043         instead of "RETLW" for init data
6044         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6045         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6046         variables are placed in access bank memory (<0x80 and >=0xf80),
6047         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6048         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6049         TBLWT_POSTDEC,TBLWT_PREINC
6050         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6051         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6052         directives
6053         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6054         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6055         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6056         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6057
6058 2004-02-29  Borut Razem <borut.razem AT siol.net>
6059
6060         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6061         support/Util/findme.h, support/Util/system.h: enhance binary relative
6062         search for lib and include by using findProgramPath()
6063
6064 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6065
6066         * src/SDCCpeeph.h,
6067         * src/SDCCpeeph.c (pcDistance),
6068         * src/port.h,
6069         * src/mcs51/ralloc.h,
6070         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6071         * src/mcs51/main.h,
6072         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6073         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6074         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6075         size calculation port specific, started basis for some register
6076         optimizations
6077         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6078         missing push/pop of r0/r1. Optimized push/pops
6079         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6080         * device/lib/_modsint.c (_modsint),
6081         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6082         and stack version so regression tests pass
6083
6084 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6085
6086         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6087         * src/SDCCast.c (decorateType): catch another small optimization
6088         with '?' operator
6089         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6090         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6091         modified to finally use computeType() all over SDCC,
6092         see Feature Request #877103
6093         * src/SDCCval.h: cosmetic
6094         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6095         valCompare(); regression tested in muldiv.c
6096         * support/regression/tests/muldiv.c (testMod): mod sign follows
6097         dividend only
6098
6099 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6100
6101         * src/SDCCast.c (decorateType): fixed bug #902362
6102         * doc/INSTALL.txt: fixed install instructions for win32
6103
6104 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6105
6106         * device/include/Makefile.in (install): fixed by replacing spaces
6107         by tabs
6108         * doc/README.txt,
6109         * doc/INSTALL.txt: updated for release
6110         * doc/sdccman.lyx: added warning for --xstack being buggy
6111
6112 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6113
6114         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6115         to eliminate build warnings.
6116         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6117
6118 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6119            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6120
6121         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6122         removed -penable-stack, added comment for stack pragma, added
6123         warning for not initializing the stack/frame registers, removed
6124         comment at interrupts section
6125
6126         Stack is made permanent, there is no ability to disable stack usage.
6127         * src/pic16/device.h,
6128         * src/pic16/device.c: removed all references to USE_STACK macro,
6129         * src/pic16/device.c (pic16_dump_section): when no elements in
6130         rlist, free rlist before return,
6131         * (pic16_dump_int_registers): NEW, internal registers are a new set
6132         of general purpose registers reused by each function,
6133         * (checkAddReg): returns 1 if registers is added to set,
6134         * (pic16_groupRegistersInSection): when a registers is of type
6135         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6136         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6137         SRCASECMP macro is moved here from device.c
6138         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6139         PO_PCLATU, PO_PRODL, PO_PRODH,
6140         * (pic16_pCodeOpType, genMinus,
6141         changed compares to "a" register, with AOP_ACC,
6142         * (pic16_genPlus): fixed some bugs and indented properly,
6143         * (pic16_addSign): changed size to size+offset in the MOVWF
6144         instruction,
6145         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6146         multiply 8-bit operand by literal, result is 8-bit,
6147         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6148         multiply 2 8-bit operand, result is 8-bit,
6149         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6150         genUMult8X*_16,
6151         * src/pic16/gen.c: changed accUse to contain WREG only,
6152         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6153         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6154         true, do not use immediate addressing any more unless sym is a
6155         pointer in codespace,
6156         * (aopForRemat): do not use immediate addressing when symbol not in
6157         codespace and when symbol's address is requested,
6158         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6159         accUse size (= 1),
6160         * (aopGet): added case for AOP_ACC and don't return "accumulator
6161         bug" but WREG instead,
6162         * (popGetTempReg): pushes contents of temporary register in stack,
6163         * (popReleaseTempReg): pops contents of temporary register from
6164         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6165         * (pic16_popGet): separated case AOP_ACC to return register WREG
6166         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6167         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6168         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6169         the use of immediate pointers to certain cases only.
6170
6171         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6172         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6173         * (assignResultValue, genCall, genRet): modified to use the new
6174         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6175         genPcall is still broken,
6176         * (genFunction): added code to create 'A' type pBlocks when
6177         interrupt functions are generated, code not extensively tested yet,
6178         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6179         * (genEndFunction): modified so ISRs pop stored registers from stack,
6180         * (genMultOneByte): cleanup,
6181         * (AccRsh): added flag andmask, to and result with appropriate mask,
6182         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6183         * (genDataPointerGet): fixed and reenabled its use,
6184         * (genNearDataPointerGet): bugs fixed,
6185         * (genDataPointerSet): bugs fixed,
6186         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6187         pic16_DumpSymbol, pic16_DumpOp,
6188         * src/pic16/genutils.h: function prototypes for the above functions,
6189         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6190         pointers,
6191         * (pic16emitRegularMap): many many many improvements, but needs a
6192         major cleanup,
6193         * src/pic16/main.c: enable_stack in pic16_options is removed,
6194         * (_pic16_parseOptions): removed command line options -penable-stack,
6195         * (_process_pragma): emit stack symbol only when stack pragma is
6196         processed,
6197         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6198         redirected to FSR0L/FSR0H pair,
6199         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6200         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6201         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6202         for immediates,
6203         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6204         * (dumpPicOptype): NEW,
6205         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6206         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6207         with movff instruction,
6208         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6209         added pic16_int_regs, some packRegsFor* functions are commented out,
6210         because produce errors,
6211         * src/pic16/NOTES: minor modifications
6212
6213 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6214
6215         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6216         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6217         --pack-iram.
6218         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6219         * as/mcs51/lkaomf51.c: fixed bug #895763
6220
6221 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6222
6223         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6224
6225 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6226
6227         * doc/sdccman.lyx: added details about the HC08 storage classes and
6228         interrupts, fixed the register usage info for z80 & gbz80
6229
6230 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6231
6232         * doc/sdccman.lyx: added more pic16 port documentation
6233         * device/include/pic16/: added header pic18fregs.h
6234
6235 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6236
6237         * doc/sdccman.lyx: added Vangelis' contribution
6238
6239 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6240
6241         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6242         extend to the next CALL or PCALL, not just to the next CALL.
6243
6244 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6245
6246         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6247
6248 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6249
6250         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6251         bug #895752 and a better fix for bug #716790
6252
6253 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6254
6255         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6256
6257 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6258
6259         * doc/sdccman.lyx: minor changes, minor changed
6260
6261 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6262
6263         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6264         which can't handle SDCC_NEWONEBYTEOPS,
6265         (geniCodeMultiply): removed conversion from mult to shift for pic14
6266         and pic16
6267
6268 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6269
6270         * src/hc08/gen.h,
6271         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6272         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6273         thus fixing bug #895406
6274
6275 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6276
6277         * device/lib/_modsint.c,
6278         * device/lib/_modslong.c: sign follows divisor only
6279         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6280         signs or signedness can be ignored
6281         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6282         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6283         added optimization for IFX,
6284         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6285         arguments;
6286         reenabled optimization for IFX, which was removed on 2004-01-11
6287         * src/SDCCast.h: added return type IFX
6288         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6289         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6290         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6291         SDCC_OLDONEBYTEOPS selects the old behaviour
6292         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6293         changed again and commented promotion rule
6294         * src/SDCCval.c (valDiv): promotion no longer necessary
6295         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6296         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6297         rewritten
6298         * support/regression/tests/onebyte.c: added
6299
6300 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6301
6302         * gen.c (genInline): reverted to old code for assemnling inline
6303         code because of bug reported James Chadd
6304
6305 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6306
6307         * ralloc.h: missing declarations from previous patch,
6308         seems that patch for ralloc.h was never applied, fixed
6309
6310 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6311            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6312
6313         * pcode.c,
6314         * pcode.h,
6315         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6316         indirect addressing. Marked FSR0 as deprecated
6317         * gen.c (pointerCode): commented out, not needed now
6318         (pic16_popGet2p): new MOVFF helper function
6319         (genGenPointerGet),
6320         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6321         (shiftRLong): removed duplicate debugging info
6322
6323 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6324
6325         * src/ds390/gen.c (genNearPointerGet),
6326         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6327         optimization with bits, but not bitfields.
6328         * src/ds390/ralloc.c (packRegisters),
6329         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6330
6331 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6332
6333         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6334
6335 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6336
6337         * src/SDCCsymt.h,
6338         * src/SDCCicode.c (operandFromSymbol),
6339         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6340         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6341         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6342         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6343         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6344         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6345         bug #892038
6346         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6347         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6348         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6349         * src/SDCCsymt.c (newSymbol),
6350         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6351         enumerator_list),
6352         * src/SDCCval.h,
6353         * src/SDCCval.c (newiList): fixed bug #885705
6354
6355 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6356
6357         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6358         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6359
6360 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6361
6362         * device/include/c8051f120.h,
6363         * device/include/c8051f300.h,
6364         * device/include/c8051f310.h: added/updated header files for Silicon
6365         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6366         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6367         in new section Submitting patches
6368
6369 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370
6371         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6372         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6373         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6374         genGenPointerSet),
6375         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6376         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6377         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6378         genGenPointerSet),
6379         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6380         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6381         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6382         genGenPointerSet),
6383         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6384         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6385         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6386         genGenPointerSet): fixed bug #892400
6387         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6388         to eliminate build warnings.
6389         * src/SDCCast.c (processParms),
6390         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6391         fixed bug 751859
6392         * support/valdiag/valdiag.py: added GCC to the list of defines active
6393         when compiling with gcc
6394
6395 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6396
6397         * support/Util/SDCCerr.h,
6398         * support/Util/SDCCerr.c,
6399         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6400         with an incomplete type (fixed bug #883734)
6401         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6402
6403 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6404
6405         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6406
6407 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6408
6409         * src/SDCCast.c (decorateType),
6410         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6411         function pointer implementation
6412         * support/regression/tests/funptrs.c: added tests to verify both forms
6413         of function pointers work correctly. Added tests to verify parameters
6414         are passed in the correct order.
6415
6416 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6417
6418         * device.c (regCompare): registers are sorted by ascending
6419         address and increasing size,
6420         * main.c (_pic16_finaliseOptions): removed the declaration
6421         of compiler macro MCU. Now a macro of the format pic18fxxxx
6422         will be defined from the command line
6423
6424 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6425             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6426
6427         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6428         PCOP_RLCF was overwritten!
6429         * gen.c (genSkip): commented out calls to pic16_emitcode,
6430         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6431         * (genlshTwo),
6432         * (genRRC): added debugging info,
6433         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6434         overwritten while shifting,
6435         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6436         overwritten while shifting,
6437         * (AccLsh),
6438         * (AccRsh),
6439         * (shiftLLeftOrResult),
6440         * (shiftRLeftOrResult),
6441         * (shiftRLong),
6442         * (shiftLLong): Implemented with pic16_emitpcode
6443         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6444         * (genLeftShift): Fixed bug, operand for shift by variable always
6445         was "and"ed with 0x0f,
6446         * (genLeftShiftLiteral),
6447         * (genrshTwo),
6448         * (genRightShiftLiteral): added debugging info,
6449         * (genrshFour): added comment,
6450         * (genRightShift): determined signedness from operand "left"
6451         instead of "result"
6452
6453 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6454
6455         * src/SDCCicode.c (geniCodeParms),
6456         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6457         function pointers, fixed function pointer bugs #861242 and #861896
6458
6459 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6460
6461         * device/include/c8051f000.h,
6462         * device/include/c8051f120.h,
6463         * device/include/c8051f300.h: added header files for Silicon
6464         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6465
6466 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6467
6468         * src/SDCCast.c (processParams): added new type flow and restructured
6469         (gatherAutoInit): added new type flow
6470         (addCast): cosmetic changes
6471         (getLeftResultType): added new type flow for array indices, patch
6472         provided by Stas, see FR #877103
6473         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6474         array index patch by Stas
6475         * src/SDCCast.h: added prototype getResultTypeFromType()
6476         * src/SDCCval.h,
6477         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6478         * src/pic/glue.c (pic14emitStaticSeg),
6479         * src/pic16/glue.c (pic16emitStaticSeg),
6480         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6481         for initialization of symbols
6482         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6483         * support/Util/SDCCerr.h:
6484         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6485         * .version: bumped version number to 2.3.8
6486         * device/include/Makefile.in (install),
6487         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6488         avoid warnings
6489
6490 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6491
6492         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6493         Slade Rich fixed an optimization bug
6494         * src/pic/pcodepeep.c,
6495         * src/pic/pcoderegs.c
6496         * doc/Makefile (install): added test for directory
6497
6498 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6499
6500         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6501         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6502         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6503         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6504         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6505         * as/mcs51/asexpr.c (term),
6506         * as/hc08/asexpr.c (term): fixed bug #887146
6507
6508 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6509
6510         * src/z80/gen.c (genMult): handle single byte result product
6511         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6512         DUMMY_READ_VOLATILE (fixed bug #886367)
6513
6514 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6515
6516         * support/regression/tests/libmullong.c: fixed logic, on little endian
6517         hosts we ended without a mullong_wrapper()
6518
6519 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6520
6521         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6522         virus/worm forged address usage.
6523
6524 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6525
6526         Fixed promotion, it should be done on AST level:
6527         * src/SDCCast.c (addCast): added promotion to int
6528         (decorateType): updated call to upCast()
6529         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6530         usualUnaryConversions()
6531
6532 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6533
6534         * support/regression/tests/literalop.c (mulWrapper): Added a
6535         wrapper to remove integer overflow warnings.
6536
6537         * support/regression/tests/float_trans.c: Made work on host.
6538
6539         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6540         location of sz80.
6541
6542         * support/regression/generate-cases.py (main): Changed from inline
6543         to a main method.
6544
6545         * doc/Makefile (install): Changed to depth first to get rid of
6546         missing directory install warning.
6547
6548         * as/Makefile (install-doc): Made work on Mac.
6549
6550 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6551
6552         * src/SDCCast.c: added an additional type flow in decorateType() of
6553         opposite direction, see feature request #860006; it's enabled at runtime
6554         by setting the environment variable SDCC_NEWTYPEFLOW
6555         * src/SDCCast.h: changed prototype of decorateType()
6556         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6557         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6558         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6559         see feature request #877103
6560         * src/SDCCval.c: updated call of decorateType()
6561         (valBitwise): fixed bug #882876
6562         (valMinus): added promotion
6563         (valLogicAndOr): result is unsigned
6564         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6565         * src/SDCCsymt.c (computeType),
6566         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6567         must not cause an unsigned operation
6568         * src/pic/glue (pic14emitRegularMap),
6569         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6570
6571 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6572
6573         * src/pic/pcode.c (PCodeID): commented out left over debug code
6574
6575 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6576
6577         * support/valdiag/tests/overflow.c: added shift tests
6578         * src/pic/device.c,
6579         * src/pic/gen.c,
6580         * src/pic/gen.h,
6581         * src/pic/glue.c,
6582         * src/pic/main.c,
6583         * src/pic/pcode.c,
6584         * src/pic/pcode.h,
6585         * src/pic/pcodepeep.c,
6586         * src/pic/pcoderegs.c,
6587         * src/pic/ralloc.c,
6588         * src/pic/ralloc.h: applied patch from Slade Rich;
6589         added support for multiple code pages and multiple RAM banks on the
6590         PIC 14 port. The ASM files now no longer simply assume all the
6591         code / RAM are in the same page / bank. This means the linker can
6592         safely allocate code/RAM of separate ASM files to different pages/banks.
6593         * doc/sdccman.lyx: added Slade's tips
6594         * src/mcs51/peeph.def: fixed bug #880768
6595
6596 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6597
6598         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6599         * src/SDCCast.c (decorateType): fixed bug #880197
6600
6601 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6602
6603         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6604         getopt.h.
6605
6606         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6607         strtof is not part of C89 and isn't included with Mac OS X.
6608
6609 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6610
6611         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6612         shiftL2Left2Result): fixed bug #879326
6613         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6614         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6615         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6616         address fetch for clr instruction
6617         * device/lib/hc08/_mulint.c: created optimized assembly version
6618         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6619
6620 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6621
6622         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6623         proposed in FR #877103
6624
6625 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6626
6627         * src/SDCCval.c (cheapestVal): added missing checks
6628         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6629         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6630
6631 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6632
6633         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6634         equal operands
6635
6636 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6637
6638         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6639         loaded with the linker search paths (-L arguments) and the libraries
6640         to be linked with the current source (-l arguments). Changes
6641         currently will affect only the pic16 port.
6642         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6643         include path the port specific paths and port specific libraries,
6644         * gplink command now contains the $3 argument,
6645         * src/pic16/device.h,
6646         * src/pic16/device.c,: structure PIC_device is made public and
6647         renamed to PIC16_device, the same for variable Pics which is renamed
6648         to Pics16. Updated all references to them.
6649         * src/pic16/glue.c (pic16glue): corrected bug with code
6650         initialization which bypassed the variable initializations block.
6651
6652         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6653         COMPILE_FLAGS and added the --nostdinc option
6654
6655 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6656
6657         * device/include/mc68hc908jb8.h: Register defs for another member
6658         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6659
6660 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6661
6662         Documenting changes from previous commits.
6663         * configure.in (version 1.56),
6664         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6665         when generating output files to configure the pic16 library,
6666         but now I've commented it out, since gputils aren't installed in the
6667         SF compile farm, so library won't compile
6668
6669         * device/lib/Makefile.in (version 1.56): initially I've added in
6670         target 'all' the prerequestive 'model-pic16' so it compiled the
6671         pic16 library, but now I've commented it out for the same reasons
6672         above,
6673         * added targets 'model-pic16' and 'objects-pic16' to compile the
6674         library
6675         * added target 'port-specific-objects-pic16' to handle the
6676         generated libraries and copy them into the build/ directory
6677         * added target 'clean-intermediate-pic16' to clean intermediate
6678         files into pic16 directory
6679         * in target 'installdirs' added line to create directory pic16 in
6680         the installation path
6681
6682         * device/include/Makefile.in (version 1.11): in target 'install'
6683         added lines to copy all header files to installation path,
6684         * in target 'installdirs' added line create directory for pic16
6685         headers in the installation path
6686
6687 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6688
6689         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6690          a function call
6691
6692 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6693
6694         * configure,
6695         * device/lib/configure.in,
6696         * device/lib/configure: fixed for autoconf 2.57
6697
6698 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6699
6700         * src/z80/main.c (_parseOptions): fixed the portmode= command line
6701         option so that it actually works. Made it specific to the z80, since
6702         the gbz80 doesn't have these kinds of I/O ports.
6703
6704 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6705
6706         * device/include/z180.h,
6707         * device/lib/_memcpy.c,
6708         * device/lib/_memmove.c,
6709         * device/lib/_mulint.c,
6710         * device/lib/ser_ir.c,
6711         * device/lib/ser_ir_cts_rts.c,
6712         * device/lib/_strcmp.c,
6713         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6714         * src/z80/main.c (_process_pragma): add support for pragmas bank and
6715         portmode; added deprecation warning for bank= and protmode= forms.
6716         Also, guard against buffer overflow.
6717         * src/z80/gen.c (aopGet): generate better code for sfr banked read
6718
6719 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6720
6721         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6722         changed interrupt vector table generation to only emit declared vectors.
6723         * device/include/Makefile.in: added missing backslash
6724         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6725
6726 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6727
6728         Mainly changes to support compilation of the device libraries
6729         * src/pic16/device.c: stack is allocated via symbol and not
6730         via literal number. The symbol is placed in the corresponding
6731         position of the data ram
6732         * (pic16_dump_section): relocatable and absolute uninitialized
6733         data are now emitted in sorted order to reduce section naming,
6734         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6735         weren't marked as being in the access bank,
6736
6737 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6738
6739         Added portion of GNU PIC Library under the directory
6740         device/include/pic16 and device/lib/pic16. These files
6741         contain the declarations of SFRs for the PIC18Fxx2 devices.
6742         The directory is initialized via configure from toplevel.
6743
6744 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6745
6746         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6747         the spilllocations to be compared correctly
6748
6749 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6750
6751         * src/SDCCast.c (decorateType): fixed bug introduced today
6752
6753 2004-01-12  Borut Razem <borut.razem AT siol.net>
6754
6755         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6756         doc/sdccman.lyx: upper case pragmas are deprecated
6757
6758 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6759
6760         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
6761         in simpler and even better code
6762
6763 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6764
6765         * src/SDCCicode.c (operandOperation): fixed bug #874819
6766         * src/SDCCast.c (decorateType): fixed
6767         char foo (unsigned long ul) { return ul > 0; }
6768
6769 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6770
6771         * doc/sdccman.lyx: Moved and added some sections, small changes
6772         all over. Telling LaTeX to be less strict with word spacing
6773         to better keep the right margin. Changed some notes about
6774         maintainance of the ports in section 3.2.1 - is it OK like this?
6775
6776 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6777
6778         SDCC source changes:
6779         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6780         convilong): modified to inform the pic16 port that builtin functions
6781         are external
6782
6783         PIC16 PORT specific changes:
6784         * src/pic16/device.c pic16_dump_equates() added,
6785         processor registers declared internally by the port are emitted in
6786         the translation as equates,
6787         * src/pic16/gen.c: inline code is passed unprocessed to the
6788         translation,
6789         * (pic16_popGetLit2): fnuction modified to take second operand as
6790         pCodeOp pointer and not as literal,
6791         * (popRegFromIdx): prefixed with pic16_,
6792         * (pic16_popCombine2): modified to receive already allocated pCode
6793         operands,
6794         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6795         * (genFunction): initializes local stack frame and pushes on stack
6796         all the registers used by this function,
6797         * (genEndFunction): restores all registers from stack and restores
6798         stack frame,
6799         * src/pic16/glue.c (pic16emitRegularMap): various changes and
6800         improvements,
6801         * (pic16glue): changed the program startup sequence,
6802         * added new dbName code 'A' for functions placed in absolute section
6803         * src/pic16/main.c: added function attribute _naked,
6804         * added pragma 'code' to place a fnuction at an absolute address,
6805         * added command line arguments --debug-ralloc and --pcode-verbose,
6806         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6807         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6808         * (pic16_newpCodeOpLit2): modified to take the second operand as
6809         pCodeOp pointer,
6810         * (pic16_printpBlock): modified to emit each function in a separate
6811         section,
6812         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6813         UPPER for immediate operands,
6814         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6815         instruction,
6816         * src/pic16/peeph.def: all peepholes with movff are commented out,
6817         because there is a problem in the pcode peep optimizer,
6818         * src/pic16/ralloc.c: the register allocator can now reuse local
6819         function symbols for another function. This saves register usage.
6820         * src/pic16/ralloc.h: added flag isLocal in structure regs,
6821
6822         Added file src/pic16/NOTES with information about program writing on
6823         the current port version.
6824
6825 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6826
6827         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6828         and peephole 252 (array access)
6829
6830 2004-01-09  Borut Razem <borut.razem AT siol.net>
6831
6832         * src/SDCCmain.c : fixed #872250: -l command line defined library
6833           files are scanned before standard library files
6834
6835 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6836
6837         * src/SDCCast.c (decorateType): fixed bug #874046
6838
6839 2004-01-09  Borut Razem <borut.razem AT siol.net>
6840
6841         * support/scripts/sdcc.nsi: remove previous installation
6842
6843 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6844
6845         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6846         bytes for last interrupt vector (mcs51)
6847         * sdcc.spec: fixed typo
6848
6849 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6850
6851         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6852         gen51Code): more efficient parameter receive for --model-large
6853         ("bug" #845294)
6854
6855 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6856
6857         * src/ds390/main.c,
6858         * src/z80/main.c: added missed needLinkerScript flags (more than
6859         one port structure defined in these file)
6860         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6861         bug #795325
6862
6863 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6864
6865         * src/SDCCmain.c: removed various references to DEFAULT_PORT
6866         * src/port.h: added flag needLinkerScript in port->linker
6867         structure to inform whether to create a .lnk file or not,
6868         * src/avr/main.c,
6869         * src/ds390/main.c,
6870         * src/hc08/main.c,
6871         * src/mcs51/main.c,
6872         * src/pic/main.c,
6873         * src/pic16/main.c,
6874         * src/xa51/main.c,
6875         * src/z80/main.c: changed appropriately to configure
6876         needLinkerScript flag
6877         * src/pic/gen.c,
6878         * src/pic16/gen.c (genAddrOf): fixed bug #863624
6879         * src/pic/glue.c: added variable udata_section_name to
6880         override default uninitialized data segment definition for
6881         devices only with SHAREBANK memory (reported from Erik Epetrich)
6882         * (pic14emitOverlay): modified to emit a commented overlay segment
6883         directive when no overlay data exist
6884         * (picglue): modified to emit uninitialized data segment
6885         according to udata_section_name
6886         * src/pic/main.c (_pic14_parseOptions): added command line
6887         options --udata-section-name=[name] to override default
6888         udata definition name
6889         * modified _linkCmd and _asmCmd to include compiler passed
6890         arguments via -W option
6891         * src/pic16/main.c: added $l in _asmCmd, changed extension for
6892         object file from '.rel' to '.o' in port->linker structure,
6893         changed size of fptr from 2 to 3 in port structure
6894
6895 2004-01-07  Borut Razem <borut.razem AT siol.net>
6896
6897         * support/scripts/sdcc.nsi: update PATH
6898         * support/scripts/sdcc.ico: craeted
6899
6900 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6901
6902         * device/include/Makefile.in: fix install
6903         * doc/Makefile: fix install
6904
6905 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6906
6907         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6908         in bug #860505
6909         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6910         how the function variable allocation summary is displayed; also
6911         include information about variables allocated to the overlay
6912         segment
6913
6914 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6915
6916         * as/mcs51/lkmain.c: Help about -Y option
6917         * as/mcs51/lkarea.c: Fixed gcc warnings
6918
6919 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6920
6921         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6922         fixed warning
6923         * support/valdiag/tests/overflow.c: added
6924         * src/SDCCast.c (decorateType),
6925         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6926         LEFT_OP (left shift)
6927
6928 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6929
6930         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6931         (default behaviour).
6932
6933 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6934
6935         A python script to validate compiler diagnostic messages. It can be
6936         used to verify that sdcc complains about bad c source code and
6937         gives a good location of the error.
6938         * support/valdiag/Makefile,
6939         * support/valdiag/valdiag.py,
6940         * support/valdiag/tests/*
6941
6942 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6943
6944         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6945         * src/SDCCsymt.c (newEnumType),
6946         * src/SDCCsymt.h
6947         * support/Util/SDCCerr.c,
6948         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6949         enum related bugs.
6950         * support/regression/tests/enum.c: added test for enum values that
6951         require at least 2 bytes of storage.
6952
6953 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6954
6955         * src/common.h: added ifndef/define/endif macros
6956         around the header file.
6957         Bug reported from Jesus Calvino-Fraga
6958
6959 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6960
6961         * sdcc.spec: updated
6962         * device/include/Makefile.in: don't install CVS directories
6963         * device/lib/Makefile.in: added removal of CVS directories after install
6964         * doc/Makefile: fixed install, added local_icons
6965         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6966         * src/mcs51/gen.c (genRightShift): fixed bug #870788
6967         * src/ds390/gen.c (genRightShift): fixed bug #870788
6968         * src/SDCCast.c (decorateType): fixed bug #870781
6969
6970 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6971
6972         PIC16 port related changes:
6973         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6974         added variable stackPos,
6975
6976         * gen.c: genCall, assignResultValue: added support for
6977         pushing/retrieving function parameters to/from stack,
6978         genFunction,genEndFunction: setup stack frame for the
6979         generated function,
6980         genAddrOf: will be changed according to bug 863624
6981
6982         * added files genutils.c and genutils.h which contain gen*
6983         debugged and optimised functions extracted from gen.c
6984
6985         * glue.c: added variable 'externs' which holds extern symbols,
6986         pic16emitRegularMap: is modified to properly handle relocatable
6987          symbols under the new scheme,
6988         pic16createInterruptVect: is modified
6989         pic16printPublics: is modified to emit 'global' assembler directives,
6990         added pic16_printExterns to print extern symbols,
6991         pic16glue: initializes stack/frame pointer in the beginning of
6992         the assembly output. Temporary hack, will be corrected later,
6993         because gplink yet does not support stack and SDCC does not
6994         yet support a type of crt0.o object to create the final binary.
6995
6996         * Removed many lines that contain 8051 legacy code.
6997         * The code is finally placed under a 'code' directive.
6998         * Added port specific options.
6999
7000         * _process_pragma: simplified since now we do not need *special*
7001         include file to define SFR registers. But a separate header
7002         will be needed. This will be developed later.
7003         * _pic16_parseOptions: added, parses port specific options:
7004         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7005         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7006         --preplace-udata-with=
7007
7008         * _pic16_setDefaultOptions: modified to initialize section names,
7009         but hack is temporarly out of order since it needs improvement.
7010         * _pic16_genAssemblerPreamble: configuration words are emitted by
7011         their address instead of their name. This part is incomplete and
7012         supports only the 18Fxx2 devices. Other devices will emit an error
7013         during assembly since they do not contain the same set of config
7014         registers
7015         * _pic16_genIVT: is modified,
7016
7017         * pcode.c: added definitions for some hardware registers that are needed
7018         for stack support
7019         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7020         All PCI entries are updated. Now LFSR is supported.
7021         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7022         * added pic16_newpCodeOpLit2 to support instructions with
7023         two literal arguments
7024         * pic16_pCode2str: corrected code that emits assembler instructions
7025         with two literal operands and those that have an access bit modifier
7026         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7027         this fixes a bug which caused some labels to be lost, when an
7028         assembler directive was added, i.e. banksel,
7029         * pic16_FixRegisterBanking: improved logic that causes the insertion
7030         of bank switching,
7031         * InlineFunction: functions that are called once, are not any more
7032         inlined. This can be a port option in the future,
7033
7034         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7035
7036         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7037         hold the corresponding uninitialized symbols,
7038         * pic16_allocProcessorRegister: registers have explicit marked the
7039         accessBank field,
7040         * pic16_allocInternalRegister: registers are explicit marked as
7041         not used,
7042         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7043         processing list, so bit registers were lost,
7044         *
7045
7046         * ralloc.h: added field 'accessBank' and original symbol operand
7047         in register definition,
7048         * removed the field isMapped from register definition,
7049
7050         ** Several functions have been removed from various sources:
7051         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7052         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7053         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7054         pic16_assignRelocatableRegisters
7055
7056         ** others have been introduced:
7057         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7058         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7059
7060 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7061
7062         * support/scripts/inc2h.pl: changed definition of BIT_AT
7063         to emit 'sbit at' instead of 'bit at'. This was a request.
7064
7065         PIC16 port related preliminary changes:
7066         * gen.c: prefixed function popRegFromString with
7067         pic16_ and all references to it corrected
7068         * pcode.c: all pic16_pc_* hardware registers prefixed
7069         with underscore (_),
7070         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7071         * ralloc.c: newReg(): when register is REG_SFR then
7072         set address to rIdx,
7073         pic16_allocProcessorRegister(): marks register wasUsed=0
7074         pic16_writeUsedRegs(): added a call to assign processor
7075         registers via pic16_assignFixedRegisters
7076
7077 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7078
7079         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7080         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7081         variables in unused register banks.  Also the SSEG is placed
7082         wherever there is enough space for it, and IDATA can be anywhere
7083         in internal RAM.  For now compile using -Wl-Y[stack_size].
7084         The mem file is different for this option as well, since it
7085         makes no sense of talking about DSEG lenght.
7086
7087 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7088
7089         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7090         in certain cases, e.g. when ROM assignment, patch provided
7091         from Albert den Haan.
7092
7093 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7094
7095         Many signedness and type propagation fixes:
7096         * src/SDCCicode.c: made geniCodeCast() static
7097         replaced SPEC_ by IS_ (cosmetic)
7098         (operandOperation): fixed div and mod operation
7099         (usualBinaryConversions): added support for promotion of char
7100         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7101         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7102         (geniCodeAdd): an array index will stay unsigned, even if promoted
7103         from char to int
7104         (geniCodeArray): ditto
7105         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7106         * src/SDCCsymt.c (computeType): added more support for char;
7107         promotion of char is selectable by promoteCharToInt, fixed signedness
7108         for all cases
7109         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7110         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7111         * src/SDCCval (val*): replaced signedness calculation by
7112         computeType()
7113         rearranged if-branches (cosmetic)
7114         (valShift): added warning W_SHIFT_CHANGED
7115         (valCompare): fixed problem with different types
7116         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7117         * support/regression/tests/literalop.c: added many cases
7118         * support/regression/tests/ast_constant_folding.c: changed finally to
7119         'unsigned int'
7120         * .version: new year, new version: 2.3.7
7121         * src/SDCCmain.c (main): applied patch #866468
7122         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7123         provided by Scott Bronson
7124         * doc/sdccman.lyx: updated documentation for sdcdb
7125         updated and added chapter tips
7126
7127 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7128
7129         * src/SDCCsymt.h: missing from yesterday's commits
7130
7131 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7132
7133         * src/SDCC.y (struct_or_union_specifier),
7134         * support/Util/SDCCerr.c,
7135         * support/Util/SDCCerr.h: verify that struct & union tags are used
7136         as declared.
7137
7138 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7139
7140         * src/SDCCglobl.h: missing from yesterday's commits
7141
7142 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7143
7144         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7145         sft_attributes, struct_declaration, parameter_declaration,
7146         type_name, start_block, declaration_list),
7147         * src/SDCC.lex (check_type): support redefinition of typedef names
7148
7149 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7150
7151         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7152         aligned xdata arrays. Erik helped me with the if clause.
7153
7154 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7155
7156         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7157         warning
7158
7159 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7160
7161         * src/SDCCast.h,
7162         * src/SDCCast.c (newAst_),
7163         * src/SDCCicode.h,
7164         * src/SDCCicode.c (ast2iCode, newiCode),
7165         * src/SDCCglobl.h,
7166         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7167         expr, statement, expression_statement, selection_statement,
7168         iteration_statement, expr_opt, jump_statement): foundation for tracking
7169         sequence points
7170         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7171         point code too)
7172
7173 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7174
7175         * support/Util/SDCCerr.c,
7176         * src/SDCCast.h,
7177         * src/SDCCast.c (createCase, createDefault, decorateType),
7178         * src/SDCClabel.c (labelUnreach),
7179         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7180         to error messages.
7181         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7182         (with thanks to Stas Sergeev)
7183         * device/include/time.h,
7184         * device/lib/time.c (CheckTime): suppress unreachable code warning
7185
7186 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7187
7188         * src/SDCCast.c (createIvalCharPtr),
7189         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7190         bug #753752)
7191         * support/regression/tests/nullstring.c: tests for these two bugs
7192
7193 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7194
7195         * support/Util/SDCCerr.h,
7196         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7197         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7198         about storage class and 'at' used inside struct or union
7199         * src/SDCCBBlock.c (iCodeFromeBBlock),
7200         * src/SDCCcse.c (ifxOptimize),
7201         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7202         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7203         printIval, emitStaticSeg, emitOverlay),
7204         * src/SDCClabel.c (deleteIfx),
7205         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7206         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7207         gatherAutoInit, processParms),
7208         * support/Util/SDCCerr.h,
7209         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7210         reporting for post-parse errors.
7211
7212 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7213
7214         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7215         implicit casts via union; they don't work on big endian systems
7216         (possible fix for bug #861138)
7217
7218 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7219
7220         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7221         * src/mcs51/main.c: fixed the fix for bug #737001
7222
7223 2003-12-15  Borut Razem <borut.razem AT siol.net>
7224
7225         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7226
7227 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7228
7229         * support/makebin/makebin.c: put output in binary mode
7230
7231 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7232
7233         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7234         xdata and data memory on startup. Set the environment variable
7235         SDCC_NOGENRAMCLEAR to disable this.
7236         * src/mcs51/peephole.def,
7237         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7238         (allows non-interrupt and interrupt code to safely compete for a resource
7239         without the non-interrupt code having to disable interrupts)
7240
7241 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7242
7243         * src/SDCCicode.c (geniCodeAdd),
7244         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7245         with valFromType if type might be a pointer and host is big endian).
7246         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7247         types, not just integer types.
7248         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7249         multiply defined with mismatching "at" address.
7250
7251 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7252
7253         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7254         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7255         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7256         with embedded nulls (fixed bug #753752)
7257
7258 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7259
7260         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7261         Apparently this did not see much testing (endless loop)
7262
7263 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7264
7265         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7266
7267 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7268
7269         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7270         gracefully handle NULL memmap pointers
7271
7272 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7273
7274         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7275         instead of deleting the iCode when an operand is volatile
7276         * src/z80/gen.c (genDummyRead),
7277         * src/mcs51/gen.c (genDummyRead),
7278         * src/ds390/gen.c (genDummyRead),
7279         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7280         not just IC_RIGHT
7281         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7282         * src/SDCC.y: fixed bug #850420
7283
7284 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7285
7286         Applied z80 i/o port patch from Peter Townson and fixed some operators
7287         to better handle operands in A register.
7288         * device/include/z180.h
7289         * src/SDCC.y
7290         * src/SDCCglue.c
7291         * src/z80/gen.c
7292         * src/z80/gen.h
7293         * src/z80/main.c
7294         * src/z80/peeph-z80.def
7295         * src/z80/peeph.def
7296         * src/z80/z80.h
7297
7298 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7299
7300         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7301
7302 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7303
7304         * device/lib/hc08/_mullong.c: Removed extra #endif
7305
7306 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7307
7308         * sim/ucsim/hc08.src/inst.cc,
7309         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7310         carries from x to h
7311         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7312         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7313         * device/include/stdarg.h: fixed varargs for hc08
7314         * device/lib/Makefile.in,
7315         * device/lib/hc08/Makefile,
7316         * device/lib/hc08/_mulint.c,
7317         * device/lib/hc08/_mullong.c: fixed some endian problems
7318
7319 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7320
7321         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7322         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7323         * device/lib/_gptrget.c,
7324         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7325
7326 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7327
7328         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7329         * src/SDCCast.c (astErrors): fixed bug #846007
7330         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7331
7332 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7333
7334         * src/SDCCast.c (decorateType): disabled a transformation I added in
7335         revision 1.188 (access to fields of a structure at an absolute address);
7336         it breaks with bitfields, extern declarations, and gcse analysis.
7337         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7338         could be assigned through a pointer, so don't complain.
7339         * src/SDCCast.c (astErrors),
7340         * src/SDCCast.h,
7341         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7342
7343 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7344
7345         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7346         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7347         output of __config directives, since gpasm now supports them
7348         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7349         pre-processor macro, i.e. -DMCU=p18f452
7350         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7351         and modified to handle 'cast' icode similarly to '=' icode
7352         * src/pic16/device.h (typedef struct PIC_device): added field
7353         'extMIface' to indicate that chip has external memory interface
7354         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7355         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7356         18F8720
7357
7358 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7359
7360         * src/SDCC.y (pointer): fixed bug #846006
7361         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7362         * src/SDCCast.c (decorateType): fixed bug #846009
7363         * src/ds390/peeph.def,
7364         * src/ds390/gen.c (genAnd, genOr),
7365         * src/mcs51/peeph.def,
7366         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7367
7368 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7369
7370         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7371         * src/SDCCdflow.c
7372         * src/SDCCcse.c
7373         * src/SDCCcse.h
7374         * src/SDCCBBlock.h
7375         * src/SDCCBBlock.c
7376
7377 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7378
7379         fixed bug #845089
7380         * src/SDCCbitv.h,
7381         * src/SDCCbitv.c: added function to free a bitvector
7382         * src/SDCClrange.h,
7383         * src/SDCClrange.c: added function to recompute the liveranges
7384         * src/avr/ralloc.c,
7385         * src/ds390/ralloc.c,
7386         * src/hc08/ralloc.c,
7387         * src/mcs51/ralloc.c,
7388         * src/pic/ralloc.c,
7389         * src/pic16/ralloc.c,
7390         * src/xa51/ralloc.c,
7391         * src/z80/ralloc.c: recompute the liveranges after register packing
7392
7393 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7394
7395         * src/SDCCloop.c (newInduction): fixed bug #845630
7396
7397 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7398
7399         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7400         inadvertantly left behind from my 2003-11-12 change
7401
7402 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7403
7404         Updated headers I neglected to commit yesterday.
7405         * src/SDCClrange.h,
7406         * src/SDCCicode.h
7407
7408 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7409
7410         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7411         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7412         * src/SDCCopt.c (eBBlockFromiCode),
7413         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7414         the creation of the key hash table from the sequencing so it can be used
7415         earlier (for some GCSE bug fixes still pending)
7416
7417 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7418
7419         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7420         * support/regression/tests/addsub.c: testing genPlus shortcut
7421
7422 2003-11-15  Borut Razem <borut.razem AT siol.net>
7423
7424         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7425
7426 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7427
7428         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7429         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7430         ordering is immaterial.
7431         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7432
7433 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7434
7435         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7436         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7437         (SIGSEV) of bug #840381
7438         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7439         unlink new file before rename if new and old filenames are the same)
7440
7441 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7442
7443         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7444         uninitialized variables) for the mcs51. Set environment variable
7445         SDCC_GENRAMCLEAR to test.
7446         xdata initialization slightly shorter
7447
7448 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7449
7450         * src/SDCCsymt.h,
7451         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7452         #838241 & 780691 (basicly the same bug)
7453         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7454         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7455
7456 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7457
7458         * src/SDCCmain.c (linkEdit): "fix" #834252
7459
7460 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7461
7462         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7463         * src/SDCCast.h,
7464         * src/SDCC.y: fixed bug #819403
7465
7466 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7467
7468         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7469         the reentrant attribute.
7470         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7471         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7472         simulation
7473         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7474         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7475         erroneously reduced to a literal.
7476         * src/hc08/ralloc.c (packRegisters, rematStr),
7477         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7478         some cases
7479
7480 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7481
7482         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7483         * doc/sdccman.lyx: changed from 'article' to 'book'
7484         * doc/Makefile: readded test_suite_spec and cdbfileformat
7485
7486 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7487
7488         * device/include/stdlib.h: include malloc.h to comply with ANSI
7489         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7490
7491 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7492
7493         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7494         * doc/clean.mk: also remove *.out files
7495         * doc/sdccman.lyx: some additions, larger top/bottom margins
7496
7497 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7498
7499         * src/SDCC.y: fixed bug #837365
7500         * support/regression/tests/bitopcse.c
7501         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7502         a symbol (might be valop instead)
7503         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7504         * device/lib/clean.mk: added hc08 to the cleaning list
7505
7506 2003-11-04  Borut Razem <borut.razem AT siol.net>
7507
7508         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7509           made 2003-11-04
7510         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7511           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7512           malloc is declared in standard stdlib.h
7513
7514 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7515
7516         * device/lib/hc08/Makefile: need to clean .rel not .o files
7517         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7518
7519 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7520
7521         * src/port.h,
7522         * src/hc08/main.c,
7523         * src/mcs51/main.c,
7524         * src/ds390/main.c,
7525         * src/z80/main.c,
7526         * src/avr/main.c,
7527         * src/pic/main.c,
7528         * src/pic16/main.c,
7529         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7530         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7531         tests (which uses the port's oclsExpense function)
7532         * src/SDCC.y,
7533         * src/SDCCast.c,
7534         * src/SDCCicode.c,
7535         * src/hc08/gen.c,
7536         * src/ds390/gen.c,
7537         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7538
7539 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7540
7541         * src/SDCCcse.c (ifxOptimize),
7542         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7543         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7544         deleting the IFX iCode.
7545         * src/hc08/ralloc.c: reduced unneeded slocs
7546         * src/hc08/gen.c: fixed bug in asmopToBoolean
7547
7548 2003-11-04  Borut Razem <borut.razem AT siol.net>
7549
7550         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7551           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7552           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7553           transferred to configure
7554
7555 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7556
7557         Use headers defined in the C[++] standards:
7558         * sim/ucsim/gui.src/serio.src/fileio.cc
7559         * sim/ucsim/gui.src/serio.src/frontend.cc
7560         * sim/ucsim/gui.src/serio.src/main.cc
7561         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7562         * support/Util/NewAlloc.c
7563         * as/hc08/lklibr.c
7564         * as/mcs51/lklibr.c
7565         * as/z80/aslist.c
7566         * as/z80/assym.c
7567
7568 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7569
7570         * Added MSVC projects for hc08 assembler and linker:
7571         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7572         /as/hc08/link_hc08.dsp
7573
7574 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7575
7576         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7577
7578 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7579
7580         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7581
7582 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7583
7584         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7585
7586 2003-10-31  Borut Razem <borut.razem AT siol.net>
7587
7588         * support/cpp2/cpplib.h,
7589           support/cpp2/cpplib.c,
7590           support/cpp2/cpplex.c,
7591           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7592           to switch _asm block preprocessing on / off. Default is
7593           #pragma preproc_asm +
7594
7595 2003-10-31  Borut Razem <borut.razem AT siol.net>
7596
7597         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7598           when outputting comment blocks (when executed with -C option) and
7599           _asm (SDCPP specific) blocks
7600
7601 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7602
7603         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7604
7605 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7606
7607         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7608
7609 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7610
7611         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7612         * src/SDCCast.c (decorateType): fixed bug #832664
7613
7614 2003-10-31  Borut Razem <borut.razem AT siol.net>
7615
7616         * support\cpp2\cpplex.c: fixed for SDCPP:
7617           comments(when executed with -C option) and _asm blocks
7618           were included even if they where in skipped #if block.
7619           Applied solution from GCC cpp 3.3.2
7620
7621 2003-10-31  Borut Razem <borut.razem AT siol.net>
7622
7623         * src/SDCC.lex: sdcc now understands both formats:
7624           '# <line_number> <file_name>' and
7625           '#line <line_number> <file_name>'
7626         * support/cpp2/cppmain.c: sdcpp now generates the standard
7627           '# <line_number> <file_name>' instead of former
7628           '#line <line_number> <file_name>'
7629
7630 2003-10-30  Borut Razem <borut.razem AT siol.net>
7631
7632         * support/cpp2/cpphash.h,
7633         * support/cpp2/cpplib.h
7634         * support/cpp2/cpplex.c,
7635         * support/cpp2/cppmain.c,
7636         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7637
7638 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7639
7640         Fixed a number of problems revealed by bug #827883.
7641         * src/SDCCloop.c (loopInvariants): Spill location of the
7642         result operand should be recomputed if extracted from
7643         a loop. Also, don't extract assignments of an iTemp
7644         from a literal.
7645         * src/SDCCast.c (isConformingBody): loop reversal should
7646         not occur if the control variable is involved with a
7647         relational operator.
7648
7649 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7650
7651         * .version: bumped to 2.3.6 to reflect the big improvements
7652         made by Erik and Klaus. Thanks!
7653
7654 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7655
7656         Replaced the livrange code.
7657         * src/SDCClrange.c: added new LR code
7658         * src/SDCCloop.c,
7659         * src/SDCCBBlock.h: removed remainig parts from old LR code
7660         * src/ds390/ralloc.c,
7661         * src/ds390/gen.c: minor fixes to make it work with new code
7662
7663 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7664
7665         * as/hc08/asm.h,
7666         * as/hc08/lkrloc.c,
7667         * src/hc08/gen.c,
7668         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7669         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7670         (tweaked fix for bug #818696)
7671
7672 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7673
7674         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7675
7676 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7677
7678         * src/SDCCmain.c,
7679         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7680         * src/mcs51/gen.c (gencjneshort),
7681         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7682         more efficient (per Scott Bronson's suggestion)
7683
7684 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7685
7686         Extended the semantics of the critical keyword to include
7687         individual statements. See RFE #827755 and #799831
7688         * src/SDCC.y
7689         * src/SDCCicode.c
7690         * src/SDCCopt.c
7691         * src/SDCCast.c
7692         * support/Util/SDCCerr.c
7693         * support/Util/SDCCerr.h
7694         * src/mcs51/gen.c
7695         * src/ds390/gen.c
7696         * src/hc08/gen.c
7697
7698 2003-10-19  Borut Razem <borut.razem AT siol.net>
7699
7700         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7701
7702 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7703
7704         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7705         Fixed bug #818696
7706         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7707         and predecrement operand is displayed
7708
7709 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7710
7711         * src/SDCCval.c (valMinus): fixed bug #826041
7712
7713 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7714
7715         Some hc08 related updates that I missed earlier
7716         * sim/ucsim/stypes.h
7717         * support/regression/ports/hc08/spec.mk
7718
7719 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7720
7721         New target "hc08" for the Motorola 68hc08 family of micros
7722
7723         * configure
7724         * configure.in
7725         * Makefile
7726         * src/hc08/*
7727         * src/SDCCmain.c
7728         * src/port.h
7729         * sim/ucsim/hc08.src/*
7730         * sim/ucsim/configure.in
7731         * src/ucsim/configure
7732         * sim/ucsim/packages_in.mk
7733         * as/hc08/*
7734         * as/Makefile
7735         * device/include/mc68hc908qy.h
7736         * device/lib/hc08/*
7737         * device/lib/Makefile.in
7738         * support/regression/ports/hc08/*
7739         * support/regression/Makefile
7740
7741 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7742
7743         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7744         regression test
7745         * src/ds390/gen.c (genCast): fixed bug #821957
7746
7747 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7748
7749         * device/lib/logf.c: "fixed" overlay bug
7750         * support/regression/ports/host/spec.mk: added m library
7751         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7752         * support/regression/tests/float_trans: added (for Eric)
7753
7754 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7755
7756         * src/mcs51/gen.c (genCpl): fixed bug
7757         http://sf.net/mailarchive/message.php?msg_id=6263915
7758
7759 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7760
7761         * src/SDCCast.c (decorateType): added extended constant folding
7762         * src/SDCCsymt.c (computeType): cleanup
7763         * src/SDCCval.c (valShift): minor optimization
7764         * support/regression/tests/ast_constant_folding.c: added
7765
7766 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7767
7768         * src/SDCCmain.c: removed some unintended changes
7769
7770 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7771
7772         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7773         * src/z80/gen.c: fixed part of bug #817589
7774         * src/SDCCsymt.c (checkFunction): fixed bug #817895
7775
7776 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7777
7778         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7779         * src/SDCCcflow.c
7780         * src/SDCCcse.c
7781         * src/SDCCdflow.c
7782         * src/SDCClabel.c
7783         * src/SDCClrange.c
7784         * src/SDCCmem.c
7785         * src/SDCCopt.c
7786         * src/SDCCpeeph.c
7787         * src/SDCCset.c
7788         * src/avr/ralloc.c
7789         * src/ds390/ralloc.c
7790         * src/izt/ralloc.c
7791         * src/mcs51/ralloc.c
7792         * src/pic/ralloc.c
7793         * src/pic16/ralloc.c
7794         * src/xa51/ralloc.c
7795         * src/z80/ralloc.c
7796         * src/z80/gen.c: removed unused label "release:"
7797
7798 2003-10-06  Borut Razem <borut.razem AT siol.net>
7799
7800         * src/SDCC.lex: removed definition of unused variables
7801           save_optimize and save_options
7802
7803 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7804
7805         * clean.mk: removed '=' in "-maxdepth=1"
7806         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7807         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7808
7809 2003-10-06  Borut Razem <borut.razem AT siol.net>
7810
7811         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7812           my_unput() replaced by unput()
7813
7814 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7815
7816         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7817         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7818         type-punned pointer will break strict-aliasing rules"
7819         Old LR behaviour is again default; Klaus' LR can be choosen by
7820         defining the environment variable LRKLAUS
7821         * src/SDCCBBlock.h
7822         * src/SDCCloop.c
7823         * src/SDCClrange.c
7824         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7825         * clean.mk: fixed removal of files in bin/CVS/
7826         * device/lib/clean.mk: fixed removal of directories small and large
7827         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7828         * src/SDCCicode.c,
7829         * src/SDCCval.c: removed superflous test for pedantic
7830
7831 2003-10-05  Borut Razem <borut.razem AT siol.net>
7832
7833         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7834           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7835           message "unmatched #pragma SAVE and #pragma RESTORE"
7836
7837 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7838
7839         * doc/sdccman.lyx: various additions and updates (interrupts, inline
7840           assembly, critical functions, atomic, nojtbound)
7841
7842 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7843
7844         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7845         * src/SDCCBBlock.h
7846         * src/SDCCloop.c
7847         * src/SDCCloop.h
7848         * src/SDCClrange.c
7849
7850 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7851
7852         * src/z80/gen.h,
7853         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7854         * src/mcs51/gen.h
7855         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7856         * src/ds390/gen.h
7857         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7858         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7859         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7860
7861 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7862
7863         * src/z80/gen.c (genRet): fixed bug #524753
7864         * src/z80/gen.c (genCast): fixed internal error on cast from
7865         pointer to long
7866         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7867         fix for bug #477835 to the z80
7868         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7869         for tracking iCodes in the peephole optimizer for z80
7870
7871 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7872
7873         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7874         the other part of bug #814548
7875         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7876
7877 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
7878
7879         * src/SDCCcse.c: fixed part of bug #814548
7880
7881 2003-09-28  Borut Razem <borut.razem AT siol.net>
7882
7883         * src/asm.c: rewrite of printILine() to use temporary file instead
7884           a pipe
7885         * src/xa51/main.c: commented out declaration of int rewinds
7886
7887 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7888
7889         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7890
7891 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7892
7893         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7894         * src/asm.c (printILine): Fixed bug #811015
7895
7896 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7897
7898         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7899         freeing.
7900
7901 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7902
7903         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7904         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7905         to correctly handle general case of AOP_PAIRPTR
7906         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7907
7908 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7909
7910         * src/mcs51/ralloc.c (fillGaps),
7911         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7912         register positioning bug)
7913
7914 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
7915
7916         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7917
7918 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7919
7920         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7921         genCodePointerGet, genGenPointerGet, genFarPointerSet,
7922         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7923         (ralloc doesn't intentionally do this now, but perhaps later)
7924         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7925         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7926         register positioning bugs (Fixed bug #762602 and #795325)
7927         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7928         (Fixed bug #808779)
7929         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7930         lines that --i-code-in-asm generates
7931
7932 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7933
7934         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7935         trying to fclose a FILE* that was already closed.
7936
7937 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7940         of const struct should be treated as if const themselves)
7941
7942 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
7943
7944         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7945
7946 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7947
7948         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7949         Unix (/n) and DOS (/r/n) line terminations.
7950
7951 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7952
7953         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7954         bug #613775
7955
7956 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7957
7958         * src/mcs51/gen.c (genFunction, genEndFunction),
7959         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7960         and restore of EA so that stack offsets to parameters are
7961         correct when using both critical and reentrant/stack-auto.
7962         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7963         size (can be triggered in error if sloc is shared between
7964         different sized objects)
7965         * device/include/float.h: fixed macros to explicitly use
7966         unsigned long where needed
7967
7968 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
7969
7970         Feature req. 799831: added code to allow nesting of critical functions
7971         * src/mcs51/gen.c (genFunction, genEndFunction)
7972         * src/ds390/gen.c (genFunction, genEndFunction)
7973
7974 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7975
7976         * src/SDCCsymt.c (sclsFromPtr),
7977         * src/SDCCsymt.h,
7978         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7979         support for standard C idiom of memory mapped variables; for
7980         example, *((xdata int*)0x1234) = 1 is now internally equivalent
7981         to xdata int at 0x1234 tempvar = 1.
7982         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7983         provided by Akiya ISHIDA
7984
7985 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
7986
7987         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7988         * src/SDCCval.c (constVal): added reduction from int to char
7989         * src/SDCCval.c (valMult, valDiv): fixed sign handling
7990         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7991         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7992         to ignore the sign
7993         * support/regression/tests/shifts.c: fixed
7994
7995 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7996
7997         * src/z80/gen.c (genXor): Fixed bug #805445
7998
7999 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8000
8001         Fixed bug #621531 (const & volatile confusion in the type chain).
8002         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8003         refer to the const or volatile state of the pointer itself.
8004
8005         * src/SDCCast.c
8006         * src/SDCCglue.c
8007         * src/SDCCicode.c
8008         * src/SDCCsymt.c
8009         * src/SDCCval.c
8010         * src/SDCC.y
8011         * src/SDCCsymt.h
8012         * src/pic/gen.c
8013         * src/pic/ralloc.c
8014         * src/pic16/gen.c
8015         * src/pic16/ralloc.c
8016         * support/regression/tests/const.c
8017
8018 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8019
8020         When checking for duplicated modules, use absolute paths
8021         instead of relative paths.  Files changed:
8022
8023         * as/mcs51/lklib.c
8024         * link/z80/lklib.c
8025
8026 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8027
8028         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8029
8030 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8031
8032         * device/include/string.h: added size_t typedef, changed
8033         prototypes to use size_t, eliminated separate reentrant and
8034         non-reentrant declarations, added _memmove declaration
8035         * device/lib/_memcpy.c: changed to use size_t instead of int,
8036         changed /4 to >>2 to avoid division library call
8037         * device/lib/_memcmp.c,
8038         * device/lib/_memset.c,
8039         * device/lib/_strncat.c,
8040         * device/lib/_strncpy.c,
8041         * device/lib/_strncmp.c: changed to use size_t instead of int
8042         * device/lib/_memmove.c: new file (fixed bug #772294)
8043         * device/lib/Makefile.in: added _memmove.c
8044         * device/lib/z80/asm_strings.s: fixed bug #772290
8045         * support/regression/tests/bitfields.c: attempt to fix host assertion
8046         failure on amd64-unknown-linux2.2
8047
8048 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8049
8050         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8051         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8052         * as/z80/asmain.c (main): fixed bug #801766
8053
8054 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8055
8056         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8057         compilers
8058
8059 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8060
8061         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8062         reported in bug #800609
8063
8064 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8065
8066         * Top header beautifications in src/pic16 directory:
8067           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8068           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8069           pcoderegs.h, ralloc.c, ralloc.h
8070         * main.c: added top header and GPL license notice
8071         * pcode.c: fixed the if-conditional warning
8072
8073 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8074
8075         * device/lib/_mullong.c: replaced int by short for gcc
8076
8077 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8080         and JUMPTABLE iCodes properly now (worked by accident before)
8081         * src/mcs51/gen.c (leftRightUseAcc),
8082         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8083         iCode properly now. Use getSize instead of nRegs since a & b
8084         aren't part of the nRegs tally.
8085
8086 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8087
8088         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8089         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8090           before instructions that use the _STATUS register
8091
8092 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8093
8094         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8095         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8096         fetching of the pointer
8097         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8098         copied from genNearPointerSet()
8099         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8100         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8101         If they pop r0/r1 they must be called in the opposite order than aopOp().
8102         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8103         (resp. --stack-auto), prepared for --xstack
8104
8105 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8106
8107         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8108
8109 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8110
8111         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8112         these ports have their own __sdcc_external_start()
8113
8114 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8115
8116         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8117         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8118         type for bits was changed. It resulted in bit variables becoming
8119         global, which is not permitted in PIC 14 assembly output.
8120
8121 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8122
8123         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8124
8125 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8126
8127         Z80 and MCS51 linkers complaint if a public symbol is defined
8128         in more than one library module:
8129
8130         * as/mcs51/lklib.c
8131         * link/z80/lklib.c
8132         * as/mcs51/Makefile.in
8133
8134 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8135
8136         A few small changes that speed up the peephole optimizer.
8137
8138         * src/SDCCpeeph.c
8139
8140 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8141
8142         Try to make the peephole optimizer smarter by maintaining
8143         an association between the assembly source code and the
8144         iCodes that originated them. Put this information to use
8145         with a new peephole rule condition "notVolatile" so that
8146         the rules can be aggressive yet still safe.
8147
8148         * src/SDCCpeeph.c
8149         * src/SDCCpeeph.h
8150         * src/mcs51/gen.c
8151         * src/mcs51/peeph.def
8152
8153 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8154
8155         Fixed bug #741761
8156
8157         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8158         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8159         if the left or right operand symbols have the accuse flag set.
8160
8161 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8162
8163         Changed the type of the result of the ! (NOT) operator to char;
8164         previously it returned the same type as the source. This allows
8165         us to eliminate all the genFloatNot functions (all of its target
8166         implementations were very buggy) since !float can use the same
8167         code as !long now.
8168
8169         * src/SDCCicode.c (ast2iCode): ! returns char
8170         * src/mcs51/gen.c (genNot, genNotFloat),
8171         * src/ds390/gen.c (genNot, genNotFloat),
8172         * src/z80/gen.c (genNot, genNotFloat),
8173         * src/pic/gen.c (genNot, genNotFloat),
8174         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8175
8176 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8177
8178         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8179         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8180            during interrupts. Ensure WSAVE is located at a shared bank address.
8181         2. Fixed page selection in some places
8182         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8183            the registers name strings.
8184         4. Fixed "signed / unsigned compare" compiler warnings.
8185         5. The PIC port manages its own allocation of the general purpose
8186            registers, but makes no attempt to reuse them. As a result when
8187            compiling it soon runs out of general purpose registers. Some
8188            additional code was added to the files pcode.c and device.c to walk
8189            through the function call tree and rename the registers so that they
8190            get reused.
8191
8192         * src/pic/device.c
8193         * src/pic/gen.c
8194         * src/pic/glue.c
8195         * src/pic/pcode.c
8196         * src/pic/pcode.h
8197         * src/pic/ralloc.c
8198         * src/pic/ralloc.h
8199         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8200         genPlus() & genMinus() when the result is the same as left or right
8201
8202 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8203
8204         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8205
8206 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8207
8208         Made bitfield a distinct type from bit so that bitfields
8209         convert as per ANSI C and bits retain their traditional
8210         boolean style behaviour. Implemented bitfield support in
8211         the z80 port.
8212
8213         * src/SDCCsymt.h,
8214         * src/SDCCsymt.c,
8215         * src/SDCCast.c,
8216         * src/cdbFile.c,
8217         * src/mcs51/gen.c,
8218         * src/ds390/gen.c: bit v bitfield split
8219         * src/z80/gen.c: New support for bitfields
8220         * support/regression/tests/bitfields.c: reenabled z80,
8221         added more tests
8222
8223 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8224
8225         Rules 246.x, 247.x relate to bitfields, the others speed up
8226         access to xdata mapped I/O devices.
8227
8228         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8229
8230 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8231
8232         Cleaned up genPackBits and genUnpackBits and added two helper
8233         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8234         for literal assignments in genPackBits (thanks to Frieder for
8235         reminding me).
8236
8237         * src/mcs51/gen.c
8238         * src/ds390/gen.c
8239
8240 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8241
8242         Fixed bug #748310 (pointer to function type mishandled when the
8243         function name is omitted). Also fixed a SIGSEGV when a function
8244         attribute (reentrant, etc) is used on a non-function or on a
8245         function but misplaced before the parameter list.
8246
8247         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8248         bug #748310
8249         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8250         * support/Util/SDCCerr.h,
8251         * support/Util/SDCCerr.c: Added func attr misuse error msg
8252
8253 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8254
8255         Fixed bug #787649 by anonymous
8256         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8257         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8258
8259 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8260
8261         Fixed numerous bitfield problems.
8262
8263         * src/SDCC.y: More bitfield related error checking
8264         * src/SDCCsymt.h,
8265         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8266         * support/Util/SDCCerr.h,
8267         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8268         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8269         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8270         * support/regression/tests/bitfields.c: tests added
8271
8272 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8273
8274         Made the constant following the "interrupt" keyword optional. If
8275         omitted, the function will not automatically be given an entry
8276         in the interrupt vector table (similar to #pragma NOIV, but
8277         less syntacticly kludgy). The interrupt number is also now
8278         range checked. Also fixed a bug in the high order bit example
8279         in the manual.
8280
8281         * src/SDCC.y
8282         * src/SDCCmem.c
8283         * src/SDCCglue.c
8284         * src/SDCCsymt.h
8285         * support/Util/SDCCerr.c
8286         * support/Util/SDCCerr.h
8287         * doc/sdccman.lyx
8288
8289 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8290
8291         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8292         * src/SDCCicode.c (operandOperation): rewritten some ops
8293         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8294         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8295         other type
8296         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8297         be re-activated by defining REDUCE_LITERALS)
8298         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8299         unsigned, but are signed by default
8300         * src/SDCCval.c (constVal): rearranged
8301         * src/SDCCval.c (valMod): preliminary fix
8302         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8303         * support/regression/literalop.c: added, work in progress
8304
8305 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8306
8307         Generate warnings for useless declarations like "char data;"
8308         that don't do what new users expect.
8309
8310         * src/SDCC.y
8311         * support/Util/SDCCerr.h
8312         * support/Util/SDCCerr.c
8313
8314 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8315
8316         * src/SDCCval.c (valMult): fix overflow detection of negative int
8317
8318 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8319
8320         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8321
8322         Changes to support big endian targets:
8323
8324         * src/ports.h
8325         * src/SDCCglue.c
8326         * src/avr/main.c
8327         * src/ds390/main.c
8328         * src/izt/i186.c
8329         * src/mcs51/main.c
8330         * src/pic/main.c
8331         * src/pic16/main.c
8332         * src/xa51/main.c
8333         * src/z80/main.c
8334
8335 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8336
8337         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8338         * device/lib/time.c: fixed warning "integer overflow in expression"
8339
8340 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8341
8342         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8343         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8344         constants are unsigned; added recognition of "u" flag for unsigned
8345         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8346         * src/SDCCval.c (valDiv, valMod): fixed signdness
8347         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8348         signedness of modulo, left and right shift
8349         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8350         * support/Util/SDCCerr.h: added warning W_INT_OVL
8351         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8352         * src/SDCCast.c (ast_print): improved output of constants
8353
8354 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8355
8356         Fixed some warnings when building with MSVC:
8357
8358         * as\mcs51\asdata.c
8359         * as\z80\asdata.c
8360         * as\mcs51\asm.h
8361         * as\z80\asm.h
8362         * link\z80\aslink.h
8363         * link\z80\lkdata.c
8364         * link\z80\lkeval.c
8365         * link\z80\lkgb.c
8366         * link\z80\lkihx.c
8367         * link\z80\lks19.c
8368         * link\z80\lksym.c
8369         * support\cpp2\cpplib.c
8370         * src\ds390\gen.c
8371         * src\mcs51\gen.c
8372
8373 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8374
8375         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8376
8377 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8378
8379         * support\librarian\clean.mk: Do not remove Makefile.
8380         * support\librarian\Makefile: added.
8381
8382 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8383
8384         Added librarian to MSVC build:
8385         * all.dsp
8386         * sdcc.dsw
8387         * support\librarian\librarian.dsp
8388
8389         'configure' not needed for librarian, removed:
8390         * support\librarian\configure
8391         * support\librarian\configure.in
8392         * support\librarian\config_in.h
8393         * support\librarian\Makefile.in
8394
8395         Hopefully these ones built the librarian and the rest of sdcc properly:
8396         * Makefile
8397         * Makefile.common.in
8398
8399         Messed up 'configure', so revert to previous version:
8400         * configure
8401         * configure.in
8402
8403 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8404
8405         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8406         there, while the mantissa of a double is "only" 53 bits wide.
8407
8408 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8409
8410         Adding sdcclib to the build.  MSVC project coming soon.
8411         Files added/changed:
8412
8413         * support\librarian\clean.mk
8414         * support\librarian\configure
8415         * support\librarian\configure.in
8416         * support\librarian\config_in.h
8417         * support\librarian\Makefile.bcc
8418         * support\librarian\Makefile.in
8419         * support\librarian\sdcclib.c
8420         * Makefile.bcc
8421         * Makefile
8422         * Makefile.common.in
8423         * configure
8424         * configure.in
8425
8426 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8427
8428         Linker now complaints if linked modules have conflicting options, for
8429         example, one compiled using --model-large and another one compiled with
8430         --model-small.  The following files were modified:
8431
8432         * as\mcs51\asdata.c
8433         * as\mcs51\aslink.h
8434         * as\mcs51\asm.h
8435         * as\mcs51\asmain.c
8436         * as\mcs51\asout.c
8437         * as\mcs51\i51pst.c
8438         * as\mcs51\lkdata.c
8439         * as\mcs51\lklibr.c
8440         * as\mcs51\lkmain.c
8441         * as\z80\asdata.c
8442         * as\z80\asm.h
8443         * as\z80\asmain.c
8444         * as\z80\asout.c
8445         * as\z80\z80pst.c
8446         * link\z80\aslink.h
8447         * link\z80\lkdata.c
8448         * link\z80\lklibr.c
8449         * link\z80\lkmain.c
8450         * src\SDCCglue.c
8451
8452 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8453
8454         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8455         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8456
8457 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8458
8459         * src/z80/mappings.i: fix _mul[us][int,long] entries
8460
8461 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8462
8463         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8464
8465 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8466
8467         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8468         * support/regression/tests/bitopcse.c: added
8469         fixed warning:
8470         * src/avr/gen.c:
8471         * src/pic/gen.c:
8472         * src/pic16/gen.c:
8473         * src/z80/gen.c:
8474         * src/xa51/gen.c:
8475
8476 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8477
8478         added support for new library format to z80, gbz80 linkers:
8479         *link/z80/aslink.h
8480         *link/z80/lklex.c
8481         *link/z80/lklib.c
8482         *link/z80/lklist.c
8483
8484 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8485
8486         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8487         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8488
8489 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8490
8491         added DUMMY_READ_VOLATILE:
8492         * src/SDCC.y:
8493         * src/avr/gen.c:
8494         * src/xa51/gen.c:
8495         * src/z80/gen.c:
8496         * src/pic/gen.c:
8497         * src/pic16/gen.c:
8498         * src/mcs51/gen.c:
8499         * src/ds390/gen.c:
8500         * src/SDCCcse.c (algebraicOpts): many improvements
8501         * src/SDCCcse.h: removed algebraicOpts()
8502         * src/SDCCicode.c (picDummyRead): added
8503
8504 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8505
8506         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8507         "Insufficient space in data memory".
8508
8509 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8510
8511         * src/mcs51/gen.c: fixed bug #771358
8512         * src/z80/gen.c: fixed bug #759087
8513
8514 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8515
8516         * src/pic16/glue.c: minor cleanup by Vangelis
8517
8518 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8519
8520         * device/include/regc515c.h: fixed #758477
8521         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8522         * device/lib/_gptrput.c: saved a few bytes
8523         * my tab spacing is 8, yours too?)
8524         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8525         * device/lib/serial.c: process RX bytes earlier than TX bytes
8526         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8527
8528 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8529
8530         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8531
8532 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8533
8534     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8535
8536 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8537
8538         * device/lib/Makefile.in: bad fix, reverted to 1.43
8539
8540 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8541
8542         * device/lib/Makefile.in: added missing z80 object files
8543
8544 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8545
8546         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8547         pic16 progress by Vangelis:
8548         * src/SDCCglobl.h:
8549         * src/SDCCmain.c:
8550         * src/pic/Makefile:
8551         * src/pic:
8552         * pic/Makefile:
8553         * pic16/device.c:
8554         * pic16/device.h:
8555         * pic16/gen.c:
8556         * pic16/gen.h:
8557         * pic16/genarith.c:
8558         * pic16/glue.c:
8559         * pic16/main.c:
8560         * pic16/pcode.c:
8561         * pic16/pcode.h:
8562         * pic16/pcodepeep.c:
8563         * pic16/peeph.def:
8564
8565 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8566
8567     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8568
8569 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8570
8571     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8572     added gbz80 build to MSVC project.
8573     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8574     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8575     from 8051 stuff and setup so it links using a .lnk file.
8576
8577 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8578
8579     * support/librarian/sdcclib.c: sdcc librarian.
8580     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8581     with sdcclib.
8582
8583 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8584
8585     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8586
8587 2003-07-02  Borut Razem <borut.razem AT siol.net>
8588
8589         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8590         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8591         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8592         src/xa51/main.c, src/z80/main.c:
8593         virtualization of glue() function: each port has it's own glue function,
8594         which is accessed by do_glue function pointer in PORT.general structure
8595
8596 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8597
8598         * DS800C400 fun, improved ROM interface and tinibios.
8599
8600 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8601
8602         * More support for DS80C400. Now includes beginning of interface to ROM.
8603
8604 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8605
8606         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8607
8608 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8609
8610         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8611
8612 2003-06-19  Borut Razem <borut.razem AT siol.net>
8613
8614         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8615
8616 2003-06-19  Borut Razem <borut.razem AT siol.net>
8617
8618         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8619         fixed Z80 port - crt0.o: cannot open.
8620
8621 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8622
8623         * support/Util/MySystem.c (merge_command): revert bad fix
8624
8625 2003-06-18  Borut Razem <borut.razem AT siol.net>
8626
8627         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8628
8629 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8630
8631         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8632         option --use-stdout sends errors to stdout instead of stderr.
8633
8634 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8635
8636         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8637
8638 2003-06-15  Borut Razem <borut.razem AT siol.net>
8639
8640         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8641         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8642         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8643         fixed width array of pointers replaced with sets;
8644         multiple include and lib paths ared transferred to preprocessor and linker
8645         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8646         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8647         fixed width array of pointers
8648         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8649         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8650         fixupPath(), getPathDifference()
8651         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8652         fixed width array of pointers
8653
8654 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8655
8656         * src/pic16/ralloc.c: fix warnings
8657         * src/pic16/pcode.c: fix warning
8658
8659 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8660
8661          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8662         know all the details, but essentially this set of changes enable
8663         the pic16 port to generate movff instructions and generate assembler
8664         directives,
8665         * src/SDCCmain.c:
8666         * src/pic16/gen.c:
8667         * src/pic16/glue.c:
8668         * src/pic16/pcode.c:
8669         * src/pic16/device.c:
8670         * src/pic16/main.c:
8671         * src/pic16/pcode.h:
8672         * src/pic16/pcoderegs.c:
8673         * src/pic16/ralloc.c:
8674         * src/pic16/ralloc.h:
8675
8676 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8677
8678         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8679         added option --vc, so sdcc errors and warnings are compatible with
8680         Microsoft Visual Studio.
8681
8682 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8683
8684         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8685           device/lib/libfloat.lib: added atof function.
8686
8687 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
8688
8689         * doc/sdccman.lyx: updated to Lyx 1.3
8690         * doc/cdbfileformat.lyx: updated to Lyx 1.3
8691         * doc/test_suite_spec.lyx: updated to Lyx 1.3
8692         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8693
8694 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
8695
8696         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8697
8698 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8699
8700         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8701           additions to the "related tools/documentation" section
8702
8703 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
8704
8705         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8706
8707 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
8708
8709         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8710         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8711
8712 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
8713
8714         * doc/sdccman.lyx: fix double dash and other minor things
8715         * doc/Makefile: fix double dash
8716
8717 2003-05-28  Karl Bongers(patches from Martin Helmling)
8718         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8719           condition and ignore commands.
8720
8721 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8722
8723         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8724           is in parts still quite out of date, I did changes as far as I felt makes sense
8725           for a non-native english speaker.
8726           Please feel free to add to the manual or to correct my changes.
8727         * doc/Makefile: undid touching the date of intermediate tex files.
8728
8729 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8730
8731         * doc/sdccman.lyx: Manual has an index now
8732
8733 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
8734
8735         Finalize muluint/mulsint and mululong/mulslong merging:
8736         * device/lib/_mulint.c
8737         * device/lib/_mullong.c
8738         * device/lib/gbz80/mul.s
8739         * device/lib/gbz80/stubs.s
8740         * device/lib/z80/mul.s
8741         * device/lib/z80/stubs.s
8742         * src/SDCCsymt.c (initCSupport)
8743
8744 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8745
8746         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8747         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8748           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8749           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8750           instead of /Zm500.
8751
8752 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8753
8754         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8755           the regression tests I'm not brave enough to enable 245.b, 245.c
8756         * doc/sdccman.lyx: added latex preamble for hyperref package.
8757           Using pdflatex this will give you a hyperlinked pdf file with
8758           bookmarks. (prepend '%' before /usepackage if this breaks something)
8759
8760 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8761
8762          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8763
8764 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
8765
8766         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8767
8768 2003-05-21    <johan AT balder>
8769
8770         * src/SDCCglue.c (printIval): fixed bug #739934
8771
8772 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8773
8774         Applied patch from bug 737905 (renamed yylineo to mylineno):
8775         * src/altlex.c
8776         * src/SDCCast.c
8777         * src/SDCglobl.h
8778         * src/SDCC.lex
8779         * src/SDCCsymt.c
8780         * src/SDCCval.c
8781         * src/pic16/pcode.c: Cleaned warnings
8782         * src/pic16/pcodeflow.c: Cleaned warnings
8783         * src/pic16/pcoderegs.c: Cleaned warnings
8784
8785 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
8786
8787         * src/pic16/pcode.c: Cleaned warnings
8788         * src/pic16/pcodepeep.c: Cleaned warnings
8789         * src/pic16/ralloc.c: Cleaned warnings
8790
8791 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8792
8793         * doc/sdccman.lyx: fixed bug 739745
8794         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8795
8796 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
8797
8798         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8799         it can be defined with CFLAGS when running configure
8800         * src/SDCCmain.c: fixed compiling + linking with object files
8801
8802 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
8803
8804         * configure.in: configure for pic16 port,
8805             added --disable-pic16-port
8806         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8807         * src/SDCCmain.c: linkOptions is changed to set *,
8808             added if/endif conditional macros to remove options help
8809             messages from optionsTable when a port is not configured, added
8810             support for the PIc16 port in the ports table, when executing
8811             the compiler with no port specified on command line, a default
8812             port is selected with the new macro DEFAULT_PORT which is
8813             defined in port.h, in setDefaultOptions() linkOptions is removed
8814             from initialization assignment, since now it is a set,
8815             parseCmdLine uses setParseWithComma for linkOptions, in
8816             linkEdit() linkOptions are accessed with new function indexSet()
8817             which returns the i'th item of a set variable. See SDCCset.c, in
8818             linkEdit() when calling buildCmdLine(), added linkOptions as
8819             last argument. Now users can pass arguments to gplink via the
8820             -Wl option, main() uses pic16glue() to glue up pic16 programs
8821         * src/SDCCpeeph.c: various changes to support pic16
8822         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
8823             return the i'th item of the set
8824         * src/SDCCset.h: added function prototype for indexSet()
8825         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8826         * src/clean.mk: added pic16 in CLEANALLPORTS variable
8827         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8828             added macro DEFAULT_PORT
8829         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8830         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8831             generated
8832         * src/pic16/glue.c: commented out some error producing lines
8833         * src/pic16/main.c: __config directives are commented out to stop
8834             gpasm complaining and test the linkage with gplink, _linkCmd and
8835             _asmCmd changed to be more gplink and gpasm friendly
8836         * src/pic16/peeph.def: peep rule 3 is commented out, since it
8837             produced an error when parsed, peep rule 12 is added to utilize
8838             movff, but it is commented out since the pCode does not support
8839             yet a command with 2 address arguments
8840
8841 2003-05-18    <johan AT balder>
8842
8843         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8844         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8845 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
8846
8847         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8848   Added feature to script commands from file.
8849
8850 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
8851
8852         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8853         * src/SDCCutil.c: include ctype.h for win32
8854
8855 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
8856
8857         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8858
8859 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
8860
8861         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8862   Fixed so you can set breakpoints prior to run, run does not stop
8863   on entry now.  Add tbreak.  Other enhancements and fixes for use
8864   with ddd.
8865
8866 2003-05-12  Borut Razem <borut.razem AT siol.net>
8867
8868         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8869
8870 2003-05-11  Borut Razem <borut.razem AT siol.net>
8871
8872         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8873         the path of bin directory, so that PATH is the only env. variable, which has to be set
8874         in case of standard installation.
8875         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8876         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8877         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8878
8879 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8880
8881         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8882         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8883         temp files are in the port dir; clean the gen/test directory when
8884         generating new test.c
8885         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8886         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8887         * support/regression/tests/zeropad.c: added
8888
8889 2003-05-09    <johan AT balder>
8890
8891         * src/SDCCglue.c: fixed bug #597940
8892
8893 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
8894
8895         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8896   cache sfr, optimize next,step, fix off by one sourceline,
8897   support ddd list function.
8898         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8899
8900 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8901
8902         * support/regression/HTMLgen.py: added compare_s2f()
8903         * support/regression/Makefile: redo 1.27
8904         * support/regression/generate-cases.py: redo 1.5
8905
8906 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
8907
8908         * support/regression/tests/float.c: workaround 33 bit hex constant
8909         * support/regression/tests/simplefloat.c: fix division for host
8910
8911 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
8912
8913         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8914         that tame's the PIC's over-aggressive optimizer.
8915
8916 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8917
8918          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8919          support for MSVC.
8920
8921 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
8922
8923         Initial support for DS80C400. "Hello world" runs on TINIm400
8924         (with polled I/O).
8925
8926 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
8927
8928          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8929          * Some notes on ddd usage added in debugger/README
8930          Martin Helmling adding more features and fixes for ddd GUI debugger.
8931          Code added for nexti, stepi, up, down, and other adjustments.
8932
8933 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
8934
8935         * src/pic/pCodepeep.c non-wildcard asmops are now handled
8936         * src/pic/peeph.def Added two rules to optimize carry manipulation
8937         * src/pic/* removed debug printfs
8938
8939 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
8940
8941         * debugger/mcs51/cmd.c: added header newalloc.h
8942
8943 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
8944
8945         * as/Makefile: new EXEEXT
8946         * as/z80/Makefile: remove trailing slash of BUILDIR
8947         * as/z80/clean.mk: new EXEEXT
8948         * Makefile.common.in: add to CFLAGS (and others), don't replace it
8949         * support/cpp2/Makefile.in: new EXEEXT
8950         * src/pic/glue.c (pic14emitRegularMap): fixed warning
8951
8952 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
8953
8954         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8955         EXEEXT was introduced to fix all related problems with targets
8956         "clean", "install" and "uninstall"; a couple of further flaws
8957         especially with "clean" have been fixed too
8958         * as/mcs51/Makefile.in
8959         * as/mcs51/clean.mk
8960         * as/z80/Makefile
8961         * Makefile
8962         * clean.mk
8963         * debugger/mcs51/Makefile.in
8964         * debugger/mcs51/clean.mk
8965         * link/z80/Makefile
8966         * link/z80/Makefile.in
8967         * link/z80/clean.mk
8968         * link/Makefile
8969         * packihx/Makefile.in
8970         * packihx/clean.mk
8971         * sim/ucsim/Makefile
8972         * sim/ucsim/clean.mk
8973         * sim/ucsim/avr.src/Makefile.in
8974         * sim/ucsim/avr.src/clean.mk
8975         * sim/ucsim/s51.src/Makefile.in
8976         * sim/ucsim/s51.src/clean.mk
8977         * sim/ucsim/xa.src/Makefile.in
8978         * sim/ucsim/xa.src/clean.mk
8979         * sim/ucsim/z80.src/Makefile.in
8980         * sim/ucsim/z80.src/clean.mk
8981         * sim/ucsim/main_in.mk
8982         * sim/ucsim/packages_in.mk
8983         * sim/ucsim/gui.src/Makefile.in
8984         * sim/ucsim/gui.src/serio.src/Makefile.in
8985         * sim/ucsim/gui.src/serio.src/clean.mk
8986         * src/Makefile.in
8987         * src/clean.mk
8988         * support/cpp2/Makefile.in
8989         * support/cpp2/clean.mk
8990         * support/makebin/Makefile
8991         * support/makebin/clean.mk
8992         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8993         * doc/sdccman.lyx: --program-suffix no longer needed
8994
8995 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
8996
8997          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8998          Martin Helmling added support for ddd GUI debugger.
8999          Code added to display assembly, set variables, and other commands
9000          to interface to ddd.
9001
9002 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9003
9004         * as/Makefile: fix target clean
9005         * as/clean.mk: fix target clean
9006         * as/z80/clean.mk: fix target clean
9007
9008 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9009
9010         * Makefile.common.in: added  AT EXEEXT AT
9011         * configure.in: removed all mingw32 stuff
9012         * configure: rebuilt from configure.in
9013         * doc/sdccman.lyx: updated section "installation"
9014         * support/scripts/sdcc_mingw32: adapted to configure
9015         * support/scripts/sdcc_cygwin_mingw32: added
9016
9017 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9018
9019         * src/pic Added object file support for the PIC port
9020         * src/pic Applied patch from Craig Franklin (this started the object file support)
9021         * src/regression Updated the PIC regression tests for object files
9022
9023 2003-04-20  Borut Razem <borut.razem AT siol.net>
9024
9025         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9026           lklex.c: In function `getfid':
9027           lklex.c:203: warning: array subscript has type `char'
9028         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9029           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9030         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9031           stack handling macros
9032
9033 2003-04-19  Borut Razem <borut.razem AT siol.net>
9034
9035         * "handling space characters in file path" task:
9036         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9037         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9038         * support/Util/MySystem.h: make it self-sufficient
9039         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9040           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9041           handling space characters in file path
9042         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9043           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9044         * support/Util/MySystem.c: handling space characters in executable's path
9045
9046 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9047
9048         * as/z80/Makefile: fix permanent rebuild of z80
9049         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9050         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9051
9052 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9053
9054         * src/SDCCopt.c: add special case optimization to replace modulo by
9055           a power of two with a bitwise AND.
9056
9057 2003-04-18    <johan AT balder>
9058
9059         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9060
9061 2003-04-17    <johan AT balder>
9062
9063         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9064         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9065
9066 2003-04-13  Borut Razem <borut.razem AT siol.net>
9067
9068         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9069         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9070           fixed mingw problem in adl_NORMALIZE_PATH
9071
9072 2003-04-12  Borut Razem <borut.razem AT siol.net>
9073
9074         * fixed "#pragma SAVE/RESTORE can not be nested":
9075         * src/SDCC.lex: reworked pragma handling functions
9076         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9077         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9078
9079 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9080
9081         * src/SDCCutil.c (pathEquivalent): defined but not used
9082         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9083         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9084         * configure: rebuilt from configure.in
9085         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9086         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9087         * device/include/Makefile.in: replace sdcc_datadir
9088         * device/lib/Makefile.in: replace sdcc_datadir
9089         * Makefile.common.in: add LDFLAGS from configure
9090         * packihx/Makefile.in: use LDFLAGS
9091         * src/Makefile.in: use LDFLAGS
9092         * support/cpp2/Makefile.in: add LDFLAGS from configure
9093         * support/makebin/Makefile: use LDFLAGS
9094         * .version: bumped version number to 2.3.5
9095
9096 2003-04-12  Borut Razem <borut.razem AT siol.net>
9097
9098         * completed "different paths" task:
9099         * src/SDCCmacro.c: fixed bug in handling quotes
9100         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9101         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9102
9103 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9104
9105         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9106
9107 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9108
9109         * ds390/gen.c ds390/peeph.def: fix bug 706781
9110
9111 2003-04-11  Borut Razem <borut.razem AT siol.net>
9112
9113         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9114
9115 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9116
9117         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9118         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9119          set - this bit used to not be set...).
9120         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9121           bad code in PIC Port
9122         * src/regression/and2.c added to test bug 609268
9123         * src/regression/Makefile added and2.c to regression test
9124
9125
9126 2003-04-08    <johan AT CP255758-A>
9127
9128         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9129         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9130         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9131
9132 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9133
9134         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9135         fix bug #487815
9136         * support/cpp2/Makefile.in: fix bug #487815
9137         * configure: rebuilt from configure.in
9138         * Makefile.common.in: docdir changed, new path suffixes
9139         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9140         * sdcc_vc_in.h: reflect changes from sdccconf.h
9141         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9142         * src/SDCCutil.h: remove BINDIR hack
9143         * doc/sdccman.lyx: update new path hierarchy
9144
9145 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9146
9147         * src/SDCCpeeph.c: added okToRemoveSLOC test
9148
9149 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9150
9151         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9152
9153 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9154
9155         * src/SDCCpeeph.c: added labelIsReturnOnly test
9156         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9157
9158 2003-04-05    <johan AT balder>
9159
9160         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9161         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9162         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9163         * src/SDCCast.c: fixed a warning
9164         * src/SDCCast.h: fixed a warning
9165         * src/SDCCicode.c (operandFromAst): fixed a warning
9166
9167 2003-04-04    <johan AT balder>
9168
9169         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9170         * src/SDCCast.c (decorateType): fixed bug #715076
9171         * src/SDCC.y: fixed bug #702907
9172
9173 2003-04-03    <johan AT balder>
9174
9175         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9176         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9177         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9178         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9179         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9180
9181 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9182
9183         * _decdptr.c: fix return values
9184         * _gptrget.c: fix return values
9185         * _gptrgetc.c: fix return values
9186         * _gptrput.c: fix return values
9187         * _mulint.c: fix return values
9188         * as/z80/Makefile: fix 'make -j' problem
9189
9190 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9191
9192         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9193         * configure.in: big cleanup, updated to autoconf 2.5x
9194         * configure: rebuilt from configure.in
9195         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9196         * sdcc_vc_in.h: reflect changes from sdccconf.h
9197         * doc/Makefile: fixed a flaw in "make install"
9198
9199 2003-04-02    <johan AT balder>
9200
9201         * src/ds390/gen.c (genCmp): no comments
9202         * src/mcs51/gen.c (genCmp): no comments
9203         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9204         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9205
9206 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9207
9208         * support/regression/generate-cases.py: place generated file in given sub directory
9209         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9210         * support/regression/Makefile: improvements for 'make -j';
9211         side effect: it's simpler and faster now
9212
9213 2003-03-31  Borut Razem <borut.razem AT siol.net>
9214
9215         * src/z80/main.c: link-{port} and as-{port} defined without path
9216         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9217
9218 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9219
9220         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9221
9222 2003-03-30  Borut Razem <borut.razem AT siol.net>
9223
9224         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9225           changed type of list parameter to set
9226         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9227         * src/port.h: changed type of do_assemble() parameter to set
9228         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9229           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9230           definition of "cppoutfilename" macro with NULL value in preProcess()
9231         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9232         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9233         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9234           replaced with set *binPathSet
9235         * shash_add() deallocates the item, if allready exsists, before adding the new one
9236         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9237
9238 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9239
9240         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9241           a nested for loop bug in the PIC port
9242         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9243           for loops
9244
9245 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9246
9247         * support/Util/dbuf.h: remove C++ stuff to make it portable
9248
9249 2003-03-28  Borut Razem <borut.razem AT siol.net>
9250
9251         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9252           literal strings in stringLiteral()
9253         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9254         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9255           to the project
9256
9257 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9258
9259         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9260
9261 2003-03-26    <johan AT balder>
9262
9263         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9264         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9265         * src/SDCCast.c (decorateType): fixed " -v < 3"
9266
9267 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9268
9269         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9270         Added Lenny Story's debug infrastructure changes:
9271         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9272         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9273         * src/cdbFile.c: added
9274         * src/SDCCdebug.c: added
9275         * src/SDCCdebug.h: added
9276         * src/SDCCast.c (createFunction)
9277         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9278         * src/SDCCmain.c (parseCmdLine, main)
9279         * src/SDCCmem.c (redoStackOffsets)
9280         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9281         * src/SDCCsymt.h
9282         * src/common.h
9283         * src/avr/gen.c (genAVRCode)
9284         * src/ds390/gen.c (gen390Code)
9285         * src/mcs51/gen.c (gen51Code)
9286         * src/pic/gen.c (genpic14Code)
9287         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9288         * src/xa51/gen.c (genXA51Code)
9289         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9290
9291 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9292
9293         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9294         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9295
9296 2003-03-22    <johan AT balder>
9297
9298         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9299
9300 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9301
9302         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9303         * doc/cdbfileformat.lyx: added, written by Lenny Story
9304         * doc/Makefile: added cdbfileformat.lyx
9305         * doc/clean.mk: added cdbfileformat.lyx
9306
9307 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9308
9309         * src/mcs51/peeph.def: fix bug #705773
9310
9311 2003-03-20    <johan AT balder>
9312
9313         An sfr/sbit can have an "at #" AND an initializer
9314         * src/SDCCsymt.c (checkSClass):
9315         * src/SDCCmem.c (allocGlobal):
9316         * src/SDCCmem.c (allocLocal):
9317         * src/SDCCast.c (createBlock):
9318
9319 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9320
9321         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9322
9323 2003-03-16    <johan AT balder>
9324
9325         Undid the hackup of const and volatile, the problem is much bigger
9326         * src/SDCC.y:1.65
9327         * src/SDCCast.c:1.171
9328         * src/SDCCglue.c:1.138
9329         * src/SDCCicode.c:1.146
9330         * src/SDCCsymt.c:1.150
9331         * src/SDCCval.c:1.65
9332
9333 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9334
9335         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9336         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9337
9338 2003-03-13    <johan AT balder>
9339
9340         Hackup const and volatile modifiers in type chains a bit:
9341         * src/SDCC.y:1.63
9342         * src/SDCCast.c:1.169
9343         * src/SDCCglue.c:1.136
9344         * src/SDCCicode.c:1.143
9345         * src/SDCCsymt.c1.146
9346         * src/SDCCsymt.h1.59
9347         * src/SDCCval.c:1.63
9348
9349 2003-03-12    <johan AT balder>
9350
9351         * src/SDCCBBlock.h: more LRH debugging junk
9352         * src/SDCCcflow.h: more LRH debugging junk
9353         * src/SDCCloop.c: more LRH debugging junk
9354         * src/SDCC.y (struct_declaration): fixed bug #697590
9355         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9356         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9357         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9358
9359 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9360         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9361         test function names must now match exactly).
9362         * src/SDCCcse.c: added special case in findCheaperOp to allow
9363         extending a short integer. Makes less awful code for bug 700121 test case.
9364
9365 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9366
9367         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9368         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9369
9370 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9371
9372         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9373         actually called (operandsNotEqual() was called for all
9374         operandsNotEqualX tests).
9375
9376 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9377
9378         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9379         with shorter literals. Fixes bug 700121.
9380
9381 2003-03-11    <johan AT balder>
9382
9383         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9384
9385 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9386
9387         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9388         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9389
9390 2003-03-10  Borut Razem <borut.razem AT siol.net>
9391
9392         * src/SDCCmain.c: pipe preprocessor's output
9393         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9394         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9395         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9396         which closes all pipes in pipeSet set
9397         * src/SDCCset.c: free deleted item in function deleteSetItem()
9398         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9399         moved from z80 to src subproject
9400         * .version: increased version number to 2.3.4
9401
9402 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9403
9404         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9405         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9406         * support/regression/ports/xa51/spec.mk: fix typo
9407
9408 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9409
9410         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9411
9412 2003-03-09  Borut Razem <borut.razem AT siol.net>
9413
9414         * src/SDCCmain.c: pipe preprocessor's output
9415         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9416         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9417         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9418         which closes all pipes in pipeSet set
9419         * src/SDCCset.c: free deleted item in function deleteSetItem()
9420         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9421         moved from z80 to src subproject
9422
9423 2003-03-09  Borut Razem <borut.razem AT siol.net>
9424
9425         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9426         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9427         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9428         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9429         * src/SDCCglobl.h: unification of WIN32 native definitions
9430
9431 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9432
9433         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9434
9435 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9436
9437         * src/configure.in:   check for endianess (even while cross-compiling)
9438         * src/configure:      check for endianess (even while cross-compiling)
9439         * src/configure_in.h: check for endianess (even while cross-compiling)
9440         * src/avr/gen.c:        remove old endianess stuff
9441         * src/mcs51/gen.c:      remove old endianess stuff
9442         * src/ds390/gen.c:      remove old endianess stuff
9443         * src/pic/gen.c:        remove old endianess stuff
9444         * src/pic/genarith.c:   remove old endianess stuff
9445         * src/pic/glue.c:       fix endianess check
9446         * src/pic16/gen.c:      remove old endianess stuff
9447         * src/pic16/genarith.c: remove old endianess stuff
9448         * src/pic16/glue.c:     fix endianess check
9449         * src/xa51/gen.c:       remove old endianess stuff
9450         * src/z80/gen.c:        fix endianess check
9451         * src/SDCCglue.c:       fix endianess check
9452         * src/ds390/peeph.def: fix bug 700036
9453
9454 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9455
9456         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9457         * src/configure: find appropriate data-types on host for SDCC's int and long
9458         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9459         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9460         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9461
9462 2003-03-07    <johan AT balder>
9463
9464         Just a big NOOP:
9465                 some minor cleanups before the big shot
9466                 OP_DEFS and OP_USES now use Kevin's protection
9467                 new option --nolabelopt
9468
9469         * src/SDCCBBlock.c:
9470         * src/SDCCast.c,:
9471         * src/SDCCcflow.c:
9472         * src/SDCCcse.c:
9473         * src/SDCCicode.c:
9474         * src/SDCCicode.h:
9475         * src/SDCClabel.c:
9476         * src/SDCCloop.c:
9477         * src/SDCCmain.c:
9478         * src/ds390/ralloc.c:
9479         * src/mcs51/ralloc.c:
9480         * src/pic/ralloc.c:
9481         * src/xa51/ralloc.c:
9482         * src/z80/ralloc.c:
9483
9484 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9485
9486         * src/pic/pcode.c (get_op): fix 64 bit warnings
9487         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9488         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9489         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9490         * support/regression/tests/malloc.c: fix 64 bit warnings
9491
9492 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9493
9494         * src/mcs51/gen.c (genMinus): fixed bug 696436
9495
9496 2003-03-02  Borut Razem <borut.razem AT siol.net>
9497
9498         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9499
9500 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9501
9502         * configure.in: test for mkstemp
9503         * sdccconf_in.h: add HAVE_MKSTEMP
9504
9505 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9506
9507         * device/include/ctype.h: removed warning while using --stack-auto
9508         * device/include/malloc.h: removed warning while using --stack-auto
9509         * device/include/string.h: removed warning while using --stack-auto
9510
9511 2003-02-23  Borut Razem <borut.razem AT siol.net>
9512
9513         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9514         because NDEBUG is defined (see man assert)
9515         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9516
9517 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9518
9519         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9520         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9521
9522 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9523
9524         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9525         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9526
9527 2003-02-18    <johan AT balder>
9528
9529         * as/mcs51/asmain.c (asmbl): module can start with a digit
9530         * as/z80/asmain.c (asmbl): module can start with a digit
9531
9532 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9533
9534         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9535         * src/asm.c: fix pipe() for Mingw32
9536
9537 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9538
9539         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9540         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9541         make -V work again; --c1mode reads now from stdin
9542         * doc/sdccman.lyx: added --c1mode
9543         * support/Util/SDCCerr.c: new messages for c1 mode
9544         * support/Util/SDCCerr.h: new messages for c1 mode
9545         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9546
9547 2003-02-15    <johan AT balder>
9548
9549         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9550
9551 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9552
9553         * doc/sdccman.lyx: Environment variables, -o and other minor things
9554
9555 2003-02-14    <johan AT balder>
9556
9557         * src/xa51/main.c: before anyone really tries to use it :)
9558
9559         * Install doc's in share/sdcc/doc
9560         * removed some obsolete files
9561         * Do a proper make distclean and uninstall
9562         M Makefile.common.in
9563         R sdccbuild.sh
9564         M as/Makefile
9565         M device/include/Makefile.in
9566         M device/lib/Makefile.in
9567         M doc/sdccman.lyx
9568         M link/Makefile
9569         M sim/ucsim/doc/Makefile.in
9570         M src/clean.mk
9571         R src/avr/peeph.rul
9572         R src/xa51/peeph.rul
9573         M support/cpp2/Makefile.in
9574         M support/makebin/Makefile
9575
9576
9577 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9578
9579         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9580
9581 2003-02-10  Borut Razem <borut.razem AT siol.net>
9582
9583         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9584         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9585         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9586         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9587         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9588         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9589         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9590         src/z80/Makefile.bcc: Borland Makefile cleanup
9591         * as/z80/Makefile.bcc: Added Borland Makefile
9592         * support/cpp2/borland.h: Removed
9593
9594 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9595
9596         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9597         * src/SDCC.lex: new pragma NOIV
9598         * src/SDCCglobl.h: new pragma NOIV
9599         * src/SDCCmem.c: new pragma NOIV
9600
9601 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9602
9603         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9604
9605 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9606
9607         * src/SDCCmain.c: signal handling is switched off by --debug
9608         * doc/Makefile: small fix for install; use clean.mk again
9609         * doc/clean.mk: clean *.pdf and *.html too
9610
9611 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9612
9613         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9614         * device/lib/printfl.c: fix a ds390 bug by making it portable
9615         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9616         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9617         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9618         * debugger/mcs51/cmd.c: converted multi-line string literals
9619         * sim/ucsim/globals.cc: converted multi-line string literals
9620         * src/SDCCmain.c: introduced signal handler to remove temp files
9621         * doc/Makefile: small tweaks, implement clean
9622         * doc: removed generated files
9623
9624 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9625
9626         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9627         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9628         Address Record is not correctly generated for DS390."
9629
9630 2003-02-02  Borut Razem <borut.razem AT siol.net>
9631
9632         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9633         * as/mcs51/asm.h: fixed compilation with Borland C
9634         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9635         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9636         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9637         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9638         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9639         src/z80/Makefile.bcc: delete $(LIB) only if exist
9640         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9641
9642 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9643
9644         * device/include/malloc.h: introduced NULL
9645         * device/include/string.h: introduced NULL
9646         * device/include/stdlib.h: introduced NULL
9647         * device/lib/_memcpy.c: removed NULL
9648         * device/lib/_strcat.c: removed NULL
9649         * device/lib/_strchr.c: removed NULL
9650         * device/lib/_strcmp.c: removed NULL
9651         * device/lib/_strcpy.c: removed NULL
9652         * device/lib/_strcspn.c: removed NULL
9653         * device/lib/_strlen.c: removed NULL
9654         * device/lib/_strncat.c: removed NULL
9655         * device/lib/_strncmp.c: removed NULL
9656         * device/lib/_strncpy.c: removed NULL
9657         * device/lib/_strpbrk.c: removed NULL
9658         * device/lib/_strrchr.c: removed NULL
9659         * device/lib/_strspn.c: removed NULL
9660         * device/lib/_strstr.c: removed NULL
9661         * device/lib/_strtok.c: removed NULL
9662         * device/lib/malloc.c: removed NULL, include own header
9663
9664 2003-02-02    <johan AT balder>
9665
9666         * 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
9667         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9668         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9669         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9670         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9671         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9672
9673 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9674
9675         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9676         area 'DATA'"
9677
9678 2003-02-01    <johan AT balder>
9679
9680         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9681
9682 2003-01-31    <johan AT CP255758-A>
9683
9684         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9685
9686 2003-01-30    <johan AT balder>
9687
9688         * src/SDCCBBlock.c: automatic bug detection
9689         * src/SDCCicode.c: automatic bug detection
9690
9691 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9692
9693         * src/SDCCglobl.h:   now --xram-size 0 works
9694         * src/SDCCmain.c:    now --xram-size 0 works
9695
9696 2003-01-29    <johan AT balder>
9697
9698         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9699
9700 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9701
9702         * as/mcs51/aslink.h: Added options --xram-size and --code-size
9703         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9704         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9705         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
9706         * src/SDCCglobl.h:   Added options --xram-size and --code-size
9707         * src/SDCCmain.c:    Added options --xram-size and --code-size
9708
9709 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
9710
9711         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9712         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9713
9714 2003-01-27    <johan AT balder>
9715
9716         * src/SDCC.y: fixed bug #613764
9717
9718 2003-01-26    <johan AT balder>
9719
9720         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
9721         * src/SDCCsymt.h: fixed bug #673374
9722         * src/SDCCglue.c: fixed bug #661910
9723         * src/SDCCast.c: fixed bug #458099 and 673374
9724
9725 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
9726
9727         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9728         * as/mcs51/strcmpi.h: added
9729         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9730         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9731         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9732         * as/mcs51/assym.c: strcmpi -> as_strcmpi
9733         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9734         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9735         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9736         * as/mcs51/Makefile.aslink: new module strcmpi
9737         * as/mcs51/Makefile.asx8051: new module strcmpi
9738         * as/mcs51/Makefil.bcc: new module strcmpi
9739         * as/mcs51/Makefile.in: new module strcmpi
9740         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9741
9742 2003-01-26    <johan AT balder>
9743
9744         * src/SDCCglue.c: reverted back to 1.124
9745         * src/SDCCast.c: reverted back to 1.156
9746         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9747
9748 2003-01-25    <johan AT balder>
9749
9750         * src/SDCCglue.c: A better fix for bug #661910
9751         * src/SDCCast.c: A better fix for bug #661910
9752         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9753
9754 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9755
9756         * src/Makefile.in: remove spawn.o
9757         * src/SDCCmain.c: remove spawn.h
9758         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9759         * src/spawn.c: removed
9760         * src/spawn.h: removed
9761         * support/regression/ports/ds390/spec.mk: link with -r
9762
9763 2003-01-24    <johan AT CP255758-A>
9764
9765         * src/ds390/gen.c (aopOp): fixed bug #667458
9766         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9767         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9768         (createIvalCharPtr): an ival doesn't always have a storage class anymore
9769
9770 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9771
9772         * src/mcs51/peeph.def: better assembler identation by Frieder
9773         * src/mcs51/gen.c: better assembler identation by Frieder
9774
9775 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
9776
9777         * as/z80/string.h: removed for gcc 3.2
9778         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9779         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9780
9781 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9782
9783         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9784         * src/SDCCpeeph.c (replaceRule): fix bug #663503
9785         * support/regression/Makefile: separate temp files for ports
9786         * support/regression/generate-cases.py: separate temp files for ports
9787         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9788         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9789
9790 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9791
9792         * moved tinitalk to device/examples/ds390
9793
9794 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
9795
9796         * as/mcs51/lkmem.c: rflag is for DS390
9797         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9798         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9799                          (linkEdit): move mem- and map-files the same way as ihx-files
9800         * src/z80/main.c (_setDefaultOptions): removed --generic
9801         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9802         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9803         * src/pic/glue.c (picglue): --c1mode works again
9804         * src/pic16/glue.c (pic16glue): --c1mode works again
9805         * src/asm.c (printCLine): fix #660034
9806
9807 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
9808
9809         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9810         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9811         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9812         * as/mcs51/lkmem (summary): better fix for sp problem
9813         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9814         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9815         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9816                                               remove --stack-after-data
9817
9818 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
9819
9820         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9821         * src/SDCCutil.c (join): ugly bug: missing '\0'
9822         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9823
9824 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9825
9826         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9827         * src/port.h: typo
9828         * src/pic/main.c (_asmCmd): gpasm supports -o
9829         * src/z80/main.c: more general macros
9830         * device/lib/Makefile.in: remove intermediate files
9831
9832 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9833
9834         * .version: Bumped version number to 2.3.3
9835         * src/SDCCBBlock.c: new option -o
9836         * src/SDCCglobl.h: new option -o
9837         * src/SDCCglue.c: new option -o
9838         * src/SDCCmain.c: new option -o
9839         * src/asm.c: new option -o
9840         * src/ds390/main.c: new option -o
9841         * src/pic/glue.c: new option -o
9842         * src/pic/pcode.c: new option -o
9843         * src/pic/ralloc.c: new option -o
9844         * src/pic16/glue.c: new option -o
9845         * src/pic16/pcode.c: new option -o
9846         * src/pic16/ralloc.c: new option -o
9847         * src/z80/main.c: new option -o
9848         * device/lib/Makefile.in: use -o
9849         * support/regression/ports/ds390/spec.mk: use -o
9850         * support/regression/ports/gbz80/spec.mk: use -o
9851         * support/regression/ports/mcs51/spec.mk: use -o
9852         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9853         * support/regression/ports/z80/spec.mk: use -o
9854         * support/regression/ports/ucz80/spec.mk: use -o
9855         * support/regression/ports/xa51/spec.mk: use -o
9856         * support/regression/fwk/lib/timeout.c: fix usage string
9857
9858 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
9859         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9860
9861 2003-01-07    <johan AT balder>
9862
9863         * src/SDCCast.c (decorateType): fixed bug #600035
9864
9865 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
9866         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9867         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9868         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9869         * src/pic/pcode.c: outcommented unused variable to remove warnings
9870         * src/pic/ralloc.c: outcommented unused variable to remove warnings
9871
9872 2003-01-06    <karl AT turbobit.com>
9873         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9874    regression tests.
9875
9876 2003-01-06    <johan AT balder>
9877
9878         * src/SDCCicode.c: fixed array add
9879
9880 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
9881         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9882         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9883
9884 2003-01-04    <johan AT balder>
9885
9886         * src/SDCCval.c (getNelements): fixed the initialized array of structures
9887
9888 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9889         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9890
9891 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9892         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9893         * support/regression/tests/bug-524697.c: fit mem usage into 8032
9894
9895 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9896         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9897
9898 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
9899         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9900
9901 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
9902         * src/mcs51/main.c: removed {bindir}{sep} from aslink
9903
9904 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9905
9906     * in \sdcc\as\mcs51\ changed these files in order to create an
9907     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9908     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
9909     following files to include the previous two files: aslink.dsp,
9910     Makefile.aslink, Makefile.bcc, and Makefile.in.
9911
9912     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9913     .adb instead of .cdb
9914
9915 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9916
9917         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9918         value from option --iram-size.
9919
9920 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9921
9922         * \sdcc\as\mcs51\lklist.c: added boundary check before using
9923         dram[] array.
9924
9925 2002-09-18    <wiml AT hhhh.org>
9926
9927         * SDCClrange.h: exposed setFromRange() and setToRange()
9928         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9929           packRegsForAccUse() (bug 542397)
9930         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9931           multiple times and emitting the fetch operations more than once
9932           added aopGetUsesAcc() function to allow binary operators to
9933           fetch their operands in the correct order; made genMinus() emit
9934           compact code for X = LITERAL - Y
9935
9936 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9937         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9938         sprintf() in line 1267.
9939
9940 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9941         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9942         like ports.
9943
9944 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9945         Changes to aslink (All the changes are marked with 'JCF'):
9946
9947         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9948         summary().
9949
9950         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9951         area BSEG.  Also moves, if possible, the DATA area down into the internal
9952         ram so more space is available.
9953
9954         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9955         sflag.
9956
9957         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9958         not bytes.  Function summary() which creates a memory usage summary
9959         file with extension .mem.  Reports of overlaping stack and small stack
9960         size.  If the space for the stack is less than 16 bytes aslink trows a
9961         warning.
9962
9963         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9964         the 8051.  Option 'y' for memory summary output file.
9965
9966         Changes to sdcc (All the changes are marked with 'JCF'):
9967
9968         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9969
9970         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
9971         overlaying area for it (uses RegBankUsed[4]).
9972
9973         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9974         bank zero as used by default.  By default aslink locates the stack
9975         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
9976         the creation of the .mem file.  Delegates the allocation of data area
9977         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
9978         the begining of the stack area to aslink.
9979
9980         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
9981         glue() in SDCCglue.c creates an area for it.
9982
9983 2002-09-03  Borut Razem <borut.razem AT siol.net>
9984         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9985         sdcc/src/pic/glue.c:
9986         introduced atexit() handler for teporay files removal in case of
9987         errors, assertions, ...
9988
9989 2002-08-29  Borut Razem <borut.razem AT siol.net>
9990         * sdcc/support/cpp2/auto-host_vc_in.h:
9991         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9992         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9993         Maybe there is a similar problem with BORLANDC? It should be checked!
9994
9995         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9996         corrected improper use of assert: the assignment to clr variable was done inside the assert.
9997         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9998         was not executed, and the compiler (cl) launched a warning:
9999         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10000
10001 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10002         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10003
10004 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10005         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10006
10007         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10008           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10009           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10010           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10011           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10012           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10013           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10014         - added Release configuration in VS projects
10015         - review of compiler an linker options
10016         - VC .exe files are generated in bin_vc directory, not to interfere
10017           with binaries generated from other projects (cygwin, mingw, bcc ...)
10018
10019         * sdcc/src/yacc.dsp: added
10020
10021         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10022         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10023         and insert the version number definitions from .version
10024
10025         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10026
10027         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10028         added - genarate auto-host.h using auto-host_vc_in.h as template
10029
10030         * sdcc/sdcc_vc.h,
10031         removed from CVS, generated automatically
10032
10033 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10034         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10035
10036 2002-08-11  Borut Razem <borut.razem AT siol.net>
10037         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10038
10039 2002-08-10  Borut Razem <borut.razem AT siol.net>
10040         * src/SDCCmain.c (main):
10041         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10042         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10043         The consequence was that some temporary files were not removed.
10044
10045         * src/SDCCglue.c:
10046         unification of code in functions tempfilename() and tempfile():
10047         function tempnam() is defined in Visual Studio 6.0 and .NET
10048
10049         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10050
10051         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10052           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10053         - removed compiler command line option /WX: Treats all warnings as errors
10054         - update a list of source files, included into the project
10055
10056         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10057           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10058         changed project type to Generic Project so that can be correcly converted to VS.NET project
10059
10060         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10061
10062         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10063
10064         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10065
10066         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10067         added return 0 statements after assert() to make compiler happy
10068
10069         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10070         added newline in the def file to keep MSC compiler satisfied
10071
10072         * sdcc/src/z80/gen.c:
10073         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10074           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10075         - solved MSC error in function aopDump()
10076
10077         * sdcc_vc.h: define PREFIX as "\\sdcc"
10078
10079 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10080         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10081
10082 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10083         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10084         - Rewrote the register banking algorithm.
10085         - Added pCode live-range analysis to registers (for now, only non-used and
10086         singly-used registers optimized away)
10087
10088         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10089
10090         * 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.
10091
10092 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10093         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10094
10095 2002-04-22  Michael Hope  <michaelh AT vroom>
10096
10097         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10098
10099         * configure.in (DD_COPT): Added include support required for gbdk.
10100
10101         * .version: Bumped version number just to increase it.
10102
10103         * src/SDCCmain.c: Added -nostdinc to the default options.
10104
10105 2002-04-15  Michael Hope  <michaelh AT vroom>
10106
10107         * device/lib/z80/printf.c (sprintf): Added.
10108
10109         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10110
10111         * src/z80/peeph.def: Added transpose redundent load rule.
10112
10113         * src/z80/main.c: Added force callee saves for jaune.
10114
10115         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10116
10117         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10118
10119 2002-03-28  Johan Knol  <johan AT balder>
10120
10121         * src/SDCCval.c: fixed bug #532436
10122
10123 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10124         * /src/port.h:
10125         Added "char *Processor" field to the port structure.
10126
10127         * /src/SDCCmain.c:
10128         Added -p option. Allows port dependent processor to be specified.
10129
10130         * all ports:
10131         Initialized the new field char *Processor field to NULL in all ports
10132
10133         * /src/pic/*:
10134         Compiler generated registers for interrupt context saving
10135         were not getting allocated.
10136
10137 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10138
10139         * /src/SDCCast.c:
10140         Fixed left shift. Will promote the left side of a left shift
10141         if a) left shifting more than size of operand or b) when assigned
10142         to something size > size of left side
10143
10144 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10145         * src/pic/*
10146         tons of changes. Register allocation has been
10147         rewritten. Added customization for the various PICs. Flow
10148         analysis is restructured. ...
10149
10150         * src/pic/device.h:
10151         Added
10152
10153         * src/pic/device.c:
10154         Added. device.c is a PIC port hack to accomodate variations
10155         in PIC devices.
10156
10157 2002-03-13  Michael Hope  <michaelh AT vroom>
10158
10159         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10160
10161 2002-03-04  johanknol  <johanknol AT manik>
10162
10163         * /src/SDCCval.c: fixed
10164
10165         const unsigned char arr[][2] = { { 0, 1 } };
10166         t18.c:1: error: Initializer element is not constant
10167
10168 2002-03-04  bela  <bela AT manik>
10169
10170         * /device/include/mcs51reg.h:
10171         ds89c420 register definition update
10172
10173 2002-03-03    <johan AT FRIJA>
10174
10175         * support/Util/SDCCerr.c: did something, but don't no why anymore
10176
10177         * support/regression/tests/bug-524691.c: made it a little less shy
10178
10179         * src/SDCCast.c (decorateType): fixed bug #524697
10180
10181         * src/SDCCast.c: made some lineno improvements
10182
10183         * src/SDCCval.c (getNelements): changed warning to error
10184
10185         * src/SDCCglue.c (printIvalArray): changed warning to error
10186
10187         * src/SDCCicode.c: fixed a warning for mingw
10188
10189         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10190
10191         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10192
10193 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10194
10195         * src/ds390/peeph.def:
10196         Added some more peephole rules
10197
10198         * src/ds390/gen.c: Various fixes & enhancements
10199
10200         * src/SDCClrange.c, src/SDCClrange.h:
10201         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10202
10203         * src/ds390/ralloc.c:
10204         various fixes & enhancements (ds390) specific
10205
10206         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10207         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10208         from rallocs.
10209
10210         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10211
10212 2002-03-02    <johan AT FRIJA>
10213
10214         * src/SDCCast.c (decorateType): fixed bug #524708
10215
10216         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10217
10218         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10219
10220 2002-03-01  Michael Hope  <michaelh AT vroom>
10221
10222         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10223
10224         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10225
10226 2002-03-01    <johan AT FRIJA>
10227
10228         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10229
10230         * src/SDCCast.c (decorateType): fixed bug #524209
10231
10232         * src/SDCCval.c (valNot): fixed bug #524195
10233
10234 2002-02-26    <johan AT balder>
10235
10236         * src/xa51/gen.c: fixed a warning
10237
10238         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10239
10240         * src/SDCCast.c (decorateType): fixed bug #522534
10241
10242 2002-02-23    <johan AT balder>
10243
10244         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10245
10246 2002-02-22    <johan AT balder>
10247
10248         * src/SDCCast.c: fixed bug #514865
10249
10250         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10251
10252 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10253
10254         * sdcc/src/SDCCloop.c:
10255         Previous fix was not good. basic blocks that have "break" or "return" are
10256         not really partof a loop , but live ranges used in these blocks should
10257         be live thru the entire loop, so set partOfLoop but don't add them to
10258         loop region
10259
10260 2002-02-21    <johan AT FRIJA>
10261
10262         * src/SDCCcse.c: fixed bug #514308
10263
10264 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10265
10266         * src/SDCCloop.c:
10267         Fixed BUG #519583. If a conditional block ended in a return/break
10268         statement inside a loop, it was not being considered part of the loop.
10269
10270         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10271
10272 2002-02-10  Karl Bongers <karl AT turbobit.com>
10273
10274         * debugger/*:
10275         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10276         with lots of comments and notes.
10277
10278         * device/examples/test2.c:
10279         Fix bug, "red" variable not being initialized(compiler complained).
10280
10281         * device/examples/Makefile, examples/test3.c:
10282         Add Makefile in device/examples folder, compiles test3.c
10283         for use as a multiple module SDCDB test case.
10284
10285         * sim/ucsim/cmd.src/cmdset.cc:
10286         Took out debug printfs in ucsim "next" command.
10287
10288         * sim/ucsim/xa.src:
10289         Karl and Johan start ucsim XA support.  Most dissassembly working,
10290         about 75% emulation done(plenty of work remaining).
10291
10292         * sim/ucsim/z80.src:
10293         Add Z80 support to ucsim, add test-ucz80 regression test,
10294         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10295         Notice z80 compiler fails on examples/test3.c/crc code.
10296
10297 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10298
10299         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10300         Added support for --parms-in-bank1
10301
10302         * src/ds390/peeph.def:
10303         added a few more peephole optimzations
10304
10305         * src/ds390/main.c:
10306         1) added __builtin_inp & __builtin_outp used to read in data of given length
10307            from a memory mapped port
10308         2) added __builtin_memcmp
10309         3) added __builtin_swapw swap bytes of a short
10310
10311         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10312         1) handle multiple send & receives from register bank1
10313         2) ralloc can now allocate DPTR1 to some liveRanges
10314
10315         * src/SDCCsymt.c, src/SDCCsymt.h:
10316         changes to handle multiple sends & receives
10317
10318         * src/SDCCptropt.h:
10319         added some pointer arithmetic optimization
10320
10321         * src/SDCCptropt.c:
10322         added some pointer arithmetic optimizations but not stable yet so not
10323         called from anywhere (will get this working shortly)
10324
10325         * src/SDCCopt.c: fixed for multiple sends & receives
10326
10327         * src/SDCCmain.c:
10328         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10329         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10330            set preprocessor defines (depending on options)
10331
10332         * src/SDCCicode.c, src/SDCCicode.h:
10333         changes made to handle multiple sends & receives
10334
10335         * src/SDCCglobl.h:
10336         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10337
10338         * src/SDCCcse.c, src/SDCCcse.h:
10339         added function findbackward def (to be used in upcoming optimization)
10340
10341         * src/SDCCcflow.c, src/SDCCcflow.h:
10342         added function returnAtEnd - to determine if a basic block terminates with
10343         a RETURN iCode
10344
10345         * src/SDCCast.c, src/SDCCast.h:
10346         added option parms-in-bank1
10347
10348         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10349         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10350         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10351         adjusted for --parms-in-bank1 option
10352
10353         * device/include/string.h:
10354         donot redefine "reentrant" keyword
10355
10356         * device/include/ds80c390.h: Added some more SFRs
10357
10358 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10359
10360         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10361
10362 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10363
10364         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10365
10366 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10367
10368         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10369
10370 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10371
10372         * Added --xram-movc option
10373
10374 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10375
10376         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10377
10378 2002-01-11  Johan Knol
10379
10380         * Added math lib of Jesus Calvino-Fraga
10381
10382 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10383
10384         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10385         * support/regression/Makefile: new target test-mcs51-stack-auto
10386         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10387
10388 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10389
10390         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10391
10392 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10393
10394         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10395
10396 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10397
10398         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10399
10400         * src/SDCCglue.h: add definition for printIvalChar()
10401
10402 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10403
10404         * src/SDCCast.c: fix #498138 by Johan
10405
10406         * src/SDCCglue.c: fix #498138 by Johan
10407
10408 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10409
10410         * support/regression/Makefile: fix clean
10411
10412         * support/regression/ports/ds390/support.c: fix transmission of last character
10413
10414 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10415
10416         * /sdcc/src/ds390/gen.c:
10417         a) improved computing address of stack variable
10418         b) took out some #if 0 code
10419         c) improved parmBytes adjustment
10420         d) improved genPlusIncr & genMinusIncr
10421         e) genCmp could generate bad code (when left assigned to DPTR)
10422         f) Fixed bug in hasInc
10423
10424         * /sdcc/src/ds390/ralloc.c:
10425         a) packRegsForSupport could mess up live information (Fixed)
10426         b) packRegsDPTRuse could be incorrect for left & right shift
10427
10428         * /sdcc/src/mcs51/ralloc.c:
10429         packRegsForSupport could mess up the live information (Fixed)
10430
10431         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10432
10433         * /sdcc/src/SDCCast.c:
10434         can reverse a loop even if function call is present as long
10435         as the loop control variable is local & is not passed as parameter
10436
10437 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10438
10439         * /sdcc/ChangeLog: *** empty log message ***
10440
10441         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10442         More builtin function additions for TININative
10443
10444         * /sdcc/src/ds390/ralloc.c:
10445         Had broken the regression testsuite
10446
10447         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10448
10449         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10450         Added funcattr hasStackParms will be set for reentrant functions when there
10451         are paramteres on the stack, this helps in minimizing frame pointer generation
10452         typeFromStr can handle function pointers now
10453
10454         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10455         *** empty log message ***
10456
10457 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10458
10459         * /src/ds390/gen.c, /src/ds390/main.c:
10460         More builtin function additions for TININative
10461
10462         * /src/ds390/ralloc.c:
10463         Had broken the regression testsuite
10464
10465         * /src/SDCCast.c: Fixed a bug in dumptree
10466
10467         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10468         Added funcattr hasStackParms will be set for reentrant functions when there
10469         are paramteres on the stack, this helps in minimizing frame pointer generation
10470         typeFromStr can handle function pointers now
10471
10472         * /doc/builtins.txt, /doc/TININative.txt:
10473         *** empty log message ***
10474
10475
10476 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10477
10478         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10479         ALPHA version for -mTININative
10480
10481         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10482         updated to reflect changes in the port structure
10483
10484         * /src/port.h:
10485         added function do_assemble (similar to do_link) if non-null this function
10486         will be called to do assembly (-mTININative) requires a multi command
10487         assembly
10488         added function genAssemblerEnd will be called to generate assembler Epilogue
10489
10490         * /src/SDCCsymt.c:
10491         added _JavaNative to debug info printing
10492
10493         * /src/SDCCmain.c: added option --tini-libid
10494         added port->do_assemble function (-mTININative) has a multi command assemble
10495
10496         * /src/SDCCglue.c: Disabled "constExpr" check
10497         added port->genAssemblerEnd function
10498
10499         * /src/SDCCglobl.h: Added option --tini-libid value
10500
10501         * /src/SDCCast.h:
10502         tookout optimizeCompare from the header (has no external references)
10503
10504         * /src/SDCCast.c: made one more function "static"
10505
10506 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10507
10508         * src/z80/mappings.i: Added z80asm support.
10509
10510         * src/z80/main.c: Added z80asm support on --asm=z80asm
10511
10512         * src/z80/gen.c: Fixed asm portability issues.
10513
10514         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10515
10516         * src/SDCCglue.c (printExterns): Added global/extern split.
10517
10518 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10519
10520         * support/regression/Makefile: added test for mcs51 model large
10521
10522         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10523
10524         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10525
10526 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10527
10528         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10529
10530 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10531
10532         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10533
10534         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10535
10536 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10537
10538         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10539
10540         * support/regression/tests/simplefloat.c: Port to mcs51.
10541
10542 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10543         * support/regression/tests/bug-485362.c: Added.
10544
10545         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10546
10547         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10548
10549         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10550
10551         * src/z80/gen.c (aopDump): Added a dump function.
10552
10553 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10554         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10555
10556         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10557
10558         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10559
10560         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10561
10562         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10563
10564         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10565
10566         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10567
10568         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10569
10570         * support/regression/ports/ds390/support.c: Use tinibios.
10571
10572         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10573
10574 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10575
10576         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10577         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10578
10579         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10580
10581         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10582
10583 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10584
10585         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10586
10587         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10588         (packRegsForIYUse): Created and optimised.
10589
10590 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10591
10592         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10593 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10594
10595         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10596
10597         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10598
10599         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10600
10601 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10602
10603         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10604
10605         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10606
10607 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10608
10609         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10610
10611         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10612
10613         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10614
10615 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10616
10617         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10618         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10619         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10620
10621         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10622
10623         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10624         (genNotFloat): Added.
10625         (genUminusFloat): Added.
10626
10627         * device/lib/z80/Makefile: Added floating pt stubs.
10628
10629         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10630
10631         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10632
10633         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10634
10635 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10636
10637         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10638
10639         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10640
10641         * sdcc/support/regression/Makefile: Add port ds390.
10642
10643         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10644
10645         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10646
10647         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10648
10649         * sdcc/support/regression/ports/ds390/support.c: Added.
10650
10651         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10652
10653         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10654
10655         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10656
10657 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10658
10659         * device/include/malloc.h: Added z80 and gbz80 support.
10660
10661         * device/lib/gbz80/heap.s: Added.
10662
10663         * device/lib/z80/heap.s: Added.
10664
10665         * device/lib/malloc.c: Added z80 and gbz80 support.
10666
10667         * support/regression/tests/malloc.c (testMalloc): Added.
10668
10669         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10670
10671         * support/regression/tests/bug-478094.c: Added.
10672
10673         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10674
10675 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
10676
10677         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10678
10679         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10680
10681         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10682
10683         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10684
10685         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10686
10687 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10688
10689         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10690
10691 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
10692
10693         * support/regression/tests/bug-477927.c: Added.
10694
10695         * src/z80/peeph.def: Added minor rules.
10696
10697         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10698
10699         * src/z80/peeph.def: Added jump optimisation modification.
10700
10701 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
10702
10703         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10704
10705 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
10706
10707         * support/regression/tests/funptrs.c: Added.
10708
10709 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
10710
10711         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10712
10713 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
10714
10715         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10716
10717         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10718
10719         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10720         (movLeft2ResultLong): Created.
10721
10722         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10723         (joinPushes): Added.  Joins two char pushes into a word push.
10724
10725 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
10726
10727         * support/cpp2/Makefile.in (install): Added creation of dest dir.
10728
10729         * support/makebin/Makefile (install): Added creation of dest dir.
10730
10731 2001-10-24 Karl Bongers <karl AT turbobit.com>
10732
10733         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10734
10735 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
10736
10737         * src/z80/ralloc.c: Turned off faulty pack for one use.
10738
10739         * src/z80/peeph-gbz80.def: Removed redundent restart options.
10740
10741         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10742
10743 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
10744
10745         * support/regression/Makefile: Improved clean
10746
10747         * support/regression/ports/gbz80/spec.mk: Added clean
10748
10749         * support/regression/ports/host/spec.mk: Added clean
10750
10751         * support/regression/ports/z80/spec.mk: Added clean
10752
10753         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10754
10755         * support/regression/ports/mcs51/timeout.c: little improvements
10756
10757 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
10758
10759         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10760
10761         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10762
10763         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10764
10765 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
10766
10767         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10768
10769         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10770
10771 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
10772         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10773
10774         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10775
10776         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10777
10778         * src/mcs51/main.c (_linkCmd): Added bin path to command.
10779
10780         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10781
10782         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10783
10784         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10785
10786         * support/regression/tests/longor.c: Added.
10787
10788 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
10789
10790         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10791
10792         * as/mcs51/aslink.h: define PATH_MAX
10793
10794         * as/mcs51/asm.h: define PATH_MAX
10795
10796         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10797
10798         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10799
10800         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10801
10802         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10803
10804         * src/SDCCglobl.h: define PATH_MAX
10805
10806         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10807
10808         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10809
10810 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
10811
10812         * src/z80/gen.c (gencjneshort): Fixed
10813
10814         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10815
10816 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
10817
10818         * support/regression/tests/bug-469671.c: Added.
10819
10820         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10821
10822 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
10823
10824         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10825
10826         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
10827
10828 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
10829
10830         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10831
10832         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
10833
10834         * src/device/lib/_mullong.c : removed hint: nooverlay bug
10835
10836         * src/device/lib/_divuint.c : removed hint: nooverlay bug
10837
10838         * src/device/lib/_divulong.c: removed hint: nooverlay bug
10839
10840         * src/device/lib/_moduint.c : removed hint: nooverlay bug
10841
10842         * src/device/lib/_modulong.c: removed hint: nooverlay bug
10843
10844 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
10845
10846         * 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.
10847
10848         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
10849
10850         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10851
10852 2001-10-07    <johan AT FRIJA>
10853
10854         * device/lib/gets.c (gets): fixed the return value.
10855
10856 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
10857         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10858
10859         * 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.
10860
10861         * 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.
10862
10863         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10864
10865         * src/pic/gen.c: Removed Safe_strdup.
10866
10867         * configure.in: Added option to enable libgc support.
10868
10869         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10870         (bitVectUnion): Optimised.
10871         (bitVectIntersect): Optimised.
10872         (bitVectBitsInCommon): Optimised.
10873         (bitVectCplAnd): Optimised.
10874
10875         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
10876
10877 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10878
10879         * src/SDCCmain.c: distinguish between assembler debug and plain options
10880
10881         * src/avr/main.c:   remove standard assembler options
10882
10883         * src/ds390/main.c: remove standard assembler options
10884
10885         * src/mcs51/main.c: remove standard assembler options
10886
10887         * src/port.h: removed "PENDING" comment
10888
10889 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10890
10891         * src/device/lib/_mulint.c  : new, with assember functions
10892
10893         * src/device/lib/_mullong.c : new, with assember functions
10894
10895         * src/device/lib/_divuint.c : with assember functions
10896
10897         * src/device/lib/_divsint.c : with assember functions
10898
10899         * src/device/lib/_divulong.c: with assember functions
10900
10901         * src/device/lib/_divslong.c: with assember functions
10902
10903         * src/device/lib/_moduint.c : with assember functions
10904
10905         * src/device/lib/_modsint.c : with assember functions
10906
10907         * src/device/lib/_modulong.c: with assember functions
10908
10909         * src/device/lib/_modslong.c: with assember functions
10910
10911         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
10912
10913         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10914
10915         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
10916                                       replaced _mululong.c and _mulslong.c by _mullong.c
10917
10918 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10919
10920         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10921
10922 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10923
10924         * src/SDCCglue.c: test, if win32api is available for MINGW
10925
10926 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10927
10928         * src/SDCCsymt.c: no more _modifier in printTypeChain()
10929         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10930         * support/regression/ports/gbz80/spec.mk: removed GENERIC
10931         * support/regression/ports/host/spec.mk: removed GENERIC
10932         * support/regression/ports/mcs51/spec.mk: removed GENERIC
10933         * support/regression/ports/z80/spec.mk: removed GENERIC
10934
10935 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
10936
10937         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10938
10939         * support/regression/tests/bug-467035.c: Created.
10940
10941 2001-10-01    <johan AT FRIJA>
10942
10943         * src/SDCC.y: fixed bug #466586 part 1
10944
10945 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
10946
10947         * SDCCicode.c: z80 has no generic pointers
10948         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10949
10950 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
10951
10952         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10953
10954 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
10955
10956         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10957
10958         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10959
10960 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
10961
10962         * configure.in: Fixed up so that ucsim is only configured once.
10963
10964         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10965
10966         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10967         (getPathDifference): As above.
10968
10969         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
10970
10971         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10972
10973 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
10974         * .version: Updated to 2.3.1
10975
10976         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10977         Added copyright header.
10978
10979         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10980         (assemble): Added support for macro based assembler commands.
10981         (linkEdit): Added support for macro based linker commands.
10982         (preProcess): Changed the pre-processor to use macros.
10983         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10984         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10985
10986         * device/lib/z80/crt0.s: Added module name for debugging.
10987
10988 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
10989
10990         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10991
10992         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10993
10994         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10995
10996         * src/Makefile.in: Added SDCCmacro and SDCCutil
10997
10998 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
10999
11000         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11001
11002 2001-09-16    <johan AT FRIJA>
11003
11004         * 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.
11005
11006 2001-09-15    <johan AT FRIJA>
11007
11008         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11009         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11010
11011 2001-09-11    <johan AT FRIJA>
11012
11013         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11014
11015 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11016
11017         * support/regression/tests/bug-460444.c: Added test case.
11018
11019         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11020         (genCast): Added justification for all of the asserts.
11021
11022 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11023
11024         * support/regression/support.c: _xdata replaced by xdata
11025
11026         * support/regression/spec.mk: removed _generic
11027
11028 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11029
11030         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11031
11032         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11033         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11034
11035         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11036
11037         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11038
11039         * support/regression/tests/bug-460010.c: Added test case.
11040
11041         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11042
11043 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11044
11045         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11046
11047         * support/regression/testfwk.c: removed workaround for bug #436344
11048
11049         * support/regression/tests/bp.c: use less memory with mcs51
11050
11051         * support/regression/tests/bug-441448.c: use less memory
11052
11053         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11054
11055         * support/regression/collate-results.py: typo
11056
11057 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11058
11059         * support/regression/tests/fetchoverlap.c: Added new test case.
11060
11061         * support/regression/tests/bp.c: Added new test case.
11062
11063         * support/regression/tests/bug-448984.c: Added new test case.
11064
11065         * support/regression/tests/pow2shifts.c: Added new test case.
11066
11067         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11068         (genlshTwo): Fixed right shift for count > 8.
11069
11070         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11071
11072 2001-09-08    <johan AT FRIJA>
11073
11074         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11075
11076 2001-09-07    <johan AT FRIJA>
11077
11078         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11079
11080         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11081
11082 2001-09-06    <johan AT FRIJA>
11083
11084         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11085         * bernhard noted me at this: "() equals to (void)" (1.38)
11086
11087 2001-09-05    <johan AT FRIJA>
11088
11089         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11090
11091 2001-09-04    <johan AT FRIJA>
11092
11093         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11094
11095
11096 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11097
11098         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11099
11100 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11101
11102         * link/z80/aslink.h: Fixed path for PATH_MAX
11103
11104 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11105
11106         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11107
11108         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11109
11110         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11111
11112         * 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.
11113
11114 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11115
11116         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11117         (genCmp): Fixed up genCmp for the GB with longs.
11118
11119         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11120
11121         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11122
11123         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11124
11125         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11126
11127 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11128
11129         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11130
11131 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11132
11133         * 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.
11134
11135         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11136
11137 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11138
11139         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11140
11141         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11142
11143 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11144
11145   * sim/ucsim/configure:    little improvement of Cygwin-detection
11146   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11147   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11148   * support/regression/tests/bug-221100.c: small changes for mcs51
11149   * support/regression/tests/bug-221168.c: small changes for mcs51
11150   * support/regression/tests/bug-227710.c: small changes for mcs51
11151   * support/regression/tests/staticinit.c: small changes for mcs51
11152   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11153   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11154   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11155
11156 $Revision$
11157