0fe1f0ebfdf876e73011fcf5c01a94b943598dcd
[fw/sdcc] / ChangeLog
1 2007-01-02 Borut Razem <borut.razem AT siol.net>
2
3         * doc/sdccman.lyx: documented #pragma sdcc_hash
4         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
5           initialized to 0
6         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
7
8 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
9
10         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
11         empty 'while'-loop to work correctly, see regression test 'while.c'
12         * support/regression/tests/while.c: added
13
14 2007-01-01 Borut Razem <borut.razem AT siol.net>
15
16         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
17           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
18           support/cpp2/libcpp/sdcpp.c:
19           sdcpp specific pragma/directive/option handling moved to sdcpp.c
20         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
21         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
22
23 2006-12-31 Borut Razem <borut.razem AT siol.net>
24
25         * SDCPP synchronized with GCC CPP release version 4.1.1,
26           currently the latest release:
27         * support/cpp2/libcpp, support/cpp2/libcpp/include,
28           support/cpp2/libcpp/include/cpp-id-data.h
29           support/cpp2/libiberty/fopen_unlocked.c
30           support/cpp2/libiberty/md5.c
31           support/cpp2/md5.h
32           support/cpp2/opt-functions.awk
33           support/cpp2/opt-gather.awk
34           support/cpp2/optc-gen.awk
35           support/cpp2/opth-gen.awk:
36           added
37         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
38           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
39           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
40           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
41           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
42           support/cpp2/diagnostic.h, support/cpp2/except.h,
43           support/cpp2/hwint.h, support/cpp2/input.h,
44           support/cpp2/intl.h, support/cpp2/move-if-change,
45           support/cpp2/opts.c, support/cpp2/opts.h,
46           support/cpp2/output.h, support/cpp2/prefix.c,
47           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
48           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
49           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
50           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
51           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
52           support/cpp2/version.c:
53           modified
54         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
55           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
56           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
57           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
58           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
59           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
60           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
61           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
62           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
63           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
64           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
65           moved
66         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
67           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
68           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
69           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
70           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
71           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
72           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
73           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
74           support/cpp2/hashtable.h, support/cpp2/line-map.c,
75           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
76           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
77           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
78           support/cpp2/system.h:
79           deleted / moved
80
81 2006-12-31 Borut Razem <borut.razem AT siol.net>
82
83         * configure.in, configure: fixed bug #1538756: configure dies if bison
84           and flex are not installed, 2nd try
85
86 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
87
88         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
89         400.x for better code in RFE 899102
90
91 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
92
93         * src/SDCCpeeph.c (deadMove),
94         * src/port.h,
95         * src/mcs51/peep.h: renamed 'op' by 'reg'
96         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
97         (scan4op): small change for removeDeadMove(), added support for
98         'callee saves' and/or PACLL function calls,
99         (removeDeadMove): added, removes superflous 'mov r%1,%2',
100         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
101         left in new dispatcher mcs51DeadMove()
102         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
103         removeDeadMove()
104         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
105
106 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
107
108         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
109           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
110         * configure.in, configure: fixed buf #1538756: configure dies if bison
111           and flex are not installed
112
113 2006-12-30 Borut Razem <borut.razem AT siol.net>
114
115         * support/cpp2/spacs.h: deleted from svn
116         * configure.in, configure: fixed bug #1538756: configure dies if bison
117           and flex are not installed
118
119 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
120
121         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
122           with this z80 passes printf float test when enabled
123         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
124
125 2006-12-28 Borut Razem <borut.razem AT siol.net>
126
127         * support/cpp2/config.in, support/cpp2/configure.in,
128           support/cpp2/configure, support/cpp2/Makefile.in:
129           fix for the solaris build
130
131 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
132
133         * src/SDCC.y (type_specifier2, pointer),
134         * src/SDCCsymt.h,
135         * src/SDCCsymt.c (mergeSpec, checkSClass),
136         * support/Util/SDCCerr.c,
137         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
138         * support/valdiag/valdiag.py: Allow test cases to specify
139           required language standard
140         * support/valdiag/tests/restrict.c: New file to test restrict keyword
141         * support/valdiag/tests/tentdecl.c: Supress empty source file error
142
143 2006-12-27 Borut Razem <borut.razem AT siol.net>
144
145         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
146         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
147           mbchar removed
148         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
149           fixed for borland C
150         * support/cpp2/libiberty/Makefile.bcc: updated
151         * src/pic16/main.c: fixed #pragma udata handling
152         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
153
154 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
155
156         * src/SDCCpeeph.c: made labelHashEntry global,
157         made pcDistance, FBYNAME static,
158         (pcDistance): made static, use isComment and isLabel,
159         (deadMove): added,
160         (getLabelRef): added, extracted from labelRefCount(),
161         (labelRefCount): use new getLabelRef(),
162         (callFuncByName): made static, added deadMove,
163         use isComment and isLabel,
164         (newPeepRule): made static, set isLabel,
165         (isLabelDefinition): added parameter isPeepRule to allow '%' in
166         labels from peephole rules,
167         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
168         when isComment or isLabel is set
169         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
170         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
171         to make them global
172         * src/mcs51/peep.h: added
173         * src/mcs51/peep.c: added, implements mcs51DeadMove()
174         * src/port.h: added peep->deadMove to port structure
175         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
176         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
177         deadMove, finally removed no. 1 and 2
178         * src/mcs51/gen.c,
179         * src/pic/gen.c,
180         * src/z80/gen.c,
181         * src/z80/ralloc.c,
182         * src/pic16/gen.c,
183         * src/ds390/gen.c,
184         * src/hc08/gen.c: mark lines with isComment or isLabel
185         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
186         * .version,
187         * sdcc.spec: bumped version to 2.6.3
188
189 2006-12-26 Borut Razem <borut.razem AT siol.net>
190
191         * support/cpp2/Makefile.in: added dependency on options.h
192         * configure: regenerated
193         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
194         * support/cpp2/Makefile.in: added vasprintf.c
195
196 2006-12-25 Borut Razem <borut.razem AT siol.net>
197
198         * SDCPP synchronized with GCC CPP release version 3.4.6,
199           the latest release before 4.x:
200         * support/cpp2/Makefile.in, support/cpp2/config.h,
201           support/cpp2/configure, support/cpp2/configure.in,
202           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
203           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
204           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
205           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
206           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
207           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
208           support/cpp2/cpptrad.c, support/cpp2/except.h,
209           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
210           support/cpp2/hwint.h, support/cpp2/intl.h,
211           support/cpp2/line-map.c, support/cpp2/line-map.h,
212           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
213           support/cpp2/output.h, support/cpp2/prefix.c,
214           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
215           support/cpp2/system.h, support/cpp2/version.c:
216           modified
217         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
218           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
219           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
220           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
221           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
222           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
223           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
224           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
225           support/cpp2/move-if-change, support/cpp2/opts.c,
226           support/cpp2/opts.h, support/cpp2/opts.sh,
227           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
228           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
229           support/cpp2/win32, support/cpp2/win32/dirent.c,
230           support/cpp2/win32/dirent.h:
231           added
232         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
233         * support/cpp2/sdcpp.h: renamed from sdcc.h
234         * sdcppinit.c: deleted
235
236 2006-12-23 Borut Razem <borut.razem AT siol.net>
237
238         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
239           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
240           preproc.c: an other try to fix bug #982435: introduced
241           -pedantic-parse-number command line option and pedantic_parse_number
242           pragma
243
244 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
245
246         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
247            BSEG handling,
248           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
249            corrected overlayed areax addresses, warn about memory overlaps
250         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
251         * src/avr/main.c,
252         * src/ds390/main.c,
253         * src/hc08/main.c,
254         * src/mcs51/main.c,
255         * src/pic16/main.c,
256         * src/pic/main.c,
257         * src/xa51/main.c,
258         * src/z80/main.c,
259         * src/port.h: added xabs_name and iabs_name
260         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
261           (glue, emitMaps): create and emit maps d_abs and i_abs
262         * src/SDCCglue.h: cosmetic changes
263         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
264         * src/SDCCmem.h,
265         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
266           (allocDefault): put absolute, initialized globals in them
267         * support/regression/tests/absolute.c: added absolute bdata test
268         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
269
270 2006-12-20 Borut Razem <borut.razem AT siol.net>
271
272         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
273         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
274           added regression test for bug #982435
275
276 2006-12-18 Borut Razem <borut.razem AT siol.net>
277
278         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
279         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
280           small cosmetic changes
281         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
282         * support/regression/tests/bug-1351710.c: added regression test
283
284 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
285
286         * doc/sdccman.lyx: added the long missed iCode table
287           "<where is figure II?>", added links to wiki
288
289 2006-12-17 Borut Razem <borut.razem AT siol.net>
290
291         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
292           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
293           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
294           unified table driven pragma handling, pragma argument type checking
295         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
296           current one - version 1.1.3
297         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
298
299 2006-12-13 Raphael Neider <rneider AT web.de>
300
301         * src/pic/device.h: removed AssignedMemory structure and macros
302         * src/pic/device.c: removed global finalMapping (linker assigns
303             memory locations),
304           (register_map): add SFRs to remembered memRanges
305           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
306           assignFixedRegisters,assignRelocatableRegisters): removed,
307           (setMaxRAM,validAddress): adapted accordingly,
308           (pic14_hasSharebank,pic14_getSharedStack): only report and use
309             reasonably sized sharebanks,
310         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
311           (allDefsOutOfRange): removed unused code,
312         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
313             handling
314         * src/pic/pcode.c (register_reassign): removed recursion warning,
315             fired far too often,
316         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
317             to use existing pic14_stringInSet() to avoid duplicate symbols,
318             tidied up the code a bit,
319           (pic14printLocals): added in symmetry to printExterns, replaces
320             writeUsedRegs more or less,
321           (picglue): call new pic14_printLocals(),
322         * device/include/pic/pic*.h: removed #pragma memmap directives,
323             information gathered from include/pic/pic14devices.txt
324         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
325
326 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
327
328         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
329
330 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
331
332         * device/include/mcs51/cc2430.h: fixed missing ';'
333
334 2006-12-10 Raphael Neider <rneider AT web.de>
335
336         * device/lib/pic16/libc/stdio/vfprintf.c,
337         * device/lib/pic16/libc/stdio/printf_small.c,
338         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
339           char arguments, as char varargs are cast to int by the caller,
340           hopefully fixes #1604915 (other device libraries are still affected)
341
342 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
343
344         * src/mcs51/ralloc.c (packRegsForAssign),
345         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
346
347 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
348
349         * device/include/malloc.h: removed init_dynamic_memory
350         * device/lib/malloc.c: made init_dynamic_memory static and automatically
351           call it once from malloc. Also use _sdcc_heap[] from _heap.c
352         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
353         * device/lib/libsdcc.lib,
354         * device/lib/Makefile.in,
355         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
356         * doc/sdccman.lyx: documented use of new _heap.c
357         * support/regression/tests/malloc.c: removed init_dynamic_memory
358         * src/cdbFile.c(spacesToUnderscores): new function,
359           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
360           1068030
361         * device/include/tinibios.h: removed defines for putchar and getchar
362         * device/lib/ds390/Makefile.in: added putchar.c
363         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
364
365 2006-12-09 Borut Razem <borut.razem AT siol.net>
366
367         * support/cpp2/sdcc.h: prevent multiple inclusion
368         * support/cpp2/options.h: deleted
369
370 2006-12-08 Borut Razem <borut.razem AT siol.net>
371
372         * support/cpp2/sdcc.h: removed x*alloc() macros
373         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
374         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
375           support/cpp2/sdcpp.sdc: x*alloc files added to the project
376         * support/cpp2/system.h: moved #include "sdcc.h"
377         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
378           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
379           added
380         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
381           -funsigned-char options
382         * support/cpp2/sdcppmain.c: fixed bug 1611411
383
384 2006-12-07 Borut Razem <borut.razem AT siol.net>
385
386         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
387           directive
388
389 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * src/SDCCsymt.c (addDecl): fixed bug 1609244
392         * src/SDCCmain.c (linkEdit): fixed bug 1609279
393         * doc/sdccman.lyx,
394         * .version: bumped to 2.6.2 because a) it's been a while
395           b) the linker sources have moved c) the preprocessor is upgraded
396
397 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
398
399         * support/regression/tests/snprintf.c: some checks
400         * lib/src/printf_large.c: %bc: read char instead of int from stack
401
402 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
403
404         * device/include/mcs51/cc2430.h: inserted _XPAGE
405
406 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
407
408         * device/include/mcs51/cc2430.h: added
409
410 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * device/include/asm/default/features.h,
413         * device/include/asm/ds390/features.h,
414         * device/include/mcs51/at89s53.h,
415         * device/include/ser.h,
416         * device/include/ser_ir.h,
417         * device/include/serial.h: changed keywords to double underscore variants,
418           fixes bug 1590261 some more, thanks Steven Borley
419
420 2006-12-01 Raphael Neider <rneider AT web.de>
421
422         * src/pic/pcode.c (register_reassign): do not crash on recursive code
423           but emit warning (recursion is not supported for pic14)
424
425 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
426
427         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
428         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
429
430 2006-11-30 Raphael Neider <rneider AT web.de>
431
432         * src/pic/device.c (dump_sfr): always emit symbols
433         * src/pic/glue.c (pic14printPublics): fixed typo
434
435 2006-11-30 Raphael Neider <rneider AT web.de>
436
437         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
438           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
439           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
440            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
441            a sharebank, use a non-shared bank for the stack if none available
442         * src/pic/device.h (struct memRange): added linked list next field,
443           added prototypes for above functions
444         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
445           (typeRegWithIdx): accept fixed and unfixed stack registers
446         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
447           the stack, handle shared and banked stack (except for WSAVE),
448           (insertBankSel): removed useless optimization (will never fire),
449           (FixRegisterBanking): added optimization for devices with only one
450           possibly aliased bank of memory, like 16f84
451         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
452           devices have no SHAREBANK in the linker script
453         * device/include/pic/pic14devices.txt: documented memmap
454         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
455
456 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
457
458         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
459           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
460           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
461           genhc08Code): switched most of the D (debug) macros to DD (detailed
462           debug) macros to better control clutter in the generated .asm file.
463         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
464           genRightShift): fixed bug with non-constant bit shift stored to
465           a volatile result (SF Open Discussion forum thread #1616749).
466           Single byte case is not yet optimized.
467
468 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
469
470         * device/include/asm/mcs51/features.h,
471         * device/include/malloc.h,
472         * device/include/stdio.h: changed keywords to double underscore variants,
473           fixes bug 1590261
474
475 2006-11-27 Borut Razem <borut.razem AT siol.net>
476
477         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
478           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
479           support/cpp2/output.h, support/cpp2/cppinit.c,
480           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
481           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
482           support/cpp2/cppdefault.c, support/cpp2/system.h,
483           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
484           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
485           support/cpp2/prefix.c, support/cpp2/except.h,
486           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
487           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
488           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
489           support/cpp2/version.c, support/cpp2/cppmain.c,
490           support/cpp2/version.h, support/cpp2/hashtable.c,
491           support/cpp2/cpperror.c:
492           synchronized with GCC CPP release version 3.3.6,
493           the latest where cppmain.c still exists.
494         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
495           support/cpp2/sdcppinit.c: added
496
497 2006-11-27 Borut Razem <borut.razem AT siol.net>
498
499         * support/cpp2/cpplex.c:
500           fixed _asm ... _endasm handling bug, introduce with GCC CPP
501           synchronization
502         * support/cpp2/cpplib.c: removed definitions of unused variables
503
504 2006-11-26 Borut Razem <borut.razem AT siol.net>
505
506         * support/cpp2/libiberty.h: commented out x*alloc() declarations
507           since they are redefined by macros in support/cpp2/sdcc.h
508         * support/cpp2/sdcc.h: x*alloc macro redefinition
509
510 2006-11-25 Borut Razem <borut.razem AT siol.net>
511
512         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
513           support/cpp2/configure, support/cpp2/Makefile.in,
514           support/cpp2/cppfiles.c, support/cpp2/output.h,
515           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
516           support/cpp2/config.h, support/cpp2/cpplib.h,
517           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
518           support/cpp2/cppdefault.c, support/cpp2/config.in,
519           support/cpp2/system.h, support/cpp2/cpplex.c,
520           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
521           support/cpp2/cppdefault.h, support/cpp2/prefix.c
522           support/cpp2/hwint.h, support/cpp2/mbchar.h,
523           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
524           support/cpp2/configure.in, support/cpp2/intl.h,
525           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
526           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
527           support/cpp2/version.c, support/cpp2/cppmain.c,
528           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
529           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
530           support/cpp2/cpperror.c,
531           support/cpp2/libiberty/safe-ctype.c,
532           support/cpp2/libiberty/safe-ctype.h,
533           support/cpp2/libiberty/splay-tree.c,
534           support/cpp2/libiberty/obstack.c,
535           support/cpp2/libiberty/lbasename.c,
536           support/cpp2/libiberty/splay-tree.h,
537           support/cpp2/libiberty/obstack.h:
538           synchronized with GCC CPP release version 3.2.3,
539           the latest before integration of cpp into gcc
540         * support/cpp2/except.h, support/cpp2/line-map.c,
541           support/cpp2/line-map.h,
542           support/cpp2/libiberty/hex.c,
543           support/cpp2/libiberty/concat.c,
544           support/cpp2/libiberty/filenames.h: added
545         * support/cpp2/intl.c: deleted
546
547 2006-11-24 Borut Razem <borut.razem AT siol.net>
548
549         * src/SDCC.y: enabled compilation of empty source file
550         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
551           "ISO C forbids an empty source file"
552         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
553           if all the code is ifdefed out.
554
555 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
556
557         * src/hc08/gen.c (genPcall): fix for bug #1601032
558
559 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
560
561         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
562         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
563         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
564         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
565         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
566         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
567         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
568         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
569         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
570         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
571         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
572         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
573         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
574         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
575         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
576           Renamed to all upper case as per the standard set by SiLabs
577
578 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
579
580         * device/include/mcs51/C8051F520.h: new, added
581         * device/include/mcs51/compiler.h: added link about predefined macros
582
583 2006-11-23 Raphael Neider <rneider AT web.de>
584
585         * src/regression/Makefile: add -L path to fresh library
586         * src/regression/simulate: emphasize FAILED output
587         * src/regression/create_stc: output _failures from gpsim
588         * src/regression/compare4.c,
589         * src/regression/rotate6.c: fixed char literals,
590           all compile, all run =8-D
591
592         * src/pic/pcode.h: added isPCASMDIR macro
593         * src/pic/gen.c (genAnd): fixed bit offset
594         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
595           packBits): unified register numbering schemes,
596           (newReg): do not insert stack registers into hash table,
597           (initStack): unpinned pseudo stack, simplified,
598           (typeRegWithIdx): fixed retrieval of stack registers,
599         * src/pic/pcode.c (addpCodeComment,sameBank): added,
600           (pCodeReplace): removed invalid assertion,
601           (insertPCodeInstruction): fixed newly added labels,
602           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
603           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
604           DumpFlow): removed unsed (broken?) code,
605           (insertBankSel): prevent STATUS from being BANKSELed,
606           (FixRegisterBanking): rewritten from scratch, implemented generic
607             optimizations (suppress BANKSELs to same register and to registers
608             present in all banks),
609           (AnalyzeBanking): update flow after BANKSELection
610
611         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
612             sharebank, let linker place it, mark STKxx symbols as emitted
613
614 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
615
616         * src/regression/arrays.c,
617         * src/regression/bank1.c,
618         * src/regression/bool2.c,
619         * src/regression/compare7.c,
620         * src/regression/compare8.c,
621         * src/regression/compare9.c,
622         * src/regression/compare10.c,
623         * src/regression/configword.c,
624         * src/regression/for.c,
625         * src/regression/mult1.c,
626         * src/regression/pointer1.c,
627         * src/regression/rotate6.c,
628         * src/regression/string1.c,
629         * src/regression/struct1.c,
630         * src/regression/Makefile: make PIC14 regression tests run again
631           (3 fail, 6 won't compile)
632
633 2006-11-21 Raphael Neider <rneider AT web.de>
634
635         * device/include/pic16/pic18f4550.h,
636         * device/include/pic16/pic18f4455.h,
637         * device/lib/pic16/libdev/pic18f4550.c,
638         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
639         * configure.in: removed superfluous closing bracket
640
641 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
642
643         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
644           always positive.
645
646 2006-11-21 Raphael Neider <rneider AT web.de>
647
648         * src/pic/device.{c,h}: added pic14_getPIC()
649         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
650           (genAnd): added PIC code for one case, fixes #1597044
651         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
652           SFRs that are present in all banks (e.g., STATUS)
653
654 2006-11-20 Raphael Neider <rneider AT web.de>
655
656         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
657           INCFSZ/INCFSZW and declared them as changing Z bit,
658           (insertPCodeInstruction): correctly invert the above instructions,
659           fixes #1599333,
660           (DoBankSelect): don't panic on po_immediates
661
662 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
663
664         * as/link/aslink.h,
665         * as/link/mcs51/lkihx.c (newArea),
666         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
667         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
668
669 2006-11-11 Raphael Neider <rneider AT web.de>
670
671         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
672           bitfield symbols, fixes #1579535 (once more...).
673
674 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
675
676         * support/regression/generate-cases.py,
677         * support/regression/fwk/include/testfwk.h,
678         * support/regression/fwk/lib/testfwk.c: used code pointers,
679           (about 50kByte less code generated for mcs51)
680
681 2006-11-06 Borut Razem <borut.razem AT siol.net>
682
683         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
684           debugger/mcs51/configure: fixed failed check because the function
685           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
686           who submitted the patch for gpsim.
687         * debugger/mcs51/configure.in: removed the result message
688         * debugger/mcs51/Makefile.in: fixed the config.status warning
689           "... seems to ignore the --datarootdir setting"
690
691 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
692
693         * device/include/mcs51/c8051f020.h,
694         * device/include/mcs51/c8051f040.h,
695         * device/include/mcs51/c8051f060.h,
696         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
697         * src/z80/gen.c (gencjneshort),
698         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
699
700 2006-10-31 Borut Razem <borut.razem AT siol.net>
701
702         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
703           debugger/mcs51/configure: get readline version
704
705 2006-10-30 Borut Razem <borut.razem AT siol.net>
706
707         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
708         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
709           debugger/mcs51/configure: locate readline even when cross compiling
710         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
711
712 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
713
714         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
715           serial port.
716
717 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
718
719         * device/include/malloc.h,
720         * device/lib/calloc.c,
721         * device/lib/free.c,
722         * device/lib/malloc.c,
723         * device/lib/realloc.c: moved definition of struct into sources
724         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
725
726 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
727
728         * as/asx8051.dsp: corrected output directories
729         * as/link/hc08: new directory for hc08 linker
730         * as/hc08/aslink.h,             as/link/aslink.h,
731         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
732         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
733         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
734         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
735         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
736         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
737         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
738         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
739         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
740         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
741         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
742         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
743         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
744         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
745         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
746         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
747         * as/link/hc08/conf.mk,
748         * configure,
749         * configure.in,
750         * Makefile.in,
751         * sdcc.dsw: moved hc08 linker to as/link/hc08
752         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
753         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
754         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
755         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
756         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
757         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
758         * as/link/mcs51/aslink.dsp,
759         * as/link/mcs51/Makefile.in: factored out the common files
760         * as/hc08/lkstore.c: deleted, use the one already in as/link/
761         * as/clean.mk: extra cleaning common files
762         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
763         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
764         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
765
766 2006-10-29 Raphael Neider <rneider AT web.de>
767
768         * src/pic/ralloc.c (newReg): create aliases for registers with
769           multiple names to fix #1579535 and #1584001,
770           (regWithIdx,dirregWithName): resolve aliases on lookup
771         * src/pic/pcode.c (DoBankSelect): die with error message on failing
772           bankselect
773         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
774           to prevent build errors on small devices
775
776 2006-10-28 Raphael Neider <rneider AT web.de>
777
778         * src/pic/gen.c (genFunction,genCall): drop "same code page"
779           assumption within interrupt handlers, fixes #1584940
780         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
781           "emitted" to avoid emitting them again in udata
782
783 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
784
785         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
786         Removed.
787
788 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
789
790         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
791         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
792         on/off CR to CRLF conversion.
793
794 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
795
796         * doc/sdccman.lyx: updated IRQ section
797
798 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
799
800         * device/lib/serial_io.c: removed
801         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
802         replacements for serial_io.c
803
804 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
805
806         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
807
808 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
809
810         * device/lib/serial_io.c: Default putchar() and getchar() for
811           mcs51 uses serial port.
812
813 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
814
815         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
816
817 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
818
819         * support/regression/ports/mcs51/support.c: smaller
820         _sdcc_external_startup()
821         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
822
823 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
824
825         * device/lib/gbz80/crt0.s,
826         * device/lib/gbz80/crt0_rle.s,
827         * device/lib/gbz80/div.s,
828         * device/lib/gbz80/fstubs.s,
829         * device/lib/gbz80/heap.s,
830         * device/lib/gbz80/mul.s,
831         * device/lib/gbz80/putchar.s,
832         * device/lib/gbz80/stubs.s,
833         * device/lib/z80/crt0.s,
834         * device/lib/z80/crt0_rle.s,
835         * device/lib/z80/div.s,
836         * device/lib/z80/fstubs.s,
837         * device/lib/z80/heap.s,
838         * device/lib/z80/mul.s,
839         * device/lib/z80/putchar.s,
840         * device/lib/z80/stubs.s: reverted, I was mistaken
841
842 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
843
844         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
845         * support/regression/ports/mcs51/support.c: removed race
846         condition on TI in _putchar allowing to use serial port mode 0
847
848 2006-10-20 Borut Razem <borut.razem AT siol.net>
849
850         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
851
852 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
853
854         * device/lib/gbz80/crt0.s,
855         * device/lib/gbz80/crt0_rle.s,
856         * device/lib/gbz80/div.s,
857         * device/lib/gbz80/fstubs.s,
858         * device/lib/gbz80/heap.s,
859         * device/lib/gbz80/mul.s,
860         * device/lib/gbz80/putchar.s,
861         * device/lib/gbz80/stubs.s,
862         * device/lib/z80/crt0.s,
863         * device/lib/z80/crt0_rle.s,
864         * device/lib/z80/div.s,
865         * device/lib/z80/fstubs.s,
866         * device/lib/z80/heap.s,
867         * device/lib/z80/mul.s,
868         * device/lib/z80/putchar.s,
869         * device/lib/z80/stubs.s: removed all leading underscores from area names
870
871 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * support/regression/ports/mcs51/support.c: use highest baudrate so the
874           regression tests are not waiting in the simulator for simulated
875           transmission of debug output
876
877 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
878
879         * device/lib/printf_large.c: slightly smaller
880         * doc/sdccman.lyx: do not use spaces within html links
881
882 2006-10-16 Borut Razem <borut.razem AT siol.net>
883
884         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
885           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
886           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
887           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
888           debugger/mcs51/configure:
889           [ 1185668 ] add gnu readline support to sdcdb - enabled
890
891 2006-10-16 Raphael Neider <rneider AT web.de>
892
893         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
894           fixes #1577882, removes close to all banking optimizations
895
896 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
897
898         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
899           variables in code memory
900         * support/regression/tests/absolute.c: added test for this
901
902 2006-10-15 Raphael Neider <rneider AT web.de>
903
904         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
905           devices,
906           (BankSelect): emit BANKSEL before touching linker-placed regs,
907           fixes #1570934
908
909 2006-10-10 Raphael Neider <rneider AT web.de>
910
911         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
912         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
913         * src/pic/main.c (_pic14_parseOptions),
914         * src/pic/main.h: mostly reverted to previous state, now use results
915             from SDCCmain.c's argument parsing
916
917 2006-10-10 Borut Razem <borut.razem AT siol.net>
918
919         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
920           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
921           [ 1185668 ] add gnu readline support to sdcdb -
922           prepared for READLINE, not enabled yet,
923           thanks to <tal.bav AT gmail.com>
924
925 2006-10-10 Raphael Neider <rneider AT web.de>
926
927         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
928         * src/pic16/devices.inc,
929         * device/include/pic16 (pic18f[24]620.h),
930         * device/include/pic18fregs.h,
931         * device/lib/pic16/pics.all,
932         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
933             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
934             Gary Plumbridge and Anton Strobl
935
936 2006-10-10 Raphael Neider <rneider AT web.de>
937
938         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
939           --stack-siz=NUM options to configure the argument passing stack
940         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
941         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
942           (pic14_getSharebankSize): obey --stack-siz=NUM,
943           (pic14_getSharebankAddress): obey --stack-loc=NUM
944
945 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
946
947         * doc/sdccman.lyx: added to the manual
948         * doc/figures/ddd_example.png: added (neither pdflatex nor
949         most browsers seem to like the .eps file)
950
951 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
952
953         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
954         to /tmp and /var/tmp acc. LSB
955         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
956         RESULT_TYPE_IFX
957         * support/regression/tests/onebyte.c: added test
958
959 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
960
961         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
962
963 2006-10-05 Borut Razem <borut.razem AT siol.net>
964
965         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
966           thanks to dfulab:
967           - sdcc.dsw: changed property eol-style to CRLF
968           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
969
970 2006-10-04 Raphael Neider <rneider AT web.de>
971
972         * device/include/pic/{pic16f84.h,pic16f84a.h},
973         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
974           from patch #1522504, thanks to Robas Teodor
975
976 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
977
978         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
979           fixes bug 1566015
980
981 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
982
983         * src/pic16/glue.c (pic16emitMaps),
984         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
985         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
986         * device/lib/pic16/libc/string/memcpypgm2ram.c,
987         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
988           Philipp Krause
989         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
990         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
991
992 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
993
994         * support/librarian/sdcclib.c: Added option -l.
995         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
996           usage totals.
997         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
998           using Windows command prompt.
999
1000 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1001
1002         * device/lib/libsdcc.lib: added module rand
1003         * src/ds390/ralloc.c (rematStr),
1004         * src/hc08/ralloc.c (rematStr),
1005         * src/mcs51/ralloc.c (rematStr),
1006         * src/z80/ralloc.c (rematStr): made output more consistent
1007         * src/mcs51/gen.c: cosmetic changes
1008
1009 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1010
1011         * src/port.h: added mem.cabs_name to PORT
1012         * src/ds390/main.c,
1013         * src/hc08/main.c,
1014         * src/mcs51/main.c,
1015         * src/pic16/main.c,
1016         * src/pic/main.c,
1017         * src/xa51/main.c,
1018         * src/z80/main.c: added cabs_name initializers
1019         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
1020           constants
1021           (emitMaps): emit absolutes in code memory into cabs_name
1022         * src/SDCCmem.c,
1023         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
1024         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
1025         * support/regression/fwk/include/testfwk.h: added define for at
1026         * support/regression/tests/absolute.c: added, new
1027
1028 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
1029
1030         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
1031           optimizations, see also patch 887161 by Stas Sergeev
1032         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
1033           to be necessary anymore,
1034           (102, 103, 104, 127): renamed all occurances of bp to _bp
1035
1036 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
1037
1038         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
1039           thanks Weston T. Schmidt for patch 1555221
1040         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
1041         * src/SDCCicode.c(geniCodeMultiply): small optimization
1042
1043 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1044
1045         * device/include/stdlib.h: added rand prototypes
1046         * device/lib/rand.c: new, added
1047         * device/lib/Makefile.in: added rand.c
1048         * src/z80/peeph.def,
1049         * src/z80/peeph-gbz80.def,
1050         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
1051
1052 2006-09-20 Raphael Neider <rneider AT web.de>
1053
1054         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
1055
1056 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
1057
1058         * as/link/aslink.h: cosmetic changes
1059         * as/link/mcs51/Makefile.in,
1060         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
1061
1062 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
1063
1064         * as/link/aslink.h,
1065         * as/link/mcs51/aslink.h,
1066         * as/link/z80/aslink.h: merged and moved to as/link/
1067         * as/link/lkstore.c,
1068         * as/link/mcs51/lkstore.c: moved to as/link/
1069         * as/link/clean.mk: remove *.o
1070         * as/link/mcs51/alloc.h: deleted
1071         * as/link/mcs51/lkarea.c: added lnksect prototype
1072         * as/link/mcs51/lkdata.c,
1073         * as/link/mcs51/lklex.c,
1074         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
1075         * as/link/mcs51/lkmem.c,
1076         * as/link/mcs51/lknoice.c: removed include strcmpi.h
1077         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
1078         * as/link/mcs51/aslink.dsp,
1079         * as/link/mcs51/Makefile.aslink,
1080         * as/link/mcs51/Makefile.bcc,
1081         * as/link/mcs51/Makefile.in: updated for moved files
1082         * as/link/z80/lkarea.c,
1083         * as/link/z80/lkhead.c,
1084         * as/link/z80/lklex.c,
1085         * as/link/z80/lklibr.c,
1086         * as/link/z80/lklist.c,
1087         * as/link/z80/lkmain.c,
1088         * as/link/z80/lkrloc.c,
1089         * as/link/z80/lksym.c: synced with mcs51
1090         * as/link/z80/lkdata.c,
1091         * as/link/z80/lkeval.c,
1092         * as/link/z80/lkihx.c,
1093         * as/link/z80/lks19.c: cosmetic changes
1094         * as/link/z80/Makefile.in,
1095         * as/link/z80/linkgbz80.dsp,
1096         * as/link/z80/linkz80.dsp: updated for moved files
1097
1098 2006-09-16 Borut Razem <borut.razem AT siol.net>
1099
1100         * debugger/mcs51/sdcdb.c: partially fixed
1101           [ 1203664 ] sdcdb fails to open files w. two "." periods
1102         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
1103           debugger/mcs51/symtab.h: fixed indenting
1104         * configure.in, configure: up to date with latest Maarten's changes
1105
1106 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
1107
1108         as/link/mcs51
1109         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
1110         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
1111         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
1112         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
1113         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
1114         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
1115         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
1116         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
1117         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
1118         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
1119         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
1120         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
1121         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
1122         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
1123         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
1124         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
1125         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
1126         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
1127         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
1128         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
1129         as/link/mcs51/alloc.h,
1130         as/link/mcs51/clean.mk,
1131         as/link/mcs51/conf.mk,
1132         as/link/mcs51/Makefile.bcc,
1133         as/link/mcs51/Makefile.in,
1134         as/link/mcs51/readme.390,
1135         as/link/mcs51/strcmpi.c,
1136         as/link/mcs51/strcmpi.h,
1137         as/mcs51/clean.mk,
1138         as/mcs51/Makefile.bcc,
1139         as/mcs51/Makefile.in,
1140         configure,
1141         Makefile.in,
1142         sdcc.dsw: moved mcs51 linker to as/link/mcs51
1143
1144 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
1145
1146         * as/link,
1147         * as/link/Makefile.in,
1148         * as/link/z80/linkgbz80.dsp,
1149         * as/link/z80/linkz80.dsp,
1150         * configure,
1151         * link,
1152         * link/clean.mk,
1153         * link/Makefile.in,
1154         * link/README,
1155         * link/z80,
1156         * link/z80/aslink.h,
1157         * link/z80/clean.mk,
1158         * link/z80/conf.mk,
1159         * link/z80/linkgbz80.dsp,
1160         * link/z80/linkz80.dsp,
1161         * link/z80/lkarea.c,
1162         * link/z80/lkdata.c,
1163         * link/z80/lkeval.c,
1164         * link/z80/lkgb.c,
1165         * link/z80/lkgg.c,
1166         * link/z80/lkhead.c,
1167         * link/z80/lkihx.c,
1168         * link/z80/lklex.c,
1169         * link/z80/lklibr.c,
1170         * link/z80/lklist.c,
1171         * link/z80/lkmain.c,
1172         * link/z80/lkrloc.c,
1173         * link/z80/lks19.c,
1174         * link/z80/lksym.c,
1175         * link/z80/Makefile.in,
1176         * Makefile.in,
1177         * sdcc.dsw: moved link/ to as/link/
1178
1179 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
1180
1181         * as/mcs51/i51mch.c (machine): fixed warning
1182
1183 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1184
1185         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
1186
1187 2006-09-09 Borut Razem <borut.razem AT siol.net>
1188
1189         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
1190           sdcdb WIN32 native port
1191         * src/clean.mk: fixed
1192
1193 2006-09-08 Borut Razem <borut.razem AT siol.net>
1194
1195         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
1196
1197 2006-09-08 Raphael Neider <rneider AT web.de>
1198
1199         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
1200         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
1201             to gplink to disable processor mismatch warning and to allow
1202             the use of devices with only aliased (shared) memory banks,
1203           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
1204
1205 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1206
1207         * doc/sdccman.lyx: Some re-formating plus example on using
1208           #pragma preproc_asm +/-
1209
1210 2006-09-07 Borut Razem <borut.razem AT siol.net>
1211
1212         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
1213           section
1214
1215 2006-09-06 Borut Razem <borut.razem AT siol.net>
1216
1217         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
1218           line at sdcc.nsi:153
1219         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
1220
1221 2006-09-05 Borut Razem <borut.razem AT siol.net>
1222
1223         * configure.in, configure: support for winsock2
1224         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
1225           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
1226           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
1227           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
1228           debugger/mcs51/symtab.h: sdcdb WIN32 native port
1229
1230 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
1233           and OP_DEFS
1234         * support/regression/tests/bug1551947.c: new, added
1235         * src/SDCCsymt.h: strings are char* not byte*
1236
1237 2006-09-05 Raphael Neider <rneider AT web.de>
1238
1239         * device/lib/pic16/libdev/pic18f4550.c,
1240           device/include/pic16/pic18f4550.h: added PORTD/TRISD
1241             declarations/definitions from patch #1520949
1242
1243 2006-09-05 Raphael Neider <rneider AT web.de>
1244
1245         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
1246           byte-aligned bitfields, fixes #1539278
1247
1248 2006-09-05 Raphael Neider <rneider AT web.de>
1249
1250         * src/pic/gen.c (genReceive): skip unreferenced arguments,
1251           fixes #1544120
1252
1253 2006-09-04 Borut Razem <borut.razem AT siol.net>
1254
1255         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
1256         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
1257           -mno-cygwin is a part of the compiler name
1258         * support/scripts/sdcc_mingw32: don't disable ucsim
1259
1260 2006-09-03 Borut Razem <borut.razem AT siol.net>
1261
1262         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
1263         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
1264
1265 2006-09-03 Raphael Neider <rneider AT web.de>
1266
1267         * src/pic/ralloc.c,
1268         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
1269           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
1270           fixes #1550049
1271
1272 2006-09-01 Borut Razem <borut.razem AT siol.net>
1273
1274         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
1275           to make ppc-osx happy
1276
1277 2006-08-31 Borut Razem <borut.razem AT siol.net>
1278
1279         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
1280         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1281         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1282         * support/regression/ports/ds390/spec.mk,
1283           support/regression/ports/mcs51/spec.mk,
1284           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
1285           To run regression tests in mingw environment:
1286           make DEV_NULL=NUL CC=gcc
1287
1288 2006-08-30 Borut Razem <borut.razem AT siol.net>
1289
1290         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
1291           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
1292           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
1293           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
1294           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
1295           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
1296           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
1297           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
1298           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
1299           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
1300           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
1301           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
1302           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1303           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
1304           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
1305           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
1306           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
1307           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
1308           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1309           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
1310           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
1311           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
1312           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
1313           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
1314           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
1315           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
1316           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
1317           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
1318           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
1319           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
1320           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
1321           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
1322           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
1323           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
1324           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
1325           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
1326           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1327           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1328           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
1329           ucsim WIN32 native port
1330
1331 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1332
1333         * doc/sdccman.lyx: added note on dynamic memory heap initialization
1334
1335 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1336
1337         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1338         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
1339
1340 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
1341
1342         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1343         * support/regression/tests/bug1546986.c: new, added
1344         * as/mcs51/.cvsignore,
1345         * debugger/mcs51/.cvsignore,
1346         * src/.cvsignore: deleted
1347
1348 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1349
1350         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
1351           definitions)
1352
1353 2006-08-20 Borut Razem <borut.razem AT siol.net>
1354
1355         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
1356           removed cl_listen_console::match(), cl_console::match(),
1357           restructured cl_commander::proc_input()
1358
1359 2006-08-16 Borut Razem <borut.razem AT siol.net>
1360
1361         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
1362           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1363           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
1364
1365 2006-08-14 Borut Razem <borut.razem AT siol.net>
1366
1367         * support/regression/Makefile.in,
1368           support/regression/ports/pic14/gpsim.cmd,
1369           support/regression/ports/pic14/spec.mk,
1370           support/regression/ports/pic14/support.c:
1371           added pic14 regression test
1372
1373 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
1374
1375         * as/doc/asxhtm.html: documented changed ABS behaviour
1376         * as/doc/README: fixed some typos
1377
1378 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
1381           not defined on host
1382
1383 2006-08-12 Borut Razem <borut.razem AT siol.net>
1384
1385         * support/regression/fwk/include/testfwk.h,
1386           support/regression/fwk/lib/testfwk.c,
1387           support/regression/generate-cases.py,
1388           support/regression/Makefile.in:
1389           regression test framework does not depend on function pointers and
1390           variable arguments
1391
1392 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1393
1394         * device/include/stddef.h: c temporary hack to fix bug 1518273
1395
1396 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1397
1398         * device/include/mcs51/cc2510fx.h: added
1399         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
1400           to projects.
1401
1402 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1403
1404         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
1405         * as/z80/Makefile.in: added strcmpi.c
1406         * as/z80/z80adr.c: added upper case registers and lower case conditionals
1407         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
1408
1409 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
1410
1411         * device/lib/gbz80/asm_strings.s,
1412         * device/lib/gbz80/crt0_rle.s,
1413         * device/lib/gbz80/div.s,
1414         * device/lib/gbz80/mul.s,
1415         * device/lib/gbz80/shift.s,
1416         * device/lib/z80/asm_strings.s,
1417         * device/lib/z80/crt0_rle.s,
1418         * device/lib/z80/div.s,
1419         * device/lib/z80/mul.s,
1420         * device/lib/z80/shift.s: changed to all lower case menmonics except the
1421           flags which are all upper case
1422
1423 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1424
1425         * as/z80/asm.h: made CASE_SENSITIVE 1
1426         * link/z80/aslink.h: made CASE_SENSITIVE 1
1427         * src/z80/gen.c (throughout): made all conditionals upper case
1428         * support/regression/tests/bug1503067.c: new
1429
1430 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1431
1432         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
1433           (shiftIntoPair): added case 2 for PAIR_IY,
1434           (setupToPreserveCarry): replaced parameters with iCode and check if
1435            PAIR_DE is in use to fix bug 1399290,
1436           (genPlus, genMinus): updated call to setupToPreserveCarry
1437         * support/regression/tests/bug1399290.c: new
1438
1439 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
1440
1441         * device/lib/Makefile.in (Z80SOURCES): enabled float support
1442         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
1443         * src/ds390/gen.c (shiftRLong),
1444         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
1445         * src/mcs51/gen.c (sameReg): changed to sameByte,
1446           (xch_a_aopGet): new,
1447           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
1448            shiftRLong): fixed bug 1533966
1449         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
1450           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
1451         * support/regression/Makefile.in: disabled z80, enabled ucz80
1452         * support/regression/tests/float_trans.c: enabled test for z80 and host
1453         * support/regression/tests/shifts2.c: new, for testing bug 1533966
1454
1455 2006-08-01 Borut Razem <borut.razem AT siol.net>
1456
1457         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
1458           comparison is always false due to limited range of data type
1459           on PPC64 machine (openpower-linux1) where "char = unsigned char"
1460
1461 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
1464         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
1465         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
1466         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
1467
1468 2006-07-31 Borut Razem <borut.razem AT siol.net>
1469
1470         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
1471           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
1472           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
1473           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
1474           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
1475           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
1476           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
1477           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
1478           enable ucsim mingw compilation. Serial port is disabled,
1479           since it uses termios.h API, which is not available on native
1480           WIN32
1481
1482 2006-07-31 Borut Razem <borut.razem AT siol.net>
1483
1484         * Small Device C Compiler 2.6.0 released
1485         * support/scripts/sdcc.nsi: added FULL_DOC option
1486         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
1487
1488 2006-07-28 Borut Razem <borut.razem AT siol.net>
1489
1490         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
1491         * doc/INSTALL.txt: updated
1492
1493 2006-07-27 Borut Razem <borut.razem AT siol.net>
1494
1495         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
1496           device/lib/pic/libdev/Makefile.in: fixed bug
1497           [ 1438354 ] pic libsdcc: distclean doesn't work
1498         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
1499           device/lib/pic16/libio/Makefile.in: fixed bug
1500           [ 1438344 ] pic16 lib: clean doesn't work properly
1501         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
1502
1503 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
1504
1505         * device/lib/pic/libsdcc/fsdiv.c,
1506         * device/lib/pic/libsdcc/fsmul.c,
1507         * device/lib/pic16/libsdcc/float/fsdiv.c,
1508         * device/lib/pic16/libsdcc/float/fsmul.c,
1509         * device/lib/_fsdiv.c,
1510         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
1511         * support/regression/tests/bug1520966.c: added
1512         * doc/knownbugs.html: removed [ 1520966 ] from the list
1513
1514 2006-07-25 Borut Razem <borut.razem AT siol.net>
1515
1516         * configure.in, configure, sdccconf_in.h: fixed bug
1517           [ 1519095 ] regression test onebyte.c fails on ppc64 host
1518         * doc/knownbugs.html: removed [ 1519095 ] from the list
1519
1520 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
1521
1522         * doc/knownbugs.html: added, contains list of known bugs at release
1523         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
1524
1525 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1526
1527         * device/include/mcs51/compiler.h: added SFRX for xdata based special
1528           function registers and corrected defaults with additional warning
1529         * device/lib/malloc.c: cosmetic changes
1530         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
1531         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
1532           (fillGaps): and used it
1533
1534 2006-07-20 Raphael Neider <rneider AT web.de>
1535
1536         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
1537           output unless SDCCPICDEBUG is set
1538         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
1539           output if SILENT is set
1540
1541 2006-07-11 Borut Razem <borut.razem AT siol.net>
1542
1543         * doc/README.txt: updated
1544
1545 2006-07-10 Borut Razem <borut.razem AT siol.net>
1546
1547         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
1548           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
1549           in WIN32 installation
1550         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
1551           release candidate 1
1552
1553 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
1554
1555         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
1556         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
1557
1558 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
1559
1560         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
1561
1562 2006-07-06 Borut Razem <borut.razem AT siol.net>
1563
1564         * support/regression/tests/bitfields.c:
1565           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
1566         * support/regression/tests/constantRange.c:
1567           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
1568
1569 2006-07-04 Borut Razem <borut.razem AT siol.net>
1570
1571         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
1572           src/port.mk,
1573           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1574           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1575           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1576           reverted changes from 2006-07-03
1577         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
1578         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
1579           added CPPFLAGS, used by the host port
1580
1581 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
1582
1583         * support/regression/valdiag/tests/switch.c,
1584         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
1585         * support/regression/tests/libmullong.c: fixed for host
1586         * support/regression/ports/host/spec.mk: disable all warnings for host,
1587         SDCC runs with --less-pedantic too
1588
1589 2006-07-03 Borut Razem <borut.razem AT siol.net>
1590
1591         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
1592           defined CPPFLAGS
1593         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
1594         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1595           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1596           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1597           include ../port.mk
1598         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
1599           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1600           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1601           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
1602
1603 2006-07-02 Raphael Neider <rneider AT web.de>
1604
1605         * src/pic16/devices.inc,
1606         * device/include/pic16/pic18fregs.h,
1607         * device/include/pic16/pic18f4550.h,
1608         * device/lib/pic16/pics.all,
1609         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
1610
1611 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
1612
1613         * as/hc08/lkaomf51.c (OutputName),
1614         * as/mcs51/lkaomf51.c (OutputName),
1615         * as/z80/asmain.c (asmbl),
1616         * src/ds390/main.c (asmLineNodeFromLineNode),
1617         * src/hc08/ralloc.c (hc08_assignRegisters),
1618         * src/mcs51/main.c (asmLineNodeFromLineNode),
1619         * src/xa51/ralloc.c (checkRegMask),
1620         * src/xa51/gen.c (emitcode),
1621         * src/z80/gen.c (_emit2),
1622         * src/SDCCast.c (searchLitOp),
1623         * src/SDCCglobl.h,
1624         * support/packihx/packihx.c,
1625         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
1626         * src/ds390/gen.c (aopPutUsesAcc),
1627         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
1628         * support/regression/tests/libmullong.c (mullong_wrapper),
1629         * src/SDCCsymt.c (powof2),
1630         * src/SDCCast.c,
1631         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
1632         * src/SDCCsymt.h: added TYPE_TARGET_*
1633         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
1634         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
1635         SDCCast because 1) header problems 2) this is the right place
1636         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
1637         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
1638         prototype
1639
1640 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
1641
1642         * src/SDCCicode.h: removed buggy semicolon in unused macro
1643         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
1644         search for previous definiton of auto symbols too,
1645         (findPrevUse): fixed logic of emitWarnings
1646
1647 2006-06-26 Raphael Neider <rneider AT web.de>
1648
1649         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
1650           PCLATH and PCLATU on interrupts, potentially fixes #1505141
1651
1652 2006-06-25 Raphael Neider <rneider AT web.de>
1653
1654         * device/lib/pic/libm: NEW, added math library functions
1655         * device/lib/pic/libsdcc: NEW; added float support functions
1656         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
1657         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
1658           NEW, added math related headers
1659         * device/include/asm/pic/features.h: NEW
1660         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
1661           (popGet): allow larger offsets for AOP_PCODE,
1662           (genDataPointerSet): handle literals explicitly, more debug output,
1663           (genAssign): fixed for float using aopLiteral ;-)
1664         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
1665           GOTO initialisation routine
1666         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
1667           flag on registers, fixes #1469043 (local variables do not work)
1668         * src/pic/main.c (_pic14_do_link),
1669         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
1670           available
1671
1672 2006-06-25 Borut Razem <borut.razem AT siol.net>
1673
1674         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
1675           characters printed (not including the trailing '\0' used to end
1676           output to strings). Problem detected in regression test bug-927659.c.
1677           NOTE: printf() family functions should return int instead
1678           unsigned int!
1679         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
1680           specifier are printed as themselves
1681         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
1682           support flags, width and precision specifiers
1683
1684 2006-06-24 Borut Razem <borut.razem AT siol.net>
1685
1686         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
1687           to the list of sdcc tagrets not supporting bit type
1688         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
1689           testfor pic16 due to bug:
1690           [ 1511794 ] pic16: regression test bug-895992.c fails
1691
1692 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
1693
1694         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
1695         * src/SDCCglue.c (initPointer), fixed bug 1496419
1696         * support/regression/tests/bug1496419.c: new, added
1697
1698 2006-06-22 Borut Razem <borut.razem AT siol.net>
1699
1700         * support/regression/ports/pic16/support.c: use gpsim usart module from
1701           libgpsim_modules library
1702
1703 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1704
1705         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
1706         IP0H to IPH0.
1707
1708 2006-06-19 Raphael Neider <rneider AT web.de>
1709
1710         * src/pic/glue.h,src/pic16/glue.h: added prototypes
1711         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
1712           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
1713           (pic14printExterns,pic14printPublics,pic16printPublics,
1714           pic16_printExterns): use new functions to emit symbols
1715           (picglue,pic16glue): emit publics before emitting externs
1716         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
1717           locally defined functions to avoid bug #1443651
1718         * support/regression/tests/bug-716242.c: removed pic16 workaround
1719         * support/regression/ports/pic16/spec.mk: ignore errors during build
1720
1721 2006-06-19 Raphael Neider <rneider AT web.de>
1722
1723         * src/pic/glue.h: added pic14aopLiteral prototype
1724         * src/pic/glue.c (pic14aopLiteral): return unsigned int
1725         * src/pic/gen.c: removed stdint.h dependency
1726           (aopGet): use Safe_strdup()
1727           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
1728           (genDataPointerSet): use pic14aopLiteral()
1729         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
1730           for pic16; thanks to Bernhard and Maarten
1731
1732 2006-06-18 Borut Razem <borut.razem AT siol.net>
1733
1734         * support/regression/tests/structflexarray.c: flexible array members
1735           not supported by gcc < 3
1736         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
1737           GUI tool by default
1738         * src/pic/gen.c: don't include [p]strdin.h on solaris
1739         * support/Util/pstdint.h: addad svn attributes
1740         * support/regression/tests/constantRange.c,
1741           support/regression/tests/rotate.c: include inttypes.h instead
1742           stdint.h on solaris, addad svn attributes
1743
1744 2006-06-18 Raphael Neider <rneider AT web.de>
1745
1746         * src/SDCCsymt.c (initCSupport): change return type of divschar to
1747           int for PIC16
1748         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
1749           (pic16_genMinusBits): simplified sign-extension
1750           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
1751             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
1752             adjusted to correctly handle mixed-signed operands, disabled
1753             now unused multiplciation routines
1754         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
1755           (assignResultValue): added argument denoting the size of the result
1756             as returned by the function (fixes upcasts in assigning from
1757             function calls: char foo(); int i = foo();)
1758           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
1759             function result to assignResultValue
1760           (genMult): disabled inlined multiplication code
1761           (genDiv): augmented to also handle the modulus operator, fixed to
1762             handle mixed-signed operands correctly
1763           (genMod): simply call genDiv, disabled unused code
1764           (genAssign): fixed missing (sign-)extension on result
1765         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
1766             valid char operands, allow signed operands for native code, added
1767             division and modulo operator handling
1768         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
1769
1770         As a consequence, onebyte.c (if split into two files) and muldiv.c
1771         pass regression tests.
1772
1773 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1774
1775         * doc/Makefile.in: two runs of makeindex seem needed to get
1776         correct page references in the index of sdccman.pdf
1777         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
1778
1779 2006-06-17 Borut Razem <borut.razem AT siol.net>
1780
1781         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
1782
1783 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1784
1785         * doc/sdccman.lyx: updated, added (porting source code, debugging),
1786         mentioned ec2drv and paulmon
1787
1788 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1789
1790         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
1791           consecutive abs areas
1792           (find_empty_space, allocate_space): added map to handle codemap or
1793            xdatamap,
1794           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
1795            absolute idata and xdata
1796         * as/mcs51/lkmem.c (summary2): updated legend
1797
1798 2006-06-16 Raphael Neider <rneider AT web.de>
1799
1800         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
1801
1802 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
1803
1804         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
1805           1208515
1806         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
1807
1808 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
1809
1810         * src/port.h (struct PORT): added field gp_tags, to hold the tag
1811         value of generic pointers,
1812         * src/avr/main.c,
1813           src/ds390/main.c,
1814           src/hc08/main.c,
1815           src/izt/i186.c,
1816           src/izt/tlcs900h.c,
1817           src/mcs51/main.c,
1818           src/pic/main.c,
1819           src/pic16/main.c,
1820           src/xa51/main.c,
1821           src/z80/main.c: PORT structure, added elements for gp_tags field,
1822         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
1823         fields in the PORT structure of each port,
1824         * src/SDCCast.c (decorateType): allow processing of generic pointers
1825         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
1826         S_FIXED symbols
1827
1828 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
1829
1830         * link/z80/lkgb.c,
1831         * link/z80/lkgg.c,
1832         * src/pic16/gen.c,
1833         * src/pic16/main.c,
1834         * src/pic16/pcode.c,
1835         * src/pic/main.c,
1836         * src/pic/pcoderegs.c,
1837         * src/SDCCicode.c,
1838         * src/SDCCmain.c,
1839         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
1840           bug 1504689 on minGW
1841
1842 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1843
1844         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
1845
1846 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
1847
1848         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
1849
1850 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
1851
1852         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
1853           for optimization
1854
1855 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
1856
1857         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
1858         to a char variable. Fixed bug #1504211
1859         * device/include/pic16/adc.h,
1860         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
1861         and fixed bug #1364390
1862
1863 2006-06-10 Borut Razem <borut.razem AT siol.net>
1864
1865         * CVSROOT: removed the CVS left-over
1866
1867 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1868
1869         * as/hc08/asmain.c (asexit),
1870         * as/hc08/lkmain.c (lkexit),
1871         * as/mcs51/asmain.c (asexit),
1872         * as/mcs51/lkmain.c (lkexit),
1873         * src/SDCCglue.c (DEFSETFUNC),
1874         * src/SDCCmain.c (linkEdit, assemble),
1875         * support/librarian/sdcclib.c (AddRel),
1876           replaced unlink() by standard C remove()
1877         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
1878         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
1879           gatherImplicitVariables): new, added to fix bug 608752,
1880           (createFunction): added gatherImplicitVariables()
1881         * src/SDCCast.h: added createRMW prototype
1882         * src/SDCCsymt.h (struct symbol): added infertype
1883         * support/regression/tests/bug608752.c: new, added
1884
1885 2006-06-10 Raphael Neider <rneider AT web.de>
1886
1887         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
1888           multibyte dummy reads (fixes #1503234)
1889
1890 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1891
1892         * device/include/mcs51/compiler.h: new, added header file to enable
1893           creating common sfr definition header files for different compilers
1894
1895 2006-06-05 Raphael Neider <rneider AT web.de>
1896
1897         * src/pic16/{pcode.h,genarith.c}:
1898           introduced pCodeOp combining any two pCodeOps (previously only
1899           two register operands could be combined), removed pcop2 from
1900           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
1901         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
1902         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
1903           rewritten to use new PO_TWO_OPS
1904         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
1905         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
1906           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
1907           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
1908           (pic16_get_op): embraced return arg to allow #define return(x),
1909             added new case for combined opcodes
1910           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
1911           (pic16_pCode2str,pic16_getRegFrompCodeOp,
1912            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
1913
1914 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
1915
1916         * src/SDCCval.c (checkConstantRange): added
1917         * src/SDCCval.h: added checkConstantRange
1918         * support/Util/SDCCerr.c,
1919         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
1920         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
1921         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
1922         * src/SDCCast.c (decorateType): added checkConstantRange,
1923         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
1924         can be emitted with the correct always true/false warning,
1925         added optimization for double '!';
1926         result of decorateType() must be assigned back to the tree, because
1927         decorateType() can change the tree
1928         * src/SDCCicode.c (geniCodeLogic),
1929         (geniCodeAssign): replaced new checkConstantRange, added warnings,
1930         (checkConstantRange): removed, it was only a fragment which never
1931         emitted a warning
1932         * src/SDCCsymt.c (computeType): fixed promotion for
1933         "-1 < (unsigned bit) b"
1934         * src/pic/ralloc.c (packRegsForAssign),
1935         * src/pic16/ralloc.c (packRegsForAssign),
1936         * src/hc08/ralloc.c (packRegsForAssign),
1937         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
1938         from mcs51
1939         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
1940         * support/regression/tests/constantRange.c: added
1941         * support/valdiag/tests/constantRange.c: added
1942         * support/valdiag/valdiag.py: added -DPORT_HOST=1
1943
1944 2006-06-02 Borut Razem <borut.razem AT siol.net>
1945
1946         * support/regression/ports/pic16/support.c: increase stack size
1947           to 255 bytes
1948         * support/regression/Makefile.in: sort tests by name so that the
1949           resutlts can be compared on different machines / platforms
1950
1951 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1952
1953         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
1954         * src/ds390/gen.c (emitLabel): new, added,
1955           (genDjnz): fixed stack overflow bug,
1956           (throughout): cosmetic changes to sync with mcs51/gen.c,
1957           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
1958         * src/mcs51/gen.c (genEndFunction): small optimization,
1959           (throughout): cosmetic changes to sync with ds390/gen.c
1960
1961 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1962
1963         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
1964           (_print_format): fixed printing pointers
1965         * src/mcs51/gen.c (emitLabel, movb): new, added,
1966           (genAssign): small optimization,
1967           (genDjnz): fixed stack overflow bug,
1968           (throughout): replaced sprintf with SNPRINTF,
1969           replaced mcs51_regWithIdx with REG_WITH_INDEX,
1970           replaced emitcode("mov", "b,...") with MOVB(...),
1971           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
1972           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1973         * src/mcs51/peeph.def: added rules 140 and 264
1974         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
1975           so they may get optimized into registers
1976
1977 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
1978
1979         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
1980           immediately when encountered,
1981           (printUsage): always use stderr even on windows
1982
1983 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
1984
1985         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
1986         (processParms): fixed bug #1247551
1987         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
1988         parseCmdLine, main): print '--version' to stdout,
1989         print 'help' to stdout if --help is given,
1990         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
1991         arguments are given; fixed --help
1992
1993 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
1994
1995         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
1996         * support/regression/tests/bug-1493710.c: added
1997
1998 2006-05-27 Borut Razem <borut.razem AT siol.net>
1999
2000         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
2001           static instead auto
2002         * support/regression/ports/pic16/support.c: increase stack size
2003           from default 64 bytes to 128 bytes
2004         * support/regression/tests/staticinit.c,
2005           support/regression/tests/float.c: regression tests fully enabled
2006           for pic16 port by putting the initialized data arrays into the code
2007           section
2008         * support/regression/ports/pic16/spec.mk: don't link default libraries.
2009           This was changed by mistake in the previous version.
2010
2011 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
2012
2013         * src/pic16/gen.c (genFunction, genEndFunction): some
2014         beautifications, fixed bug with falsely restoring FSR2 in large
2015         stack model, thanks to Beau E. Cox for reporting the bug
2016
2017 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2018
2019         * debugger/mcs51/break.c,
2020         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
2021           use %p to print pointers, made address variables unsigned
2022         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
2023         * debugger/mcs51/symtab.c (parseSymbol): must return something
2024         * src/mcs51/gen.c (aopForSym): small optimization,
2025            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
2026           (freeAsmop): added missing break,
2027           (aopPut): removed parameter bvolatile, determine it inside the function,
2028           (saveRegisters, unsaveRegisters): small optimization,
2029           (genIpush): removed pointless check,
2030           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
2031           replaced sprintf with SNPRINTF,
2032           replaced strcpy with strncpyz,
2033           updated aopPut calls,
2034           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2035         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
2036
2037 2006-05-24 Borut Razem <borut.razem AT siol.net>
2038
2039         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
2040           modification of test for the pic16 port, put the array to the code
2041           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
2042
2043 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2044
2045         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
2046         * support/Util/pstdint.h: added
2047
2048 2006-05-22 Borut Razem <borut.razem AT siol.net>
2049
2050         * src/regression/Makefile: removed bool2.c test, added -q linker option
2051         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
2052           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
2053           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
2054           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
2055           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
2056           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
2057           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
2058           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
2059           define SUPPORT_BIT_TYPES 0, removed unused bit variables
2060
2061 2006-05-22 Raphael Neider <rneider AT web.de>
2062
2063         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
2064           bug #1492360 (problematic due to generic pointers, see code)
2065
2066 2006-05-22 Borut Razem <borut.razem AT siol.net>
2067
2068         * support/regression/ports/pic16/specs.mk: removed stack size linker
2069           directive
2070         * support/regression/tests/array.c,
2071           support/regression/tests/bitopcse.c,
2072           support/regression/tests/bug-908454.c,
2073           support/regression/tests/malloc.c: modified for pic16 regression test
2074         * support/regression/tests/bitfields.c:
2075           pic16 - excluded bitfileds of size > 8
2076         * support/regression/tests/bp.c: pic16 - reduced data size
2077         * support/regression/tests/bug-221100.c: pic16 - reduced data size
2078         * support/regression/tests/bug-460010.c:
2079           pic16 - used the absolute address the fits in memory
2080         * support/regression/tests/bug-716242.c:
2081           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
2082         * support/regression/tests/float.c:
2083           pic16 - excluded - data size too big
2084         * support/regression/tests/onebyte.c:
2085           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
2086         * support/regression/tests/shifts.c:
2087           pic16 - function names probably have to differ in first X characters
2088           (gpasm limitation?)
2089         * support/regression/tests/staticinit.c:
2090           pic16 - excluded some tests due error: no target memory available for
2091           section ".idata"
2092
2093 2006-05-22 Borut Razem <borut.razem AT siol.net>
2094
2095         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2096           second try. Thanks Stas Sergeev once more.
2097
2098 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2099
2100         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
2101           (genLeftShift, genRightShift): fixed bug 1491627
2102         * src/hc08/peeph.def (rules 7, 8.x): added
2103         * support/regression/tests/shifts.c (ShiftLeftByParam,
2104           ShiftRightByParam, testShiftByParam): added to test variable shifting
2105
2106 2006-05-20 Raphael Neider <rneider AT web.de>
2107
2108         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
2109         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
2110           (allocReg): add only new registers to dynAllocRegs,
2111           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
2112             #1489055, #1445850, and probably #1483693
2113
2114 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2115
2116         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
2117         bug in for-loop that didn't emit the last of CONFIG and ID registers
2118
2119 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
2120
2121         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
2122           with offset
2123         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
2124           1489016, 1434401 and 1490124
2125         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
2126           1489016, 1434401 and 1490124
2127
2128 2006-05-17 Borut Razem <borut.razem AT siol.net>
2129
2130         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2131           thanks Stas Sergeev
2132
2133 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2134
2135         * device/include/mcs51/P89c51RD2.h,
2136         * device/include/mcs51/P89LPC901.h,
2137         * device/include/mcs51/P89LPC922.h,
2138         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
2139
2140 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2141
2142         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
2143         to fix missing stack pragma in compiled binary object file,
2144
2145 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2146
2147         * support/packihx/configure.in,
2148         * support/packihx/configure: removed warning, autoconf >= 2.5x can
2149         determine sizeof basic types even while cross compiling
2150
2151 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2152
2153         * src/avr/gen.c (aopop),
2154         * src/ds390/gen.c (aopOp),
2155         * src/hc08/gen.c (aopOp),
2156         * src/mcs51/gen.c (aopop),
2157         * src/pic16/gen.c (pic16_aopOp),
2158         * src/pic/gen.c (aopOp),
2159         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
2160         if size of operand is smaller than spill location
2161
2162 2006-05-12 Borut Razem <borut.razem AT siol.net>
2163
2164         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
2165           have to have CR/LF line endings even if they are checked out on *nix
2166           or on WIN32 in cygwin binmode
2167
2168 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
2169
2170         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
2171         * device/include/ds80c390.h: added sfr16 definitions
2172         * src/ds390/gen.c,
2173         * src/ds390/gen.h,
2174         * src/ds390/main.c,
2175         * src/ds390/ralloc.c,
2176         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
2177           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
2178           bit returning functions
2179         * support/regression/tests/sfr16.c: enabled test on ds390
2180
2181 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2182
2183         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
2184         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
2185
2186 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2187
2188         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
2189         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
2190           (cl_address_space constructor): removed expensive initialization,
2191           (cl_address_space::get_cell): extended for late initialization,
2192           (cl_address_space::*): use late initialization,
2193           (cl_address_decoder::activate): removed expensive initialization,
2194           This reduced regression test running time by 25%
2195
2196 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
2197
2198         * packihx/,
2199         * configure.in,
2200         * configure,
2201         * sdcc.dsw,
2202         * Makefile.bcc,
2203         * Makefile.in,
2204         * support/packihx/Makefile.in,
2205         * support/packihx/clean.mk,
2206         * support/packihx/Makefile.bcc,
2207         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
2208
2209 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2210
2211         * src/SDCCval.c (valNot): fix for regression test failure
2212           of not.c on big endian hosts
2213
2214 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
2217
2218 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2219
2220         * device/lib/mcs51/Makefile.in: changed string comparison operator
2221           to = for POSIX compliance; == is bash extension
2222
2223 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2224
2225         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
2226           kosmonaut_pirx
2227
2228 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
2229
2230         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
2231         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
2232         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
2233         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
2234         bug report #1478657,
2235
2236 2006-05-05 Borut Razem <borut.razem AT siol.net>
2237
2238         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
2239           making the html
2240
2241 2006-05-02 Borut Razem <borut.razem AT siol.net>
2242
2243         * doc/Makefile.in: removed *.ind dependency since there is no rule to
2244           create *.ind, which made make to fail if invoked with -j 2
2245
2246 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
2247
2248         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
2249           Hubert Sack for patch 1479782
2250
2251 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
2252
2253         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
2254
2255 2006-05-01 Raphael Neider <rneider AT web.de>
2256
2257         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
2258           (create_pic): store only prefix-free device name,
2259           (init_pic): check for device names with "16" prefix,
2260           (list_valid_pics),
2261         * src/pic/device.h (struct PIC_device),
2262         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
2263             stored device name,
2264         * device/include/pic/pic12f{635,675,629,683}.h,
2265         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
2266         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
2267         * device/include/pic/pic16f505.h,
2268         * device/lib/pic/libdev/pic16f505.c: removed
2269         * device/include/pic/pic14devices.txt: added support for pic12f
2270             devices, removed unsupported non 16-bit devices
2271             [above changes provided by patch from Zik Saleeba]
2272         * src/pic/*, src/pic16/*, device/include/pic16/*,
2273           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
2274
2275 2006-05-01 Borut Razem <borut.razem AT siol.net>
2276
2277         * configure.in, configure, doc/Makefile.in:
2278           sync with nightly build makefile - latex, dvipdf and dvips
2279           not needed any more
2280
2281 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2282
2283         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
2284         in the library source
2285
2286 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
2289
2290 2006-04-28 Raphael Neider <rneider AT web.de>
2291
2292         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
2293         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
2294           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
2295         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
2296
2297 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2298
2299         * device/lib/pic/libdev/Makefile.in,
2300         * device/lib/hc08/Makefile.in,
2301         * device/lib/gbz80/Makefile.in,
2302         * device/lib/z80/Makefile.in,
2303         * device/lib/ds390/Makefile.in,
2304         * device/lib/ds400/Makefile.in: added srcdir to include search path,
2305         thanks to Borut for the bug report
2306         * configure.in,
2307         * configure: always create doc/Makefile independent from --enable-doc
2308         * Makefile.in: always install from directory doc independent from
2309         --enable-doc
2310         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
2311         removed
2312         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
2313         * doc/Makefile.in: install *.txt if present
2314         * device/include/Makefile.in (install): added installation of pic/*.inc
2315         and pic/*.txt files again, they were erroneously removed
2316
2317 2006-04-28 Raphael Neider <rneider AT web.de>
2318
2319         * src/pic/{gen.c,main.h,pcode.c},
2320         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
2321             concerning signedness with casts
2322
2323 2006-04-28 Raphael Neider <rneider AT web.de>
2324
2325         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
2326             definition of an interrupt handler,
2327         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
2328             interrupt handler stuff from picglue() to separate routine,
2329           (picglue): enabled definition of intr handlers in files w/o main()
2330
2331 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2332
2333         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
2334           compilation with MSVC 2005 Express Edition (VC8)
2335
2336 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2337
2338         * device/lib/Makefile: fixed build of gbz80 lib
2339
2340 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2341
2342         * support/regression/tests/bug-460010.c,
2343         * support/regression/tests/bug-524691.c,
2344         * support/regression/tests/bug-716242.c: removed conditional defines
2345           that are already in testfwk.h
2346
2347 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2348
2349         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
2350           (AccAXRsh1): added, shift right by 1,
2351           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
2352            AccAXLrl1
2353         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
2354
2355 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
2356
2357         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
2358         remove cast to same type
2359         * src/SDCCast.c (decorateType): fix for RFE 1475742,
2360         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
2361         * as/z80/Makefile,
2362         * link/z80/Makefile: removed, they have moved to
2363         Makefile.in files
2364         * configure,
2365         * configure.in: replaced duplicate message about ucsim by missing sdcpp
2366         * install-sh: fix bug #1204398 by setting umask 0022
2367         * device/lib/Makefile: separate build of z80 and gbz80 lib
2368
2369 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2370
2371         Enabled VPATH feature: changed nearly all Makefiles (149 files).
2372         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
2373
2374         One basic decision: e.g. src/clean.mk includes further files. In order
2375         to make this work there are two solutions:
2376         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
2377           run configure on them. This way they can use
2378           'include $(srcdir)/port-clean.mk'
2379         - always include clean.mk by the Makefile at the same level. To avoid
2380           that `make clean` tries to include and build Makefile.dep the
2381           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
2382           implemented, because now even `make uninstall` doesn't create
2383           Makefile.in. clean.mk could be eliminated by pasting it in
2384           Makefile.in.
2385
2386         * debugger/mcs51/Makefile.in: build own objects from library sources
2387         (SLIB, SDCC) in current directory
2388
2389         * configure, configure.in: renamed --disable-device-lib-build in
2390         --disable-device-lib; added --enable-doc, the required tools are
2391         searched by configure; added result message; the toolchain for the
2392         belonging ports are now only built, if the port is enabled.
2393
2394         * support/regression/*: all output is written in directory gen, because
2395         the fwk and ports directories don't livet in the build tree using vpath
2396
2397         * doc/sdccman.lyx: renamed --disable-device-lib-build to
2398         --disable-device-lib, added --enable-doc, added section VPATH
2399
2400         * sim/ucsim/configure.in,
2401         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
2402         z80 are enabled by default
2403
2404 2006-04-24 Raphael Neider <rneider AT web.de>
2405
2406         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
2407             to config word, "pic14_"-prefixed some extern functions
2408           (pic14_emitConfigWord): emit __config directive(s) if assignment to
2409             config word has been found
2410         * src/pic/device.h: added prototypes
2411         * src/pic/pcode.c: added "pic14_"-prefix where needed
2412         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
2413             fixup
2414         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
2415             words,
2416           (pic14emitRegularMap): ignore config words,
2417           (pic14createInterruptVect): moved generating __config directives away
2418           (picglue): have __config directives emitted
2419
2420 2006-04-24 Borut Razem <borut.razem AT siol.net>
2421
2422         * doc/Makefile: sync with nightly build makefile
2423
2424 2006-04-24 Raphael Neider <rneider AT web.de>
2425
2426         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
2427             registers that have not been assigned proper liveranges,
2428             fixes #1469504 and #1474602,
2429           (pCodeRegOptimizeRegUsage): fixed typo in comment
2430
2431 2006-04-24 Borut Razem <borut.razem AT siol.net>
2432
2433         * device/examples/main8051.c: deleted - it was removed from CVS
2434           24.mar.2000 and after that modified 18.feb.2001, so it reappered
2435           after the transition to Subversion
2436         * src/SDCCalloc.h: deleted - it was removed  from CVS
2437           3.feb.2001 and after that modified 18.feb.2001, so it reappered
2438           after the transition to Subversion
2439         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
2440           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
2441           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
2442           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
2443
2444 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
2445
2446         * as/asx8051.dsp: added mcs51/strcmpi.h
2447         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
2448         * as/hc08/aslink.h: updated lnksect prototype
2449         * as/hc08/asm.h,
2450         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
2451         * as/hc08/asmain.c,
2452         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
2453           (newdot): handle A_ABS
2454         * as/hc08/asout.c,
2455         * as/mcs51/asout.c (outarea): output address
2456         * as/hc08/lkaomf51.c,
2457         * as/mcs51/lkaomf51.c: disabled unused array UsageType
2458         * as/hc08/m08pst.c,
2459         * as/mcs51/i51pst.c,
2460         * as/z80/z80pst.c: "ABS" is not A_OVR
2461         * as/hc08/lkarea.c (newarea): read a_addr,
2462           (lnkarea): added codemap array, sort absolute areas to the front,
2463            combine all GSINITx/GSFINAL,
2464           (find_empty_space, allocate_space): new functions,
2465           (lnksect): return next address, handle absolute sections
2466         * as/mcs51/lkarea.c (newarea): read a_addr,
2467           lnksect2 prototype changed,
2468           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
2469           (find_empty_space, allocate_space): new, factored out of lnksect2,
2470           (lnksect2): return next address, handle absolute sections
2471         * as/hc08/lkhead.c,
2472         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
2473         * as/hc08/lklibr.c (addfile, fndsym),
2474         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
2475           index out of range and detect both '\' and '/'
2476         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
2477         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
2478           regression tests (ds390 cannot return bool yet)
2479         * doc/sdccman.lyx: changed version number, document changed --no-peep,
2480           document critical interrupts on z80, document changed SDCC define
2481         * src/asm.c (_asxxxx_mapping): fixed .org directive,
2482           (_a390_mapping): added .org directive
2483         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
2484           (genMultOneByte): fixed warnings
2485         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
2486           ones
2487         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
2488         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
2489           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
2490         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
2491         * src/pic16/main.c: removed newReg prototype
2492         * src/pic16/pcode.c,
2493         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
2494           warnings
2495         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
2496           ones
2497         * src/pic16/ralloc.c
2498         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
2499           to fix warnings
2500         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
2501           from short to PIC_OPTYPE
2502         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
2503         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
2504           optype from short to PIC_OPTYPE
2505         * src/port.h: made int_size unsigned to fix warnings
2506         * src/SDCC.y: fixed warning on MSVC
2507         * src/SDCCicode.c (getArraySizePtr): return unsigned int
2508         * src/SDCCopt.c (convertToFcall): fixed warnings
2509         * src/SDCCsymt.h: removed double prototype for genSymName
2510         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
2511           offset int to fix warnings
2512
2513 2006-04-22 Borut Razem <borut.razem AT siol.net>
2514
2515         * doc/sdccman.lyx, */Makefile, */Makefile.in:
2516           references to CVS replaced with Subversion
2517
2518 2006-04-21 Borut Razem <borut.razem AT siol.net>
2519
2520         * doc/sdccman.lyx, */Makefile, */Makefile.in:
2521           references to CVS replaced with Subversion
2522
2523 2006-04-19 Borut Razem <borut.razem AT siol.net>
2524
2525         * src/version.awk: adapted for svn
2526         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
2527           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
2528           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
2529           /binutils-avr/etc/*.vi, *.jin: removed all properties
2530           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
2531
2532 2006-04-19 Borut Razem <borut.razem AT siol.net>
2533
2534         * CVS to Subversion migration completed
2535
2536 2006-04-18 Borut Razem <borut.razem AT siol.net>
2537
2538         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
2539           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
2540
2541 2006-04-17 Borut Razem <borut.razem AT siol.net>
2542
2543         * device/include/Makefile.in: added pic/*.inc to the installation
2544
2545 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
2546
2547         * support/regression/collate-results.py: fixed output in case of
2548         a valdiag error
2549         * support/regression/generate-cases.py: fixed splitting of pathnames
2550         with dots
2551         * as/hc08/lklibr.c (addfile),
2552         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
2553
2554 2006-04-11 Raphael Neider <rneider AT web.de>
2555
2556         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
2557         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
2558         * src/pic16/pcode.c (assignValnums): fixed #1460578
2559
2560 2006-04-11 Raphael Neider <rneider AT web.de>
2561
2562         * device/lib/pic/libdev/*.c,
2563         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
2564           fixes #1468739, enables compilation in --std-c99 mode
2565         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
2566
2567 2006-04-11 Raphael Neider <rneider AT web.de>
2568
2569         * src/pic/device.c (find_device): removed debug output
2570           (list_valid_pics): enabled verbose listing of supported devices
2571         * device/include/stdbool.h: define bool as char for pic14/16 as well
2572
2573 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2574
2575         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
2576
2577 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * .version: bumped version to 2.5.6
2580         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
2581
2582 2006-04-06 Raphael Neider <rneider AT web.de>
2583
2584         * .version: bumped version to 2.5.6 (pic14 ABI changed)
2585         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
2586         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
2587           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
2588             pic14_constructAbsMap
2589           (pic14printPublics): declare absolute global symbols as global
2590           (pic14createInterruptVect),
2591         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
2592           (newReg): assume new registers unused, use correct name in
2593             hashtable (reg->name instead of name), more debugLog output
2594         * src/pic/device.h (PIC_device): added fields for verbose output
2595         * src/pic/device.c: moved device definition to pic14devices.txt,
2596             added routines for runtime parsing of pic14devices.txt,
2597             added support for second config word
2598         * src/pic/main.c (_process_pragma): removed #pragma maxram,
2599           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
2600           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
2601           (_pic14_parseOptions): moved pCodeInitRegisters here
2602           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
2603         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
2604           (pCodeInitRegisters): rewrapped comments, perpared new approach to
2605             handling the pseudo stack
2606         * device/lib/Makefile.in: ignore failures in objects-pic16,
2607         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
2608         * device/lib/pic/NEWS: document new dependency on picXXX.lib
2609         * device/lib/pic/Makefile.subdir,
2610         * device/lib/pic16/Makefile.subdir: improved clean rules
2611         * device/lib/pic/libdev/: NEW, pic14 device libraries
2612         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
2613         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
2614         * device/include/Makefile.in: create subdir and install pic14 headers
2615         * device/include/pic/p16f_common.inc: removed unused declarations
2616         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
2617             PICs from inc2h.pl v1.6,
2618             replaced BIT_AT macros with struct declarations
2619         * device/include/pic/pic14devices.txt: definition of supported devices,
2620             all above improvements contributed by Zik Saleeba, thanks
2621         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
2622         * support/scripts/sdcc.nsi: also install pic14 device libraries and
2623             headers
2624
2625 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * device/include/mcs51/c8051f410.h: added interrupt numbers,
2628         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
2629           thanks to Charles Olds
2630
2631 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2632
2633         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
2634
2635 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2636
2637         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
2638         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
2639         * support/regression/bug1464657.c: added, new test
2640
2641 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
2644           version number
2645
2646 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2647
2648         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
2649           --no-peep and --peep-file <file> are used don't use default rules but
2650           do use the <file>
2651
2652 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2653
2654         * src/mcs51/gen.c (genCall): fixed bug 1457608
2655
2656 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2657
2658         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
2659         changes seem to cause (trigger?) problems with the build system.
2660
2661 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
2662
2663         * src/SDCCpeeph.c (operandsLiteral): new, added,
2664           (callFuncByName): inserted operandsLiteral
2665         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
2666
2667 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2668
2669         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
2670         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
2671
2672 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2673
2674         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
2675           implemented patch 1120823 Thanks to Willy De la Court (normal
2676           interrupts need an interrupt number now if they are made critical),
2677           and enabled nesting of critical functions though not for gbz80
2678           (genCritical, genEndCritical): added functions
2679           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
2680         * src/z80/mappings.i: added "ei" to all mappings
2681
2682 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2683
2684         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
2685         submitted by the Debian SDCC maintainer Aurelien Jarno:
2686         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
2687         archive with gcc 4.1 on mips and wrote the patch"
2688
2689 2006-03-16 Raphael Neider <rneider AT web.de>
2690
2691         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
2692           the left operand is shorter than the result (c* = lit-c* + int),
2693           fixes bug #1450796
2694         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
2695           OP_SYMBOL
2696
2697 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2698
2699         * src/.version: increased version number to 2.5.5
2700         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
2701         linking is done manually in pic16 port's _linkEdit,
2702         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
2703         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
2704         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
2705         allocate asmop as AOP_ACC,
2706         (aopForRemat): added parameter 'bool result' in function declaration,
2707         (pic16_aopGet): return AOP_ACC when accessing WREG,
2708         (pic16_popGetTempReg): minor modification,
2709         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
2710         'pic16_allocWithIdx',
2711         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
2712         calling function in absolute addresses,
2713         (genAssign): take into account AOP_ACC asmop,
2714         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
2715         * src/pic16/pcoderegs.c: some debug functions and lines added,
2716         * src/pic16/ralloc.c (decodeRegType): added but commented out,
2717         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
2718         register too,
2719         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
2720         call to allocReg, not by manually allocating a new one,
2721         (pic16_assignRegisters): now before going through the register
2722         allocating functions mark all registers as free. This eliminates some
2723         side effects resulting from peephole parser done earlier in the backbone
2724
2725 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
2726
2727         * src/SDCCicode.c (geniCodeLogic),
2728         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
2729
2730 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
2731
2732         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
2733           (genSend): bugfix, do not allocate and free twice,
2734           (shiftRLong): handle partially overlapping aops
2735         * support/regression/tests/bitopcse.c: fixed warning redefined idata
2736
2737 2006-03-08 Borut Razem <borut.razem AT siol.net>
2738
2739         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
2740           for pic16
2741
2742 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
2743
2744         * support/regression/tests/bug1409955.c: new, added
2745         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
2746         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
2747           (aopForSym, aopOp): increment asmop.allocated if reused,
2748           (freeAsmop): decrement asmop.allocated and check for zero instead of
2749           using asmop.freed,
2750           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
2751           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
2752            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
2753            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
2754            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
2755            genSignedRightShift, genRightShift, genDataPointerGet,
2756            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
2757            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
2758             in reverse order from allocation,
2759           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
2760             added swappedLR to keep track
2761         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
2762           pdata & code for GCC, z80, gbz80 & hc08
2763         * support/regression/tests/zeropad.c: moved defines to testfwk.h
2764
2765 2006-03-08 Raphael Neider <rneider AT web.de>
2766
2767         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
2768
2769 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
2770
2771         * device/include/mcs51/c8051f410.h: new SiLabs mcu
2772         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
2773         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
2774
2775 2006-03-06 Borut Razem <borut.razem AT siol.net>
2776
2777         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
2778           made the linker quiet
2779
2780 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2781
2782         * src/pic16/gen.c (genPcall): fixed bug #1443644
2783         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
2784         which dumps before the function entry point a data byte which represents
2785         the number of the local variables used by the specified function, added
2786         'xinst' for initial support for Extended Instruction Support,
2787         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
2788         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
2789         port->fun_prefix anymore (may change later),
2790         (genFunction, genEndFunction): do not store/restore local registers for
2791         _main (this should take care the --main-return command line option in
2792         the future),
2793         (genOr): removed some legacy pic-port instructions,
2794         * src/pic16/genarith.c (genAddLit): re-enabled old code because
2795         performing operations with SFR's causes data to be written more than
2796         once to each SFR. Perhaps SFRs should be handled in special cases...
2797         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
2798         pcode.h
2799         * src/pic16/main.c (_process_pragma): stack bound checking did not take
2800         into account for stack starting position,
2801         (struct OPTIONS pic16_optionsTable): added command line argument
2802         --extended or -y for Extended Instruction Support,
2803         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
2804         (deassignLRs): *** perhaps the most important change, old 'for' code
2805         (commented out for reference), didn't account for some registers which
2806         were left marked 'not free' after a pointer operation. The change
2807         reduces register usage a lot in some cases
2808
2809 2006-03-04 Borut Razem <borut.razem AT siol.net>
2810
2811         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
2812           _clean
2813         * support/regression/tests/bug-524697.c: decreased array size for
2814           mcs51 to fit into the internal RAM
2815         * support/regression/Makefile.in: a little bit more verbose
2816
2817 2006-03-03 Borut Razem <borut.razem AT siol.net>
2818
2819         * support/regression/fwk/lib/testfwk.c,
2820           support/regression/fwk/include/testfwk.h: introduced function
2821           _prints(), nonrecursive _printn(), call _initEmu() from main()
2822         * support/regression/ports/gbz80/support.asm,
2823           support/regression/ports/ucz80/support.asm,
2824           support/regression/ports/z80/support.asm,
2825           support/regression/ports/ds390/support.c,
2826           support/regression/ports/hc08/support.c,
2827           support/regression/ports/host/support.c,
2828           support/regression/ports/mcs51/support.c,
2829           support/regression/ports/xa51/support.c: added empty _initEmu()
2830           function
2831         * support/regression/ports/pic16/gpsim.cmd,
2832           support/regression/ports/pic16/spec.mk,
2833           support/regression/ports/pic16/support.c,
2834           support/regression/Makefile.in: added pic16 regression test
2835
2836 2006-03-01 Raphael Neider <rneider AT web.de>
2837
2838         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
2839           genConstPointerGet): use safe way of generating MOVFF to cover
2840             literals as well as registers, fixes bug #1440527
2841         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
2842             dereference
2843           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
2844             more correctly, fixes bug #1232186
2845           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
2846         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
2847             gplink guess the correct processor in more cases, applied patch
2848             from Till Riedel attached to and fixing bug #1436552
2849
2850 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2851
2852         * support/regression/tests/array.c: added, contains check for #1434401
2853         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
2854
2855 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2856
2857         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
2858         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
2859         * device/include/mcs51/c8051f326.h,
2860         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
2861         * device/include/mcs51/c8051f000.h,
2862         * device/include/mcs51/c8051f018.h,
2863         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
2864           PCON_IDLE,PCON_STOP and added sfr16 definitions
2865
2866 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2867
2868         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
2869           genGetWord): fixed bug 1409955
2870
2871 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * device/include/hc08/mc68hc908gp32.h,
2874         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
2875
2876 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2877
2878         * src/SDCCast.c (constExprValue): return NULL if not a value
2879         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
2880         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
2881         * support/regression/tests/bitfields.c: enabled signed bitfield for all
2882
2883 2006-02-13 Borut Razem <borut.razem AT siol.net>
2884
2885         * src/regression/ptrarg.c: added, fails due to bug #1430967
2886         * src/regression/Makefile: ptrarg.c added, ...
2887
2888 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2889
2890         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
2891         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
2892
2893 2006-02-11 Borut Razem <borut.razem AT siol.net>
2894
2895         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
2896           print "Processor: xxx" message to stdout only if --verbose
2897
2898 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2899
2900         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
2901         * support/regression/tests/bug1426356.c: added
2902         * support/regression/tests/bitfields.c: removed 2 tests
2903
2904 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2905
2906         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
2907         * device/include/mcs51/c8051f330.h,
2908         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
2909           PCON_IDLE,PCON_STOP and added sfr16 definitions
2910         * device/lib/_divsint.c,
2911         * device/lib/_divuint.c,
2912         * device/lib/_divulong.c,
2913         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
2914           register bank bug for small stackauto
2915
2916 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2917
2918         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
2919
2920 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
2921
2922         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
2923         * all.dsp: corrected several bin paths
2924         * device/include/mcs51/c8051f120.h,
2925         * device/include/mcs51/c8051f300.h,
2926         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
2927           to PCON_IDLE,PCON_STOP
2928         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
2929         * device/lib/printf_large.c (output_float): fixed bug 1388703
2930         * support/regression/tests/bug1057979.c: added test for bug 1388703
2931
2932 2006-02-08 Raphael Neider <rneider AT web.de>
2933
2934         * src/pic/pcode.c (pciTRIS): fixed typo,
2935           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
2936           (LinkFlow): fixed handling of flows that end in a call,
2937           (ReuseReg): perform safety check earlier
2938         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
2939             to work with flows at the beginning of a pBlock,
2940             fixes #1426557 (Symbol not previously defined),
2941           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
2942             usage information
2943           (RemoveUnusedRegisters): update register usage info
2944         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
2945             created, reuse existing ones instead
2946         * src/pic/gen.c (genPcall): fixed #1424719
2947
2948 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
2949
2950         * link/z80/lkmain.c,
2951         * link/z80/lklex.c,
2952         * link/z80/lkdata.c,
2953         * link/z80/aslink.h: fixed build on current cygwin:
2954         replaced getline() by lk_getline()
2955
2956 2006-02-01 Borut Razem <borut.razem AT siol.net>
2957
2958         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
2959           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
2960           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
2961           src/regression/bool1.c, src/regression/bool2.c,
2962           src/regression/bool3.c, src/regression/call1.c,
2963           src/regression/compare.c, src/regression/compare10.c,
2964           src/regression/compare2.c, src/regression/compare3.c,
2965           src/regression/compare4.c, src/regression/compare5.c,
2966           src/regression/compare6.c, src/regression/compare7.c,
2967           src/regression/compare8.c, src/regression/compare9.c,
2968           src/regression/configword.c, src/regression/for.c,
2969           src/regression/inline.c, src/regression/mult1.c,
2970           src/regression/nestfor.c, src/regression/or1.c,
2971           src/regression/pointer1.c, src/regression/ptrfunc.c,
2972           src/regression/rotate1.c, src/regression/rotate2.c,
2973           src/regression/rotate3.c, src/regression/rotate4.c,
2974           src/regression/rotate5.c, src/regression/rotate6.c,
2975           src/regression/rotate7.c, src/regression/string1.c,
2976           src/regression/struct1.c, src/regression/sub.c,
2977           src/regression/sub2.c, src/regression/switch1.c,
2978           src/regression/while.c, src/regression/xor.c,
2979           src/regression/create_stc, src/regression/simulate,
2980           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
2981           regression tests
2982         * src/regression/gpsim_assert.h: added
2983
2984 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
2985
2986         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
2987         ((void (code *) (void)) 0) ();
2988         * as/hc08/aslex.c,
2989         * as/hc08/aslink.h,
2990         * as/hc08/asm.h,
2991         * as/hc08/asmain.c,
2992         * as/hc08/lkdata.c,
2993         * as/hc08/lklex.c,
2994         * as/hc08/lkmain.c,
2995         * as/mcs51/aslex.c,
2996         * as/mcs51/aslink.h,
2997         * as/mcs51/asm.h,
2998         * as/mcs51/asmain.c,
2999         * as/mcs51/lkdata.c,
3000         * as/mcs51/lklex.c,
3001         * as/mcs51/lkmain.c,
3002         * as/z80/aslex.c,
3003         * as/z80/asm.h,
3004         * as/z80/asmain.c: fixed build on current cygwin:
3005         replaced getline() by as_getline()
3006
3007 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3008
3009         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
3010         declarator in the symbol chain
3011         * src/SDCCsymt.h,
3012         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
3013         parameter list for function pointers
3014         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
3015         * support/regression/tests/bug-716242.c: added
3016
3017 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3018
3019         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
3020         offset if possible
3021         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
3022
3023 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3024
3025         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
3026         inifinitely recurseable, added static
3027         * support/regression/tests/bug-1408066.c: added
3028
3029 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
3030
3031         * src/SDCCicode.h,
3032         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
3033         renamed, added possibility to create "postLoopLbl"-labels
3034         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
3035         newiTempLoopHeaderLabel
3036         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
3037         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
3038         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
3039         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
3040         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
3041         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
3042         (basicInduction): fixed bug #136564, made static,
3043         (loopInduction): changed parameter of basicInduction, made static,
3044         (addPostLoopBlock): added
3045         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
3046         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
3047         findLoopEndSeq
3048         * support/regression/tests/bug-136564.c: added
3049         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
3050         --std-sdcc99 to LIBSDCCFLAGS
3051
3052 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
3053
3054         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
3055         while loop
3056         * support/regression/tests/bug-1406131.c: added
3057
3058 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
3059
3060         * src/SDCCast.c (decorateType): fix promotion of unary minus
3061         * src/SDCCsymt.c (computeType): beautified
3062         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
3063         (valUnaryPM, valComplement): fix sign and promotion,
3064         (valNot): ANSI: result type is int (SDCC: unsigned char)
3065         * support/regression/tests/uminus.c: speedup by removing superflous
3066         test case 'int'
3067         * support/regression/tests/onebyte.c: added promotion and signedness
3068         tests for unary minus
3069         * support/regressions/tests/bug-477927.c: disable warning about
3070         uninitialized variables
3071         * support/regression/tests/not.c: added
3072
3073 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3074
3075         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
3076         * src/mcs51/gen.c (gen51Code): show final register usage after
3077         fillGaps in asm with --i-code-in-asm
3078         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
3079         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
3080         incUsed, rliveClear, adjustIChain): made static,
3081         (setFromRange): excluded because it's unused,
3082         (findPrevUseSym, markWholeLoop): added,
3083         (findPrevUse): rewritten; fixes bug 895992; now a complete search
3084         through all branches of predecessors enables sdcc to emit the warning
3085         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
3086         (rlivePoint): made static, added parameter emitWarnings which is only
3087         true during the first run out of two,
3088         (findRecursiveSucc, findRecursivePred): removed,
3089         (computeLiveRanges): made static, added parameter emitWarnings,
3090         (dumpIcRlive): added for debugging only
3091         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
3092         removed prototype of setFromRange()
3093         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
3094         in call of computeLiveRanges()
3095         * support/regression/tests/bug-895992.c: added
3096         * support/regression/tests/bug-971834.c: added
3097         * support/valdiag/tests/bug-895992.c: added
3098         * support/valdiag/tests/bug-971834.c: added
3099
3100 2005-12-18 Raphael Neider <rneider AT web.de>
3101
3102         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
3103           (genUnpackBits): improved code for direct operands,
3104           (genPackBits): improved code for literal assignment to bitfields
3105             and for direct destination operands (no FSR indirection),
3106             prevented redundant AND, fixes #1362800,
3107           (AccLsh): added parameter to disable masking of the result
3108         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
3109           skip instructions with side-effects (like incfsz),
3110           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
3111         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
3112         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
3113           fixes #1375263
3114
3115 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
3116
3117         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
3118         volatile variables as spill location
3119
3120 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
3121
3122         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
3123         replacing literals
3124         * support/regression/tests/bug-1376320.c: added
3125
3126 2005-12-08 Raphael Neider <rneider AT web.de>
3127
3128         * src/pic/device.c: renamed is_shared to pic14_is_shared
3129         * src/pic/gen.c (genIfx): re-enabled handling of sbits
3130         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
3131           (is_valid_identifier): added for above workaround
3132
3133 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
3134
3135         * device/lib/Makefile.in: fixed to enable port-specific-objects
3136         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
3137           char, thanks Hubert Sack
3138         * doc/sdccman.lyx: documented --xstack-loc,
3139           elaborated a bit more on interrupts and pitfalls,
3140           removed "setjmp/longjmp unsupported",
3141           documented some unsupported C99 features
3142         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
3143         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
3144           if, thanks Hubert Sack
3145         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
3146         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
3147           make make_library
3148         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
3149           regression tests can report resource usage (rfe 700441)
3150         * support/regression/collate-results.py: report resource usage
3151         * support/regression/ports/ds390/spec.mk,
3152         * support/regression/ports/hc08/spec.mk,
3153         * support/regression/ports/mcs51/spec.mk,
3154         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
3155         * support/regression/ports/ds390/uCsim.cmd,
3156         * support/regression/ports/hc08/uCsim.cmd,
3157         * support/regression/ports/mcs51/uCsim.cmd,
3158         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
3159         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
3160           library, use the default one
3161         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
3162           building the library
3163
3164 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3165
3166         * config.dsp: added dependency on .version and configure_vc.awk
3167         * device/include/setjmp.h: updated for --stack-auto and --xstack
3168         * device/include/mcs51/at89c51snd1c.h: corrected line endings
3169         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
3170         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
3171         * device/lib/libsdcc.lib: added _setjmp
3172         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
3173           (decorateType): fixed bug 1372851,
3174           (optimizeGetHbit): fixed warning
3175         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
3176           array initialisation
3177         * support/regression/tests/bug1057979.c: added test for bug 1358192
3178         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
3179
3180 2005-12-03 Borut Razem <borut.razem AT siol.net>
3181
3182         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
3183           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
3184
3185 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3186
3187         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
3188         createIval): implement symbol independant "flexible array member",
3189         (createIvalCharPtr): implemented flexible array initialisation with a
3190         string
3191         * src/SDCCsymt.c (copyStruct): removed,
3192         (getSize): fixed misleading comment,
3193         (getAllocSize): removed, the additional allocation size is now in
3194         sym->flexArrayLength,
3195         (checkStructFlexArray): new, syntax checks for flexible array members,
3196         (compStructSize): added syntax checks for "flexible array members"
3197         (copyStruct): removed,
3198         (copyLinkChain): removed inefficient fix for bug 770487
3199         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
3200         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
3201         symbol->flexArrayLength
3202         * src/SDCCerr.c,
3203         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
3204         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
3205         * support/regression/tests/structflexarray.c: added
3206         * support/valdiag/tests/structflexiblearray.c: added
3207
3208 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3209
3210         * src/SDCCast.c (decorateType): fixed bug 1368489
3211         * support/Util/SDCCerr.c,
3212         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
3213
3214 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3215
3216         * device/include/mcs51/at89c51snd1c.h: added file submitted by
3217           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
3218
3219 2005-11-27 Borut Razem <borut.razem AT siol.net>
3220
3221         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
3222           support/cpp2/mkdeps.h: added command line option
3223           -obj-ext=<extension> to SDCPP to define object file externion, used
3224           for generation of make dependencies (-M)
3225         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
3226
3227 2005-11-26 Borut Razem <borut.razem AT siol.net>
3228
3229         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
3230           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
3231           added pic and pic16 libraries
3232
3233 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3234
3235         * device/include/float.h: Corrected typo in prototype of __fsgt
3236
3237 2005-11-25 Borut Razem <borut.razem AT siol.net>
3238
3239         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
3240           added creation of model-mcs51-stack-auto libraries
3241
3242 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
3243
3244         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
3245         and fields-list too
3246         * src/SDCCast.c (createIvalArray): removed obsolete comment
3247
3248 2005-11-24 Borut Razem <borut.razem AT siol.net>
3249
3250         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
3251           added missing device/lib/mcs51/crt*.asm sources
3252
3253 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
3254
3255         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
3256
3257 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
3258
3259         * device/lib/_fs2schar.c,
3260         * device/lib/_fs2sint.c,
3261         * device/lib/_fs2slong.c: optimized inline asm
3262
3263 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3264
3265         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3266           Better handling of floats between -1.0 and 0.0.
3267
3268 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3269
3270         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
3271           (the missing "if"s prohibited removal of redundant labels)
3272
3273 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3274
3275         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3276           Properly convert floats between -1.0 and 0.0 to long, int, and char
3277           types (max integer value of negative floats tends to zero).
3278         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3279           Removed changes made so to work properly with floats between
3280           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
3281           and _fs2char.c
3282
3283 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3284
3285         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
3286         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
3287         (genCast) cosmetic change
3288         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
3289         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
3290         from mcs51
3291         * support/regression/tests/bitfields (testSignedBitfields): added
3292
3293 2005-11-18 Borut Razem <borut.razem AT siol.net>
3294
3295         * sdcc/device/lib/Makefile.in: remove all unnecessary files
3296         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
3297           introduced SILENT option to make building of pic16 libraries less
3298
3299 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3300
3301         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3302           Now they work properly with floats between -1.0 and 0.0
3303         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
3304
3305 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3306
3307         * src/SDCCicode.c (printOperand): added missing else
3308
3309 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3310
3311         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
3312         reformatted for better readability
3313         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
3314         signed bitfields
3315
3316 2005-11-17 Borut Razem <borut.razem AT siol.net>
3317
3318         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
3319           introduced SILENT option to make building of pic16 libraries less
3320           verbose - used for nightly snapshot build
3321         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
3322           available on Win32 platforms.
3323         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
3324           medium, large, pic and pic16
3325
3326 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3327
3328         * device/lib/printf_large.c: Temporary patch for bug 1358192:
3329           printf("%f"...) sets fraction to zero.
3330
3331 2005-11-16 Raphael Neider <rneider AT web.de>
3332
3333         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
3334           fixes #1357221
3335         * src/pic/gen.c (genIfx): implemented for CARRY bit
3336         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
3337           to generic pointers, fixes #1357332,
3338           (pic16_movLit2f): NEW,
3339           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
3340
3341 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3342
3343         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
3344
3345 2005-11-11 Raphael Neider <rneider AT web.de>
3346
3347         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
3348         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
3349           compute pointer's type from operand,
3350           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
3351           improved single bit reads, fixes bug #1353379
3352
3353 2005-11-09 Borut Razem <borut.razem AT siol.net>
3354
3355         * support/scripts/sdcc.nsi: added lib/pic to the package
3356
3357 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
3358
3359         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
3360
3361 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3362
3363         * support/regression/tests/bug1348008.c: added
3364         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
3365         * support/regression/tests/bug1337835.c: updated comment
3366
3367 2005-11-06 Borut Razem <borut.razem AT siol.net>
3368
3369         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3370           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3371           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3372           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3373           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
3374           dynamic construction of cl_error_class and derivates - 2.nd try
3375
3376 2005-11-05 Borut Razem <borut.razem AT siol.net>
3377
3378         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
3379           bug, which caused Bus Errors on sparc solaris
3380
3381 2005-11-04 Borut Razem <borut.razem AT siol.net>
3382
3383         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3384           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3385           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3386           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3387           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
3388           and derivates to resolve the initialization problem on OSX
3389
3390 2005-11-02 Borut Razem <borut.razem AT siol.net>
3391
3392         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3393           corrected typo - #include <winsock2.h>
3394
3395 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
3396
3397         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
3398           (_asxxxx_mapping): added org directive for future enhancements
3399
3400 2005-11-01 Borut Razem <borut.razem AT siol.net>
3401
3402         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3403           enabled sockets on WIN32
3404         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
3405
3406 2005-10-31 Borut Razem <borut.razem AT siol.net>
3407
3408         * support/regression/generate-cases.py: escape backslashes in {testcase}:
3409           WIN32 backslash path delimiters should be escaped when used in C strings
3410         * support/regression/tests/bitfields.c: exclude failing assertions for
3411           __CYGWIN32__ and __MINGW32__ hosts
3412
3413 2005-10-30 Borut Razem <borut.razem AT siol.net>
3414
3415         * src/SDCCutil.c: corrected double comparison typo
3416
3417 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
3418
3419         * device/lib/medium/Makefile: added for new memory model medium
3420         * device/include/asm/mcs51/features.h: updated for medium/pdata
3421         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
3422           added Multiply & Accumulate sbit's and MAC0_PAGE define
3423         * device/include/mcs51/c8051f300.h: added sfr16 definitions
3424         * device/include/mcs51/c8051f310.h: added sfr16 definitions
3425         * device/lib/_mullong.c: update for medium model
3426         * device/lib/incl.mk: added medium model
3427         * doc/sdccman.lyx: documented medium model
3428         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
3429         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
3430         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
3431         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
3432           (allocParms): set SCLS and OCLS to pdata for medium model
3433         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
3434           for pdata,
3435           (powof2): return <0 if not power of 2
3436         * src/avr/gen.c (genBitWise): use updated powof2
3437         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
3438           (shiftR2Left2Result): small optimization in setup, save acc when storing,
3439           (shiftLLeftOrResult): use B if necessary
3440         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
3441         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
3442         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
3443         * support/regression/Makefile.in: added test-mcs51-medium
3444         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
3445
3446 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3447
3448         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
3449         specifier unsigned
3450         * device/lib/time.c (mktime): fixed bug 1334315
3451
3452 2005-10-28 Raphael Neider <rneider AT web.de>
3453
3454         * device/include/pic/p16f_common.inc: added common declarations
3455         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
3456
3457 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3458
3459         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
3460           (aopPutUsesAcc): added to predict accumulator use,
3461           (assignResultValue): save acc if necessary,
3462           (genMinusDec): store result if indirectly addressed,
3463           (genDivOneByte):  save acc if necessary,
3464           (movLeft2Result): bugfix if left already in acc,
3465           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
3466             attention to accumulator use (esp. pdata),
3467           (genReceive): receive pdata correctly
3468         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
3469         * src/SDCCicode.h: added isOperandInPagedSpace prototype
3470
3471 2005-10-27 Raphael Neider <rneider AT web.de>
3472
3473         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
3474
3475 2005-10-27 Raphael Neider <rneider AT web.de>
3476
3477         * .version: changed version to 2.5.4
3478         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
3479         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
3480           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
3481             arithmetics support routines
3482         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
3483         * device/lib/Makefile.in: also create installdir for pic
3484
3485         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
3486           pic14 port as well
3487         * src/pic/device.c (dump_sfr): rewritten to delegate register
3488           placement to the linker (use `extern sym' rather than sym EQU addr),
3489           (validAddress): fixed to check last specified address
3490         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
3491           (popGetLit): truncate literal value to 8 bit,
3492           (popGet): moved assert to more appropriate place
3493           (popGetExternal): create pCode operand from and mark the according
3494             symbol as being `extern'
3495           (popGetAddr): added sanity check on immediate's offset, provide
3496             GPOINTER tag on demand
3497           (aopPut): fixed for immediates,
3498           (mov2w_op): move operand's address or contents to WREG (depending on
3499             operand type), safer variant of mov2w,
3500           (movwf,call_libraryfunc): NEW, handy abbreviations,
3501           (get_argument_pcop,get_return_val_pcop,pass_argument,
3502           get_returnvalue): interface for accessing function parameters and
3503             return values,
3504           (assignResultValuei,genRet): use new parameter/return value interface
3505           (pic14_getDataSize): back to old version handling generic pointers,
3506           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
3507             provided implementation and/or fixed old one,
3508           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
3509             calls, removed legacy 8051 reference code
3510           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
3511           (loadSignToC): NEW, move the operands sign bit to CARRY,
3512           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
3513             genRightShiftSigned, accepts negative shift counts,
3514           (setup_fsr): load FSR and adjust IRP (indirect memory access),
3515           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
3516             generic pointers, __data pointers and __code pointers,
3517           (genUnpackBits,genPackBits): rewritten to work with generic pointers
3518             and signed bitfields, limit bitfields to 8 bit,
3519           (genDataPointerGet): fixed number of bytes read,
3520           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
3521           (genPointerGet,genPointerSet): fixed handling of __code pointers,
3522             pointers to constant data are no longer assumed to point to __code
3523             space, removed invalid pointer types,
3524           (bitpatternFromVal): retrieve the PICs representation of an integer
3525             or float literal,
3526           (genDataPointerSet): fixed assigning to po_immediate operands,
3527           (genGenPointerSet): implemented as library call,
3528           (genIfx): fixed incorrect condition,
3529           (genAddrOf): limit generic pointers' addresses to 2 bytes,
3530             provide GPOINTER tag according to destination's storage class,
3531           (genCast): added code to handle casting to generic pointers, added
3532             sign-/zero extension of the result
3533           (aop_isLitLike,op_isLitLike): fixed handling of immediates
3534         * src/pic/gen.h: added macros to access IRP bit in STATUS register
3535         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
3536           extend the result
3537         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
3538           address/register resides in the shared banks
3539           (emitSymbolToFile): improved to handle global and `pinned' symbols,
3540             put all variables into separate sections (have the linker arrange
3541             them)
3542           (picglue): put init code and interrupt handlers in separate sections
3543         * src/pic/main.c: added port specific options table, modified to PORT
3544           structure to make GPOINTERs 3 byte, added pic14_options
3545           (_pic14_do_link): private linking routine (update paths to libraries,
3546             add libsdcc.lib by default)
3547         * src/pic/main.h: declare pic14_options
3548         * src/pic/pcode.c: fixed instructions i/o relations,
3549           (RegCond): reverted to correct version,
3550           (newpCodeOpLit): truncate literals to 8 bit,
3551           (genericPrint): added debug output,
3552           (getRegFromInstruction): fixed for various operand types, simplified
3553           (BuildFlow): fixed broken handling of isntructions with labels
3554           (LinkFlow): start at last instruction in flow (skip trailing comments),
3555             pass the flow on to the next instruction after CALL
3556           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
3557           (insertPCodeInstruction): fixed inserting after a skip instruction,
3558           (DoBankSelect): fixed for labeled instructions
3559           (OptimizepBlock): honor --nopeep switch
3560           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
3561         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
3562         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
3563           (pCodeOptime2pCodes): allow disabling this optimization via
3564             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
3565             but is still buggy), started implementation of a dataflow based
3566             pCode optimization (CSE + dead code elimination)
3567           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
3568         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
3569           names are independant of the stack location and therefore portable across
3570           devices
3571
3572 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3573
3574         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
3575           (selectSpil): fixed bug 1337835 by not spilling bit variables
3576         * support/regression/tests/bug1337835.c: added test for this bug
3577         * src/mcs51/peeph.def: restart after rule 3.c,
3578           addded rules 263.x to optimize loading constants
3579
3580 2005-10-26 Raphael Neider <rneider AT web.de>
3581
3582         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
3583         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
3584           (genAssign): emit warning when casting literals to generic pointer
3585             type, also applies when taking the address of a fixed variable,
3586           (genCast): improved casting to generic pointers
3587         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
3588           extern variables, added verbose error message
3589         * device/include/pic16/{string.h,errno.h}: added #pragma library c
3590
3591 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
3592
3593         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
3594         carry must be complemented too
3595         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
3596         could be emitted by genMinus
3597         * src/SDCCval.c (constVal): fixed bug 1305065
3598
3599 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
3600
3601         * src/SDCCast.c (addCast): added promotion for bit variables
3602         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
3603         promotion casts + optimisation
3604         (optimizeGetWord): fix warning 'i' might be used uninitialized
3605         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
3606         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
3607
3608 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
3609
3610         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
3611         all chars are promoted to int; promotion should be handled in SDCCast.c
3612
3613 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3614
3615         * device/lib/_strcmp.c: Fixed bug 1326457
3616
3617 2005-10-11 Raphael Neider <rneider AT web.de>
3618
3619         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
3620         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
3621
3622 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3623
3624         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
3625         * support/regression/tests/sfr16.c: added test for the sfr32 bug
3626
3627 2005-10-04 Raphael Neider <rneider AT web.de>
3628
3629         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
3630           device/lib/pic16/pics.all: added pic18f1320
3631         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
3632
3633 2005-09-30 Raphael Neider <rneider AT web.de>
3634
3635         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
3636         * src/pic16/devices.inc: NEW, provides device descriptions
3637         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
3638
3639 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3640
3641         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
3642           GETHBIT
3643
3644 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
3645
3646         * doc/sdccman.lyx: updated Highest Order Bit documentation,
3647           documented Any Order Bit, Higher Order Byte and Higher Order Word
3648         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
3649         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
3650           (optimizeGetAbit): new, to get any bit, not only the high bit,
3651           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
3652           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
3653           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
3654           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
3655             RIGHT_OP: also try GETBYTE, GETWORD optimization,
3656             GETABIT, GETBYTE, GETWORD: decorate them,
3657           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
3658           (ast_print): added GETABIT, GETBYTE, GETWORD
3659         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
3660         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
3661           (geniCodeBinary): new generic binary icode,
3662           (ast2iCode): added GETABIT, GETBYTE, GETWORD
3663         * src/port.h: updated comment for PORT.hasExtBitOp
3664         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
3665           (genGetByte): new, to get a single byte,
3666           (genGetWord): new, to get a word from a long,
3667           (gen51Code): added GETABIT, GETBYTE, GETWORD
3668         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
3669
3670 2005-09-23 Raphael Neider <rneider AT web.de>
3671
3672         * configure.in, configure: have device/lib/pic configured
3673         * device/lib/Makefile.in: added model-pic14
3674         * device/lib/clean.mk: added pic/ to clean rule
3675         * device/lib/pic: added rudimentary pic14 library providing support
3676           functions for multiplication/division/generic pointer access
3677         * src/SDCCopt.c (convilong): mark support functions as extern
3678           for pic14 port as well
3679         * src/pic/gen.c (genMult): added assertions,
3680           (genpic14Code): emit warning on unhandled iCodes
3681         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
3682         * src/pic/pcode.c (pCodeOpCopy),
3683         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
3684           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
3685           SFR_REGISTER}), made safe for future extensions
3686         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
3687           instructions even if preceeded by SKIP instructions (also remove
3688           them); removed unused code
3689         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
3690           prevents leaving parts of the structure uninitialized after copying
3691
3692 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
3695           ago by me
3696         * support/regression/tests/addsub.c: added test for the bug
3697
3698 2005-09-21 Raphael Neider <rneider AT web.de>
3699
3700         * device/include/pic16/pic18f1220.h,
3701           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
3702         * device/lib/pic16/Makefile.rules: added missing opening paren
3703         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
3704           are provided in genutils.c,
3705           (genUminusFloat,genUminus,genCmpEq): added asserts on different
3706           operand/result sizes,
3707           (genCmp): assert on NULL pointers first, then check deref'ed values
3708         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
3709           result size
3710
3711 2005-09-18 Raphael Neider <rneider AT web.de>
3712
3713         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
3714           as these are now unused,
3715           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
3716         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
3717           local, avoids uninitialized pointer dereference on r->name
3718         * src/pic16/ralloc.c (newReg): fixed indentation
3719
3720 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
3721
3722         * src/SDCCval.c (constVal): fixed bug 730366
3723         * support/Util/SDCCerr.c,
3724         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
3725
3726 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3727
3728         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
3729
3730 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
3731
3732         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
3733
3734 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3735
3736         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
3737           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3738         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
3739           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3740         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
3741         * packihx/packihx.c (hexDigit): made c unsigned char
3742         * as/mcs51/lklibr.c (fndsym),
3743         * link/z80/lkgb.c (gb),
3744         * link/z80/lklibr.c (fndsym),
3745         * link/z80/lkrloc.c (relr),
3746         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
3747         * src/SDCC.lex (checkCurrFile, process_pragma),
3748         * src/SDCCglue.c (spacesToUnderscores),
3749         * src/SDCCmain.c (setParseWithComma, processFile),
3750         * src/asm.c (tvsprintf, printCLine),
3751         * src/avr/gen.c (emitcode, aopPut),
3752         * src/ds390/gen.c (emitcode),
3753         * src/hc08/gen.c (emitcode, emitinline),
3754         * src/mcs51/gen.c (emitcode, genInline),
3755         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3756           tokenizeLineNode),
3757         * src/pic/ralloc.c (debugLog),
3758         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3759           tokenizeLineNode),
3760         * src/pic16/ralloc.c (debugLog),
3761         * src/z80/main.c (_process_pragma):
3762            made all ctype.h function calls safe
3763         * src/SDCCopt.c: include math.h for fabs
3764         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
3765           and used them throughout the code to make ctype.h function calls safe
3766         * src/ds390/main.c (asmLineNodeFromLineNode),
3767         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
3768         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
3769            unsigned char*
3770         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
3771           (newpCodeAsmDir): made ctype.h function calls safe
3772         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
3773           pic16_emitcode):  made lbp unsigned char*
3774         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
3775           (pic16_newpCodeAsmDir): made ctype.h function calls safe
3776         * src/xa51/gen.c (emitcode),
3777         * src/z80/gen.c (_emit2): made lbp unsigned char*
3778         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
3779            char*
3780
3781 2005-09-05 Raphael Neider <rneider AT web.de>
3782
3783         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
3784           access bank splitpoint
3785
3786 2005-09-05 Raphael Neider <rneider AT web.de>
3787
3788         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
3789
3790 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
3791
3792         * .version: changed to version 2.5.3
3793         * doc/sdccman.lyx: changed version to 2.5.3,
3794           documented --codeseg and --constseg and pragma codeseg and constseg,
3795           documented bit parameters (reentrant) and bit returning
3796         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
3797            currFunc->recvSize, but is this ok for all ports?
3798           (ast2iCode): result of ~ on unsigned char must be cast to int for
3799            bool to work
3800         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
3801           function pointers in bit space
3802         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
3803           (processFuncArgs): call port.reg_parm() with reentrancy info
3804         * src/port.h,
3805         * src/avr/main.c,
3806         * src/ds390/main.c,
3807         * src/hc08/main.c,
3808         * src/pic/main.c,
3809         * src/pic16/main.c,
3810         * src/xa51/main.c,
3811         * src/z80/main.c: port.reg_parm prototype extended with
3812           "bool reentrant" parameter
3813         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
3814           options.stackAuto for allocating bit register parameters
3815         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
3816           (genSend): set BitBankUsed if it is,
3817           (selectRegBank): factored out of genCall for use in genPcall,
3818           (genCall): removed redundant dtype assignmen, use selectRegBank,
3819           (genPcall): handle returning in Carry properly, save in F0 if needed,
3820           (genReceive): handle bit register parameters
3821         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
3822           (mcs51_assignRegisters): enable bit registers for all reentrant
3823            functions and don't set BitBankUsed unconditionally
3824         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
3825         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
3826         * support/regression/tests/funptrs.c: added tests for BOOL and for return
3827
3828 2005-08-27 Borut Razem <borut.razem AT siol.net>
3829
3830         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
3831         ppc-osx (Darwin) does not support -u option. It seems that it is
3832         supported only on Linux - GNU cp
3833
3834 2005-08-25 Borut Razem <borut.razem AT siol.net>
3835
3836         * sim/ucsim/gui.src/serio.src/Makefile.in,
3837           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3838           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3839           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
3840           install and strip, since the strip at /usr/ccs/bin should be used
3841           on solaris
3842
3843 2005-08-24 Borut Razem <borut.razem AT siol.net>
3844
3845         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
3846
3847 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
3848
3849         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
3850         ffffffffu
3851
3852 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
3853
3854         * as/mcs51/aslink.h: completed lkrloc.c prototypes
3855         * as/mcs51/lkmain.c (link_main): fixed warning
3856         * device/include/stdbool.h: ds390 has no advanced bit support yet
3857         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
3858         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
3859         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
3860           and updated their macros
3861         * src/SDCCval.c (constVal): updated comment for renamed b_long
3862
3863 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
3864
3865         * as/mcs51/asdata.c: changed ctype['['] to BINOP
3866         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
3867           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
3868           (oprio): set priority for '['
3869         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
3870            and adb_24_bit
3871         * as/mcs51/asm.h: added defines R_BIT and S_BIT
3872         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
3873         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
3874         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
3875           added overlayable BIT_BANK area
3876         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
3877           (summary2): explain 'T' in legenda
3878         * as/mcs51/lkrloc.c: replaced old K&R style,
3879           (relr): added R_BIT processing,
3880           (errmsg): added "Bit-addressable relocation error",
3881           (adb_bit): added for converting from byte- to bit-addressable space,
3882           (adb_24_bit): added for converting from byte- to bit-addressable space
3883         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
3884            used in reentrant functions now even as return value
3885         * device/lib/_gptrput.c (_gptrput): removed obsolete code
3886         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
3887           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
3888         * src/SDCCglobl.h: added indicator BitBankUsed
3889         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
3890            the bit registers b0-b7
3891         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
3892           (geniCodeCast): fixed bug 1263853,
3893           (geniCodeLogicAndOr): put result in bool or char,
3894           (geniCodeReceive): added parameter func for accessing the return type,
3895           (geniCodeFunctionBody): pass func to geniCodeReceive
3896         * src/SDCCmain.c: added indicator BitBankUsed
3897         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
3898         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
3899           (checkSClass): don't put automatic bool/bit on stack,
3900           (checkFunction): removed check on function cannot return bit
3901         * src/SDCCsymt.h: added newBoolLink prototype
3902         * src/mcs51/gen.c (rb1regs): added bit registers,
3903           (movc): created for assigning to carry,
3904           (pushReg, popReg): created for pushing registers,
3905           (sameRegs): check both AOP_REG and AOP_CRY types,
3906           (aopOp): handle bit registers,
3907           (aopPut): optimization no self-assign,
3908           (saveRegisters): push reg->base (bits) only once for bit registers,
3909            and use pushReg,
3910           (unsaveRegisters): pop reg->base only once and use popReg,
3911           (assignResultValue): added parameter func and return in carry for bits,
3912           (genIpush): optimization no reload in A if not changed,
3913           (genSend): bit parameters in reentrant functions are passed in bit
3914            registers by first assigning to bits in B, then save registers and
3915            copy B to bits,
3916           (genCall): handle returning in Carry properly, save it in F0 if needed,
3917           (genPcall): updated assignResultValue call, this is not safe yet for bit
3918            returning function !!!
3919           (genFunction): don't generate equ's for bit registers and use pushReg,
3920           (genEndFunction): take care of bit returning functions and use popReg,
3921           (genRet): return bit in Carry,
3922           (genIfx): optimize bit registers and other directly addressable bits,
3923           (genReceive): updated assignResultValue call
3924         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
3925           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
3926            registers when using stack-auto
3927         * src/mcs51/ralloc.c (_G): added allBitregs,
3928           (regs8051): added the bit registers,
3929           (createStackSpil): use macro IS_BIT,
3930           (getRegBit): added to allocate a bit register, else spill,
3931           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
3932           (updateRegUsage): factored out to ease stepping while debugging,
3933           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
3934            also allocate bit registers,
3935           (fillGaps): handle bit registers,
3936           (findAllBitregs): added to create bit vector with all bit registers,
3937           (mcs51_allBitregs): returns this bit vector,
3938           (mcs51_assignRegisters): when using stack-auto use bit registers for
3939            passing parameters and creating local variables
3940         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
3941
3942 2005-08-22 Borut Razem <borut.razem AT siol.net>
3943
3944         * device/lib/Makefile.in: replaced find option -or with -o
3945           to make it run on solaris
3946
3947 2005-08-22 Raphael Neider <rneider AT web.de>
3948
3949         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
3950           fixes #1265442 (crash on Solaris)
3951
3952 2005-08-20 Borut Razem <borut.razem AT siol.net>
3953
3954         * configure, configure.in: added tests for libsocket and libnsl libraries,
3955           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
3956           from support/regression/Makefile.in
3957         * support/regression/Makefile.in: added
3958         * device/lib/pic16/Makefile.common.in: force make to use bash shell
3959         * sim/ucsim/libtool: regenerated on sparc-solaris
3960         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3961           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
3962           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
3963           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
3964           sparc-solaris, which doesn't use GNU ld linker
3965         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
3966         * as/Makefile: find on sparc-solaris does not support -maxdepth option
3967
3968 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
3969
3970         * src/mcs51/peeph.def: updated comments
3971
3972 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3973
3974         * device/lib/_gptrget.c,
3975         * device/lib/_gptrput.c: slightly shorter
3976         * doc/sdccman.lyx: incremented version
3977         * src/mcs51/peeph.def: moved peephole comments to the line of first
3978           change to better keep line correlation, reanimated 186.e
3979         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
3980
3981 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3982
3983         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
3984           David Saxton with quotes around file name.
3985
3986 2005-08-15 Borut Razem <borut.razem AT siol.net>
3987
3988         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
3989           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
3990           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
3991           make tests run on x86_64 platform
3992
3993 2005-08-13 Raphael Neider <rneider AT web.de>
3994
3995         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
3996           as it might be executed DURING a build (parallel make is wonderful)
3997
3998 2005-08-13 Raphael Neider <rneider AT web.de>
3999
4000         * device/lib/Makefile.in (port-specific-objects-pic16):
4001           revert to cp $(PORT)/bin/*.* $(PORTDIR)
4002         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
4003           dependency
4004         * device/lib/pic16/Makefile.rules: build subdirs before creating
4005           the library, removed builddir rule, create $(builddir) early in
4006           recurse rule, use empty recurse rule for leaf directories
4007         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
4008           mkdir errors (race condition), removed duplicate suffix "hex"
4009           from clean rules
4010         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
4011         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
4012           prevents mkdir -p from aborting on Alpha
4013
4014 2005-08-12 Raphael Neider <rneider AT web.de>
4015
4016         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
4017           db-statements in order to allow for arrays of pointers in code
4018           sections to be placed without interspersed 0-padding, fixes
4019           bug #1256215
4020         * (emitStatistics): fixed division by zero for pic18f1220
4021         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
4022           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
4023         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
4024         * (pic16_pCodeConstString): keep track of already emitted string
4025           literals to prevent "duplicate definitions of symbol _str_NR"
4026         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
4027           debug message
4028         * device/lib/Makefile.in: ignore failing PIC16 library builds
4029         * device/lib/pic16/Makefile: do not build if gputils are missing
4030         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
4031
4032 2005-08-10 Raphael Neider <rneider AT web.de>
4033
4034         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
4035           my last commit)
4036
4037 2005-08-10 Raphael Neider <rneider AT web.de>
4038
4039         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
4040           Rokas' patch to add the new fixed point type "__fixed16x16"
4041         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
4042           functions for __fixed16x16 arithmetics
4043         * device/lib/pic16: reimplemented the build system to support
4044           a separate build directory, better handling of libio (create
4045           the library in a separate subdir for each architecture) and
4046           easier configuration (centralized in Makefile.common)
4047
4048 2005-08-07 Raphael Neider <rneider AT web.de>
4049
4050         * src/pic16/gen.c (genrshTwo): fixed sign extension
4051         * src/pic16/device.c: added pic18f2320, 4220 and 4320
4052         * device/include/pic16/pic18f2220.h: changed some bit definitions,
4053           added T0CONbits
4054         * device/include/pic16/pic18f4220.h: NEW, header for
4055           pic18f4220 and pic18f4320
4056         * device/include/pic16/pic18fregs.h: added new devices,
4057           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
4058         * device/include/pic16/signal.h: resolved name clashes
4059           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
4060           to also allow testing for interrupt enable bits, added
4061           comments on how to use the macros
4062         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
4063         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
4064           register definitions for the devices
4065         * device/lib/pic16/pics.all: added new devices
4066         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
4067           allocated memory
4068         * device/lib/pic16/libc/stdlib/memfree: do not count
4069           the block header as free memory
4070         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
4071           simplified and added missing end-of-blocklist-marker
4072           (reported by Peter Onion, fixes #1252814)
4073         * (_mergeHeapBlock): fixed loop condition
4074         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
4075           len==0, restructured code
4076         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
4077           up a bit, reduced bitfield accesses, prevent endless loops
4078           in case of heap corruption
4079         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
4080           "unreferenced arguments/must return a value" warnings
4081         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
4082           replaced BAUDREG with SPBRG
4083         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
4084           device/lib/pic16/debug/gstack/gstack.c: replaced
4085           _naked, _asm, _endasm with __naked, __asm, __endasm
4086
4087 2005-08-05 Raphael Neider <rneider AT web.de>
4088
4089         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4090           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
4091
4092 2005-08-05 Borut Razem <borut.razem AT siol.net>
4093
4094         * device/lib/Makefile.in: added missing ';'
4095         * configure: removed ^M characters
4096
4097 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4098
4099         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
4100           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
4101           License
4102
4103 2005-08-04 Borut Razem <borut.razem AT siol.net>
4104
4105         * configure.in: pic16 libraries build 2nd try - enable running
4106           configure in device/lib/pic16
4107         * configure: regenerated from configure.in
4108         * device/lib/Makefile.in: create $(PORT)/bin directory
4109
4110 2005-08-03 Raphael Neider <rneider AT web.de>
4111
4112         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
4113           to get/set values via pointers
4114         * (genUnpackBits,genPackBits): changed detection of
4115           ptr->bitfield vs. sym.bitfield, fixed access via generic
4116           pointers, removed dead (wrong) code for multibyte bitfields
4117         * (genNearPointerGet, genGenPointerGet): removed useless code,
4118           fixed bitfield detection, fixes #1250594
4119         * (genNearPointerSet): removed useless code
4120         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
4121           and introduced macro pic16_emitpcode that conditionally emits
4122           the origin of the following pCode (useful for debugging SDCC)
4123         * src/pic16/pcode.c: changed (and disabled) some debug outputs
4124         * (createDefmap): fixed handling of LFSR for --optimize-df
4125
4126 2005-08-02 Borut Razem <borut.razem AT siol.net>
4127
4128         * device/lib/Makefile.in: pic16 libraries build enabled since
4129           gputils-0.13.2 are now localy installed at sourceforge's compile farm
4130
4131 2005-08-02 Raphael Neider <rneider AT web.de>
4132
4133         * src/pic16/gen.c (genPackBits): removed deprecated warning
4134         * (genGenPointerSet): fixed bitfield detection
4135
4136 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4137
4138         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
4139
4140 2005-07-31 Raphael Neider <rneider AT web.de>
4141
4142         * device/lib/pic16/libdev/pic18f458.c,
4143           device/include/pic16/pic18f458.h: added missing T0CONbits
4144
4145 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4146
4147         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
4148
4149 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
4150
4151         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
4152
4153 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4154
4155         * device/include/mcs51/at89c51ed2.h: added.
4156
4157 2005-07-23 Raphael Neider <rneider AT web.de>
4158
4159         * src/pic/gen.h: added emitpcode macro for debugging
4160         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
4161           and replace by macro adding debug information on demand
4162         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
4163         * (gencjne): tried to fix; replaced with correct (slower) code
4164         * (gen{Unp,P}ackBits): fixed single bit access
4165         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
4166         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
4167           previous instruction
4168         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
4169           register has to be handled with care (forbidding movement
4170           of assignments/uses, removing assignments completely, ...)
4171         * (pCodeOptime2pCodes): make use of regIsSpecial
4172         * added lots of debugging output (commented out)
4173         * src/pic/rallloc.c (deassignLRs): prevent operand registers
4174           from being reused as result UNLESS it is known to work
4175
4176 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4177
4178         * support/Util/dbuf.h: include <stddef.h> for size_t
4179         * .version: changed to version 2.5.2
4180
4181 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4182
4183         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
4184
4185 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4186
4187         * src/hc08/gen.c (genMinus): fixed bug #1241835,
4188           (genModOneByte): removed needless psha/pula
4189
4190 2005-07-22 Raphael Neider <rneider AT web.de>
4191
4192         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
4193           have PIC14 handled like PIC16, fixes broken pic14 linker calls
4194         * src/pic/gen.c (resolveIfx): do not "invent" labels
4195         * (genSkipc): changed to positive logic
4196         * (genSkipCond): removed as no longer needed
4197         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
4198           backport from PIC16
4199         * (genLeftShift): check operands are in different registers
4200         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
4201           INCF does not update CARRY...
4202         * src/pic/main.c: fixed _linkCmd
4203         * src/pic/pcode.c (unlinkpCode): added inactive code
4204         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
4205           alive (do not assign result and operand overlapping registers)
4206
4207 2005-07-22 Raphael Neider <rneider AT web.de>
4208
4209         * src/pic/device.c (dump_sfr): replaced register declaration with
4210           call to emitSymbolToFile() to avoid duplicate symbols
4211         * (assignRelocatableRegisters): do not declare external symbols
4212         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
4213           right (take size of type, not etype)
4214         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
4215         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
4216         * (packRegsForAccUse): disabled assignment of WREG as
4217           the result reg to prevent occurence of just fixed #1235003,
4218           fixes #1242954
4219         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
4220           symbols (avoids duplicate symbols in .asm file)
4221         * (pic14emitRegularMap): use emitSymbolToFile()
4222         * src/pic/gen.c (aopOp): fixed spillLocation handling
4223         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
4224         * (genDataPointerSet): removed unneccessary variables/output
4225
4226 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
4227
4228         * as/mcs51/lkarea.c: enlarged codemap for banked memory
4229         * device/lib/mcs51/crtbank.asm: added # to 0x0F
4230
4231 2005-07-21 Raphael Neider <rneider AT web.de>
4232
4233         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
4234           architecture cannot handle them efficiently, fixes bug #1235003
4235         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
4236           check for empty sets before using them (fixes bug #1232190)
4237
4238 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
4239
4240         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
4241           (lnksect2): generate warnings for memory overlap
4242         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
4243           constseg to set the name of these segments so you can instruct the linker
4244           to place them in banks
4245         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
4246         * src/SDCCglobl.h: added MODEL_HUGE to enum,
4247           added code_seg and const_seg to options
4248         * src/SDCCglue.c (emitMaps): use options.const_seg,
4249           (createInterruptVect): put interrupt vectors in segment HOME,
4250           (glue): put HOME before static segment and put the main glue in HOME,
4251           (glue): use options.code_seg
4252         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
4253         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
4254           these segments so you can instruct the linker to place them in banks
4255           (linkEdit): use code_loc for HOME segment which should be the first
4256           segment in code memory now
4257         * src/SDCCmem.c: fixed more stuff like bug 1238386
4258         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
4259           (changePointer): don't change function pointers to code pointers for
4260           banked functions,
4261           (compareType): added exceptional check for banked function pointers
4262         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
4263         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
4264           after static in code memory
4265         * src/mcs51/gen.c: added aopLiteralLong prototype,
4266           (aopForSym): use getSize for functions,
4267           (genCall): generate banked calls over one trampoline __sdcc_banked_call
4268           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
4269           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
4270           the segment,
4271           (genPcall): use call for literal function pointers and generate banked
4272           calls over the one trampoline so there's only one place for the user to
4273           modify according to his/hers hardware,
4274           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
4275           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
4276         * src/mcs51/main.c: added keyword banked,
4277           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
4278         * support/Util/SDCCerr.c,
4279         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
4280           needed for passing the bank and address to the trampoline
4281         * device/lib/mcs51/crtbank.asm: added for bankswitching
4282         * device/lib/mcs51/Makefile: added crtbank
4283
4284 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4285
4286         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
4287           for fields at offset 0 of a struct or union as reported
4288           on 2005-07-07 in the developer mailing list.
4289
4290 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
4291
4292         * src/SDCCmem.c: fixed bug 1238386
4293
4294 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4295
4296         * src/mcs51/peeph.def: added labelrefcounting for peepholes
4297           (patch #1144962), added peephole 300, enabled 259.x
4298         * doc/sdccman.lyx: removed screenshot and provided link instead
4299
4300 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4301
4302         * doc/sdccman.lyx: added section about debugging with ddd
4303         * doc/figures/ddd_example.eps: screenshot of debugging session
4304
4305 2005-07-04 Raphael Neider <rneider AT web.de>
4306
4307         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
4308           like CODE pointers, fixes #1115683
4309         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
4310           call, fixes bugs #1232211, #1228110,
4311           fixed wrong casts to pCodeFlow from pCodeInstructions
4312
4313 2005-07-04 Raphael Neider <rneider AT web.de>
4314
4315         * src/pic/gen.c (popGet): changed assert to allow for
4316           bit operands
4317         * (popGetAddr): changed signature to provide
4318           an additional index, patched all call sites
4319         * (genCmpEq): handle literal-like operands correctly
4320         * (genAddrOf): added sanity checks on __code/__data pointers
4321         * (genAssign): added handling of symbols from __code section
4322         * (gencjne): do not generate code for comparisons whose result
4323           is neither stored nor used, fixes bug #1171114
4324         * (AccLsh, AccRsh): operate on operand instead of WREG
4325         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
4326           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
4327           by known count
4328         * rewrote complete shift-by-literal logic, commented unused
4329           functions out
4330         * (genConstPointerGet): get multiple bytes (if result size > 1),
4331           fixed handling of non-immediate addresses
4332         * (genPointerGet): handle CODE pointers like CONST pointers
4333         * (genpic14Code): insert C-SRC lines as Cource-pCodes
4334         * ({aop,op}_isLitLike): NEW, single place to decide whether an
4335           operand is to be treated as a literal or not
4336         * (mov2w,genPcall,genCmpEq),
4337           src/pic/genarith.c: use aop_isLitLike() to decide between
4338           literal/register contents
4339         * (addSign): added missing offset
4340         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
4341           only emit comment in debug-mode,
4342           use {aop,op}_isLitLike throughout the file
4343         * src/pic/glue.c: fix initializers for pointers (work in progress)
4344         * src/pic/pcode.c (get_op): honor index on _const symbols
4345         * ({reset,dump}pCodeStatistics): NEW, estimate code size
4346         * (dumppBlock): added pCode size estimation
4347         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
4348           check for IS_SYMOP before OP_SYMBOL'ing
4349         * fixed indentation, compacted switch-statements
4350         * (allocReg): find free register and allocate it instead of
4351           allocating new registers all the time
4352         * (deassignLRs): prevent POINTER_GET's from being assigned the same
4353           registers as its operands (necessary only for multibyte GETs)
4354
4355 2005-07-01 Raphael Neider <rneider AT web.de>
4356
4357         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
4358           debugging .asm-output macros FENTRY + FEXIT
4359         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
4360           way... I wonder...
4361         * (emitpComment): NEW, printf to pCode
4362         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
4363           offset handling
4364         * (popGetAddr): NEW, variant of popGet to access an immediates
4365           high(er) bytes instead of the n'th byte of memory they reference,
4366           replaced popGet with popGetAddr where neccessary
4367         * (genDataPointerGet): reactivated and fixed implementation
4368         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
4369           accesses
4370         * (genDataPointerSet): fixed multibyte assignments
4371         * (genpic14Code): fixed --i-code-in-asm handling
4372         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
4373         * (genPlus): fixed index-out-of-bounds error
4374         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
4375         * src/pic/ralloc.c: added debugging output macro FENTRY2
4376         * (spillThis): fixed indentation, enbraced for-body for clarity
4377         * (rematStr): commented out as now unused
4378         * (regTypeNum): commented out special spill case (overwrites
4379           arbitrary values)
4380         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
4381
4382 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
4383
4384         * doc/sdccman.lyx: documented sfr16/sfr32,
4385           added example for using storage class with function pointers
4386         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
4387
4388 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
4391         * device/lib/_itoa.c,
4392         * device/lib/_ltoa.c: optimized codesize
4393         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
4394           but don't know how to suppress the double warning.
4395         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
4396         * support/Util/SDCCerr.c,
4397         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
4398
4399 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
4400
4401         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
4402           fixed old K&R prototypes
4403         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
4404         * device/lib/_gptrget.c,
4405         * device/lib/_gptrgetc.c,
4406         * device/lib/_gptrput.c: changed versions for new memory indicator values,
4407           also new versions for small generic pointers and banked generic pointers
4408         * src/port.h: added const_name
4409         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
4410         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
4411         * src/SDCCcse.c (findPrevIc): check all associative operators
4412         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
4413         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
4414         * src/SDCCmem.c: updated comments,
4415           set far-space to 0 for pdata, results in optimized code
4416         * src/SDCCmem.h: added macro CONST_NAME
4417         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
4418           moving the info into the highest bits, see also gptrget/gptrput
4419         * src/src.dsp: added sdcc.ico to project files
4420         * src/avr/gen.c (genCast): fixed bug 0x%d
4421         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
4422         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
4423           relation between ptr_type and DCL_TYPE,
4424           (genCast): fixed bug 0x%d
4425         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
4426           (CODE)" for const_name
4427         * src/hc08/gen.c (genCast): fixed bug 0x%d
4428         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
4429           (hc08_port): added "CONST (CODE)" for const_name
4430         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
4431           (aopForRemat, adjustArithmeticResult): disconnected direct relation
4432           between ptr_type and DCL_TYPE,
4433           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
4434           operand* and took AOP() inside function so sfr-ness can be checked,
4435           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
4436           new prototype,
4437           (genFunction, genEndFunction): optimized stack setup,
4438           (genMinus): optimized for literals with ending zeroes (in bytes),
4439           (genCast): fixed bug 0x%d
4440         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
4441           (mcs51_port): added "CONST (CODE)" for const_name
4442         * src/mcs51/peeph.def: made rule 226 more generic
4443         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
4444         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
4445         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
4446         * src/z80/main.c (z80_port): added NULL for const_name,
4447           (gbz80_port): added NULL for const_name
4448         * support/regression/tests/bug663539.c,
4449         * support/regression/tests/sfr16.c: new tests
4450
4451 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4452
4453         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
4454
4455 2005-06-24 Raphael Neider <rneider AT web.de>
4456
4457         * device/lib/pic16/libdev/pic18f[68][567]20.c:
4458           corrected typos...
4459         * device/include/pic16/signal.h: added USBIF
4460           and SIG_USB
4461
4462 2005-06-24 Raphael Neider <rneider AT web.de>
4463
4464         * device/lib/pic16/libdev/pic18f2455.c,
4465           device/include/pic16/pic18f2455.h: NEW
4466         * device/include/pic16/pic18fregs.h,
4467           device/lib/pic16/pics.all,
4468           src/pic16/device.c: added 18f2455
4469         * device/lib/pic16/libdev/pic18f[68][567]20.c,
4470           device/include/pic16/{pic18f[68][567].h,usart.h}:
4471           replaced MULTIPLE_USARTS define with more relaible
4472           compatibility sfrs (for USART access)
4473
4474 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
4475
4476         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
4477           and the output asm file line is printed on two lines.
4478
4479 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4480
4481         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
4482           BGT, BLE, BHI, and BLS instructions
4483         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
4484           genCmpEq): removed
4485         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
4486           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
4487           fixes bug #1216342
4488         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
4489
4490 2005-06-15 Raphael Neider <rneider AT web.de>
4491
4492         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
4493         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
4494         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
4495           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
4496           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
4497
4498 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4499
4500         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
4501           Marcel Telka in bug #1215704
4502
4503 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
4504
4505         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
4506           located in shared memory bank.
4507
4508 2005-05-31 Raphael Neider <rneider AT web.de>
4509
4510         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
4511           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
4512           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
4513
4514 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
4515
4516         * device/lib/_strncpy.c: fixed the fix
4517
4518 2005-05-26 Raphael Neider <rneider AT web.de>
4519
4520         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
4521           initializers with \0, bug #1208187
4522         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
4523           intializers with \0, bug #1208187
4524
4525 2005-05-26 Raphael Neider <rneider AT web.de>
4526
4527         * src/pic16/glue.c (pic16_printIvalChar): fixed string
4528           initializers with \0, bug #1208187
4529         * src/pic16/main.c (_process_pragma): added sanity checks
4530           for stack position and size, emit warnings when appropriate
4531
4532 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4533
4534         * device/lib/_strncpy.c: fixed not filling with \0
4535
4536 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4537
4538         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
4539           createFunction),
4540         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
4541           compound_statement),
4542         * src/SDCCsymt.h,
4543         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
4544
4545 2005-05-24 Raphael Neider <rneider AT web.de>
4546
4547         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
4548
4549 2005-05-24 Raphael Neider <rneider AT web.de>
4550
4551         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
4552           TRISE definitions, closes bug #1162453
4553
4554 2005-05-22 Raphael Neider <rneider AT web.de>
4555
4556         * src/pic16/main.c (_process_pragma): check for missing
4557           arguments to pragmas code and udata
4558         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
4559           consistency fixes to match other headers (thanks to Jim Paris)
4560         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
4561
4562 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4563
4564         * src/SDCCicode.c (isOperandEqual): fixed missing ;
4565
4566 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
4567
4568         * support/regression/tests/bug1198642.c: new test
4569         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
4570         * src/SDCCcse.c (findPrevIc): added comment, please have a look
4571         * support/scripts/resource.h,
4572         * support/scripts/resource.rc,
4573         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
4574         * support/scripts/sdcc.ico: added 32x32 icon
4575
4576 2005-05-18 Raphael Neider <rneider AT web.de>
4577
4578         * device/lib/pic16/libdev/pic18f*.c,
4579         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
4580           keywords to "__sfr" and "__at (X)"
4581         * device/include/pic16/pic18fregs.h: added pic18f4520
4582         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
4583           #1203088 (MPLAB compatibility)
4584
4585 2005-05-17 Raphael Neider <rneider AT web.de>
4586
4587         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
4588         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
4589         * device/lib/pic16/pics.all: added new devices
4590         * src/pic16/device.c: added support for pic18f4520
4591
4592 2005-05-16 Raphael Neider <rneider AT web.de>
4593         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
4594         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
4595         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
4596           convenience function for bit access
4597
4598 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4599
4600         * device/lib/printf_large.c: fixed bug 1193299
4601         * support/regression/tests/bug1057979.c: added test %3.3s
4602
4603 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4604
4605         * device/include/mcs51/8051.h,
4606         * device/include/mcs51/8052.h: made parseable with lint
4607         * device/include/mcs51/lint.h: added include file for (sp)lint
4608         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
4609         * doc/cdbfileformat.lyx,
4610         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
4611
4612 2005-05-14 Raphael Neider <rneider AT web.de>
4613
4614         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
4615         * device/lib/pic16/libc/stdlib/itoa.c (new)
4616         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
4617         * device/lib/pic16/libio/Makefile: exclude subdir according to
4618           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
4619         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
4620         * src/pic16/gen.c (genFunction): prevent annoying warning
4621         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
4622           nameclashes on BeOS
4623         * support/cpp2/cppmain.c (cpp_output_string): new
4624         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
4625           fixes bug 1116802
4626
4627 2005-05-13 Borut Razem <borut.razem AT siol.net>
4628
4629         * src/SDCCmain.c (linkEdit): fixed bug 1195202
4630
4631 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4632
4633         * .version: changed to version 2.5.1; back to bleeding edge development
4634
4635 2005-05-11 Borut Razem <borut.razem AT siol.net>
4636
4637         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
4638           generate PDF version 1.3 documents
4639
4640 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4641
4642         * .version: changed to version 2.5.0
4643
4644 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4645
4646         * doc/sdccman.lyx: updated weblinks, index and smaller updates
4647
4648 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4649
4650         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
4651         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
4652         well as many smaller updates.
4653         * .version: changed to version 2.5.0-pre1
4654
4655 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4656
4657         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
4658
4659 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4660
4661         * support/regression/tests/bug1185672.c: added
4662         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
4663           bug 1185672
4664         * src/mcs51/gen.c (genCall): added comments, made it look safer
4665         * src/mcs51/gen.c (genEndFunction): simplified
4666
4667 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4668
4669         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
4670
4671 2005-04-14 Borut Razem <borut.razem AT siol.net>
4672
4673         * fixed bug 1045046 - SIGSEGV with really simple code?:
4674           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
4675           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
4676
4677 2005-04-14 Borut Razem <borut.razem AT siol.net>
4678
4679         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
4680           src/pic16/device.h: temporarily disabled experimental #inline pragma
4681           for 2.5.0 release
4682
4683 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
4684
4685         * device/include/z80/stdio.h,
4686         * device/include/z80/string.h: removed these highly incomplete files so
4687           SDCC can use the default ones in device/include/
4688
4689 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4690
4691         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
4692         gcc warning.
4693         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
4694         fix sdcpp warnings.
4695
4696 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4697
4698         * device/include/malloc.h: removed redundant __reentrant prototypes
4699         * device/lib/_mullong.c: added working xstack variant in asm (C version
4700           doesn't pass regression tests)
4701         * device/lib/bpx.c: used __data and made bpx char for mcs51
4702         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
4703           (createFunction): fixed bug with xstackPtr
4704         * src/SDCCcse.c: corrected comments
4705         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
4706           (killDeadCode, eBBlockFromiCode): removed unused code
4707         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
4708           corrected comments
4709         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
4710           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
4711           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
4712           (genModOneByte): fixed warning in MSVC
4713         * src/mcs51/main.c (): added comments
4714         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
4715
4716 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4717
4718         * src/SDCCmain.c (linkEdit): oops, changed one line too many
4719
4720 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
4721
4722         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
4723
4724 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
4725
4726         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
4727         characters arrays of larger size than the declared one.
4728
4729 2005-04-10 Borut Razem <borut.razem AT siol.net>
4730
4731         * src/pic/gen.c (genInline),
4732           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
4733           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
4734           (findNextInstruction), (findPrevInstruction),
4735           (findInstructionUsingLabel),
4736           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
4737         * src/pic/pcode.c (findLabel): added missing '\n'
4738         * src/src.dsp: added SDCCdwarf2.c to the project
4739
4740 2005-04-09 Borut Razem <borut.razem AT siol.net>
4741
4742         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
4743
4744 2005-04-08 Raphael Neider <rneider AT web.de>
4745
4746         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
4747           into the chain after a given one) and mergeDefmapSymbols (combine
4748           defmap entries for each symbol per pcode)
4749         * (createDefmap): have defmap entries merged in the end
4750         * (defmapReplaceSymRef): split defmap entries covering two accesses to
4751           a symbol before replacing one access type's symbol, merge symbols in
4752           the end (replacement symbol might already have an entry)
4753         * (assignValnums): keep reference to written WREG intact
4754
4755 2005-04-08 Raphael Neider <rneider AT web.de>
4756
4757         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
4758           Alpha)
4759
4760 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
4761
4762         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
4763         bytes
4764
4765 2005-04-07 Raphael Neider <rneider AT web.de>
4766
4767         * device/include/pic16/usart.h: added compatibility defines for
4768           devices with more than one USART
4769         * device/include/pic16/pic18f[68][567]20.h: activated above defines
4770
4771 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4772
4773         * device/lib/Makefile.in: updated for port specific include
4774
4775 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4776
4777         * support/regression/ports/mcs51/spec.mk: added mcs51 include
4778
4779 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4780
4781         * device/include/8051.h,
4782         * device/include/8052.h,
4783         * device/include/at89S8252.h,
4784         * device/include/at89c55.h,
4785         * device/include/at89x051.h,
4786         * device/include/at89x51.h,
4787         * device/include/at89x52.h,
4788         * device/include/mcs51reg.h,
4789         * device/include/reg51.h,
4790         * device/include/reg764.h,
4791         * device/include/regc515c.h,
4792         * device/include/sab80515.h: (re)moved these 12 files
4793         * device/include/mcs51/8051.h,
4794         * device/include/mcs51/8052.h,
4795         * device/include/mcs51/at89S8252.h,
4796         * device/include/mcs51/at89c55.h,
4797         * device/include/mcs51/at89x051.h,
4798         * device/include/mcs51/at89x51.h,
4799         * device/include/mcs51/at89x52.h,
4800         * device/include/mcs51/mcs51reg.h,
4801         * device/include/mcs51/reg51.h,
4802         * device/include/mcs51/reg764.h,
4803         * device/include/mcs51/regc515c.h,
4804         * device/include/mcs51/sab80515.h: and added them here
4805
4806 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4807
4808         * device/include/stdarg.h: changed SDCC specific keywords to double
4809           underlined form.
4810         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
4811           mcs51 and ds390.
4812         * device/include/hc08/mc68hc908gp32.h,
4813         * device/include/hc08/mc68hc908jb8.h,
4814         * device/include/hc08/mc68hc908jkjl.h,
4815         * device/include/hc08/mc68hc908qy.h: fixed comments
4816         * device/include/mcs51/README: updated
4817         * device/include/mcs51/c8051f120.h: added PINRSF
4818         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
4819         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
4820           amidst code. Also inline is not supported.
4821
4822 2005-04-06 Raphael Neider <rneider AT web.de>
4823
4824         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
4825         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
4826           callers stack/frame pointers
4827
4828 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4829
4830         * device/include/pic16/usart.h: added, missing in previous commit,
4831         * device/include/pic16/adc.h: fixed typo,
4832         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
4833         commit,
4834         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
4835         <p18fxxx.inc>
4836         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
4837         uninitialized because a bug appears with gplink
4838         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
4839         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
4840         complains for unrecognised option
4841
4842 2005-04-05 Raphael Neider <rneider AT web.de>
4843
4844         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
4845           structs as well (using memcpy)
4846         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
4847           on ISRs (GOTO has no label)
4848         * src/pic16/device.h: added OF_OPTIMIZE_DF
4849         * src/pic16/main.c: added compiler switch --optimize-df to enable the
4850           new data flow analysis/optimization
4851         * src/pic16/pcode.c: added (prototypes for and implementation of)
4852           dataflow analysis functions, fixed pCodeInstructions' inCond and
4853           outCond values, made RCALL a branch instruction
4854         * (pic16_unlinkpCode): keep C line if possible
4855         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
4856           C line moved if possible
4857         * (pic16_getRegFrompCodeOp): NEW, improved version of...
4858         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
4859           to use new pic16_getRegFrompCodeOp (works for more SFRs)
4860         * (pic16_BuildFlow): fixed skip instructions with label (did not start
4861           new flow)
4862         * (pic16_getJumptabpCode): NEW, needed in...
4863         * (LinkFlow): fixed handling of jumptables, calls and conditional
4864           branches
4865         * (pic16_InsertCommentAfter): NEW
4866         * (pic16_pCodeReplace): made verbose and flow preserving
4867         * (AnalyzeFlow): added call to data flow analysis
4868         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
4869         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
4870         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
4871
4872 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4873
4874         * src/SDCCast.c (decorateType): fixed bug #1105626
4875
4876 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
4877
4878         * device/include/asm/pic16/features.h,
4879         * pic18f*.h headers,
4880         * device/include/pic16/adc.h,
4881         * device/include/pic16/delay.h,
4882         * device/include/pic16/i2c.h,
4883         * device/include/pic16/malloc.h,
4884         * device/include/pic16/stdio.h,
4885         * device/include/pic16/stdlib.h,
4886         * device/include/pic16/string.h,
4887         * device/lib/pic16/libc/stdio/printf_tiny.c,
4888         * device/lib/pic16/libc/stdio/printf_small.c,
4889         * device/lib/pic16/libc/stdio/strmgpsim.c,
4890         * device/lib/pic16/libc/stdio/strmmssp.c,
4891         * device/lib/pic16/libc/stdio/strmusart.c,
4892         * device/lib/pic16/libc/stdio/vfprintf.c,
4893         * device/lib/pic16/libc/stdlib/ltoa.c,
4894         * device/lib/pic16/libc/stdlib/putchar.c,
4895         * device/lib/pic16/libc/stdlib/x_ftoa.c,
4896         * device/lib/pic16/libc/stdlib/memchrpgm.c,
4897         * device/lib/pic16/libc/stdlib/memchrram.c,
4898         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
4899         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
4900         * device/lib/pic16/libio/adc/adcbusy.c,
4901         * device/lib/pic16/libio/adc/adcread.c,
4902         * device/lib/pic16/libio/adc/adcsetch.c,
4903         * device/lib/pic16/libio/usart/ubaud.c,
4904         * device/lib/pic16/libio/usart/ubusy.c,
4905         * device/lib/pic16/libio/usart/udrdy.c,
4906         * device/lib/pic16/libio/usart/uopen.c,
4907         * device/lib/pic16/libio/usart/uputc.c,
4908         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
4909         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
4910         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
4911         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
4912         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
4913         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
4914         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
4915         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
4916         specific keywords to double underlined form,
4917         * device/lib/pic16/libc/Makefile.rules,
4918         * device/lib/pic16/libsdcc/Makefile.rules,
4919         * device/lib/pic16/libm/Makefile,
4920         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
4921         to compile with C standard set in Makefile.common
4922         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
4923         rand.c and crc.c in compilation process,
4924         * device/lib/pic16/libsdcc/int/divuint.c,
4925         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
4926         `c' from signed to unsigned,
4927         * device/lib/pic16/startup/crt0.c,
4928         * device/lib/pic16/startup/crt0i.c,
4929         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
4930         keywords to double underlined form, bug fixes in _do_cinit function
4931         which prevented the correct initialization of the .idata segment,
4932         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
4933         core to enter a infinite loop
4934         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
4935
4936 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4937
4938         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
4939
4940 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4941
4942         * device/include/Makefile.in: add support for hc08 subdirectory
4943         * device/include/hc08/: new subdirectory
4944         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
4945         Lucas Loizaga, thanks!
4946         * device/include/hc08/mc68hc908qy.h,
4947         * device/include/hc08/mc68hc908gp32.h,
4948         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
4949         their own directory. Changed internal macro names to use the compiler
4950         reserved namespace. Changed SDCC specific keywords to double
4951         underlined form.
4952         * device/include/math.h,
4953         * device/include/malloc.h,
4954         * device/include/stdarg.h,
4955         * device/include/stdbool.h
4956         * device/include/string.h,
4957         * device/include/tinibios.h,
4958         * device/include/ds400rom.h,
4959         * device/include/8051.h,
4960         * device/include/8052.h,
4961         * device/include/80c51xa.h,
4962         * device/include/at89c55.h,
4963         * device/include/at89S8252.h,
4964         * device/include/at89x51.h,
4965         * device/include/at89x52.h,
4966         * device/include/ds80c390.h,
4967         * device/include/reg764.h,
4968         * device/include/regc515c.h,
4969         * device/include/sab80515.h,
4970         * device/include/mcs51/c8051f000.h,
4971         * device/include/mcs51/c8051f018.h,
4972         * device/include/mcs51/c8051f020.h,
4973         * device/include/mcs51/c8051f040.h,
4974         * device/include/mcs51/c8051f060.h,
4975         * device/include/mcs51/c8051f120.h,
4976         * device/include/mcs51/c8051f300.h,
4977         * device/include/mcs51/c8051f310.h,
4978         * device/include/mcs51/c8051f320.h,
4979         * device/include/mcs51/c8051f330.h,
4980         * device/include/mcs51/c8051f350.h,
4981         * device/include/z180.h: Changed SDCC specific keywords to double
4982         underlined form.
4983
4984 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
4985
4986         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
4987         18F4455,
4988         * (pic16_assignConfigWordValue): disable testing of configuration
4989         register value with config mask,
4990         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
4991         function with port->fun_prefix,
4992         * (genFunction): when generating a naked interrupt function never
4993         create an absolute segment placed in interrupt vector address, place
4994         the actual interrupt function at IVA instead, when an interrupt
4995         function is generated with unspecified interrupt then do not create
4996         the absolute section,
4997         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
4998         code for generating a call to generic pointer get/put function with
4999         a call to function pic16_callGenericPointer(),
5000         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
5001         the call to the generic pointer get/put functions with prefixing the
5002         function name with port->fun_prefix,
5003         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
5004         * src/pic16/main.c (_process_pragma): prefix function with
5005         port->fun_prefix,
5006         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
5007         calling assembler, old 18Fxxxx macro is deprecated,
5008         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
5009         PC_ASMDIR in while condition,
5010         * (findInstruction): add PC_ASMDIR in while condition,
5011         * (buildCallTree): prefix main with port->fun_prefix,
5012         * (pic16_pCode2str): fixed bug that didn't emit the memory access
5013         identifier for variable with banked access in instructions BTFSS,
5014         BTFSC, BCF, BSF, BTG
5015         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
5016         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
5017         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
5018         perform optimization when enviroment variable NO_REG_OPT is set,
5019         * (insideLRBlock): NEW, return 1 if register is inside an
5020         INF_LOCALREGS block,
5021         * (RemoveRegFromLRBlock): remove a register that is completely
5022         eliminated by register optimization, but it is still left in local
5023         register store/restore in/from stack block,
5024         * (Remove2pcodes): after removing register, check to see if it
5025         should be removed from local register store/restore in/from stack
5026         block,
5027         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
5028         DUMMY_READ_VOLATILE,
5029
5030         * device/include/pic16/adc.h: minor prototype modifications and
5031         update,
5032         * device/include/pic16/malloc.h: added GPL notice various
5033         modifications,
5034         * device/include/pic16/stdint.h: NEW, standard header for ints
5035         * device/include/pic16/delay.h: NEW, header for delay functions,
5036         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
5037         delay1mtcy,
5038         * device/include/pic16/signal.h: NEW, header providing helper macros
5039         for implementing signal handlers,
5040         * device/include/pic16/stdio.h: added prototypes for functions,
5041         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
5042         prototypes for stdin and stdout, added macro PUTCHAR to
5043         automatically implement putchar function prototype,
5044         * device/include/pic16/usart.h: modified and updated USART library,
5045         * device/lib/pic16/libio/adc/,
5046         * device/lib/pic16/libio/i2c: some modifications to improve library
5047         performance,
5048         * device/lib/pic16/libc/stdio/: modifications for the new printf*
5049         family of functions,
5050         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
5051         family of functions and other sources,
5052         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
5053         of the PIC18Fxx[28] devices,
5054         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
5055         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
5056         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
5057         _do_cinit function, because the previous failed when local variables
5058         where not placed in the same memory bank,
5059         * device/lib/pic16/libsdcc/char/: various modifications to improve
5060         library performance,
5061         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
5062         information on the new functions of the c library and more...
5063
5064 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5065
5066         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
5067
5068 2005-03-26 Raphael Neider <rneider AT web.de>
5069
5070         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
5071           if condition == CARRY)
5072         * (genCmp): adapted to new genSkipc semantics
5073         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
5074           on rIfx (genCmp was broken)
5075
5076 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5077
5078         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
5079         * src/z80/main.c (_keywords[]),
5080         * src/SDCCglobal.h (struct options),
5081         * src/SDCC.y,
5082         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
5083         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
5084         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
5085         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
5086         always available in leading double underscore form. The C99 support is
5087         mostly missing, but it's a start.
5088         * support/regression/tests/bug-227710.c: fixed nonconforming use of
5089         reserved identifier "__data".
5090
5091 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5092
5093         * src/mcs51/peeph.def: fixed bug 1170013
5094
5095 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * device/include/mcs51reg.h: fixed bug 842007
5098
5099 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5100
5101         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
5102         last time.
5103
5104 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5105
5106         * src/port.h (struct PORT),
5107         * src/avr/ralloc.c (avr_assignRegisters),
5108         * src/avr/main.c,
5109         * src/ds390/ralloc.c (ds390_assignRegisters),
5110         * src/ds390/main.c,
5111         * src/hc08/ralloc.c (hc08_assignRegisters),
5112         * src/hc08/main.c,
5113         * src/mcs51/ralloc.c (mcs51_assignRegisters),
5114         * src/mcs51/main.c,
5115         * src/pic/ralloc.c (pic14_assignRegisters),
5116         * src/pic/main.c,
5117         * src/pic16/ralloc.c (pic16_assignRegisters),
5118         * src/pic16/main.c,
5119         * src/xa51/ralloc.c (xa51_assignRegisters),
5120         * src/xa51/main.c,
5121         * src/z80/ralloc.c (z80_assignRegisters),
5122         * src/z80/ralloc.h,
5123         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
5124         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
5125         * src/SDCCcse.h,
5126         * src/SDCCdflow.c (computeDataFlow),
5127         * src/SDCCdflow.h,
5128         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
5129         * src/SDCCloop.h,
5130         * src/SDCCcflow.c (*),
5131         * src/SDCCcflow.h,
5132         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
5133         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
5134         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
5135         immedDom() returning wrong block; probably fixes bug #1160833)
5136
5137 2005-03-20 Borut Razem <borut.razem AT siol.net>
5138
5139         * support/scripts/inc2h.pl: WIN32 port
5140
5141 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
5142
5143         * device/lib/makefile.in: added abs.c and labs.c
5144
5145 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
5146
5147         * device/include/stdint.h: added
5148         * device/lib/abs.c: added
5149         * device/lib/labs.c: added
5150         * device/include/stdlib.h: added abs() and labs() prototypes
5151         * device/lib/libsdcc.lib: added abs and labs
5152         * device/include/float.h,
5153         * device/lib/_fsmul.c,
5154         * device/lib/printf_fast.c,
5155         * device/lib/printf_tiny.c: updated comments
5156
5157 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5158
5159         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
5160         bug #1164313
5161
5162 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5163
5164         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
5165         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
5166
5167 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
5168
5169         * device/lib/printf_large.c: removed inline assembly for portability and
5170           readability. Use printf_fast if speed or size are more important.
5171         * src/pic16/gen.c: removed conditions around use of DEBUGpc
5172         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
5173
5174 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
5175
5176         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
5177         prevent compiler warning
5178
5179 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5180
5181         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
5182         moved to level 0 and declared as static. Also they are explicit
5183         placed in access bank. This was necessery because some times they
5184         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
5185         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
5186         optimizations. Currently only compare to unsigned char is implemented,
5187         * src/pic16/gen.c: added fReturnIdx array,
5188         * (struct resolvedIfx) is moved to gen.h and made public,
5189         * (struct _G): added sregsAlloc and sregsAllocSet fields,
5190         * (aopForSym): added an optimization to directly store in stack of
5191         the operand of a SEND iCode,
5192         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
5193         but as registers instead (AOP_REG) using the fReturnIdx array,
5194         * (pic16_freeAsmop): remove the freed register from the
5195         _G.sregsAlloc field,
5196         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
5197         a compare of 'WREG',
5198         * (pic16_popGetTempRegCond): changed function prototype, now
5199         function takes also a bitVector argument v which holds the current
5200         set of registers that are allocated for stack access by aopForSym,
5201         registers allocated in aopForSym for accessing stack symbols are not
5202         any more part of the functions usedRegs field,
5203         * (genCall): some times aopOp is called for a stack variable to be
5204         send, aopForSym might perform the push, if this is true make sure
5205         that genCall doesn't push the variable twice by testing _G.resDirect,
5206         * (genFunction): changed testing for unspecified interrupt number
5207         from 256 to INTNO_UNSPEC,
5208         * modified selection scheme of frame pointer generation. Previously
5209         if function did use local registers a frame pointer was generated,
5210         now a frame pointer is generated only if function has arguments
5211         (that need PLUSW2 register access), or has stack arguments, or the
5212         compiler is not instructed to omit the frame pointer,
5213         * (genEndFunction): before restoring local registers that were saved
5214         in the function preamble, also restore the registers that *might*
5215         have been allocated for stack access,
5216         * (genRet): removed some old comments,
5217         * (genCmp, the active (RN's) version): added a call to the
5218         pic16_genCmp_special function to perform the compare with a more
5219         robust and optimized way,
5220         * (genInline): a feature has been added in inline code generation,
5221         which allows a wildcard variable substitution when writing inline
5222         assembly. Code is incomplete and experimental therefore undocumented,
5223         * (genCast): changed order of aopOp for result and right to allow
5224         aopForSym to directly load the result if possible,
5225         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
5226         perform an optimized compare on some selected special occasions,
5227         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
5228         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
5229         generate an IVT any more,
5230         * src/pic16/main.c (pic16_optionsTable): added command line option
5231         --optimize-cmp,
5232         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
5233         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
5234         macros,
5235         * src/pic16/NOTES: Raphael Neider added in list of active developers
5236         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
5237         jumptable_end to prevent bug #,
5238         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
5239         inCond and outCond fields,
5240         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
5241         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
5242         turn off register spilling,
5243         * (packRegsForOneUse): synced with other ports' versions although it
5244         is not used currently,
5245         * (pic16_packRegisters): added an optimization while reading
5246         structure bitfields, some registers may be saved (malloc code is
5247         decreased by 80 bytes)
5248
5249 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
5250
5251         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
5252         left is a bitfield, if yes, then don't optimize assignment. Perhaps
5253         this can be optimized more?
5254
5255 2005-03-10 Raphael Neider <rneider AT web.de>
5256
5257         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
5258           genNearPointerGet): (hopefully) fixed access to bitfields via
5259           pointers (p->bitN = x; and x = p->bitN; failed)
5260
5261 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
5262
5263         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
5264
5265 2005-03-09 Raphael Neider <rneider AT web.de>
5266
5267         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
5268
5269 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
5270
5271         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
5272         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
5273           (regTypeNum): set REG_BIT type if necessary
5274         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
5275         * support/regression/tests/critical.c: check bug 1144613
5276
5277 2005-03-02 Raphael Neider <rneider AT web.de>
5278
5279         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
5280
5281 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5282
5283         * src/avr/ralloc.c (serialRegAssign),
5284         * src/ds390/ralloc.c (serialRegAssign),
5285         * src/hc08/ralloc.c (serialRegAssign),
5286         * src/mcs51/ralloc.c (serialRegAssign),
5287         * src/pic/ralloc.c (serialRegAssign),
5288         * src/pic16/ralloc.c (serialRegAssign),
5289         * src/xa51/ralloc.c (serialRegAssign),
5290         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
5291
5292 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
5293
5294         * src/SDCCast.c (decorateType): fixed bug 1124787
5295
5296 2005-02-20 Hubert Sack <sack AT digiplan.de>
5297         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5298
5299         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
5300         patch #1121755
5301
5302 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5303
5304         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
5305         to keep the correct label reference count when adding/removing references
5306         to labels. A peephole file using this is appended to patch #1144962.
5307
5308 2005-02-14 Raphael Neider <rneider AT web.de>
5309
5310         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
5311         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
5312         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
5313           retrievals of result operand's value on assignment
5314
5315 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
5316
5317         * device/include/pic16/string.h: modified prototype for memccpy()
5318         to memccpy(void *, void *, char, size_t)
5319         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
5320         check whether to omit frame pointer or not,
5321         * (genInline): convert all occurences of "\n" to LF in inline
5322         assembler blocks, this helps formatting the inline text,
5323         * (pic16_loadFSR0): modified prototype,
5324         * (genNearPointerGet, genNearPointerSet): reorganization of code,
5325         removed some 8051 legacy code,
5326         * (genPackBits): enabled handling bitfields exceeding one byte in size,
5327         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
5328         before allocating temporary registers in functions,
5329
5330 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5331
5332         * support/regression/tests/bitvars.c: corrected the "fix"
5333
5334 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5335
5336         * support/regression/tests/bitvars.c,
5337         * support/regression/tests/bitwise.c,
5338         * support/regression/tests/rotate.c: "fixed" problems on Alpha
5339
5340 2005-02-10 Raphael Neider <rneider AT web.de>
5341
5342         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
5343           different size for Alpha
5344         * src/pic16/gen.c (genCmpEq) : improved compare with 0
5345
5346 2005-02-09 Raphael Neider <rneider AT web.de>
5347
5348         * src/SDCC.lex(doPragma) : save and restore warning options as well
5349           (also added new stack plus clone- and copyAndFreeSDCCERRG())
5350         * have #pragma less_pedantic set the errorlevel to WARNING
5351           (fixes #1117001)
5352         * (cloneOptimize) : fixed wrong malloc's size
5353         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
5354           facilitate correct handling of #pragma (save|restore)
5355
5356 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5357
5358         * src/mcs51/gen.c: removed non-standard C nameless struct/union
5359
5360 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
5361
5362         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
5363
5364 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
5365
5366         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
5367
5368 2005-02-02 Raphael Neider <rneider AT web.de>
5369
5370         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
5371         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
5372         * (pic16_storeForReturn): fixed to allow returning function pointers
5373         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
5374         * device/include/pic16/{stddef.h,stdbool.h}: added
5375
5376 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
5377
5378         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
5379
5380 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
5381
5382         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
5383         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
5384          appeared to be required
5385
5386 2005-01-31 Borut Razem <borut.razem AT siol.net>
5387
5388         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
5389           include/mcs51 and include/z80 directories to the package
5390
5391 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5392
5393         * src/hc08/gen.c (genFunction): fixed bug #1112752
5394
5395 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5396
5397         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
5398
5399 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5400
5401         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
5402
5403 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
5404
5405         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
5406
5407 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
5408
5409         * device/include/c8051fxxx.h: removed these 6 files
5410         * device/include/mcs51/c8051fxxx.h: added these 11 new files
5411
5412 2005-01-26 Raphael Neider <rneider AT web.de>
5413
5414         * src/pic16/gen.c (genAssign): fixed assignment from longs
5415           in codespace (were cut to three bytes)
5416         * (genDummyRead): implemented (except for CODESPACE...),
5417           fixed bug #1108575
5418         * src/pic16/glue.c (emitStatistics): beautified
5419         * device/lib/pic16/libm/Makefile: added include path
5420
5421 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5422
5423         * src/z80/gen.c (aopPut): fixed bug #1103902
5424
5425 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5426
5427         * device/lib/expf.c: fixed bug #1095792
5428
5429 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
5430
5431         * device/lib/pic16/libm: added Math library sources
5432
5433 2005-01-24 Raphael Neider <rneider AT web.de>
5434
5435         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
5436           to enable upcast to pCodeOpReg2 (there is no type tag to
5437           differenciate the two and pic16_popGet2p cast into PCOR2)
5438         * src/pic16/main.c (_process_pragma): fixed another malloc bug
5439           (sizeof(sectNames) changed to sizeof(sectName))
5440           Both patches fix segfaults under MinGW.
5441
5442 2005-01-23 Raphael Neider <rneider AT web.de>
5443
5444         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
5445           Safe_[mc]?alloc()'ed variables
5446         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
5447           of (byte sized) temporaries (assign them to WREG for now)
5448         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
5449           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
5450           this might fix SIGSEGVs on MinGW...
5451         * src/SDCCopt.c (killDeadCode): restored original behaviour
5452           (volatile operands might get thrown away though)
5453
5454 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
5455
5456         * src/pic16/gen.c: fixed bug #1106975,
5457         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
5458         pointer update, INTCON is saved, global interrupts are disabled and
5459         restored after updateing TOS.
5460         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
5461         * added function attribute 'shadowregs' to take advantage of shadow
5462         registers,
5463         * added function attribute 'wparam' as an alternative to the wparam
5464         pragma,
5465         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
5466         user declares a non-ISR function as 'shadowregs',
5467         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
5468
5469 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
5470
5471         * .version: bumped version number to 2.4.8
5472         * device/lib/pic16/pics.all: list of PIC18F devices supported by
5473         pic16 port,
5474         * device/lib/pic16/libio/i2c/: I2C module support library,
5475         * device/include/pic16/i2c.h: I2C support library header,
5476         * device/lib/pic16/libc/stdio/: standard IO support sources,
5477         * (printf_small.c): printf_small() source, supports float print,
5478         * (printf_tiny.c): printf_tiny() source, does not support floats,
5479         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
5480         enable global optimizations for entire library source, other
5481         Makefiles in the source tree are also modified to reflect this,
5482         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
5483         function,
5484         * doc/sdccman.lyx: updated to reflect new changes,
5485         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
5486         sym->onStack if-case,
5487         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
5488         sbit, idata, _idata, xdata, _xdata,
5489         * added pragma library, to link an external library, (see doc),
5490         * removed command line options, --pomit-config-words, --pomit-ivt,
5491         --pleave-reset-vector,
5492         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
5493         when calling assembler to reflect memory model used, also define
5494         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
5495         reflect stack model used,
5496         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
5497         on stack return NULL,
5498
5499 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5500
5501         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
5502           of the operands is volatile. Fixes #1020220
5503
5504 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5505
5506         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
5507         * (OptimizeRegUsage): make sure that there is really no other flow where
5508           the first pCode is used
5509
5510 2005-01-22 Raphael Neider <rneider AT web.de>
5511
5512         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
5513           to fix #1106967 (pCode->seq are not set up correctly)
5514
5515 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5516
5517         * src/SDCCglue.c (glue): make sure code area is declared before the
5518         static initialization area.
5519
5520 2005-01-21 Raphael Neider <rneider AT web.de>
5521
5522         * device/lib/Makefile.in: fixed test for pic16 install dir
5523         * device/lib/pic16/*/Makefile*: modified compile flags to enable
5524           optimizations
5525         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
5526           added --optimize-goto compiler switch and pragma wparam documentation
5527         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
5528         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
5529           and PRODH closing bug #1071770 (peephole optimizer)
5530
5531 2005-01-19 Raphael Neider <rneider AT web.de>
5532
5533         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
5534           cmdLine buffers (used when calling sdcpp...) are large enough
5535           (MAX_PATH=256 truncates arguments leading to system halts when
5536           used in MinGW...)
5537         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
5538         * (genUminus): rewritten to for efficiency
5539         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
5540           used uninitialized in some cases)
5541         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
5542           copy the third byte from the int -- now assumes 0x80 (data memory)
5543         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
5544           operands (genAddLit expects the iCode's operands to swapped as
5545           well), fixed leftover bytes (crashed for short left operands)
5546         * (pic16_genMinusDec): performance improvements, removed false
5547           PIC14 emitSKPNCs
5548         * (pic16_genMinus): fixed to cope with differently sized operands
5549         * src/pic16/glue.c (pic16_glue): added new banksel optimization
5550           for --obanksel > 1
5551         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
5552         * src/pic16/graph.[ch]: implementation of directed graphs, used by
5553           new banksel optimization
5554         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
5555           analysis for temporary registers (segfaults...)
5556         * src/pic16/peeph.def: added rule
5557
5558 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
5559
5560         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
5561         which converts a float number to its ASCII representation
5562         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
5563         functions to convert the fractional and integer part of a float to ASCII,
5564         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
5565         realloc.c): added _MALLOC_SPEC to explicit place variables in data
5566         ram
5567         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
5568         _STATMEM macros,
5569         * device/include/pic16/adc.h: added GPL info,
5570         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
5571         a pCodeOp as tested operand,
5572         * (genNearPointerGet): optimized bit testing, does not use
5573         intermediate register for bit value, test directly instead with
5574         BTFSS, BTFSC, works only for single bits,
5575         * (genpic16Code): dump the name of the iCode in the asm,
5576         * src/pic16/ralloc.c (decodeOp): removed static declaration and
5577         renamed to pic16_decodeOp,
5578         * (serialRegAssign): do not allocate a temporary register for iCode
5579         sequences that test a single bit for 1/0
5580
5581 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
5582
5583         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
5584         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
5585         access stack and frame pointers. They are initially assigned to
5586         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
5587         accessing SFRs. Updated all occurences of modification of stack or
5588         frame pointer in gen.c and pcode.c,
5589         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
5590         assigning of a literal value to pointers,
5591         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
5592         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
5593         selected
5594
5595 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5596
5597         * doc/sdccman.lyx: update documentation about stack pragma, added
5598         some info for stack memory models
5599
5600 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5601
5602         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
5603
5604 2005-01-08 Raphael Neider <rneider AT web.de>
5605
5606         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
5607           udata sections to fix bug #1097823
5608
5609 2005-01-05 Raphael Neider <rneider AT web.de>
5610
5611         * src/pic16/gen.c (genGenericShift): added handling of differently
5612           sized left operand and result
5613
5614 2005-01-04 Raphael Neider <rneider AT web.de>
5615
5616         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
5617         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
5618           to hold the condition bit)
5619         * added new version of genCmp (old code available via #define)
5620         * added new version of genShiftLeft/genShiftRight in a generic
5621           way, now supports shifting by negative values
5622         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
5623           shiftCount (expected by genGenericShift)
5624         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
5625         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
5626           dump
5627         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
5628           is an invalid literal too...)
5629
5630 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
5631
5632         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
5633         from Raphael Neider,
5634         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
5635         for 8-bit literals. This fixes some literal operands which are sign
5636         extended to 16-bits ints when instruction needs only 8-bits.
5637
5638 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
5639
5640         * device/lib/logf.c: added mcs51 assembly version
5641         * device/lib/expf.c: added mcs51 assembly version
5642         * device/lib/_logexpf.c: new shared asm code for expf and logf
5643         * device/include/math.h: add defines for assembly math library
5644         * device/lib/Makefile.in: build new _logexpf.c
5645         * device/lib/libfloat.lib: use new _logexpf.c
5646
5647 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5648
5649         * src/pic/device.c
5650         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
5651           device types which have less than 0x7f registers.
5652
5653 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5654
5655         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
5656
5657 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5658
5659         * device/lib/printf_fast.c: only build on supported arch.
5660         * device/lib/printf_tiny.c: only build on supported arch.
5661         * device/lib/printf_fast_f.c: only build if asm float lib
5662         * device/lib/_fsget1arg.c: only build if asm float lib
5663         * device/lib/_fsget2args.c: only build if asm float lib
5664         * device/lib/_fsnormalize.c: only build if asm float lib
5665         * device/lib/_fsreturnval.c: only build if asm float lib
5666         * device/lib/_fsrshift.c: only build if asm float lib
5667         * device/lib/_fsswapargs.c: only build if asm float lib
5668         * device/include/stdio.h: don't provide print_fast,
5669           print_fast_f, print_tiny prototypes if --xstack used
5670
5671 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
5672
5673         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
5674         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
5675           to the SOURCES
5676
5677 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5678
5679         * device/lib/printf_fast_f.c: same as printf_fast, but
5680           with floating point enabled
5681         * device/lib/printf_fast.c: minor tweaks
5682         * device/include/stdio.h: add printf_fast_f
5683
5684 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5685
5686         * src/SDCCmain.c: make --float-reent default for mcs51
5687         * device/lib/_fsadd.c: added mcs51 assembly version
5688         * device/lib/_fssub.c: added mcs51 assembly version
5689         * device/lib/_fsmul.c: added mcs51 assembly version
5690         * device/lib/_fsdiv.c: added mcs51 assembly version
5691         * device/lib/_fseq.c: added mcs51 assembly version
5692         * device/lib/_fsneq.c: added mcs51 assembly version
5693         * device/lib/_fsgt.c: added mcs51 assembly version
5694         * device/lib/_fslt.c: added mcs51 assembly version
5695         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
5696         * device/lib/Makefile.in: add _fscmp to build
5697         * device/lib/libfloat.lib: add _fscmp to build
5698
5699 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5700
5701         * device/lib/_fs2slong.c: added mcs51 assembly version
5702         * device/lib/_fs2sint.c: added mcs51 assembly version
5703         * device/lib/_fs2schar.c: added mcs51 assembly version
5704         * device/lib/_fs2ulong.c: added mcs51 assembly version
5705         * device/lib/_fs2uint.c: added mcs51 assembly version
5706         * device/lib/_fs2uchar.c: added mcs51 assembly version
5707         * device/lib/_slong2fs.c: added mcs51 assembly version
5708         * device/lib/_sint2fs.c: added mcs51 assembly version
5709         * device/lib/_schar2fs.c: added mcs51 assembly version
5710         * device/lib/_ulong2fs.c: added mcs51 assembly version
5711         * device/lib/_uint2fs.c: added mcs51 assembly version
5712         * device/lib/_uchar2fs.c: added mcs51 assembly version
5713         * device/include/float.h: added #define to select asm vs c
5714
5715 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
5716
5717         * device/lib/printf_fast.c: improvements to float output
5718         * device/include/float.h: add defines for assembly float library
5719         * device/lib/_fsget1arg.c: receive 1 float arg
5720         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
5721         * device/lib/_fsnormalize.c: normalize a float
5722         * device/lib/_fsreturnval.c: return float, various helper routines
5723         * device/lib/_fsrshift.c: right shift a float's mantissa
5724         * device/lib/_fsswapargs.c: swap 2 floats
5725         * device/lib/Makefile.in: build these 6 new files for mcs51
5726         * device/lib/libfloat.lib: add these 6 files to the library
5727
5728 2004-12-26 Borut Razem <borut.razem AT siol.net>
5729
5730         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
5731           built by gcc 3.4.2
5732
5733 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
5734
5735         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
5736           and fully reentrant and register bank neutral.
5737         * device/lib/printf_fast.c: added float (not enabled by default),
5738           added compact/slower integer (also not enabled by default),
5739           improved size/speed of fast integer code, other minor changes
5740         * device/include/stdio.h, device/lib/Makefile.in,
5741           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
5742
5743 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
5744
5745         * src/pic16/pcode.c: declaring variables other than at the start of a
5746           block is not supported in C by VC6.
5747
5748 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
5749
5750         * applied a previous patch from Raphael Neider that wasn't included
5751         in the previous commits, which fixes infinite loops within jumptable
5752         improvements,
5753         * made some fixes that previous patches introduced
5754
5755 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
5756
5757         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
5758         that fixes an issue with AOP_PCODE asmop's offset,
5759         * (pic16_popCopyReg): update instance field too,
5760         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
5761         function of pic port,
5762         * (genCmp, genAnd, genAssign),
5763         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
5764
5765 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
5766
5767         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
5768         variables initial values to idata section,
5769         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
5770         variables in some functions. This utilizes parmBytes field of iCode
5771         structure to hold the offset of the variable in stack. (might be
5772         able to use the stack field too?)
5773         * applied patch from Raphael Neider # ### , # ###
5774         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
5775         variable initial values in idata section,
5776         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
5777         for static variables with initial value
5778         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
5779         applied fix in while loop from Raphael Neider.
5780
5781 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
5782
5783         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
5784         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
5785         * src/ds390/ralloc.c (serialRegAssign): spill bits
5786         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
5787         * support/Util/SDCCerr.c,
5788         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
5789         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
5790         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
5791
5792 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
5793
5794         * device/include/sdcc-lib.h: inserted LGPL, added includes
5795           asm/ds390/features.h and asm/mcs51/features.h
5796         * device/include/asm/default/features.h,
5797         * device/include/asm/gbz80/features.h,
5798         * device/include/asm/z80/features.h: added empty _AUTOMEM
5799           and _STATMEM
5800         * device/include/asm/ds390/features.h,
5801         * device/include/asm/mcs51/features.h: added files with defines for
5802           _AUTOMEM and _STATMEM indicating automatic and static storage class
5803         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
5804         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
5805         * src/SDCCicode.c (geniCodeCast),
5806         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
5807         * src/SDCCloop.c (loopInduction): removed unused variable lr
5808         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
5809           to convertToFcall to include char modulo (RFE 1065037), added check
5810           if left operand is unsigned and use abs of literal value
5811         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
5812           as it doesn't work after conversion from peephole.def to peephole.rul
5813         * src/mcs51/gen.c (toBoolean): added check for size,
5814           (genModOneByte): optimized code for signed char modulo a literal
5815           power of 2 (thanks to Hubert Sack),
5816           (genRRC): removed unnecessary "clr c",
5817           (genRLC): replaced "add a,acc" with cheaper "rlc a"
5818         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
5819           jump optimization,
5820           swapped rules 256.c and 256.d,
5821           extended 256.d by using new multiple checks (thanks Erik),
5822           added rules 256.e and 256.f,
5823           updated rule 261.a and 261.b to new generated code
5824         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
5825
5826 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5827
5828         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
5829           induction related bugs, including first part of bug #1074377
5830
5831 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
5832
5833         * applied patch from bug-report #1076292,
5834         * applied patches for genAnd and Goto-optimizations for Raphael
5835         Neider,
5836         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
5837         dump a less iCode information,
5838         * src/pic16/device.h (pic16_options_t): added field debgen,
5839         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
5840         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
5841         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
5842         puclic,
5843         * (various functions): added macros FENTRY and FENTRY2 to functions,
5844         to emit function prologue,
5845         * (various functions): fixed indentation,
5846         * (genNearPointerGet): fixed loading of FSR0,
5847         * (genPackBits): applied patch from Raphael Neider to fix updating
5848         of FSR0 and touching only the modified bits,
5849         * src/pic16/genarith.c (various functions): added macros FENTRY to
5850         emit function prologue in comments,
5851         * src/pic16/pcode.h: added functions debugf2, debugf3,
5852         * src/pic16/ralloc.c: partial fix for packForPush caused
5853         segmentation fault,
5854
5855 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5856
5857         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
5858           <stsp AT users.sourceforge.net> with reversed byte order
5859         * support/regression/tests/rotate.c: added (ds390 skips some tests)
5860
5861 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5862
5863         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
5864           bug #1074377
5865         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
5866         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
5867
5868 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5869
5870         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
5871
5872 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873
5874         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
5875           conditions,
5876           (setFromConditionArgs): friendly operand parser for peephole rules,
5877           (operandBaseName, operandsNotRelated): new peephole condition
5878           "operandsNotRelated" -- similar to "operandsNotSame", but takes
5879           architecture specific register naming into account, handles n-way
5880           comparisons, and supports quoted literals
5881         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
5882
5883 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5884
5885         * src/mcs51/peeph.def: fixed bug #1076940
5886
5887 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5888
5889         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
5890
5891 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5892
5893         Adding support for replacing ljmps with sjmps in jumptables
5894         generated for switch statements. For now you need to set the
5895         environment variable SDCC_SJMP_JUMPTABLE to enable this.
5896         Now 4 algorithms for mcs51 jumptable generation are used:
5897         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
5898         addresses loaded pc-relative for up to 112 cases and stack-pushing
5899         target addresses loaded with offset from dptr for up to 256 cases.
5900
5901         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
5902         * src/mcs51/main.c: adapted constants for switch table generation
5903         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
5904
5905 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
5906
5907         * device/lib/printf_large.c (_print_format): fixed bug 1073386
5908         * support/regression/tests/bug1057979.c: added test for bug 1073386
5909
5910 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5911
5912         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
5913         compilers
5914
5915 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5916
5917         * src/pic16/device.h,
5918         * src/pic16/genarith.c,
5919         * src/pic16/glue.c,
5920         * src/pic16/main.c,
5921         * src/pic16/pcode.c: applied patches #1068154 and #1070213
5922
5923 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
5924
5925         Large cummulative patch for pic16 port.
5926         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
5927         to call when a stack overflow occurs,
5928         * (malloc.h): added CVS Id tag,
5929         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
5930         variable,
5931         * added libc directory. The current version of LibC contains string
5932         functions, ctype functions and macros and some functions of the
5933         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
5934         be extensively tested in the future. Standard disclaimer here.
5935         Library is not automatically build yet. But one can build it by
5936         invoking 'make' inside the libc directory.
5937         * added ADC library under libio. Preliminary version yet.
5938
5939         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
5940         * src/pic16/gen.c (aopForRemat): asmop size is filled by
5941         aopForRemat() now and not by pic16_aopOp(),
5942         * (pic16_popGetTempReg): removed warning messgae when allocating
5943         temporary registers, its a buggy feature and will be removed,
5944         * (pic16_popGet): set register instance field in AOP_CRY,
5945         * (pic16_outBitC): fixed for results in size greater than 1,
5946         * (genUminusFloat): fixed for pic16, ported code from mcs51,
5947         * (pic16_storeForReturn): optimized return of 0,
5948         * (genCmp): experimental code for new genCmp which uses PIC18's
5949         special compare&skip instructions. Initial tests fail some times
5950         with variables grater than 1 byte in size, so new code is disabled,
5951         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
5952         a single bit,
5953         * (genCast): began a fix to optimize the casting of a bit to another
5954         bit, now assigning a bitfield to another bitfield will fail, sorry,
5955         * src/pic16/main.c: disabled the use of lr-support feature,
5956         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
5957         * added some function prototypes, added function _debugf prototype,
5958         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
5959         bits with offset (case PO_GPR_BIT),
5960         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
5961         command line,
5962         * (isBankInstruction): modified to return 0 for no banking instruction,
5963         and 1 for banking instruction,
5964         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
5965         caused stop processing pCodes after a inline assembly block,
5966         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
5967         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
5968         registers when it shouldn't,
5969         * src/pic16/ralloc.c (allocReg): add preliminary support for
5970         supporting a limited set of temporary registers,
5971
5972 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5973
5974         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
5975           genDataPointerSet): ensure assignments always copy in MSB to LSB
5976           order,
5977           (loadRegFromAop): recognize CLRH optimization,
5978           (genFunction): optimize RECEIVE iCodes in reentrant functions
5979
5980 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5981
5982         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
5983           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
5984           selected.
5985         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
5986         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
5987           contiguous with data
5988
5989 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5990
5991         * device/lib/_gptrget.c (_gptrget),
5992         * device/lib/_gptrgetc.c (_gptrgetc),
5993         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
5994           instead of sjmp to ret
5995         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
5996           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
5997
5998 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5999
6000         * .version: bumped version to 2.4.7
6001         * device/lib/_gptrget.c (_gptrget): is now _naked
6002         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
6003         * device/lib/_gptrput.c (_gptrput): is now _naked
6004         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
6005           (createFunction): fixed xstack
6006         * src/SDCCglue.c (emitMaps): set allocation required for bit area
6007         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
6008           or bit either,
6009           (geniCodeCritical): store original interrupt state in an iTemp bit
6010           var unless stack-auto
6011         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
6012         * src/SDCCmain.c (setIncludePath): added include/target to search path
6013         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
6014         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
6015           prototype,
6016           (processFuncArgs): put bit vars in bit area
6017         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
6018           unsaveRBank): fixed xstack,
6019           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
6020           (genFunction, genEndFunction): fixed xstack,
6021           (genAssign): optimization don't walk backwards through mem
6022         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
6023         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
6024         * support/regression/Makefile: also make library (for stack-auto) when
6025           making "all" and added "test-mcs51-xstack-auto"
6026         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
6027         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
6028         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
6029         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
6030         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
6031           make-library by MAKE_LIBRARY
6032         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
6033           regression tests for xstack
6034         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
6035         * support/regression/tests/critical.c: test for critical on mcs51
6036
6037 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6038
6039         * support/regression/ports/ucz80/spec.mk: use include and lib files from
6040           built version of sdcc instead of installed version
6041
6042 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6043
6044         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
6045         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
6046           vprintf.c now
6047         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
6048         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
6049           WARNING: remove device/lib/build/z80/printf.o by hand when
6050           updating from previous build!
6051         * device/lib/z80/printf.c: updated comment
6052         * support/regression/tests/bug1057979.c: test all ports now
6053         * support/regression/tests/bug1065458.c: file added
6054
6055 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6056
6057         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
6058           *_start and *_end symbols for static functions
6059
6060 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
6061
6062         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
6063           and search crt0.o in all library paths,
6064           (setIncludePath): proper handling of --nostdinc,
6065           (setLibPath): proper handling of --nostdlib
6066         * support/regression/Makefile,
6067         * support/regression/ports/ds390/spec.mk,
6068         * support/regression/ports/gbz80/spec.mk,
6069         * support/regression/ports/hc08/spec.mk,
6070         * support/regression/ports/mcs51/spec.mk,
6071         * support/regression/ports/mcs51-large/spec.mk,
6072         * support/regression/ports/mcs51-stack-auto/spec.mk,
6073         * support/regression/ports/z80/spec.mk: use include and lib files from
6074           built version of sdcc instead of installed version
6075         * doc/sdccman.lyx: fixed typo in --nostdinc
6076
6077 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
6078
6079         * src/pic/pcode.c,
6080         * src/pic/device.c,
6081         * src/pic/ralloc.c,
6082         * src/pic/gen.c : added support to generate code for struct bit fields.
6083
6084 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6085
6086         * as/xa51/xa_version.h,
6087         * device/include/errno.h,
6088         * device/include/regc515c.h,
6089         * device/lib/_itoa.c,
6090         * device/lib/_ltoa.c,
6091         * device/lib/ser_ir_cts_rts.c,
6092         * sim/ucsim/xa.src/glob.cc,
6093         * sim/ucsim/xa.src/inst_gen.cc,
6094         * sim/ucsim/xa.src/xa_bit.cc,
6095         * sim/ucsim/xa.src/xa_sfr.cc,
6096         * sim/ucsim/z80.src/inst_dd.cc,
6097         * sim/ucsim/z80.src/inst_fdcb.cc,
6098         * support/scripts/keil2sdcc.pl,
6099         * src/pic16/pic16.dsp,
6100         * src/pic16/pic16a.dsp: corrected cvs line endings
6101         * device/lib/printf_large.c: fixed bug 1057979
6102         * src/pic16/gen.c: fixed non-C standard code
6103         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
6104         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
6105         * support/regression/ports/mcs51/support.c: reload T1 asap
6106         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
6107           pdata use and clear idata startup behaviour
6108         * support/regression/tests/bug1057979.c: added
6109
6110 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
6111
6112         * device/examples/ds390/ow390/ad26.h,
6113         * device/examples/ds390/ow390/cnt1d.h,
6114         * device/examples/ds390/ow390/crcutil.c,
6115         * device/examples/ds390/ow390/ownet.h,
6116         * device/examples/ds390/ow390/owsesu.c,
6117         * device/examples/ds390/ow390/swt12.h,
6118         * device/examples/ds390/ow390/swtoper.c,
6119         * device/examples/ds390/ow390/temp10.h,
6120         * device/examples/ds390/ow390/thermodl.c,
6121         * device/examples/ds390/tinitalk/tinitalk.dsp,
6122         * device/examples/ds390/tinitalk/tinitalk.dsw,
6123         * device/examples/mcs51/clock/hw.h,
6124         * device/examples/mcs51/simple2/go.bat,
6125         * device/examples/serialcomm/windows/serial.h,
6126         * device/examples/xa51/dummy.c,
6127         * device/examples/xa51/hello.c,
6128         * device/include/80c51xa.h,
6129         * device/include/at89x051.h: corrected cvs line endings
6130
6131 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
6132
6133         * src/pic16/main.c (options): added command line --gstack, to trace
6134         stack over/under flows,
6135         * added pragma 'wparam' to allow passing first byte of function
6136         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
6137         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
6138         call to __gstack_test function and sets up the symbol as extern,
6139         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
6140         * popaop): added call to pic16_testStackOverflow,
6141         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
6142         wparamList list,
6143         * (genCall, genPcall): now all parameters are passed via stack
6144         except in functions that are pass to wparam pragma in which WREG is
6145         used too,
6146         * (genPcall): REENTRANT flag is checked to see if variable prototype
6147         contains reentrant keyword, don't call a non-reentrant function, via
6148         a reentrant function pointer or vice versa, functions are never
6149         passed via WREG,
6150         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
6151         D.Winkler,
6152         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
6153         SIGSEGV when accessing a NULL register stucture,
6154         * (pic16_printGPointerType): modified to handle UPPER modifier for
6155         function initializers, changed prototype of function to simpler one,
6156         * (pic16_printIvalFuncPtr): check to see if function is already
6157         added in externs list,
6158         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
6159         optimized a move from W to SFR with a move to the same register
6160         later after a CALL,
6161         * device/lib/pic16/debug: NEW directory, contains debug features
6162         which are enabled when linking with libdebug.lib, currently command
6163         line option --gstack enables stack pointer tracing for over/under
6164         flow, corresponding sources are in debug/gstack
6165
6166 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
6167
6168         * doc/sdccman.lyx: updated SDCC version,
6169         * (PIC16 port): update list of command line options,
6170         * src/pic16/device.h (structure pic16_options_t): added field gstack
6171         to enable stack overflow tracing on push/pops,
6172         * src/pic16/device.c (statistics structure): added statistics
6173         structure,
6174         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
6175         pic16_dump_int_registers): increase statistics counters for each
6176         * variable which is encountered
6177         * (pic16_dump_usection): emit each .udata variable to its own udata
6178         section,
6179         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
6180         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
6181         parameters via stack, otherwise use old scheme,
6182         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
6183         assembler output file,
6184         * src/pic16/main.c: added command line options --gstack to enable
6185         push/pop tracing for stack overflow,
6186         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
6187         instructions): added size of each instruction,
6188         * (pic16_countInstruction): estimate size of instructions in
6189         the_pFile list, inline assembly blocks are not counted,
6190         * (pic16_FixRegisterBanking): trace previous register usage, when
6191         banksel optimizations is greater than 0, don't emit a redudant
6192         banksel directive,
6193
6194 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
6195
6196         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
6197         * src/pic16/ralloc.c : applied same fix for pic16.
6198         * src/pic/gen.c : tidied it up a little.
6199
6200 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6201
6202         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
6203         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
6204
6205 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6206
6207         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
6208
6209 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6210
6211         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
6212         non-reentrant function __modsint in the interrupt function (thus
6213         corrupting math operations during serial I/O)
6214         * device/lib/ser_ir.c: as above, changed buffersize
6215         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
6216         256.c,d for zeroing
6217         * doc/Makefile: added option -t for rsync
6218
6219 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6220
6221         * src/SDCCast.h (struct ast),
6222         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
6223
6224 2004-10-20 Borut Razem <borut.razem AT siol.net>
6225
6226         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
6227         package
6228
6229 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
6230
6231         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
6232         makefile targets,
6233         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
6234         support functions to replace long sequences of MOVFF's from access
6235         bank registers to stack and vice versa,
6236         * src/pic16/device.h: added new field opt_flags, where optimization
6237         flags can be set to enable certain features,
6238         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
6239         * pBlock, (genFunction, genEndFunction): surroung loop for
6240         saving/loading used registers in stack with PC_INFO pCodes,
6241         INF_LREGS. Code in between can then be optimized by pCode optimizer
6242         to support function calls,
6243         * (genDataPointerSet): fixed bug which loaded float fields in
6244         structures with corrupt data,
6245         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
6246         in a standard way debug info on stderr. Feature used for developing
6247         and debugging only,
6248         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
6249         obsolete chunks of code,
6250         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
6251         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
6252         * pic16/src/pcode.c (pic16_newpCodeInfo,
6253         * (pic16_newpCodeOpLocalRegs),
6254         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
6255         feature,
6256         * (pic16_pCodeConstString): printing of the initial value of a
6257         symbol as a comment is inhibited since parsing was already done by
6258         copyStr and output is corrupt,
6259         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
6260
6261 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6262
6263         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
6264
6265 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
6266
6267         * as/mcs51/lkarea.c: removed old K&R style,
6268           (lnksect): changed check on boundary error,
6269           (lnksect2): changed check on boundary error,
6270           (lnksect2): extend XSTK to end of page if size = 1
6271         * as/mcs51/lkmain.c: removed old K&R style,
6272           (Areas51): create l_IRAM symbol
6273         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
6274         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
6275           model-mcs51-stack-auto, added model-mcs51-xstack-auto
6276         * device/lib/_mullong.c: added version to be compiled with xstack
6277         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
6278         * device/lib/mcs51/crtxclear.asm: clear pdata as well
6279         * device/lib/mcs51/crtxstack.asm: fixed comment
6280         * src/SDCCglue.c: maxInterrupts defaults to 0,
6281           (emitMaps): added pdata,
6282           (createInterruptVect): (re)moved default,
6283           (glue): added pdata,
6284           (glue): moved __start__xstack to XSTK with default size 1
6285         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
6286           and options.float_rent when options.stackAuto is set,
6287           (linkEdit): only write XDATA_NAME if provided on command line
6288         * src/SDCCmem.h,
6289         * src/SDCCmem.c: added pdata
6290         * src/port.h: added pdata_name to PORT
6291         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
6292           (saveRegisters, unsaveRegisters): removed usage of B,
6293           (genMinus): fixed accumulator clash,
6294           (genJumpTab): added comment, this needs another look
6295         * src/mcs51/gen.c: added check for "B in use" paranoia,
6296           added pushB() and popB()
6297         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
6298           chance
6299         * src/avr/main.c,
6300         * src/ds390/main.c,
6301         * src/hc08/main.c,
6302         * src/mcs51/main.c,
6303         * src/pic/main.c,
6304         * src/pic16/main.c,
6305         * src/xa51/main.c,
6306         * src/z80/main.c: (reset_regparms) made void parameter explicit and
6307           added PSEG (PAG,XDATA) or NULL to port specifier
6308         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
6309         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
6310           (_mcs51_genInitStartup): removed __start__xstack equ,
6311           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
6312         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
6313         * src/z80/gen.c (_rleAppend): fixed warnings
6314         * support/regression/tests/zeropad.c: added pdata test
6315         * .version: bumped to 2.4.6
6316
6317 2004-10-17 Borut Razem <borut.razem AT siol.net>
6318
6319         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
6320         as a part of nightly build
6321
6322 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
6323
6324         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
6325         WREG holds the first byte function parameters,
6326         * (aopForSym): take special case for symbols which are in FARSPACE
6327         but in CODESPACE too,
6328         * (assignResultValue): modified to take into account _G.useWreg,
6329         * (genCall): don't use wreg for parameter passing when function is
6330         declared as reentrant, too, added optimization INCF to stack
6331         pointer when stack parameter count is 1,
6332         * (genFunction, genEndFunction): refurnished and fixed to not using
6333         wreg for passing parameters when function has varargs or is
6334         reentrant, fixed bug with symbol name compare for generating
6335         functions in absolute address,
6336         * (pic16_storeForReturn): refurnished,
6337         * (genCmp): began writing a new version of the function, not ready
6338         yet, therefore it is disabled,
6339         * (genAssign): do not read code memory when assigning a function to
6340         a pointer function,
6341         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
6342         array of characters, not pointer,
6343         * (pic16initialComments): in debug mode emit an .ident directive for
6344         the assembler,
6345         * (_process_pragma): emit a new warning type (internal to pic16)
6346         when setting stack to default length, emit a similar warning when
6347         placing a function at absolute address and address is not word aligned
6348         * (_pic16_parseOptions): added 'return TRUE' statement,
6349         * (_pic16_linkEdit): if compiling a source, then add the source's
6350         file object, first in the list of objects to link,
6351
6352 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
6353
6354         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
6355         * src/pic/main.c : removed VC warning.
6356         * src/pic/gen.c : changed comment.
6357
6358 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
6359
6360         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
6361         reference to a deprecated symbol _GPTRREG was causing failure to
6362         link. Thanks G. M. Gallant for the info.
6363
6364 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
6365
6366         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
6367         comments for Bugs item #954788.
6368
6369 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
6370
6371         * src/pic16/device.c (pic16_dump_gsection,
6372         * pic16_groupRegistersInSection): handle symbols declared to be in
6373         access bank differently,
6374         * src/pic16/gen.c (struct _G): added field resDirect,
6375         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
6376         send values read from stack directly to result and don't allocate
6377         temporary values,
6378         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
6379         same registers,
6380         * (pic16_sameRegsOfs): NEW,
6381         * (freeAsmop): if _G.resDirect is set then do not mark registers as
6382         free because they were not allocated from temporary pool,
6383         * pic16_popRegFromString): workaround to fix a problem with
6384         allocating variables twice or never,
6385         * (genGenPointerGet): using PRODL instead of FSR0H,
6386         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
6387         instead of FSR0H,
6388         * (genAssign): take advantage of the _G.resDirect flag,
6389         * (genCast): around line 11844, use mov2f instead of directly
6390         MOVFF'ing between operands to account for literal values,
6391         * src/pic16/genutils.c: some new debug functions for gpsim have been
6392         added,
6393         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
6394         float with integer part only,
6395         * src/pic16/main.c (_process_pragma): handle pragma udata access to
6396         place variables in access bank
6397         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
6398         updated sources to reflect recent changes in gen.c
6399
6400 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
6401
6402         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
6403         sources that searched for headers in installation path, now the
6404         device/include/pic16 is used,
6405         * src/pic16/glue.c (pic16glue),
6406         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
6407         .line directives if not in debug mode, this suppresses assembler's
6408         warnings for ignored directives
6409
6410 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6411
6412         * src/port.h: made reset_regparms prototype void parameter explicit.
6413         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
6414         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
6415         * doc/sdccman.lyx: documented warning disabling and how to use
6416           printf_large to make it print floats.
6417         * device/include/stdbool.h: NEW
6418         * device/lib/_atof.c,
6419         * device/lib/_divuint.c,
6420         * device/lib/_divulong.c,
6421         * device/lib/expf.c,
6422         * device/lib/printf_large.c,
6423         * device/lib/sincosf.c,
6424         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
6425         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
6426           a completely reentrant lib.
6427
6428 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
6429
6430         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
6431         * device/include/pic16/stdio.h: fixed bug with colon
6432
6433 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
6434
6435         * device/include/pic16/stdio.h,
6436         * device/include/pic16/stdlib.h,
6437         * device/include/pic16/math.h: NEW
6438         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
6439         declared as _naked to reduce overhead
6440         * device/lib/Makefile.in (target port-specific-objects-pic16):
6441         changed * to *.* so to ignore the CVS directory,
6442         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
6443         stacked variables back in stack,
6444         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
6445         corruption
6446
6447 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
6448
6449         * .version: bumped version number to 2.4.5
6450         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
6451         * support/Util/SDCCerr.c (messages structure): added entry for
6452         W_POSSBUG2
6453
6454         Large cumulative patch for pic16 port and libraries.
6455         * device/include/pic16/sdcc-lib.h,
6456         * device/include/pic16/stdarg.h,
6457         * device/include/asm/pic16/features.h,
6458         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
6459         * device/include/pic16/float.h: changes reentrant keyword with
6460         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
6461         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
6462         updated target build-libraries to include objects from gptr,
6463         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
6464         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
6465         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
6466         all function headings,
6467         * src/SDCCmain.c: added global parameter userIncDirsSet,
6468         * (parseCmdLine): when option -I is encountered add directory to
6469         userIncDirsSet too,
6470         * src/version.awk: added space between control and long,
6471         * src/pic16/NOTES: added some notes for the port,
6472         * src/pic16/gen.c: added prototype for mov2fp function,
6473         * (fReturnpic16[]): properly named return value registers,
6474         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
6475         * (aopForSym): added code to handle symbols with onStack flag set,
6476         symbols onStack are allocated PTRSIZE bytes,
6477         * (aopFreeAsmop): handles special case where asmops are stack objects,
6478         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
6479         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
6480         added argument lock to trace flaws in allocating temporary registers
6481         when developing port,
6482         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
6483         * (pic16_popRegFromString): reenabled allocating a direct register
6484         from string,
6485         * (assignResultValue): various beautifications,
6486         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
6487         referenced function argument,
6488         * (genIpush): reenabled to allow stacked arguments, handles only
6489         ic->parmPush iCodes,
6490         * (genCall, genPcall): major changes to allow for variable argument
6491         functions, fixed a bug with falsely restoring stack pointer after
6492         returning from call,
6493         * (genFunction): pending code for critical function,
6494         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
6495         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
6496         * (genNearPointerGet): fixed bug with indirect reading, was always
6497         reading from INDF0
6498         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
6499         pointers,
6500         * (genAddrOf): rewrote code to take address of a stacked function parameter
6501         * (genCast): fixed casting to generic pointer type,
6502         * src/pic16/gen.h: added AOP_STA,
6503         * (struct asmop): added field stk,
6504         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
6505         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
6506         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
6507         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
6508         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
6509         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
6510         generic pointers,
6511         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
6512         and library paths,
6513         * (pic16_port structure): generic pointer size is set to 3,
6514         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
6515         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
6516         compiler warning,
6517         * src/pic16/ralloc.c (allocReg): prevent allocating register when
6518         operand is an iTemp,
6519
6520 2004-09-24 Martin Helmling <mh AT octo-soft.de>
6521
6522         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
6523         * debugger/mcs51/simi.c: addapt new syntax of s51
6524
6525 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
6526
6527         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
6528         * src/pic16/pcode.c: commented out some calls to free() in order to
6529         fix bug #989576,
6530
6531 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6532
6533         * src/SDCCicode.h,
6534         * src/SDCCicode.c (isiCodeInFunctionCall),
6535         * src/avr/ralloc.c (selectSpil),
6536         * src/pic/ralloc.c (selectSpil),
6537         * src/pic16/ralloc.c (selectSpil),
6538         * src/ds390/ralloc.c (selectSpil),
6539         * src/hc08/ralloc.c (selectSpil),
6540         * src/xa51/ralloc.c (selectSpil),
6541         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
6542         stack in the middle of a function call sequence (fixes bug #1020268)
6543         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
6544         costs associated with the minimum switch case.
6545
6546 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6547
6548         * src/SDCC.lex: fixed bug #1030549
6549
6550 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6551
6552         * src/SDCCcse.h (struct cseDef),
6553         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
6554         over a function call if the CSE is derived from a symbol whose
6555         address has been taken (fixes bug #1029883)
6556         * support/regression/tests/bug-1029883: a new regression test for
6557         this bug
6558
6559 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6560
6561         * src/hc08/gen.c (emitinline): fixed bug #1029778
6562         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
6563         to a cast object is no longer a syntax error ("fixes" bug #1030006,
6564         and starts toward RFE #905167)
6565
6566 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
6567
6568         * src/pic16/gen.c (mov2f): New function to move an operand to
6569         another without considering if it is a literal or a register,
6570         * (pic16_sameRegs): don't check if they are both AOP_REG,
6571         * (AccRsh): removed andmask=0 lines,
6572         * (genLeftShift): duplicated to be improved in future versions,
6573         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
6574         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
6575         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
6576         * (pic16initMnemonics): added initialization for POC_INFSNZW,
6577         * (insertBankSwitch): fixed inserting banksel directives algorithm
6578         for instructions that follow a skip instruction, this fixes a report
6579         for broken subtraction code generation,
6580         * src/pic16/ralloc.c (deassignLRs): do not free register if current
6581         iCode is a left op, just in case result and right share the same
6582         registers
6583
6584 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6585
6586         * src/hc08/main.c,
6587         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
6588         preservation of HX
6589         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
6590         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
6591         on 2004-09-12; it was buggy
6592
6593 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
6594
6595         * src/SDCCsymt.h: removed RESULT_CHECK
6596         * src/SDCCast.c,
6597         * src/SDCCglue.c,
6598         * src/SDCCval.c,
6599         * src/pic/glue.c,
6600         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
6601
6602 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
6603
6604         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
6605         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
6606         configuration values no more rejected by compiler, they are assigned
6607         to configuration registers with a warning message instead,
6608         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
6609         the for-loop so last conf register is emitted too,
6610         * (_pic16_initPaths): link library libsdcc.lib by default,
6611         * (_hasNativeMulFor): modified test for multiplication according to
6612         Raphael Neider's remarks. Integer multiplication is also done with
6613         support functions,
6614         * device/include/pic16/pic18fregs.h: corrected type error in while
6615         testing and including 18f6720 header file
6616
6617 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
6618
6619         * src/pic16/device.h (pic16_options): removed field use_crt,
6620         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
6621         until an optimization to handle single bits is added,
6622         * (pic16_loadFSR0): moved before genUnpackBits,
6623         * (genAnd): some white lines removed,
6624         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
6625         leave_reset flags in pic16_options when using crt modules,
6626
6627 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
6628
6629         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
6630           for bugs 898889 & 979599. Also used some safer print instructions.
6631
6632 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
6633
6634         * src/pic16/device.h (pic16_options_t): added field use_crt,
6635         crt_name, no_crt,
6636         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
6637         catch a probable future bug,
6638         * src/pic16/gen.c: aopIdx function commented out,
6639         * (genAssign): commented out old code which used aopIdx,
6640         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
6641         code, added if conditionals to take into account the --use-crt
6642         command line options,
6643         * src/pic16/main.c (pic16_optionsTable): added new command line
6644         options, --use-crt= and --no-crt,
6645         * (_pic16_linkEdit): now the proper crt object is added in the
6646         linker command line except than when --no-crt is specified,
6647         * src/pic16/pcode.c,
6648         * src/pic16/pcode.h: added some structures and functions for a new
6649         optimization scheme to compansate for instruction overhead between
6650         same iCodes, this scheme is currently under development and is not
6651         working in any way,
6652         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
6653         to && operator,
6654         * device/lib/pic16/startup/crt0i.c,
6655         * device/lib/pic16/startup/crt0iz.c: added global char variable
6656         __uflags to force the generation of an idata section
6657
6658 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
6659
6660         * doc/Makefile,
6661         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
6662         * doc/sdccman.lyx: updated sdcc version to 2.4.4
6663
6664 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6665
6666         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
6667         Frieder) and clarified the default code optimization mode
6668
6669 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6670
6671         * src/SDCC.lex (doPragma, process_pragma),
6672         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
6673         "opt_code_size", and "opt_code_balanced"
6674         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
6675         regrouped options by category, added support for category headers
6676         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
6677         and "--opt-code-size"
6678         * doc/sdccman.lyx: documented these new options and pragmas
6679         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
6680         preference into account
6681
6682 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6683
6684         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
6685           geniCodePreDec): Fixed bug 904237 by generating a warning
6686         * src/SDCCerr.h,
6687         * src/SDCCerr.c: added warning W_SIZEOF_VOID
6688
6689 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
6690
6691         * src/pic/device.c : When no max ram set validate full memory range.
6692         * src/pic/pcode.c,
6693         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
6694
6695 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6696
6697         * device/lib/_gptrget.c,
6698         * device/lib/_gptrput.c: updated comment
6699         * device/lib/calloc.c,
6700         * device/lib/free.c,
6701         * device/lib/malloc.c,
6702         * device/lib/realloc.c: added LGPL, made them reentrant-safe
6703         * src/SDCCcse.c (cseBBlock),
6704         * src/SDCCicode.c (printOperand, geniCodeArray),
6705         * src/SDCCicode.h (struct operand): fixed bug 868103
6706         * support/regression/tests/bug-868103.c: added
6707         * src/SDCCast.c (searchLitOp),
6708         * src/SDCCcse.h (struct cseDef),
6709         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
6710         * src/SDCCicode.h (struct operand),
6711         * src/SDCCsymt.h (struct sym_link),
6712         * src/avr/gen.c (hasInc),
6713         * src/ds390/gen.c (hasInc),
6714         * src/hc08/gen.c (genPlusIncr, hasInc),
6715         * src/mcs51/gen.c (hasInc),
6716         * src/pic16/glue.c (pic16_printIvalChar),
6717         * src/pic16/ralloc.c (regWithIdx),
6718         * src/xa51/gen.c (hasInc) : removed warnings
6719         * src/SDCCast.c (createBlock): added comment ???
6720         * src/hc08/ralloc.c: updated comments
6721
6722 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6723
6724         * doc/sdccman.lyx: updated section on switch statements, added
6725         section about semaphore locking
6726         * doc/Makefile: added option -info for latex2html
6727         * device/lib/_gptrget.c,
6728         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
6729
6730 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6731
6732         * src/pic/device.h,
6733         * src/pic/device.c,
6734         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
6735          maxram is less than 0x100.
6736
6737 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6738
6739         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
6740
6741 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6742
6743         * src/port.h,
6744         * src/mcs51/main.c,
6745         * src/ds390/main.c,
6746         * src/z80/main.c,
6747         * src/hc08/main.c,
6748         * src/pic/main.c,
6749         * src/pic16/main.c,
6750         * src/avr/main.c,
6751         * src/xa51/main.c
6752         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
6753         a jump table is the best form for a switch statement, including
6754         automatic insertion of missing cases to make the case range
6755         continuous. Developed in collaboration with Frieder Ferlemann.
6756
6757 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6758
6759         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
6760         accumulator result if it needs sign extension
6761
6762 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6763
6764         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
6765
6766 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6767
6768         * device/lib/gbz80/printf.c,
6769         * device/lib/z80/printf.c: removed define for NULL
6770
6771 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6772
6773         * as/xa51/xa_link.c,
6774         * device/examples/ds390/ow390/ad26.c,
6775         * device/examples/ds390/ow390/cnt1d.c,
6776         * device/examples/ds390/ow390/counter.c,
6777         * device/examples/ds390/ow390/ds2480.h,
6778         * device/examples/ds390/ow390/ds2480ut.c,
6779         * device/examples/ds390/ow390/findtype.c,
6780         * device/examples/ds390/ow390/gethumd.c,
6781         * device/examples/ds390/ow390/owllu.c,
6782         * device/examples/ds390/ow390/ownetu.c,
6783         * device/examples/ds390/ow390/swt12.c,
6784         * device/examples/ds390/ow390/swtloop.c,
6785         * device/examples/ds390/ow390/temp.c,
6786         * device/examples/ds390/ow390/temp10.c,
6787         * device/examples/ds390/ow390/thermo21.c,
6788         * device/examples/ds390/ow390/tinilnk.c,
6789         * device/examples/ds390/ow390/tstfind.c,
6790         * device/examples/serialcomm/windows/serial.cpp,
6791         * device/examples/serialcomm/windows/test_serialcomm.cpp,
6792         * device/include/reg51.h: fixed line endings for cvs
6793
6794 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6795
6796         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
6797         packRegsForAccUse, packRegisters): new accumulator register
6798         packing algorithm
6799         * support/regression/ports/hc08/support.c (_putchar): suppress
6800         warning of unused variable
6801         * src/SDCCicode.c: added SWAP entry to codeTable
6802
6803 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
6804
6805         * device/lib/sprintf.c: forgot to add this file before previous commit
6806
6807 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
6808
6809         * src/pic16/gen.c (genPackBits): added operand right in function
6810         parameters, load result directly if p_type is POINTER (that is
6811         called by genNearPointerSet)
6812         * (genUnPackBits): added operand left in function parameters,
6813         * (genNearPointerGet, genNearPointerSet): prevent the loading of
6814         FSR0 if accessing bitfields,
6815
6816 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
6817
6818         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
6819           _print_format; updated printf, sprintf, vsprintf
6820         * device/include/asm/default/features.h: corrected comment/define
6821         * device/lib/Makefile.in: added sprintf.c
6822         * device/lib/libsdcc.lib: added sprintf module
6823         * device/lib/printf_large.c,
6824         * device/lib/vprintf.c,
6825         * device/lib/sprintf.c: totally refactored printf_large and vprintf
6826           into these 3 files
6827         * support/regression/Makefile: changed ALL_PORTS into a usefull default
6828         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
6829         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
6830           hc08 test
6831         * support/regression/tests/zeropad.c: define idata as data for hc08
6832
6833 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6834
6835         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
6836         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
6837         labels are referenced at least once (even if a reference is not found)
6838         * src/hc08/gen.c (emitcode): set isComment flag for comments
6839         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
6840         loads), rules 6a..6b (optimize jumps to return)
6841
6842 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6843
6844         * device/lib/acosf.c (acosf),
6845         * device/lib/asinf.c (asinf),
6846         * device/lib/atanf.c (atanf),
6847         * device/lib/ceilf.c (ceilf),
6848         * device/lib/cosf.c (cosf),
6849         * device/lib/coshf.c (coshf),
6850         * device/lib/cotf.c (cotf),
6851         * device/lib/fabsf.c (fabsf),
6852         * device/lib/floorf.c (floorf),
6853         * device/lib/log10f.c (log10f),
6854         * device/lib/logf.c (logf),
6855         * device/lib/sinf.c (sinf),
6856         * device/lib/sinhf.c (sinhf),
6857         * device/lib/sqrtf.c (sqrtf),
6858         * device/lib/tanf.c (tanf),
6859         * device/lib/tanhf.c (tanhf),
6860         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
6861         replaced all instances of "reentrant" in the library functions
6862         defined in math.h with this macro.
6863         * support/regression/tests/float_trans.c: reenabled test for hc08
6864
6865 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6866
6867         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
6868         erroneously deleted
6869
6870 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6871
6872         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
6873         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
6874         multi-byte volatile operands are used
6875         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
6876         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
6877         initialization to area GSINIT0 so that it would always precede
6878         any static initializers in GSINIT
6879         * support/regression/tests/zeropad.c: fixed idata define for hc08
6880         * support/regression/tests/bug-927659.c,
6881         * support/regression/tests/float_trans.c: disabled tests for hc08
6882         pending missing library routines
6883         * .version: increased version number to 2.4.4 - hc08 port now passes
6884         regression tests
6885
6886
6887 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
6888
6889         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
6890         * Makefile.common.in,
6891         * as/Makefile,
6892         * as/hc08/Makefile.in,
6893         * as/mcs51/Makefile.in,
6894         * as/z80/Makefile.in,
6895         * debugger/mcs51/Makefile.in,
6896         * device/include/Makefile.in,
6897         * device/lib/Makefile.in,
6898         * doc/Makefile,
6899         * link/Makefile,
6900         * link/z80/Makefile.in,
6901         * packihx/Makefile.in,
6902         * sim/ucsim/main_in.mk,
6903         * sim/ucsim/avr.src/Makefile.in,
6904         * sim/ucsim/doc/Makefile.in,
6905         * sim/ucsim/gui.src/serio.src/Makefile.in,
6906         * sim/ucsim/hc08.src/Makefile.in,
6907         * sim/ucsim/s51.src/Makefile.in,
6908         * sim/ucsim/xa.src/Makefile.in,
6909         * sim/ucsim/z80.src/Makefile.in,
6910         * src/Makefile.in,
6911         * support/cpp2/Makefile.in,
6912         * support/librarian/Makefile,
6913         * support/makebin/Makefile: added DESTDIR to the install path proposed
6914         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
6915         * doc/sdccman.lyx: added DESTDIR documentation
6916
6917 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
6918
6919         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
6920         instruction for interrupt handlers, use fast returns when returning
6921         from high priority interrupts
6922
6923 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6924
6925         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
6926         code generation
6927         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
6928         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
6929         bugs, ported much of Bernhard's code from mcs51
6930         * src/mcs51/gen.c (genSend),
6931         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
6932         than one when calling a reentrant function
6933         * device/lib/_mullong.c: defined an alternate struct layout for big
6934         endian ports (hc08)
6935
6936 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6937
6938         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
6939         test
6940
6941 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6942
6943         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
6944         are sane and complete before asking the port its prefered parameter
6945         passing method (fixes bug #1017633)
6946         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
6947         and _ret3
6948
6949 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6950
6951         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
6952         problem in bitfields >= 8 bits.
6953
6954 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6955
6956         * src/SDCCsymt.c: undid changes that were not meant to be committed
6957
6958 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6959
6960         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
6961
6962 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6963
6964         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
6965           copied and wrong bit got inverted
6966
6967 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6968
6969         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
6970         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
6971         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
6972         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
6973         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
6974         assignments to bitfields at known addresses
6975         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
6976         reads from bitfields at known addresses
6977         * src/hc08/ralloc.c (packRegisters),
6978         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
6979         genhc08Code): optimize pointer get values used as conditionals
6980         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
6981         and branch
6982
6983 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6984
6985         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
6986         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
6987         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
6988         as conditionals
6989
6990 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6991
6992         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
6993
6994 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6995
6996         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
6997         related problems
6998
6999 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
7000
7001         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
7002
7003 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7004
7005         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
7006         mcs51 port
7007
7008 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7009
7010         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
7011
7012 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7013
7014         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
7015         cases use more compact code.
7016
7017 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
7018
7019         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
7020
7021 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7022
7023         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
7024
7025 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7026
7027         * src/SDCCsymt.h,
7028         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
7029         parameter of changePointer() from symbol* to sym_link*
7030         * src/SDCCast.c (decorateType): call changePointer() for CAST op
7031         * src/SDCCsymt.c (compareType): void* type is castable to other
7032         pointers, but not necesarily an exact match.
7033         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
7034         is no longer blindly treated as an exact match.
7035         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
7036
7037 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
7038
7039         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
7040
7041 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
7042
7043         * src/pic/gen.c,
7044         * src/pic/pcode.c,
7045         * src/pic/ralloc.h,
7046         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
7047
7048 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
7049
7050         * src/pic/device.c,
7051         * src/pic/device.h,
7052         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
7053
7054 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7055
7056         * src/mcs51/gen.c (emitcode): fixed bug #992819
7057
7058 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
7059
7060         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
7061           there's no need to make it worse
7062
7063 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7064
7065         * src/mcs51/ralloc.c (deassignLR),
7066         * src/ds390/ralloc.c (deassignLR),
7067         * src/hc08/ralloc.c (deassignLR),
7068         * src/z80/ralloc.c (deassignLR),
7069         * src/pic/ralloc.c (deassignLR),
7070         * src/pic16/ralloc.c (deassignLR),
7071         * src/avr/ralloc.c (deassignLR),
7072         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
7073         rlivePoint): fixed another part of bug #971834
7074
7075 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7076
7077         * src/z80/main.c: enabled "critical" keyword
7078         * src/z80/mappings.i,
7079         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
7080         functions (fixes bug #979646)
7081         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
7082
7083 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7084
7085         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
7086           such as c:\mydir.
7087
7088 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
7089
7090         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
7091           doesn't disable too much optimizations
7092
7093 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7094
7095         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
7096
7097 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
7098
7099         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
7100
7101 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7102
7103         * src/pic/gen.c tidied up tabs
7104         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
7105         * src/pic/main.c tidied up tabs
7106         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
7107         * src/pic/pcoderegs.c tidied up tabs
7108         * src/pic/ralloc.c tidied up tabs
7109
7110 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
7111
7112         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
7113         to S_FIXED for pic16 port and when symbol is not in level 0,
7114         allocate for S_REGISTER storage class and pic16 port, too,
7115         * src/pic16/device.h: prototype for checkSym,
7116         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
7117         * (pic16_assignConfigWordValue): test the value and the mask to
7118         validate that the value is suitable for the configuration word,
7119         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
7120         collect extern declared symbols, don't emit symbol twice, check
7121         first if symbol is in publics set first,
7122         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
7123         * added command line '--fstack' which enables an experimental
7124         feature for stack access, too buggy to be used yet...
7125         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
7126         * (pic16_allocDirReg): when register has storage class S_REGISTER
7127         allocate in pic16_dynAccessRegs,
7128         * device/include/pic16/pic18f????.h: modified configuration word
7129         naming convention, words started as CONFIG0H but should be CONFIG1H
7130
7131 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7132
7133         * device/include/mcs51reg.h: fixed bug 970993
7134
7135 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
7136
7137         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
7138         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
7139         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
7140         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
7141         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
7142         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
7143           error/warning numbers,
7144           added function setWarningDisabled()
7145         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
7146         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
7147           _memcmp.c _memmove.c calloc.c realloc.c free.c
7148         * support/regression/tests/malloc.c: added tests for new functionality
7149         * support/regression/tests/zeropad.c: added tests for truncated initializers
7150           and initialized char arrays starting with '\x0'
7151         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
7152
7153 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
7154
7155         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
7156
7157 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7158
7159         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
7160         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
7161         peephole 177.e. Thanks to anonymous
7162
7163 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
7164
7165         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
7166         function isn't used in the source but referenced as a
7167         variable initializer then declare it as extern in .asm file
7168
7169 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
7170
7171         * .version: increased version number to 2.4.3
7172
7173         Adding version extension according to ChangeLog CVS revision
7174         * src/Makefile.in (target all): added dependency 'version.h'
7175         * (rule version.h): added rule to create version.h from ChangeLog,
7176         * (rule dep): added dependency version.h,
7177         * src/version.awk: AWK script to create version.h
7178         * src/SDCCdwarf2.c (dwWriteModule),
7179         * src/SDCCglue.c (initialComments),
7180         * src/SDCCmain.c (printVersionInfo): modified to write after
7181         version string the version extension number,
7182         * src/SDCCutil.c: included "version.h"
7183         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
7184         number,
7185         * src/SDCCutil.h: added prototype for getBuildNumber
7186
7187         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
7188         includeDirsSet, too,
7189         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
7190         const char [] is found in function prototype...
7191
7192         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
7193         moving to WREG with source is already in WREG,
7194         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
7195         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
7196         * (aopForSym): stack'ed symbols are partially supported, added
7197         if-clause to support symbols in FARSPACE,
7198         * (sameRegs): added test for AOP_ACC to see if registers are same,
7199         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
7200         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
7201         * (pic16_popRegFromString): will not allocate a new register if it
7202         doesn't find one by name, bug may have introduced...
7203         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
7204         * (genIpush): revived to use pic16 port's stack,
7205         * (genAddrOf): added incomplete case for stack'ed operand,
7206         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
7207         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
7208         can handle multibyte operands,
7209         * src/pic16/glue.c (pic16_printIval*): some debug info added,
7210         * (pic16initialComments): added message for MPLAB compatibility
7211         mode enabled,
7212         * src/pic16/main.h: prototype for pic16_mplab_comp,
7213         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
7214         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
7215         * (_pic16_linkEdit): NEW, handles link stage, transferred here
7216         because of increased complexity of procedure,
7217         * (_process_pragma): stack pragma changed to format 'stack pos len',
7218         emit symbol '_stack_end' to conform with gplink,
7219         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
7220         to search for register,
7221         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
7222         PO_GPR_REGISTER,
7223         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
7224         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
7225         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7226         case for PO_GPR_REGISTER,
7227         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
7228         dies, the new era is ahead !...
7229         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
7230         pic16_dynInternalRegs,
7231         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
7232         * (pic16_allocDirReg): minor optimizations and bug fixes,
7233         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
7234
7235         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
7236         load stack and frame pointer with address of 'stack_end' symbol
7237
7238 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
7239
7240         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
7241         without source code but only variable initializers
7242
7243 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
7244
7245         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
7246         external are not declared as extern to reduce overhead while linking
7247
7248 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
7249
7250         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
7251
7252 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
7253
7254         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
7255           Yee Keat for the patch
7256         * src/SDCCast.c (decorateType): fixed bug #979599
7257         * src/ds390/gen.h: removed local fReturnSizeDS390
7258         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
7259         * src/ds390/gen.c (genAnd, genOr, genXor),
7260         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
7261
7262 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
7263
7264         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
7265         add relFilesSet to $3, manipulate $2 to handle linking of object
7266         files without source files in command line,
7267         * device/include/pic16 (all headers): added ID location macros,
7268         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
7269         entries for ID location bytes,
7270         * (pic16_assignIdByteValue): NEW,
7271         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
7272         added field dumpcalltree to pic16_options_t,
7273         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
7274         is used instead of pic16_Gstack_base_addr, check if (ifx) before
7275         emitting rFalseIfx label after check_carry label,
7276         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
7277         pic16_emitDIRegs), NEW
7278         * (pic16glue): dump .calltree file when option --calltree found,
7279         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
7280         * (_pic16_genAssemblerPreamble): emit ID locations after
7281         configuration registers,
7282         * (pic16_linkCmd): modifications of the link command,
7283         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
7284         * (pic16_pCodeInitRegisters): don't init stack registers,
7285         * (pic16_findPrevInstruction): fixed bug,
7286         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
7287         bug with immediate registers,
7288         * (buildCallTree): traces stack push and pop,
7289         * (pct2): dump also stack usage for each function,
7290         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
7291         * (pic16_allocDirReg): various modifications,
7292         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
7293         fixed to 1,
7294
7295 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
7296
7297         * src/pic16/pcode.c: removed buggy double colon
7298
7299 2004-07-01 Borut Razem <borut.razem AT siol.net>
7300
7301         * support/scripts/sdcc.nsi: added include/pic16 to setup
7302
7303 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
7304
7305         * device/lib/Makefile.in: fixed bug in target objects-pic16,
7306         * device/lib/pic16/Makefile: prefixed with dash (-) command under
7307         target 'clean',
7308         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
7309         specific command line arguments. Also added sample lkr script
7310         for placing a variable at a specific memory bank.
7311         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
7312         at a specific memory bank,
7313         * (pic16_dump_isection): fixed bug which caused string literals to
7314         be omitted when dumping idata section,
7315         * (pic16_groupRegistersInSection): added code to handle registers
7316         in specific memory banks,
7317         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
7318         public, all references are renamed too,
7319         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
7320         AOP_DPTR2,
7321         * (pic16_storeForReturn): added case to handle when dest is WREG,
7322         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
7323         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
7324         pic16_rel_udata, check to see if that register is marked as being
7325         a member of a specific memory bank,
7326         * (pic16_printIvalCharPtr): added code to add string literals either
7327         to code or the idata sections,
7328         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
7329         also accept the 'udata' pragma,
7330         * src/pic16/main.h: new structure types sectName and sectSym
7331         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
7332         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
7333         * (pic16_findPrevInstruction): fixed, it returned nothing,
7334         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
7335         instruction combinations,
7336         * (pic16_FixRegisterBanking): heavily reorganised,
7337         * (pic16_AnalyzeBanking): if generating banksel directives is
7338         disabled, then don't call FixRegisterBanking at all,
7339         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
7340         completely removed,
7341         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
7342
7343 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
7344
7345         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
7346         Phuah Yee Keat <yk.phuah AT nestac.com>
7347
7348 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7349
7350         * src/pic16/glue.c (pic16createInterruptVect): function now emits
7351         correctly the IVT even if it is relocated to some other location
7352
7353 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7354
7355         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
7356         * device/include/pic16/pic18f2220.h: NEW,
7357         * device/lib/pic16/libdev/pic18f2220.c: NEW,
7358         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
7359         * src/pic16/device.c (struct Pics16): added info for 18f2220,
7360         * src/pic16/device.h (struct pic16_options): added ivt_loc and
7361         nodefaultlibs, ivt_loc is the location of the interrupt vector
7362         table, and nodefaultlibs signs that default libraries should not be
7363         linked in link stage,
7364         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
7365         according to --ivt-loc argument,
7366         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
7367         when pragma stack is found,
7368
7369 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7370
7371         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
7372         256 (range check), 257 (do while), 258.a-f (bit banging
7373         f.e. on 3-wire SPI bus)
7374
7375 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7376
7377         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
7378         variables used exclusively within a loop
7379
7380 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
7381
7382         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
7383
7384 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7385
7386         * src/SDCClrange.c (computeClash): fixed bug #971834
7387
7388 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7389
7390         * src/mcs51/gen.c (genCmp): fixed bug #975903
7391         * src/hc08/gen.c (operandsEqu),
7392         * src/ds390/gen.c (operandsEqu),
7393         * src/z80/gen.c (operandsEqu),
7394         * src/pic/gen.c (operandsEqu),
7395         * src/pic16/gen.c (operandsEqu),
7396         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
7397         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
7398
7399 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7400
7401         * src/SDCCcse.c (cseBBlock): fixed bug #966963
7402
7403 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
7404
7405         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
7406         default case in switch statement,
7407         * glue.c (pic16_initPointer): expr is initialised via decoarteType
7408         to eliminate problem with initialisation of pointers, but problem
7409         still exists,
7410         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
7411         * (emitStaticSegment): removed various lines emitting debug info,
7412         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
7413         added processor registers for utilizing EEPROM,
7414         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
7415         configurable and set 8
7416
7417 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
7418
7419         * .version: increased version number to 2.4.2,
7420
7421         Cumulative patch for pic16 port
7422         * src/pic16/device.c: changed scheme to dump initial values for
7423         variables in idata segment, all print_idata* functions were removed,
7424         now the pic16_printIval* will be called,
7425         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
7426         * _pic16_printPointerType, pic16_printPointerType,
7427         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
7428         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
7429         NEW, similar to the respective functions in SDCCglue.c,
7430         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
7431         way, emitting hex bytes,
7432         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
7433
7434 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435
7436         * src/avr/ralloc.c (serialRegAssign),
7437         * src/xa51/ralloc.c (serialRegAssign),
7438         * src/pic/ralloc.c (serialRegAssign),
7439         * src/pic16/ralloc.c (serialRegAssign),
7440         * src/hc08/ralloc.c (serialRegAssign),
7441         * src/z80/ralloc.c (serialRegAssign),
7442         * src/ds390/ralloc.c (serialRegAssign),
7443         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
7444
7445 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7446
7447         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
7448         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
7449
7450 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
7451
7452         Cumulative patch for pic16 port:
7453         * src/pic16/device.h (typedef PIC16_device) modified fields for
7454         defining microcontrollers,
7455         * src/pic16/device.c: added new info for all devices in Pics16 array,
7456         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
7457         to be optimised out by the pCode optimiser,
7458         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
7459         specially, bug reported by G.M. Gallant,
7460         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
7461         as force'd so that cannot be optimised out by pCode optimiser,
7462         * src/pic16/pcode.c,
7463         * src/pic16/pcodepeeph.c,
7464         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
7465         they are disabled by default, but can be enabled explicit with
7466         command argument --denable-peeps, for testing,
7467         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
7468         --pomit-ivt in COMPILE_FLAGS
7469
7470 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7471
7472         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
7473           compilation on MSVC
7474
7475 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7476
7477         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
7478
7479 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7480
7481         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
7482         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
7483
7484 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
7485
7486         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
7487         would only assign 0x300001 register.
7488
7489 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
7490
7491         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
7492         in COMPILE_FLAGS. Thanks to G. Gallant for report.
7493
7494 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7495
7496         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
7497         for ds80c400
7498         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
7499         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
7500         added peephole 254 (left shift), 255 (jump table)
7501
7502 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
7503
7504         * device/lib/Makefile.in: removed comment line with model-pic16,
7505         * (target port-specific-objects-pic16): the libraries and objects
7506         are copied to the build directory form the device/lib/pic16/bin
7507         directory
7508
7509         Cumulative patch concerning pic16 port:
7510         * library directory has been re-organized,
7511         * added support for PIC18F1220,
7512         * added headers and library sources for chips 18f1220,18f6520,
7513         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
7514
7515         * configuration registers setting has changed, now each supported
7516         device has a complete description of the registers it uses,
7517         * all initialisations are moved to idata sections, these section
7518         can be absolute or relocatable,
7519         * fixed initialisation of codespace variables,
7520         * fixed warning about PCLATU and gpsim,
7521         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
7522         * (genAssign): use table reads when assigning from variables in codespace,
7523         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
7524         char/int variables placed in codespace,
7525         * (pic16_emitConfigRegs): NEW, emits a list with configuration
7526         registers set in .asm file, no need for --pomit-config-words anymore,
7527         * (pic16glue): some 8051 legacy segments are commented out
7528         (to be removed completely),
7529         * added support for alternative assembler and linker with --asm=
7530         and --link= command line arguments,
7531         * peepholes are disabled automatically in the port, no need to
7532         specify on command line,
7533         * port supports natively char/int/long multiplication, but converts
7534         all divisions to support functions,
7535         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
7536         to the file set in variable $2,
7537         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
7538         strings in ASCII format and not in hex,
7539         * ralloc.c (serialRegAssign): added a triplet of conditional calls
7540         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
7541         allocate proper register if iCodes aren't temporary,
7542
7543 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
7544
7545         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
7546
7547 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
7548
7549         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
7550         is commented out
7551
7552 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7553
7554         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
7555         computed address is reused
7556         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
7557         multi-byte bitfields
7558
7559 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7560
7561         * src/z80/gen.c: (genArrayInit): must check for pointers too
7562
7563 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7564
7565         * support/regression/tests/zeropad.c: never meant to commit the
7566           nestedstruct test: removed, added check for GCC version
7567
7568 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
7569
7570         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
7571         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
7572         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
7573           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
7574           bugs 928906 and 954082 half-empty initializers
7575         * src/SDCCsymt.h,
7576         * src/SDCCsymt.c (getAllocSize): added for above fix
7577         * src/z80/gen.c (genArrayInit): fixed bug 741044
7578         * support/regression/tests/zeropad.c: added tests
7579
7580 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
7581
7582         * src/pic16/device.c (pic16_dump_section): corrected bug which
7583         caused some symbols of the libraries to be misplaced
7584
7585 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7586
7587         * src/pic16/glue.c,
7588         * src/pic16/ralloc.h,
7589         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
7590         to fix conflict with pic port
7591
7592 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7593
7594         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
7595         externs configuration variables,
7596         * src/pic16/ralloc.h,
7597         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
7598         prototype in header, commented out some debug messages
7599
7600 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
7601
7602         * src/pic16/glue.c,
7603         * src/pic16/main.c,
7604         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
7605         for gpasm COFF object generation. Thanks to D. Hawkins for
7606         his patch info
7607
7608 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7609
7610         * src/ds390/main.c,
7611         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
7612         Brock for spotting this)
7613         * src/ds390/gen.c (genEndFunction),
7614         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
7615         interrupt handler and critical. Disable push/pop optimizations when
7616         peephole optimizations disabled.
7617
7618 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7619
7620         Updated pic16 library sources and headers.
7621         * device/lib/pic16/pic18f*/ ,
7622         * device/include/pic16/*.h: modified to handle structured SFR
7623         definitions
7624
7625 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7626
7627         * src/port.h (PORT structure): added hook initPaths, now each
7628         port can declare its own default search paths,
7629         which can been seen with the --print-search-dirs option,
7630         see pic16 port for example,
7631         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
7632         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
7633         * (doPrintSearchDirs): NEW, replaces in a central manner the
7634         printing of search dirs which was split in set*Paths functions,
7635         * (main): added call to port->initPaths and doPrintSearchDirs,
7636         * src/avr/main.c,
7637         * src/ds390/main.c,
7638         * src/hc08/main.c,
7639         * src/izt/i186.c,
7640         * src/izt/tlcs900h.c,
7641         * src/mcs51/main.c,
7642         * src/pic/main.c,
7643         * src/pic16/main.c: modified port structures to reflect addition of
7644         initPaths hook,
7645
7646         * src/pic16/device.c (regCompare): registers are finally sorted by name,
7647         * (pic16_dump_section): for registers in same address reserve memory once,
7648         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
7649         to no_banksel,
7650         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
7651         result is greater in size than right or left,
7652         * (pic16_genUMult8X8_8): there are some cases where the result can
7653         be 16 bits size, so handle these,
7654         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
7655         * (pic16_outBitC): modified to emit pcodes,
7656         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
7657         or not,
7658         * (genDivOneByte): implemented algorithm to divide 8-bits,
7659         * (genCmp): uncommented goto, but issues still exist,
7660         * (genAnd): fixed a bug with variables >8bits,
7661         * (genPackBits): optimization added that uses BCF/BSF to change a
7662         single bit,
7663         * (genAssign): fixed bug when assigning floating point literals,
7664         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
7665         __sdcc_gsinit_startup label,
7666         * src/pic16/main.c (_pic16_init): removed search directory
7667         initialisations,
7668         * (_pic16_initPaths): NEW, used to initialise search directories,
7669         * (_hasNativeMulFor): support functions for all except char/int
7670         multiplication, and char division,
7671         * (PIC16_port struct): modified entry for native mul support,
7672         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
7673         no_banksel option,
7674         * (buildCallTree): call to register_usage is ifdef'ed out,
7675
7676 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7677
7678         * device/include/string.h: applied Stas Sergeev's patch to make this
7679         header file compatible with the preprocessor -Wundef option
7680         * src/SDCCmain.c (main): abort compilation if preprocessor reports
7681         failure (fixes bug #941458)
7682
7683 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7684
7685         * src/SDCCopt.c (killDeadCode): fixed bug #907733
7686         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
7687         that the variable, not the function, should be static
7688         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
7689         to be consistent with non-literal case
7690
7691 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7692
7693         * src/SDCCast.c (isConformingBody): fixed bug #949967
7694         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
7695         convilong): fixed bug #952086
7696
7697 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * src/SDCCmem.c (allocVariables): fixed bug #955321
7700
7701 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7702
7703         * src/hc08/main.c (_hc08_genAssemblerEnd),
7704         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
7705         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
7706         completely eliminated the use of a temporary file
7707         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
7708         when more than one file linked
7709         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
7710
7711 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7712
7713         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
7714         which fixes bug #543481
7715         * support/regression/tests/bug-751703.c: fixed comments left from a
7716         cut and paste error
7717         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
7718         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
7719         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
7720         scopes
7721         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
7722         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
7723         are now changed to underscores in moduleName
7724
7725 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7726
7727         * as/mcs51/lkmem.c: better fix for bug #954173
7728
7729 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7730         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7731
7732         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
7733         * device/include/c8051f000.h,
7734         * device/include/c8051f120.h,
7735         * device/include/c8051f300.h,
7736         * device/include/c8051f310.h,
7737         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
7738         PWM16) and detab'ed
7739
7740 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7741
7742         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
7743         and mailing lists, doc'ed --no-peep-comments, removed reference
7744         to knoppix (newest version has no LyX/LaTeX), other minor changes
7745         * src/SDCCglue.c (glue): save 2 bytes stack space with
7746         option --main-return. The ljmp could probably be avoided too
7747
7748 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7749
7750         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
7751
7752 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7753
7754         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
7755         * src/SDCCopt.c (isLocalWithoutDef),
7756         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
7757         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
7758         (credit to Maarten Brock for patch #949363, on which this is based)
7759         * support/regression/tests/bug-751703.c: some test cases of extern used
7760         within inner scopes.
7761
7762 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7763
7764         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
7765         SPEC_STRUCT
7766         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7767         struct definitions
7768         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
7769         dwWriteLabel): fix to create valid debugger symbols even when
7770         the module name has non-alphanumeric symbols in it
7771         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
7772         when a variable's allocation has been optimized away
7773
7774
7775 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7776
7777         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
7778         * src/hc08/main.c,
7779         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
7780         * src/mcs51/main.c,
7781         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
7782         * src/ds390/main.c,
7783         * src/z80/gen.c (z80_emitDebuggerSymbol),
7784         * src/z80/main.c,
7785         * src/pic/gen.c (pic14_emitDebuggerSymbol),
7786         * src/pic/main.c,
7787         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
7788         * src/pic16/main.c,
7789         * src/avr/gen.c (avr_emitDebuggerSymbol),
7790         * src/avr/main.c,
7791         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
7792         * src/xa51/main.c,
7793         * src/SDCCdebug.c (emitDebuggerSymbol),
7794         * src/SDCCdebug.h,
7795         * src/port.h: added a debugger struct to the port struct. Added a
7796         callback for defining debugger symbols
7797
7798         * src/SDCCast.c (createLabel),
7799         * src/SDCC.y (labeled_statement): mark all compiler generated labels
7800         with isitmp = 1
7801         * src/SDCCicode.h,
7802         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
7803         iCode back to the ast for the function
7804
7805         * src/hc08/ralloc.c (hc08_assignRegisters),
7806         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
7807         unneeded fields from the regs struct.
7808         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
7809         pushReg() & pullReg() functions instead of emitcode()
7810
7811         * src/hc08/gen.c (genLabel, genhc08Code),
7812         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
7813
7814         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
7815         debugger hooks
7816
7817         * src/hc08/gen.c (genEndFunction, genhc08Code),
7818         * src/hc08/gen.h,
7819         * src/mcs51/gen.c (genEndFunction, gen51Code),
7820         * src/mcs51/gen.h,
7821         * src/ds390/gen.c (genEndFunction, gen390Code),
7822         * src/ds390/gen.h,
7823         * src/z80/gen.c (genEndFunction, genZ80Code),
7824         * src/z80/gen.h,
7825         * src/z80/z80.h,
7826         * src/pic/gen.c (genEndFunction, genpic14Code),
7827         * src/pic/gen.h,
7828         * src/pic16/gen.c (genEndFunction, genpic16Code),
7829         * src/pic16/gen.h,
7830         * src/avr/gen.c (genEndFunction, genAVRCode),
7831         * src/avr/gen.h,
7832         * src/xa51/gen.c (genEndFunction, genXA51Code),
7833         * src/xa51/gen.h,
7834         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
7835         specific code to cdbFile.c and out of the backend code generators
7836
7837         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
7838         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
7839         starting address is now 0
7840
7841         * as/hc08/asm.h,
7842         * as/hc08/m08pst.c,
7843         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
7844         assembler directive for DWARF support
7845         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
7846
7847         * src/src.dsp,
7848         * src/Makefile.in,
7849         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
7850
7851 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7852
7853         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
7854         and inappropriate peephole optimization in jump tables
7855
7856 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7857
7858         * as/hc08/m08pst.c,
7859         * src/SDCCglue.c: sdccopt works for the hc08 port now
7860
7861 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
7862
7863         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
7864
7865 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7866
7867         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
7868
7869 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7870
7871         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
7872         rules
7873         * src/SDCCmain.c,
7874         * src/SDCCglobl.h,
7875         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
7876         comments from the peephole optimizer replacement rules
7877         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
7878         symbols
7879         * src/SDCCcse.c (updateSpillLocation),
7880         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
7881         equivalents
7882         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
7883         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
7884         objects far pointers
7885
7886 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7887
7888         * src/SDCCsymt.h: a missing part of my last change
7889         * src/pic/ralloc.c (regTypeNum),
7890         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
7891
7892 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7893
7894         * src/SDCCicode.h,
7895         * src/SDCCicode.c (aggrToPtrDclType),
7896         * src/SDCCptropt.h,
7897         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
7898         ptrPseudoSymConvert),
7899         * src/pic/ralloc.c (regTypeNum),
7900         * src/pic16/ralloc.c (regTypeNum),
7901         * src/hc08/ralloc.c (regTypeNum),
7902         * src/ds390/ralloc.c (regTypeNum),
7903         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
7904         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
7905
7906 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7907
7908         * link/z80/lkmain.c (afile),
7909         * as/hc08/lkmain.c (afile),
7910         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
7911         prevent a pointer problem when a filename has no directory and
7912         no extension specified.
7913
7914 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7915
7916         * link/z80/lkmain.c (afile): allow periods in directory names
7917         * link/z80/lkmain.c (afile),
7918         * as/mcs51/lkmain.c (afile),
7919         * as/hc08/lkmain.c (afile): allow linker script file to have an
7920         extension other than ".lnk"
7921         * link/z80/lklex.c (getfid),
7922         * link/z80/lkmain.c (parse),
7923         * as/mcs51/lklex.c (getfid),
7924         * as/mcs51/lkmain.c (parse),
7925         * as/hc08/lklex.c (getfid),
7926         * as/hc08/lkmain.c (parse): Support comments in the linker script
7927         file on lines by themselves and after filenames
7928
7929 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7930
7931         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
7932
7933 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7934
7935         * src/z80/peeph-z80.def: removed some peephole rules that don't
7936         work with multibyte arithmetic (fixed bug #937126)
7937         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
7938         to registers and not global variables
7939         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
7940         geniCodePreInc, geniCodePostDec, geniCodePreDec,
7941         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
7942         checking for assignments not internally generated (fixed bug #931895)
7943         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
7944         structure member (fixed bug #930072)
7945
7946 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7947
7948         * src/SDCCmain.c (linkEdit),
7949         * src/hc08/main.c (_hc08_parseOptions),
7950         * as/hc08/Makefile.in,
7951         * as/hc08/aslink.h,
7952         * as/hc08/asm.h,
7953         * as/hc08/m08pst.c,
7954         * as/hc08/lkrloc.c (relr, rele),
7955         * as/hc08/lkarea.c (lnkarea)
7956         * as/hc08/lkmain.c (afile, parse),
7957         * as/hc08/lkelf.c: support for ELF output
7958         * as/hc08/lks19.c (s19),
7959         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
7960
7961 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7962
7963         * as/mcs51/lkihx.c: Fixed bug #899105.
7964
7965 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7966
7967         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
7968         .dsp files from Unix to DOS.
7969
7970 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7971
7972         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
7973         function pointers; we have been compliant for several months now.
7974         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
7975         change that was accidently commented out
7976         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
7977         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
7978         bug #922319
7979
7980 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7981
7982         * src/hc08/gen.c: output of all of the internal debugging information
7983         is now controlled by the D() macro; it is disabled by default
7984
7985 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7986
7987         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
7988         harder to keep the same registers during a CAST iCode
7989         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
7990         long via int can be done in a single cast, if the signedness is
7991         correct.
7992         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
7993         putchar() in tinibios.c in ds390's library
7994
7995 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7996
7997         * src/SDCCast.c (decorateType): fixed bug #898889,
7998         cast result of a literal complement too
7999         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
8000         fixed check for bitfields
8001
8002 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8003
8004         * src/SDCCicode.c (geniCodeLogic): made it static,
8005         (geniCodeLogicAndOr): added in order to fix bug #905492,
8006         (ast2iCode): fixed bug #905492
8007         * support/regression/tests/bug-905492.c: added
8008         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
8009         (processParms): fixed bug #927659: don't copy parms, this will clear
8010         decorated flag
8011         * support/regression/tests/bug-927659.c: added
8012
8013 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8014
8015         * src/SDCCast.c (addCast): don't cast float to char
8016         * device/lib/libsdcc.lib: added _memmove
8017
8018 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
8019
8020         * device/lib/large/Makefile: fixed parallel execution by
8021         replacing `make` by `$(MAKE)`
8022
8023 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8024
8025         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
8026         offsets (fixes bug #923936)
8027
8028 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
8029
8030         * device/lib/small/Makefile: fixed parallel execution by
8031         replacing `make` by `$(MAKE)`
8032
8033 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8034
8035         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
8036
8037 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
8038
8039         * src/pic/gen.c (genCpl): multi-byte complements were not working.
8040         * src/regression/Makefile: Regression test was not running.
8041
8042 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8043
8044         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
8045         complement if possible
8046         * src/SDCCval.c (valComplement),
8047         * src/SDCCicode.c (operandOperation): fixed complement of literal
8048         * support/regression/tests/onebyte.c (testComplement): added
8049
8050 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
8051
8052         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
8053         return an optimized tree; actually replace actParm with the new tree
8054         * src/SDCCast.h: added some parantheses to remove side effects
8055         * support/regression/tests/bug-920866.c
8056
8057 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
8058         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
8059         Bit operands were not being handled properly in the pic14 port.
8060         (now src/regression/add.c passes again).
8061
8062 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8063
8064         * src/SDCC.y (labeled_statement): case and default no longer require
8065         a following statement (RFE #893037)
8066
8067 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8068
8069         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
8070         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
8071         disabled (fixes bug #916294)
8072         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
8073         "mov a,acc"; patch provided by Lenny Story
8074         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
8075
8076 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8077
8078         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
8079         functions
8080         * src/ds390/gen.c (genFunction, genEndFunction),
8081         * src/ds390/ralloc.c (ds390_assignRegisters),
8082         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
8083         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
8084         pushed if there are parameters passed on the stack. Also, a cleaner
8085         way to decide if r0/r1 should be pushed/popped. (Together they fix
8086         bug #918693)
8087
8088 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8089
8090         * doc/sdccman.lyx,
8091         * device/lib/mcs51/crtpagesfr.asm,
8092         * device/lib/mcs51/crtxinit.asm,
8093         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
8094         to avoid confusion with Si Lab's SFRPAGE register.
8095
8096 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8097
8098         * src/SDCCglue.c (emitMaps): allow public sfr variables
8099         * src/SDCCglue.c (initialComments): include compiler build date
8100         with compiler version and put the timestamp of the generated
8101         assembly file on a serperate line to be less confusing.
8102         * src/port.h: added genInitStartup hook
8103         * src/avr/main.c,
8104         * src/ds390/main.c,
8105         * src/hc08/main.c,
8106         * src/pic/main.c,
8107         * src/pic16/main.c,
8108         * src/xa51/main.c,
8109         * src/z80/main.c: genInitStartup initialize as NULL (default to
8110         historical behaviour)
8111         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
8112         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
8113         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
8114         library instead of hard coding it into the compiler.
8115         * support/regression/ports/mcs51-stack-auto/spec.mk,
8116         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
8117         * device/lib/mcs51/Makefile,
8118         * device/lib/small/Makefile,
8119         * device/lib/large/Makefile,
8120         * device/lib/mcs51/crtpagesfr.asm,
8121         * device/lib/mcs51/crtstart.asm,
8122         * device/lib/mcs51/crtxclear.asm,
8123         * device/lib/mcs51/crtxinit.asm,
8124         * device/lib/mcs51/crtclear.asm,
8125         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
8126         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
8127         and into user configurable files.
8128         * device/lib/clean.mk: clean mcs51 directory too
8129         * support/regression/tests/longlit.c: added static to T1 declaration
8130         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
8131         accesses in the initialization code
8132
8133 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8134
8135         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
8136         OSCTRIMVAL as noted in bug #916008
8137
8138 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8139
8140         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
8141         in loops with multiple exits (reported as incorrect registers
8142         used by Martin Helmling in Sdcc-user list)
8143
8144 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8145
8146         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
8147         made ds390 register extensions look less like error messages
8148
8149 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8150
8151         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
8152         reported by Adam Wozniak in Sdcc-user list
8153
8154 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8155
8156         * src/SDCCast.c (decorateType): fixed with bug and promotion in
8157         arithmetic optimizations, added debug output
8158
8159 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8160
8161         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
8162         * sdcc.spec: updated and split sdcc into 3 rpms
8163         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
8164         needed for literals of LEFT_OP and '+'
8165         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
8166         introduced RESULT_TYPE_NOPROM
8167         (geniCodeMultiply): fixed logic for decision if mul is optimized to
8168         left shift
8169         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
8170         limited promotion to int only for '*'
8171         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
8172
8173 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
8174
8175         * src/pic16/gen.c (genSkip),
8176         (genc16bit2lit), (gencjneshort): commented out
8177         (is_LitOp): new helper function, checks operand type
8178         (genCmpEq): rewritten
8179
8180 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8181
8182         * support/regression/tests/bug-908454.c: added
8183
8184 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
8185
8186         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
8187         * src/SDCCicode.c (usualBinaryConversions): op needs int type
8188         (geniCodeCast): cosmetic, don't preserve bit storage class
8189         (geniCodeLeftShift): added promotion
8190         (geniCodeLogic): fixed regression
8191         * src/SDCCsymt.c (computeTypeOr): accept bits too
8192         (compareType): 2nd part of fix for bug #908454, needed for bitfields
8193
8194 2004-03-07  Borut Razem <borut.razem AT siol.net>
8195
8196         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
8197
8198 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
8199
8200         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
8201         version of pic16_genPackRegisters which does not check if ic is a
8202         CAST operator,
8203         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
8204         function cause string1.c regression test fails
8205
8206 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8207
8208         * sim/ucsim/configure.in,
8209         * sim/ucsim/configure,
8210         * sim/ucsim/doc/Makefile.in: use docdir
8211         * src/SDCC.y: fixed sbit atrributes
8212         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
8213         * src/SDCCast.c (decorateType): |^& need special promotion handling
8214         * src/SDCCast.h,
8215         * src/SDCCsymt.h: moved definition of RESULT_TYPE
8216         * src/SDCCsymt.h (computeType),
8217         * src/SDCCicode.c: computeType() needs op
8218         * src/SDCCsymt.c (checkTypeSanity),
8219         * doc/sddman.lyx: "plain" bitfields are unsigned
8220         * src/SDCCsymt.c (computeTypeOr): added
8221         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
8222         |^& ops
8223         * src/SDCCval.c (val*): computeType() needs op
8224         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
8225         * support/regression/tests/onebyte.c: added tests for |^&
8226
8227 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
8228
8229         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
8230         for writing icode into asm output.
8231
8232 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
8233
8234         * src/pic16/device.c: added some debug lines enabled
8235         with macro DEBUG_CHECK,
8236         * src/pic16/genarith.c: more debug in genPlus,
8237         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
8238         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
8239         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
8240         * (aopForSym): onStack symbols are re-placed in data memspace,
8241         and onStack flag is cleared,
8242         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
8243         copy temporary pcodeop,
8244         * (genPcall): added warning for not updating PCLATU,
8245         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
8246         always true for pic16 port,
8247         * (genMultOneWord): NEW, supports integer multiplication,
8248         * (genMult): modified to call genMultOneWord,
8249         * (ifxForOp): added warning when return NULL,
8250         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
8251         flag is set before call to operandFromSymbol for implicit
8252         added structures,
8253         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
8254         options.intlong_rent are set by default,
8255         * (_hasNativeMulFor): modified to allow port generation of integer
8256         multiplication,
8257         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
8258         set regtype to REG_SFR for all registers, restricting seting the
8259         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
8260
8261 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8262
8263         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
8264         more than 500 times in the regression tests
8265
8266 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8267
8268         * support/Util/SDCCerr.h,
8269         * support/Util/SDCCerr.c,
8270         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8271         enumerator_list),
8272         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
8273         for symbol conflicts.
8274         * support/valdiags/tests/enum.c,
8275         * support/valdiags/tests/tentdecl.c,
8276         * support/valdiags/tests/struct.c: expect possible error messages
8277         referring to original symbol definitions.
8278         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
8279         * src/SDCCsymt.h,
8280         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
8281
8282 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
8283
8284         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
8285
8286 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
8287
8288         * src/pic16/ralloc.c (newReg): fixed bug #908929
8289
8290 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8291
8292         * src/ds390/gen.c: added missing #include "main.h"
8293
8294 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
8295
8296         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
8297         checking if symbol is already in set,
8298         * src/pic16/device.h: prototype for checkAddSym,
8299         * src/pic16/gen.c: (_G): added entry interruptvector,
8300         * (assignResultValue): removed some commented out lines,
8301         * (genFunction): check for ISR via sym->type, absolute section for
8302         interrupt code is created via a new pBlock, the goto instruction is
8303         placed now correctly at the interrupt vector position, changed all
8304         references from ivec to _G.interruptvector,
8305         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
8306         is the interrupt is a high priority one, same for return from ISR,
8307         * src/pic16/glue.c: changed all calls of addSetHead for publics and
8308         externs to calls of checkAddSym,
8309         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
8310         pic16_pcode_verbose flag is set,
8311         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
8312         * src/pic16/pcoderegs.c: message about how many registers are saved
8313         will only be emitted if pic16_pcode_verbose flag is set,
8314
8315 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8316
8317         * src/ds390/ralloc.h,
8318         * src/ds390/ralloc.c (ds390_regWithIdx),
8319         * src/ds390/gen.c (emitcode),
8320         * src/ds390/main.h,
8321         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
8322         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8323         ds390operandCompare, getRegsRead, getRegsWritten,
8324         initializeAsmLineNode): customized instruction size calculation for
8325         ds390, started basis for some register optimizations
8326         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
8327         corresponding assembly output
8328         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
8329         missing push/pop of r0/r1. Optimized push/pops
8330
8331 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8332
8333         * src/mcs51/main.c (instructionSize): fixed ACALL size
8334         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
8335
8336 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
8337
8338         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
8339         the sorting of rlist with NULL elements
8340         * (print_idataType, print_idata): NEW to create idata sections
8341         * src/pic16/device.h: idataSymSet new variable
8342         * src/pic16/gen.c (genFunction): fixed some bugs in string
8343         comparing, improved the absolute section creation for ISRs,
8344         added FSR0L/FSR0H in registers that are saved in an ISR,
8345         * (genInline): fixed the processing of inline snippets,
8346         now they undergo no process by the peephole optimizer
8347         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
8348         are placed in idataSymSet,
8349         * (pic16emitStaticSeg): extern symbols are added in externs,
8350         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
8351         switching when aboslute variables are placed in access bank memory
8352         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
8353         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
8354         commented out with #if,
8355         * (pic16_packRegisters): reintroduce the check for CAST because some
8356         symbols are not correctly handled,
8357         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
8358         pCodeInstruction instead of pCode,
8359         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
8360         pCodeAsmDir definition,
8361         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
8362         directive, then the argument directive is emitted without the leading
8363         tab, hack for inline labels which must be in the first column,
8364         * (compareLabel,pic16_findNextInstruction),
8365         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
8366         * (insertBankSwitch): modified for the new pCodeAsmDir,
8367
8368 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8369         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
8370
8371         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
8372         instance,
8373         * (pushSide): commented out with #if,
8374         * (assignResultValue): fixed some typos in saving
8375         registers,
8376         * (genPcall): FIXED and sync'ed with genCall,
8377         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
8378         * (genNearPointerGet): fixed to handle some more cases,
8379         implementation scheme via table reads,
8380         * (genConstPointerGet): modified to access code memory correct,
8381         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
8382         and improved to handle some cases
8383         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
8384         instead of "RETLW" for init data
8385         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
8386         not IN_DIRSPACE, work around to reduce bank switching when aboslute
8387         variables are placed in access bank memory (<0x80 and >=0xf80),
8388         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
8389         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
8390         TBLWT_POSTDEC,TBLWT_PREINC
8391         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
8392         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
8393         directives
8394         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
8395         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
8396         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
8397         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
8398
8399 2004-02-29  Borut Razem <borut.razem AT siol.net>
8400
8401         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
8402         support/Util/findme.h, support/Util/system.h: enhance binary relative
8403         search for lib and include by using findProgramPath()
8404
8405 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8406
8407         * src/SDCCpeeph.h,
8408         * src/SDCCpeeph.c (pcDistance),
8409         * src/port.h,
8410         * src/mcs51/ralloc.h,
8411         * src/mcs51/ralloc.c (mcs51_regWithIdx),
8412         * src/mcs51/main.h,
8413         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
8414         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8415         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
8416         size calculation port specific, started basis for some register
8417         optimizations
8418         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
8419         missing push/pop of r0/r1. Optimized push/pops
8420         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
8421         * device/lib/_modsint.c (_modsint),
8422         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
8423         and stack version so regression tests pass
8424
8425 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8426
8427         * src/Makefile.in (dep): include SLIBOBJS in dependency check
8428         * src/SDCCast.c (decorateType): catch another small optimization
8429         with '?' operator
8430         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
8431         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
8432         modified to finally use computeType() all over SDCC,
8433         see Feature Request #877103
8434         * src/SDCCval.h: cosmetic
8435         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
8436         valCompare(); regression tested in muldiv.c
8437         * support/regression/tests/muldiv.c (testMod): mod sign follows
8438         dividend only
8439
8440 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
8441
8442         * src/SDCCast.c (decorateType): fixed bug #902362
8443         * doc/INSTALL.txt: fixed install instructions for win32
8444
8445 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
8446
8447         * device/include/Makefile.in (install): fixed by replacing spaces
8448         by tabs
8449         * doc/README.txt,
8450         * doc/INSTALL.txt: updated for release
8451         * doc/sdccman.lyx: added warning for --xstack being buggy
8452
8453 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
8454
8455         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
8456         to eliminate build warnings.
8457         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
8458
8459 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
8460            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8461
8462         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
8463         removed -penable-stack, added comment for stack pragma, added
8464         warning for not initializing the stack/frame registers, removed
8465         comment at interrupts section
8466
8467         Stack is made permanent, there is no ability to disable stack usage.
8468         * src/pic16/device.h,
8469         * src/pic16/device.c: removed all references to USE_STACK macro,
8470         * src/pic16/device.c (pic16_dump_section): when no elements in
8471         rlist, free rlist before return,
8472         * (pic16_dump_int_registers): NEW, internal registers are a new set
8473         of general purpose registers reused by each function,
8474         * (checkAddReg): returns 1 if registers is added to set,
8475         * (pic16_groupRegistersInSection): when a registers is of type
8476         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
8477         * src/pic16/device.h: memRange and Assigned Memory are deleted,
8478         SRCASECMP macro is moved here from device.c
8479         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
8480         PO_PCLATU, PO_PRODL, PO_PRODH,
8481         * (pic16_pCodeOpType, genMinus,
8482         changed compares to "a" register, with AOP_ACC,
8483         * (pic16_genPlus): fixed some bugs and indented properly,
8484         * (pic16_addSign): changed size to size+offset in the MOVWF
8485         instruction,
8486         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
8487         multiply 8-bit operand by literal, result is 8-bit,
8488         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
8489         multiply 2 8-bit operand, result is 8-bit,
8490         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
8491         genUMult8X*_16,
8492         * src/pic16/gen.c: changed accUse to contain WREG only,
8493         * (pic16_emitcomment): renamed to pic16_emitpcomment,
8494         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
8495         true, do not use immediate addressing any more unless sym is a
8496         pointer in codespace,
8497         * (aopForRemat): do not use immediate addressing when symbol not in
8498         codespace and when symbol's address is requested,
8499         * (aopOp): for-loop in if(sym->accUse) is modified for the new
8500         accUse size (= 1),
8501         * (aopGet): added case for AOP_ACC and don't return "accumulator
8502         bug" but WREG instead,
8503         * (popGetTempReg): pushes contents of temporary register in stack,
8504         * (popReleaseTempReg): pops contents of temporary register from
8505         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
8506         * (pic16_popGet): separated case AOP_ACC to return register WREG
8507         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
8508         or PO_IMMEDIATE and initializes their instance/offset appropriately,
8509         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
8510         the use of immediate pointers to certain cases only.
8511
8512         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
8513         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
8514         * (assignResultValue, genCall, genRet): modified to use the new
8515         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
8516         genPcall is still broken,
8517         * (genFunction): added code to create 'A' type pBlocks when
8518         interrupt functions are generated, code not extensively tested yet,
8519         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
8520         * (genEndFunction): modified so ISRs pop stored registers from stack,
8521         * (genMultOneByte): cleanup,
8522         * (AccRsh): added flag andmask, to and result with appropriate mask,
8523         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
8524         * (genDataPointerGet): fixed and reenabled its use,
8525         * (genNearDataPointerGet): bugs fixed,
8526         * (genDataPointerSet): bugs fixed,
8527         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
8528         pic16_DumpSymbol, pic16_DumpOp,
8529         * src/pic16/genutils.h: function prototypes for the above functions,
8530         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
8531         pointers,
8532         * (pic16emitRegularMap): many many many improvements, but needs a
8533         major cleanup,
8534         * src/pic16/main.c: enable_stack in pic16_options is removed,
8535         * (_pic16_parseOptions): removed command line options -penable-stack,
8536         * (_process_pragma): emit stack symbol only when stack pragma is
8537         processed,
8538         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
8539         redirected to FSR0L/FSR0H pair,
8540         * (pic16_get_op, pic16_get_op2): modifications and improvements,
8541         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8542         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
8543         for immediates,
8544         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
8545         * (dumpPicOptype): NEW,
8546         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
8547         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
8548         with movff instruction,
8549         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
8550         added pic16_int_regs, some packRegsFor* functions are commented out,
8551         because produce errors,
8552         * src/pic16/NOTES: minor modifications
8553
8554 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8555
8556         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
8557         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
8558         --pack-iram.
8559         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
8560         * as/mcs51/lkaomf51.c: fixed bug #895763
8561
8562 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
8563
8564         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
8565
8566 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8567
8568         * doc/sdccman.lyx: added details about the HC08 storage classes and
8569         interrupts, fixed the register usage info for z80 & gbz80
8570
8571 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
8572
8573         * doc/sdccman.lyx: added more pic16 port documentation
8574         * device/include/pic16/: added header pic18fregs.h
8575
8576 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8577
8578         * doc/sdccman.lyx: added Vangelis' contribution
8579
8580 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8581
8582         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
8583         extend to the next CALL or PCALL, not just to the next CALL.
8584
8585 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
8586
8587         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
8588
8589 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8590
8591         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
8592         bug #895752 and a better fix for bug #716790
8593
8594 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8595
8596         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
8597
8598 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8599
8600         * doc/sdccman.lyx: minor changes, minor changed
8601
8602 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8603
8604         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
8605         which can't handle SDCC_NEWONEBYTEOPS,
8606         (geniCodeMultiply): removed conversion from mult to shift for pic14
8607         and pic16
8608
8609 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8610
8611         * src/hc08/gen.h,
8612         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
8613         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
8614         thus fixing bug #895406
8615
8616 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
8617
8618         * device/lib/_modsint.c,
8619         * device/lib/_modslong.c: sign follows divisor only
8620         * src/hc08/gen.c (genMultOneByte): if result size is 1,
8621         signs or signedness can be ignored
8622         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
8623         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
8624         added optimization for IFX,
8625         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
8626         arguments;
8627         reenabled optimization for IFX, which was removed on 2004-01-11
8628         * src/SDCCast.h: added return type IFX
8629         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
8630         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
8631         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
8632         SDCC_OLDONEBYTEOPS selects the old behaviour
8633         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
8634         changed again and commented promotion rule
8635         * src/SDCCval.c (valDiv): promotion no longer necessary
8636         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
8637         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
8638         rewritten
8639         * support/regression/tests/onebyte.c: added
8640
8641 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
8642
8643         * gen.c (genInline): reverted to old code for assemnling inline
8644         code because of bug reported James Chadd
8645
8646 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
8647
8648         * ralloc.h: missing declarations from previous patch,
8649         seems that patch for ralloc.h was never applied, fixed
8650
8651 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8652            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8653
8654         * pcode.c,
8655         * pcode.h,
8656         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
8657         indirect addressing. Marked FSR0 as deprecated
8658         * gen.c (pointerCode): commented out, not needed now
8659         (pic16_popGet2p): new MOVFF helper function
8660         (genGenPointerGet),
8661         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
8662         (shiftRLong): removed duplicate debugging info
8663
8664 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8665
8666         * src/ds390/gen.c (genNearPointerGet),
8667         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
8668         optimization with bits, but not bitfields.
8669         * src/ds390/ralloc.c (packRegisters),
8670         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
8671
8672 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8673
8674         * src/SDCCcse.c (algebraicOpts): copy operands before modification
8675
8676 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8677
8678         * src/SDCCsymt.h,
8679         * src/SDCCicode.c (operandFromSymbol),
8680         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
8681         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
8682         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
8683         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
8684         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
8685         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
8686         bug #892038
8687         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
8688         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
8689         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
8690         * src/SDCCsymt.c (newSymbol),
8691         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8692         enumerator_list),
8693         * src/SDCCval.h,
8694         * src/SDCCval.c (newiList): fixed bug #885705
8695
8696 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8697
8698         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
8699         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
8700
8701 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8702
8703         * device/include/c8051f120.h,
8704         * device/include/c8051f300.h,
8705         * device/include/c8051f310.h: added/updated header files for Silicon
8706         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8707         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8708         in new section Submitting patches
8709
8710 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8711
8712         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
8713         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8714         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8715         genGenPointerSet),
8716         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
8717         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8718         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8719         genGenPointerSet),
8720         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
8721         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8722         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8723         genGenPointerSet),
8724         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
8725         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8726         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8727         genGenPointerSet): fixed bug #892400
8728         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
8729         to eliminate build warnings.
8730         * src/SDCCast.c (processParms),
8731         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
8732         fixed bug 751859
8733         * support/valdiag/valdiag.py: added GCC to the list of defines active
8734         when compiling with gcc
8735
8736 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8737
8738         * support/Util/SDCCerr.h,
8739         * support/Util/SDCCerr.c,
8740         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
8741         with an incomplete type (fixed bug #883734)
8742         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
8743
8744 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8745
8746         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
8747
8748 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8749
8750         * src/SDCCast.c (decorateType),
8751         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
8752         function pointer implementation
8753         * support/regression/tests/funptrs.c: added tests to verify both forms
8754         of function pointers work correctly. Added tests to verify parameters
8755         are passed in the correct order.
8756
8757 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
8758
8759         * device.c (regCompare): registers are sorted by ascending
8760         address and increasing size,
8761         * main.c (_pic16_finaliseOptions): removed the declaration
8762         of compiler macro MCU. Now a macro of the format pic18fxxxx
8763         will be defined from the command line
8764
8765 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8766             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8767
8768         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
8769         PCOP_RLCF was overwritten!
8770         * gen.c (genSkip): commented out calls to pic16_emitcode,
8771         * (genCmpEQ): fixed "long" compares, only high word did get compared,
8772         * (genlshTwo),
8773         * (genRRC): added debugging info,
8774         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
8775         overwritten while shifting,
8776         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
8777         overwritten while shifting,
8778         * (AccLsh),
8779         * (AccRsh),
8780         * (shiftLLeftOrResult),
8781         * (shiftRLeftOrResult),
8782         * (shiftRLong),
8783         * (shiftLLong): Implemented with pic16_emitpcode
8784         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
8785         * (genLeftShift): Fixed bug, operand for shift by variable always
8786         was "and"ed with 0x0f,
8787         * (genLeftShiftLiteral),
8788         * (genrshTwo),
8789         * (genRightShiftLiteral): added debugging info,
8790         * (genrshFour): added comment,
8791         * (genRightShift): determined signedness from operand "left"
8792         instead of "result"
8793
8794 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8795
8796         * src/SDCCicode.c (geniCodeParms),
8797         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
8798         function pointers, fixed function pointer bugs #861242 and #861896
8799
8800 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8801
8802         * device/include/c8051f000.h,
8803         * device/include/c8051f120.h,
8804         * device/include/c8051f300.h: added header files for Silicon
8805         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8806
8807 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
8808
8809         * src/SDCCast.c (processParams): added new type flow and restructured
8810         (gatherAutoInit): added new type flow
8811         (addCast): cosmetic changes
8812         (getLeftResultType): added new type flow for array indices, patch
8813         provided by Stas, see FR #877103
8814         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
8815         array index patch by Stas
8816         * src/SDCCast.h: added prototype getResultTypeFromType()
8817         * src/SDCCval.h,
8818         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
8819         * src/pic/glue.c (pic14emitStaticSeg),
8820         * src/pic16/glue.c (pic16emitStaticSeg),
8821         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
8822         for initialization of symbols
8823         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
8824         * support/Util/SDCCerr.h:
8825         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
8826         * .version: bumped version number to 2.3.8
8827         * device/include/Makefile.in (install),
8828         * doc/Makefile (install): changed to 'rm `find ...`' construct to
8829         avoid warnings
8830
8831 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
8832
8833         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
8834         Slade Rich fixed an optimization bug
8835         * src/pic/pcodepeep.c,
8836         * src/pic/pcoderegs.c
8837         * doc/Makefile (install): added test for directory
8838
8839 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8840
8841         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
8842         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
8843         * src/pic/ralloc.c (getRegPtr, getRegGpr),
8844         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
8845         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
8846         * as/mcs51/asexpr.c (term),
8847         * as/hc08/asexpr.c (term): fixed bug #887146
8848
8849 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8850
8851         * src/z80/gen.c (genMult): handle single byte result product
8852         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
8853         DUMMY_READ_VOLATILE (fixed bug #886367)
8854
8855 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8856
8857         * support/regression/tests/libmullong.c: fixed logic, on little endian
8858         hosts we ended without a mullong_wrapper()
8859
8860 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8861
8862         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
8863         virus/worm forged address usage.
8864
8865 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8866
8867         Fixed promotion, it should be done on AST level:
8868         * src/SDCCast.c (addCast): added promotion to int
8869         (decorateType): updated call to upCast()
8870         * src/SDCCicode.c (geniCodeLeftShift): removed call to
8871         usualUnaryConversions()
8872
8873 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
8874
8875         * support/regression/tests/literalop.c (mulWrapper): Added a
8876         wrapper to remove integer overflow warnings.
8877
8878         * support/regression/tests/float_trans.c: Made work on host.
8879
8880         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
8881         location of sz80.
8882
8883         * support/regression/generate-cases.py (main): Changed from inline
8884         to a main method.
8885
8886         * doc/Makefile (install): Changed to depth first to get rid of
8887         missing directory install warning.
8888
8889         * as/Makefile (install-doc): Made work on Mac.
8890
8891 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
8892
8893         * src/SDCCast.c: added an additional type flow in decorateType() of
8894         opposite direction, see feature request #860006; it's enabled at runtime
8895         by setting the environment variable SDCC_NEWTYPEFLOW
8896         * src/SDCCast.h: changed prototype of decorateType()
8897         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
8898         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
8899         'char' to 'int' can be omitted, if both operands are 'unsigned char';
8900         see feature request #877103
8901         * src/SDCCval.c: updated call of decorateType()
8902         (valBitwise): fixed bug #882876
8903         (valMinus): added promotion
8904         (valLogicAndOr): result is unsigned
8905         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
8906         * src/SDCCsymt.c (computeType),
8907         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
8908         must not cause an unsigned operation
8909         * src/pic/glue (pic14emitRegularMap),
8910         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
8911
8912 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
8913
8914         * src/pic/pcode.c (PCodeID): commented out left over debug code
8915
8916 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
8917
8918         * support/valdiag/tests/overflow.c: added shift tests
8919         * src/pic/device.c,
8920         * src/pic/gen.c,
8921         * src/pic/gen.h,
8922         * src/pic/glue.c,
8923         * src/pic/main.c,
8924         * src/pic/pcode.c,
8925         * src/pic/pcode.h,
8926         * src/pic/pcodepeep.c,
8927         * src/pic/pcoderegs.c,
8928         * src/pic/ralloc.c,
8929         * src/pic/ralloc.h: applied patch from Slade Rich;
8930         added support for multiple code pages and multiple RAM banks on the
8931         PIC 14 port. The ASM files now no longer simply assume all the
8932         code / RAM are in the same page / bank. This means the linker can
8933         safely allocate code/RAM of separate ASM files to different pages/banks.
8934         * doc/sdccman.lyx: added Slade's tips
8935         * src/mcs51/peeph.def: fixed bug #880768
8936
8937 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8938
8939         * src/hc08/ralloc.c (rematStr): fixed bug #879282
8940         * src/SDCCast.c (decorateType): fixed bug #880197
8941
8942 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
8943
8944         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
8945         getopt.h.
8946
8947         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
8948         strtof is not part of C89 and isn't included with Mac OS X.
8949
8950 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8951
8952         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
8953         shiftL2Left2Result): fixed bug #879326
8954         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
8955         (genMultOneByte): fixed bug in signed vs unsigned multiplication
8956         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
8957         address fetch for clr instruction
8958         * device/lib/hc08/_mulint.c: created optimized assembly version
8959         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
8960
8961 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8962
8963         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
8964         proposed in FR #877103
8965
8966 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
8967
8968         * src/SDCCval.c (cheapestVal): added missing checks
8969         * src/SDCCicode.c (usualBinaryConversions): fixed condition
8970         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
8971
8972 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
8973
8974         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
8975         equal operands
8976
8977 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
8978
8979         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
8980         loaded with the linker search paths (-L arguments) and the libraries
8981         to be linked with the current source (-l arguments). Changes
8982         currently will affect only the pic16 port.
8983         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
8984         include path the port specific paths and port specific libraries,
8985         * gplink command now contains the $3 argument,
8986         * src/pic16/device.h,
8987         * src/pic16/device.c,: structure PIC_device is made public and
8988         renamed to PIC16_device, the same for variable Pics which is renamed
8989         to Pics16. Updated all references to them.
8990         * src/pic16/glue.c (pic16glue): corrected bug with code
8991         initialization which bypassed the variable initializations block.
8992
8993         * device/lib/pic16/Makefile.rules: removed --penable-stack from
8994         COMPILE_FLAGS and added the --nostdinc option
8995
8996 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8997
8998         * device/include/mc68hc908jb8.h: Register defs for another member
8999         of the hc08 family. Contributed by Bjorn Bringert - thanks!
9000
9001 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
9002
9003         Documenting changes from previous commits.
9004         * configure.in (version 1.56),
9005         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
9006         when generating output files to configure the pic16 library,
9007         but now I've commented it out, since gputils aren't installed in the
9008         SF compile farm, so library won't compile
9009
9010         * device/lib/Makefile.in (version 1.56): initially I've added in
9011         target 'all' the prerequestive 'model-pic16' so it compiled the
9012         pic16 library, but now I've commented it out for the same reasons
9013         above,
9014         * added targets 'model-pic16' and 'objects-pic16' to compile the
9015         library
9016         * added target 'port-specific-objects-pic16' to handle the
9017         generated libraries and copy them into the build/ directory
9018         * added target 'clean-intermediate-pic16' to clean intermediate
9019         files into pic16 directory
9020         * in target 'installdirs' added line to create directory pic16 in
9021         the installation path
9022
9023         * device/include/Makefile.in (version 1.11): in target 'install'
9024         added lines to copy all header files to installation path,
9025         * in target 'installdirs' added line create directory for pic16
9026         headers in the installation path
9027
9028 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
9029
9030         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
9031          a function call
9032
9033 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9034
9035         * configure,
9036         * device/lib/configure.in,
9037         * device/lib/configure: fixed for autoconf 2.57
9038
9039 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9040
9041         * src/z80/main.c (_parseOptions): fixed the portmode= command line
9042         option so that it actually works. Made it specific to the z80, since
9043         the gbz80 doesn't have these kinds of I/O ports.
9044
9045 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9046
9047         * device/include/z180.h,
9048         * device/lib/_memcpy.c,
9049         * device/lib/_memmove.c,
9050         * device/lib/_mulint.c,
9051         * device/lib/ser_ir.c,
9052         * device/lib/ser_ir_cts_rts.c,
9053         * device/lib/_strcmp.c,
9054         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
9055         * src/z80/main.c (_process_pragma): add support for pragmas bank and
9056         portmode; added deprecation warning for bank= and protmode= forms.
9057         Also, guard against buffer overflow.
9058         * src/z80/gen.c (aopGet): generate better code for sfr banked read
9059
9060 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9061
9062         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
9063         changed interrupt vector table generation to only emit declared vectors.
9064         * device/include/Makefile.in: added missing backslash
9065         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
9066
9067 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9068
9069         Mainly changes to support compilation of the device libraries
9070         * src/pic16/device.c: stack is allocated via symbol and not
9071         via literal number. The symbol is placed in the corresponding
9072         position of the data ram
9073         * (pic16_dump_section): relocatable and absolute uninitialized
9074         data are now emitted in sorted order to reduce section naming,
9075         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
9076         weren't marked as being in the access bank,
9077
9078 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9079
9080         Added portion of GNU PIC Library under the directory
9081         device/include/pic16 and device/lib/pic16. These files
9082         contain the declarations of SFRs for the PIC18Fxx2 devices.
9083         The directory is initialized via configure from toplevel.
9084
9085 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
9086
9087         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
9088         the spilllocations to be compared correctly
9089
9090 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9091
9092         * src/SDCCast.c (decorateType): fixed bug introduced today
9093
9094 2004-01-12  Borut Razem <borut.razem AT siol.net>
9095
9096         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
9097         doc/sdccman.lyx: upper case pragmas are deprecated
9098
9099 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9100
9101         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
9102         in simpler and even better code
9103
9104 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9105
9106         * src/SDCCicode.c (operandOperation): fixed bug #874819
9107         * src/SDCCast.c (decorateType): fixed
9108         char foo (unsigned long ul) { return ul > 0; }
9109
9110 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9111
9112         * doc/sdccman.lyx: Moved and added some sections, small changes
9113         all over. Telling LaTeX to be less strict with word spacing
9114         to better keep the right margin. Changed some notes about
9115         maintainance of the ports in section 3.2.1 - is it OK like this?
9116
9117 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9118
9119         SDCC source changes:
9120         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
9121         convilong): modified to inform the pic16 port that builtin functions
9122         are external
9123
9124         PIC16 PORT specific changes:
9125         * src/pic16/device.c pic16_dump_equates() added,
9126         processor registers declared internally by the port are emitted in
9127         the translation as equates,
9128         * src/pic16/gen.c: inline code is passed unprocessed to the
9129         translation,
9130         * (pic16_popGetLit2): fnuction modified to take second operand as
9131         pCodeOp pointer and not as literal,
9132         * (popRegFromIdx): prefixed with pic16_,
9133         * (pic16_popCombine2): modified to receive already allocated pCode
9134         operands,
9135         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
9136         * (genFunction): initializes local stack frame and pushes on stack
9137         all the registers used by this function,
9138         * (genEndFunction): restores all registers from stack and restores
9139         stack frame,
9140         * src/pic16/glue.c (pic16emitRegularMap): various changes and
9141         improvements,
9142         * (pic16glue): changed the program startup sequence,
9143         * added new dbName code 'A' for functions placed in absolute section
9144         * src/pic16/main.c: added function attribute _naked,
9145         * added pragma 'code' to place a fnuction at an absolute address,
9146         * added command line arguments --debug-ralloc and --pcode-verbose,
9147         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
9148         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
9149         * (pic16_newpCodeOpLit2): modified to take the second operand as
9150         pCodeOp pointer,
9151         * (pic16_printpBlock): modified to emit each function in a separate
9152         section,
9153         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
9154         UPPER for immediate operands,
9155         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
9156         instruction,
9157         * src/pic16/peeph.def: all peepholes with movff are commented out,
9158         because there is a problem in the pcode peep optimizer,
9159         * src/pic16/ralloc.c: the register allocator can now reuse local
9160         function symbols for another function. This saves register usage.
9161         * src/pic16/ralloc.h: added flag isLocal in structure regs,
9162
9163         Added file src/pic16/NOTES with information about program writing on
9164         the current port version.
9165
9166 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9167
9168         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
9169         and peephole 252 (array access)
9170
9171 2004-01-09  Borut Razem <borut.razem AT siol.net>
9172
9173         * src/SDCCmain.c : fixed #872250: -l command line defined library
9174           files are scanned before standard library files
9175
9176 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9177
9178         * src/SDCCast.c (decorateType): fixed bug #874046
9179
9180 2004-01-09  Borut Razem <borut.razem AT siol.net>
9181
9182         * support/scripts/sdcc.nsi: remove previous installation
9183
9184 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9185
9186         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
9187         bytes for last interrupt vector (mcs51)
9188         * sdcc.spec: fixed typo
9189
9190 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9191
9192         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
9193         gen51Code): more efficient parameter receive for --model-large
9194         ("bug" #845294)
9195
9196 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9197
9198         * src/ds390/main.c,
9199         * src/z80/main.c: added missed needLinkerScript flags (more than
9200         one port structure defined in these file)
9201         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
9202         bug #795325
9203
9204 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
9205
9206         * src/SDCCmain.c: removed various references to DEFAULT_PORT
9207         * src/port.h: added flag needLinkerScript in port->linker
9208         structure to inform whether to create a .lnk file or not,
9209         * src/avr/main.c,
9210         * src/ds390/main.c,
9211         * src/hc08/main.c,
9212         * src/mcs51/main.c,
9213         * src/pic/main.c,
9214         * src/pic16/main.c,
9215         * src/xa51/main.c,
9216         * src/z80/main.c: changed appropriately to configure
9217         needLinkerScript flag
9218         * src/pic/gen.c,
9219         * src/pic16/gen.c (genAddrOf): fixed bug #863624
9220         * src/pic/glue.c: added variable udata_section_name to
9221         override default uninitialized data segment definition for
9222         devices only with SHAREBANK memory (reported from Erik Epetrich)
9223         * (pic14emitOverlay): modified to emit a commented overlay segment
9224         directive when no overlay data exist
9225         * (picglue): modified to emit uninitialized data segment
9226         according to udata_section_name
9227         * src/pic/main.c (_pic14_parseOptions): added command line
9228         options --udata-section-name=[name] to override default
9229         udata definition name
9230         * modified _linkCmd and _asmCmd to include compiler passed
9231         arguments via -W option
9232         * src/pic16/main.c: added $l in _asmCmd, changed extension for
9233         object file from '.rel' to '.o' in port->linker structure,
9234         changed size of fptr from 2 to 3 in port structure
9235
9236 2004-01-07  Borut Razem <borut.razem AT siol.net>
9237
9238         * support/scripts/sdcc.nsi: update PATH
9239         * support/scripts/sdcc.ico: craeted
9240
9241 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9242
9243         * device/include/Makefile.in: fix install
9244         * doc/Makefile: fix install
9245
9246 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247
9248         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
9249         in bug #860505
9250         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
9251         how the function variable allocation summary is displayed; also
9252         include information about variables allocated to the overlay
9253         segment
9254
9255 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9256
9257         * as/mcs51/lkmain.c: Help about -Y option
9258         * as/mcs51/lkarea.c: Fixed gcc warnings
9259
9260 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9261
9262         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
9263         fixed warning
9264         * support/valdiag/tests/overflow.c: added
9265         * src/SDCCast.c (decorateType),
9266         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
9267         LEFT_OP (left shift)
9268
9269 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9270
9271         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
9272         (default behaviour).
9273
9274 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9275
9276         A python script to validate compiler diagnostic messages. It can be
9277         used to verify that sdcc complains about bad c source code and
9278         gives a good location of the error.
9279         * support/valdiag/Makefile,
9280         * support/valdiag/valdiag.py,
9281         * support/valdiag/tests/*
9282
9283 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9284
9285         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
9286         * src/SDCCsymt.c (newEnumType),
9287         * src/SDCCsymt.h
9288         * support/Util/SDCCerr.c,
9289         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
9290         enum related bugs.
9291         * support/regression/tests/enum.c: added test for enum values that
9292         require at least 2 bytes of storage.
9293
9294 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9295
9296         * src/common.h: added ifndef/define/endif macros
9297         around the header file.
9298         Bug reported from Jesus Calvino-Fraga
9299
9300 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9301
9302         * sdcc.spec: updated
9303         * device/include/Makefile.in: don't install CVS directories
9304         * device/lib/Makefile.in: added removal of CVS directories after install
9305         * doc/Makefile: fixed install, added local_icons
9306         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
9307         * src/mcs51/gen.c (genRightShift): fixed bug #870788
9308         * src/ds390/gen.c (genRightShift): fixed bug #870788
9309         * src/SDCCast.c (decorateType): fixed bug #870781
9310
9311 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9312
9313         PIC16 port related changes:
9314         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
9315         added variable stackPos,
9316
9317         * gen.c: genCall, assignResultValue: added support for
9318         pushing/retrieving function parameters to/from stack,
9319         genFunction,genEndFunction: setup stack frame for the
9320         generated function,
9321         genAddrOf: will be changed according to bug 863624
9322
9323         * added files genutils.c and genutils.h which contain gen*
9324         debugged and optimised functions extracted from gen.c
9325
9326         * glue.c: added variable 'externs' which holds extern symbols,
9327         pic16emitRegularMap: is modified to properly handle relocatable
9328          symbols under the new scheme,
9329         pic16createInterruptVect: is modified
9330         pic16printPublics: is modified to emit 'global' assembler directives,
9331         added pic16_printExterns to print extern symbols,
9332         pic16glue: initializes stack/frame pointer in the beginning of
9333         the assembly output. Temporary hack, will be corrected later,
9334         because gplink yet does not support stack and SDCC does not
9335         yet support a type of crt0.o object to create the final binary.
9336
9337         * Removed many lines that contain 8051 legacy code.
9338         * The code is finally placed under a 'code' directive.
9339         * Added port specific options.
9340
9341         * _process_pragma: simplified since now we do not need *special*
9342         include file to define SFR registers. But a separate header
9343         will be needed. This will be developed later.
9344         * _pic16_parseOptions: added, parses port specific options:
9345         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
9346         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
9347         --preplace-udata-with=
9348
9349         * _pic16_setDefaultOptions: modified to initialize section names,
9350         but hack is temporarly out of order since it needs improvement.
9351         * _pic16_genAssemblerPreamble: configuration words are emitted by
9352         their address instead of their name. This part is incomplete and
9353         supports only the 18Fxx2 devices. Other devices will emit an error
9354         during assembly since they do not contain the same set of config
9355         registers
9356         * _pic16_genIVT: is modified,
9357
9358         * pcode.c: added definitions for some hardware registers that are needed
9359         for stack support
9360         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
9361         All PCI entries are updated. Now LFSR is supported.
9362         * Removed pic16_pciTRIS is mentioned by mdubuc in source
9363         * added pic16_newpCodeOpLit2 to support instructions with
9364         two literal arguments
9365         * pic16_pCode2str: corrected code that emits assembler instructions
9366         with two literal operands and those that have an access bit modifier
9367         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
9368         this fixes a bug which caused some labels to be lost, when an
9369         assembler directive was added, i.e. banksel,
9370         * pic16_FixRegisterBanking: improved logic that causes the insertion
9371         of bank switching,
9372         * InlineFunction: functions that are called once, are not any more
9373         inlined. This can be a port option in the future,
9374
9375         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
9376
9377         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
9378         hold the corresponding uninitialized symbols,
9379         * pic16_allocProcessorRegister: registers have explicit marked the
9380         accessBank field,
9381         * pic16_allocInternalRegister: registers are explicit marked as
9382         not used,
9383         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
9384         processing list, so bit registers were lost,
9385         *
9386
9387         * ralloc.h: added field 'accessBank' and original symbol operand
9388         in register definition,
9389         * removed the field isMapped from register definition,
9390
9391         ** Several functions have been removed from various sources:
9392         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
9393         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
9394         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
9395         pic16_assignRelocatableRegisters
9396
9397         ** others have been introduced:
9398         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
9399         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
9400
9401 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
9402
9403         * support/scripts/inc2h.pl: changed definition of BIT_AT
9404         to emit 'sbit at' instead of 'bit at'. This was a request.
9405
9406         PIC16 port related preliminary changes:
9407         * gen.c: prefixed function popRegFromString with
9408         pic16_ and all references to it corrected
9409         * pcode.c: all pic16_pc_* hardware registers prefixed
9410         with underscore (_),
9411         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
9412         * ralloc.c: newReg(): when register is REG_SFR then
9413         set address to rIdx,
9414         pic16_allocProcessorRegister(): marks register wasUsed=0
9415         pic16_writeUsedRegs(): added a call to assign processor
9416         registers via pic16_assignFixedRegisters
9417
9418 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9419
9420         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
9421         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
9422         variables in unused register banks.  Also the SSEG is placed
9423         wherever there is enough space for it, and IDATA can be anywhere
9424         in internal RAM.  For now compile using -Wl-Y[stack_size].
9425         The mem file is different for this option as well, since it
9426         makes no sense of talking about DSEG lenght.
9427
9428 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
9429
9430         * src/SDCClrange.c: fixed bug 869095 that caused segfault
9431         in certain cases, e.g. when ROM assignment, patch provided
9432         from Albert den Haan.
9433
9434 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
9435
9436         Many signedness and type propagation fixes:
9437         * src/SDCCicode.c: made geniCodeCast() static
9438         replaced SPEC_ by IS_ (cosmetic)
9439         (operandOperation): fixed div and mod operation
9440         (usualBinaryConversions): added support for promotion of char
9441         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
9442         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
9443         (geniCodeAdd): an array index will stay unsigned, even if promoted
9444         from char to int
9445         (geniCodeArray): ditto
9446         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
9447         * src/SDCCsymt.c (computeType): added more support for char;
9448         promotion of char is selectable by promoteCharToInt, fixed signedness
9449         for all cases
9450         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9451         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9452         * src/SDCCval (val*): replaced signedness calculation by
9453         computeType()
9454         rearranged if-branches (cosmetic)
9455         (valShift): added warning W_SHIFT_CHANGED
9456         (valCompare): fixed problem with different types
9457         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
9458         * support/regression/tests/literalop.c: added many cases
9459         * support/regression/tests/ast_constant_folding.c: changed finally to
9460         'unsigned int'
9461         * .version: new year, new version: 2.3.7
9462         * src/SDCCmain.c (main): applied patch #866468
9463         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
9464         provided by Scott Bronson
9465         * doc/sdccman.lyx: updated documentation for sdcdb
9466         updated and added chapter tips
9467
9468 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9469
9470         * src/SDCCsymt.h: missing from yesterday's commits
9471
9472 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9473
9474         * src/SDCC.y (struct_or_union_specifier),
9475         * support/Util/SDCCerr.c,
9476         * support/Util/SDCCerr.h: verify that struct & union tags are used
9477         as declared.
9478
9479 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480
9481         * src/SDCCglobl.h: missing from yesterday's commits
9482
9483 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9484
9485         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
9486         sft_attributes, struct_declaration, parameter_declaration,
9487         type_name, start_block, declaration_list),
9488         * src/SDCC.lex (check_type): support redefinition of typedef names
9489
9490 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9491
9492         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
9493         aligned xdata arrays. Erik helped me with the if clause.
9494
9495 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9496
9497         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
9498         warning
9499
9500 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9501
9502         * src/SDCCast.h,
9503         * src/SDCCast.c (newAst_),
9504         * src/SDCCicode.h,
9505         * src/SDCCicode.c (ast2iCode, newiCode),
9506         * src/SDCCglobl.h,
9507         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
9508         expr, statement, expression_statement, selection_statement,
9509         iteration_statement, expr_opt, jump_statement): foundation for tracking
9510         sequence points
9511         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
9512         point code too)
9513
9514 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9515
9516         * support/Util/SDCCerr.c,
9517         * src/SDCCast.h,
9518         * src/SDCCast.c (createCase, createDefault, decorateType),
9519         * src/SDCClabel.c (labelUnreach),
9520         * src/SDCC.y (labeled_statement, jump_statement): More improvements
9521         to error messages.
9522         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
9523         (with thanks to Stas Sergeev)
9524         * device/include/time.h,
9525         * device/lib/time.c (CheckTime): suppress unreachable code warning
9526
9527 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9528
9529         * src/SDCCast.c (createIvalCharPtr),
9530         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
9531         bug #753752)
9532         * support/regression/tests/nullstring.c: tests for these two bugs
9533
9534 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9535
9536         * support/Util/SDCCerr.h,
9537         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
9538         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
9539         about storage class and 'at' used inside struct or union
9540         * src/SDCCBBlock.c (iCodeFromeBBlock),
9541         * src/SDCCcse.c (ifxOptimize),
9542         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
9543         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
9544         printIval, emitStaticSeg, emitOverlay),
9545         * src/SDCClabel.c (deleteIfx),
9546         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
9547         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
9548         gatherAutoInit, processParms),
9549         * support/Util/SDCCerr.h,
9550         * support/Util/SDCCerr.c (werrorfl): Support for better error location
9551         reporting for post-parse errors.
9552
9553 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9554
9555         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
9556         implicit casts via union; they don't work on big endian systems
9557         (possible fix for bug #861138)
9558
9559 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9560
9561         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
9562         * src/mcs51/main.c: fixed the fix for bug #737001
9563
9564 2003-12-15  Borut Razem <borut.razem AT siol.net>
9565
9566         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
9567
9568 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9569
9570         * support/makebin/makebin.c: put output in binary mode
9571
9572 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9573
9574         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
9575         xdata and data memory on startup. Set the environment variable
9576         SDCC_NOGENRAMCLEAR to disable this.
9577         * src/mcs51/peephole.def,
9578         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
9579         (allows non-interrupt and interrupt code to safely compete for a resource
9580         without the non-interrupt code having to disable interrupts)
9581
9582 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9583
9584         * src/SDCCicode.c (geniCodeAdd),
9585         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
9586         with valFromType if type might be a pointer and host is big endian).
9587         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
9588         types, not just integer types.
9589         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
9590         multiply defined with mismatching "at" address.
9591
9592 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9593
9594         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
9595         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
9596         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
9597         with embedded nulls (fixed bug #753752)
9598
9599 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9600
9601         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
9602         Apparently this did not see much testing (endless loop)
9603
9604 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9605
9606         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
9607
9608 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609
9610         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
9611         gracefully handle NULL memmap pointers
9612
9613 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9614
9615         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
9616         instead of deleting the iCode when an operand is volatile
9617         * src/z80/gen.c (genDummyRead),
9618         * src/mcs51/gen.c (genDummyRead),
9619         * src/ds390/gen.c (genDummyRead),
9620         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
9621         not just IC_RIGHT
9622         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
9623         * src/SDCC.y: fixed bug #850420
9624
9625 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         Applied z80 i/o port patch from Peter Townson and fixed some operators
9628         to better handle operands in A register.
9629         * device/include/z180.h
9630         * src/SDCC.y
9631         * src/SDCCglue.c
9632         * src/z80/gen.c
9633         * src/z80/gen.h
9634         * src/z80/main.c
9635         * src/z80/peeph-z80.def
9636         * src/z80/peeph.def
9637         * src/z80/z80.h
9638
9639 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9640
9641         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
9642
9643 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9644
9645         * device/lib/hc08/_mullong.c: Removed extra #endif
9646
9647 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9648
9649         * sim/ucsim/hc08.src/inst.cc,
9650         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
9651         carries from x to h
9652         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
9653         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
9654         * device/include/stdarg.h: fixed varargs for hc08
9655         * device/lib/Makefile.in,
9656         * device/lib/hc08/Makefile,
9657         * device/lib/hc08/_mulint.c,
9658         * device/lib/hc08/_mullong.c: fixed some endian problems
9659
9660 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9661
9662         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
9663         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
9664         * device/lib/_gptrget.c,
9665         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
9666
9667 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9668
9669         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
9670         * src/SDCCast.c (astErrors): fixed bug #846007
9671         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
9672
9673 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9674
9675         * src/SDCCast.c (decorateType): disabled a transformation I added in
9676         revision 1.188 (access to fields of a structure at an absolute address);
9677         it breaks with bitfields, extern declarations, and gcse analysis.
9678         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
9679         could be assigned through a pointer, so don't complain.
9680         * src/SDCCast.c (astErrors),
9681         * src/SDCCast.h,
9682         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
9683
9684 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
9685
9686         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
9687         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
9688         output of __config directives, since gpasm now supports them
9689         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
9690         pre-processor macro, i.e. -DMCU=p18f452
9691         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
9692         and modified to handle 'cast' icode similarly to '=' icode
9693         * src/pic16/device.h (typedef struct PIC_device): added field
9694         'extMIface' to indicate that chip has external memory interface
9695         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
9696         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
9697         18F8720
9698
9699 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9700
9701         * src/SDCC.y (pointer): fixed bug #846006
9702         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
9703         * src/SDCCast.c (decorateType): fixed bug #846009
9704         * src/ds390/peeph.def,
9705         * src/ds390/gen.c (genAnd, genOr),
9706         * src/mcs51/peeph.def,
9707         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
9708
9709 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9710
9711         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
9712         * src/SDCCdflow.c
9713         * src/SDCCcse.c
9714         * src/SDCCcse.h
9715         * src/SDCCBBlock.h
9716         * src/SDCCBBlock.c
9717
9718 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
9719
9720         fixed bug #845089
9721         * src/SDCCbitv.h,
9722         * src/SDCCbitv.c: added function to free a bitvector
9723         * src/SDCClrange.h,
9724         * src/SDCClrange.c: added function to recompute the liveranges
9725         * src/avr/ralloc.c,
9726         * src/ds390/ralloc.c,
9727         * src/hc08/ralloc.c,
9728         * src/mcs51/ralloc.c,
9729         * src/pic/ralloc.c,
9730         * src/pic16/ralloc.c,
9731         * src/xa51/ralloc.c,
9732         * src/z80/ralloc.c: recompute the liveranges after register packing
9733
9734 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
9735
9736         * src/SDCCloop.c (newInduction): fixed bug #845630
9737
9738 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9739
9740         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
9741         inadvertantly left behind from my 2003-11-12 change
9742
9743 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9744
9745         Updated headers I neglected to commit yesterday.
9746         * src/SDCClrange.h,
9747         * src/SDCCicode.h
9748
9749 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9750
9751         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
9752         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
9753         * src/SDCCopt.c (eBBlockFromiCode),
9754         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
9755         the creation of the key hash table from the sequencing so it can be used
9756         earlier (for some GCSE bug fixes still pending)
9757
9758 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9759
9760         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
9761         * support/regression/tests/addsub.c: testing genPlus shortcut
9762
9763 2003-11-15  Borut Razem <borut.razem AT siol.net>
9764
9765         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
9766
9767 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9768
9769         * src/SDCCcse.c (cseBBlock): fixed bug #527779
9770         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
9771         ordering is immaterial.
9772         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
9773
9774 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9775
9776         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
9777         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
9778         (SIGSEV) of bug #840381
9779         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
9780         unlink new file before rename if new and old filenames are the same)
9781
9782 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9783
9784         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
9785         uninitialized variables) for the mcs51. Set environment variable
9786         SDCC_GENRAMCLEAR to test.
9787         xdata initialization slightly shorter
9788
9789 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9790
9791         * src/SDCCsymt.h,
9792         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
9793         #838241 & 780691 (basicly the same bug)
9794         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
9795         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
9796
9797 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
9798
9799         * src/SDCCmain.c (linkEdit): "fix" #834252
9800
9801 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9802
9803         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
9804         * src/SDCCast.h,
9805         * src/SDCC.y: fixed bug #819403
9806
9807 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9808
9809         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
9810         the reentrant attribute.
9811         * src/hc08/gen.c (genPackBits): added missing stack readjustment
9812         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
9813         simulation
9814         * src/SDCCast.c (decorateType): fixed bug with storage class not being
9815         updated during pointer dereference; f.e. ~(((char *)1)*) was being
9816         erroneously reduced to a literal.
9817         * src/hc08/ralloc.c (packRegisters, rematStr),
9818         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
9819         some cases
9820
9821 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9822
9823         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
9824         * doc/sdccman.lyx: changed from 'article' to 'book'
9825         * doc/Makefile: readded test_suite_spec and cdbfileformat
9826
9827 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
9828
9829         * device/include/stdlib.h: include malloc.h to comply with ANSI
9830         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
9831
9832 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9833
9834         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
9835         * doc/clean.mk: also remove *.out files
9836         * doc/sdccman.lyx: some additions, larger top/bottom margins
9837
9838 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9839
9840         * src/SDCC.y: fixed bug #837365
9841         * support/regression/tests/bitopcse.c
9842         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
9843         a symbol (might be valop instead)
9844         * device/lib/Makefile.in: added errno.c to HC08SOURCES
9845         * device/lib/clean.mk: added hc08 to the cleaning list
9846
9847 2003-11-04  Borut Razem <borut.razem AT siol.net>
9848
9849         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
9850           made 2003-11-04
9851         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9852           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
9853           malloc is declared in standard stdlib.h
9854
9855 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9856
9857         * device/lib/hc08/Makefile: need to clean .rel not .o files
9858         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
9859
9860 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9861
9862         * src/port.h,
9863         * src/hc08/main.c,
9864         * src/mcs51/main.c,
9865         * src/ds390/main.c,
9866         * src/z80/main.c,
9867         * src/avr/main.c,
9868         * src/pic/main.c,
9869         * src/pic16/main.c,
9870         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
9871         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
9872         tests (which uses the port's oclsExpense function)
9873         * src/SDCC.y,
9874         * src/SDCCast.c,
9875         * src/SDCCicode.c,
9876         * src/hc08/gen.c,
9877         * src/ds390/gen.c,
9878         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
9879
9880 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9881
9882         * src/SDCCcse.c (ifxOptimize),
9883         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
9884         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
9885         deleting the IFX iCode.
9886         * src/hc08/ralloc.c: reduced unneeded slocs
9887         * src/hc08/gen.c: fixed bug in asmopToBoolean
9888
9889 2003-11-04  Borut Razem <borut.razem AT siol.net>
9890
9891         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
9892           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9893           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
9894           transferred to configure
9895
9896 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
9897
9898         Use headers defined in the C[++] standards:
9899         * sim/ucsim/gui.src/serio.src/fileio.cc
9900         * sim/ucsim/gui.src/serio.src/frontend.cc
9901         * sim/ucsim/gui.src/serio.src/main.cc
9902         * sim/ucsim/gui.src/serio.src/posix_signal.cc
9903         * support/Util/NewAlloc.c
9904         * as/hc08/lklibr.c
9905         * as/mcs51/lklibr.c
9906         * as/z80/aslist.c
9907         * as/z80/assym.c
9908
9909 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9910
9911         * Added MSVC projects for hc08 assembler and linker:
9912         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
9913         /as/hc08/link_hc08.dsp
9914
9915 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
9916
9917         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
9918
9919 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
9920
9921         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
9922
9923 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9924
9925         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
9926
9927 2003-10-31  Borut Razem <borut.razem AT siol.net>
9928
9929         * support/cpp2/cpplib.h,
9930           support/cpp2/cpplib.c,
9931           support/cpp2/cpplex.c,
9932           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
9933           to switch _asm block preprocessing on / off. Default is
9934           #pragma preproc_asm +
9935
9936 2003-10-31  Borut Razem <borut.razem AT siol.net>
9937
9938         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
9939           when outputting comment blocks (when executed with -C option) and
9940           _asm (SDCPP specific) blocks
9941
9942 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9943
9944         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
9945
9946 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
9947
9948         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
9949
9950 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
9951
9952         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
9953         * src/SDCCast.c (decorateType): fixed bug #832664
9954
9955 2003-10-31  Borut Razem <borut.razem AT siol.net>
9956
9957         * support/cpp2/cpplex.c: fixed for SDCPP:
9958           comments(when executed with -C option) and _asm blocks
9959           were included even if they where in skipped #if block.
9960           Applied solution from GCC cpp 3.3.2
9961
9962 2003-10-31  Borut Razem <borut.razem AT siol.net>
9963
9964         * src/SDCC.lex: sdcc now understands both formats:
9965           '# <line_number> <file_name>' and
9966           '#line <line_number> <file_name>'
9967         * support/cpp2/cppmain.c: sdcpp now generates the standard
9968           '# <line_number> <file_name>' instead of former
9969           '#line <line_number> <file_name>'
9970
9971 2003-10-30  Borut Razem <borut.razem AT siol.net>
9972
9973         * support/cpp2/cpphash.h,
9974         * support/cpp2/cpplib.h
9975         * support/cpp2/cpplex.c,
9976         * support/cpp2/cppmain.c,
9977         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
9978
9979 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9980
9981         Fixed a number of problems revealed by bug #827883.
9982         * src/SDCCloop.c (loopInvariants): Spill location of the
9983         result operand should be recomputed if extracted from
9984         a loop. Also, don't extract assignments of an iTemp
9985         from a literal.
9986         * src/SDCCast.c (isConformingBody): loop reversal should
9987         not occur if the control variable is involved with a
9988         relational operator.
9989
9990 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
9991
9992         * .version: bumped to 2.3.6 to reflect the big improvements
9993         made by Erik and Klaus. Thanks!
9994
9995 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
9996
9997         Replaced the livrange code.
9998         * src/SDCClrange.c: added new LR code
9999         * src/SDCCloop.c,
10000         * src/SDCCBBlock.h: removed remainig parts from old LR code
10001         * src/ds390/ralloc.c,
10002         * src/ds390/gen.c: minor fixes to make it work with new code
10003
10004 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10005
10006         * as/hc08/asm.h,
10007         * as/hc08/lkrloc.c,
10008         * src/hc08/gen.c,
10009         * src/hc08/ralloc.c: Fix various warnings related to the hc08
10010         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
10011         (tweaked fix for bug #818696)
10012
10013 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10014
10015         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
10016
10017 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10018
10019         * src/SDCCmain.c,
10020         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
10021         * src/mcs51/gen.c (gencjneshort),
10022         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
10023         more efficient (per Scott Bronson's suggestion)
10024
10025 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10026
10027         Extended the semantics of the critical keyword to include
10028         individual statements. See RFE #827755 and #799831
10029         * src/SDCC.y
10030         * src/SDCCicode.c
10031         * src/SDCCopt.c
10032         * src/SDCCast.c
10033         * support/Util/SDCCerr.c
10034         * support/Util/SDCCerr.h
10035         * src/mcs51/gen.c
10036         * src/ds390/gen.c
10037         * src/hc08/gen.c
10038
10039 2003-10-19  Borut Razem <borut.razem AT siol.net>
10040
10041         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
10042
10043 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10044
10045         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
10046         Fixed bug #818696
10047         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
10048         and predecrement operand is displayed
10049
10050 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10051
10052         * src/SDCCval.c (valMinus): fixed bug #826041
10053
10054 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10055
10056         Some hc08 related updates that I missed earlier
10057         * sim/ucsim/stypes.h
10058         * support/regression/ports/hc08/spec.mk
10059
10060 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10061
10062         New target "hc08" for the Motorola 68hc08 family of micros
10063
10064         * configure
10065         * configure.in
10066         * Makefile
10067         * src/hc08/*
10068         * src/SDCCmain.c
10069         * src/port.h
10070         * sim/ucsim/hc08.src/*
10071         * sim/ucsim/configure.in
10072         * src/ucsim/configure
10073         * sim/ucsim/packages_in.mk
10074         * as/hc08/*
10075         * as/Makefile
10076         * device/include/mc68hc908qy.h
10077         * device/lib/hc08/*
10078         * device/lib/Makefile.in
10079         * support/regression/ports/hc08/*
10080         * support/regression/Makefile
10081
10082 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10083
10084         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
10085         regression test
10086         * src/ds390/gen.c (genCast): fixed bug #821957
10087
10088 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10089
10090         * device/lib/logf.c: "fixed" overlay bug
10091         * support/regression/ports/host/spec.mk: added m library
10092         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
10093         * support/regression/tests/float_trans: added (for Eric)
10094
10095 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
10096
10097         * src/mcs51/gen.c (genCpl): fixed bug
10098         http://sf.net/mailarchive/message.php?msg_id=6263915
10099
10100 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
10101
10102         * src/SDCCast.c (decorateType): added extended constant folding
10103         * src/SDCCsymt.c (computeType): cleanup
10104         * src/SDCCval.c (valShift): minor optimization
10105         * support/regression/tests/ast_constant_folding.c: added
10106
10107 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10108
10109         * src/SDCCmain.c: removed some unintended changes
10110
10111 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10112
10113         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
10114         * src/z80/gen.c: fixed part of bug #817589
10115         * src/SDCCsymt.c (checkFunction): fixed bug #817895
10116
10117 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
10118
10119         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
10120         * src/SDCCcflow.c
10121         * src/SDCCcse.c
10122         * src/SDCCdflow.c
10123         * src/SDCClabel.c
10124         * src/SDCClrange.c
10125         * src/SDCCmem.c
10126         * src/SDCCopt.c
10127         * src/SDCCpeeph.c
10128         * src/SDCCset.c
10129         * src/avr/ralloc.c
10130         * src/ds390/ralloc.c
10131         * src/izt/ralloc.c
10132         * src/mcs51/ralloc.c
10133         * src/pic/ralloc.c
10134         * src/pic16/ralloc.c
10135         * src/xa51/ralloc.c
10136         * src/z80/ralloc.c
10137         * src/z80/gen.c: removed unused label "release:"
10138
10139 2003-10-06  Borut Razem <borut.razem AT siol.net>
10140
10141         * src/SDCC.lex: removed definition of unused variables
10142           save_optimize and save_options
10143
10144 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
10145
10146         * clean.mk: removed '=' in "-maxdepth=1"
10147         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
10148         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
10149
10150 2003-10-06  Borut Razem <borut.razem AT siol.net>
10151
10152         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
10153           my_unput() replaced by unput()
10154
10155 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
10156
10157         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
10158         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
10159         type-punned pointer will break strict-aliasing rules"
10160         Old LR behaviour is again default; Klaus' LR can be choosen by
10161         defining the environment variable LRKLAUS
10162         * src/SDCCBBlock.h
10163         * src/SDCCloop.c
10164         * src/SDCClrange.c
10165         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
10166         * clean.mk: fixed removal of files in bin/CVS/
10167         * device/lib/clean.mk: fixed removal of directories small and large
10168         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
10169         * src/SDCCicode.c,
10170         * src/SDCCval.c: removed superflous test for pedantic
10171
10172 2003-10-05  Borut Razem <borut.razem AT siol.net>
10173
10174         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
10175           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
10176           message "unmatched #pragma SAVE and #pragma RESTORE"
10177
10178 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10179
10180         * doc/sdccman.lyx: various additions and updates (interrupts, inline
10181           assembly, critical functions, atomic, nojtbound)
10182
10183 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
10184
10185         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
10186         * src/SDCCBBlock.h
10187         * src/SDCCloop.c
10188         * src/SDCCloop.h
10189         * src/SDCClrange.c
10190
10191 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10192
10193         * src/z80/gen.h,
10194         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10195         * src/mcs51/gen.h
10196         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10197         * src/ds390/gen.h
10198         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10199         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
10200         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
10201
10202 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10203
10204         * src/z80/gen.c (genRet): fixed bug #524753
10205         * src/z80/gen.c (genCast): fixed internal error on cast from
10206         pointer to long
10207         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
10208         fix for bug #477835 to the z80
10209         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
10210         for tracking iCodes in the peephole optimizer for z80
10211
10212 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10213
10214         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
10215         the other part of bug #814548
10216         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
10217
10218 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
10219
10220         * src/SDCCcse.c: fixed part of bug #814548
10221
10222 2003-09-28  Borut Razem <borut.razem AT siol.net>
10223
10224         * src/asm.c: rewrite of printILine() to use temporary file instead
10225           a pipe
10226         * src/xa51/main.c: commented out declaration of int rewinds
10227
10228 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229
10230         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
10231
10232 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10233
10234         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
10235         * src/asm.c (printILine): Fixed bug #811015
10236
10237 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10238
10239         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
10240         freeing.
10241
10242 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10243
10244         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
10245         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
10246         to correctly handle general case of AOP_PAIRPTR
10247         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
10248
10249 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10250
10251         * src/mcs51/ralloc.c (fillGaps),
10252         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
10253         register positioning bug)
10254
10255 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
10256
10257         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
10258
10259 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10260
10261         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
10262         genCodePointerGet, genGenPointerGet, genFarPointerSet,
10263         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
10264         (ralloc doesn't intentionally do this now, but perhaps later)
10265         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
10266         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
10267         register positioning bugs (Fixed bug #762602 and #795325)
10268         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
10269         (Fixed bug #808779)
10270         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
10271         lines that --i-code-in-asm generates
10272
10273 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10274
10275         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
10276         trying to fclose a FILE* that was already closed.
10277
10278 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10279
10280         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
10281         of const struct should be treated as if const themselves)
10282
10283 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
10284
10285         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
10286
10287 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10288
10289         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
10290         Unix (/n) and DOS (/r/n) line terminations.
10291
10292 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10293
10294         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
10295         bug #613775
10296
10297 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10298
10299         * src/mcs51/gen.c (genFunction, genEndFunction),
10300         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
10301         and restore of EA so that stack offsets to parameters are
10302         correct when using both critical and reentrant/stack-auto.
10303         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
10304         size (can be triggered in error if sloc is shared between
10305         different sized objects)
10306         * device/include/float.h: fixed macros to explicitly use
10307         unsigned long where needed
10308
10309 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
10310
10311         Feature req. 799831: added code to allow nesting of critical functions
10312         * src/mcs51/gen.c (genFunction, genEndFunction)
10313         * src/ds390/gen.c (genFunction, genEndFunction)
10314
10315 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10316
10317         * src/SDCCsymt.c (sclsFromPtr),
10318         * src/SDCCsymt.h,
10319         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
10320         support for standard C idiom of memory mapped variables; for
10321         example, *((xdata int*)0x1234) = 1 is now internally equivalent
10322         to xdata int at 0x1234 tempvar = 1.
10323         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
10324         provided by Akiya ISHIDA
10325
10326 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
10327
10328         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
10329         * src/SDCCval.c (constVal): added reduction from int to char
10330         * src/SDCCval.c (valMult, valDiv): fixed sign handling
10331         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
10332         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
10333         to ignore the sign
10334         * support/regression/tests/shifts.c: fixed
10335
10336 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10337
10338         * src/z80/gen.c (genXor): Fixed bug #805445
10339
10340 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10341
10342         Fixed bug #621531 (const & volatile confusion in the type chain).
10343         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
10344         refer to the const or volatile state of the pointer itself.
10345
10346         * src/SDCCast.c
10347         * src/SDCCglue.c
10348         * src/SDCCicode.c
10349         * src/SDCCsymt.c
10350         * src/SDCCval.c
10351         * src/SDCC.y
10352         * src/SDCCsymt.h
10353         * src/pic/gen.c
10354         * src/pic/ralloc.c
10355         * src/pic16/gen.c
10356         * src/pic16/ralloc.c
10357         * support/regression/tests/const.c
10358
10359 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10360
10361         When checking for duplicated modules, use absolute paths
10362         instead of relative paths.  Files changed:
10363
10364         * as/mcs51/lklib.c
10365         * link/z80/lklib.c
10366
10367 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
10370
10371 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10372
10373         * device/include/string.h: added size_t typedef, changed
10374         prototypes to use size_t, eliminated separate reentrant and
10375         non-reentrant declarations, added _memmove declaration
10376         * device/lib/_memcpy.c: changed to use size_t instead of int,
10377         changed /4 to >>2 to avoid division library call
10378         * device/lib/_memcmp.c,
10379         * device/lib/_memset.c,
10380         * device/lib/_strncat.c,
10381         * device/lib/_strncpy.c,
10382         * device/lib/_strncmp.c: changed to use size_t instead of int
10383         * device/lib/_memmove.c: new file (fixed bug #772294)
10384         * device/lib/Makefile.in: added _memmove.c
10385         * device/lib/z80/asm_strings.s: fixed bug #772290
10386         * support/regression/tests/bitfields.c: attempt to fix host assertion
10387         failure on amd64-unknown-linux2.2
10388
10389 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10390
10391         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
10392         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
10393         * as/z80/asmain.c (main): fixed bug #801766
10394
10395 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
10396
10397         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
10398         compilers
10399
10400 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10401
10402         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
10403         reported in bug #800609
10404
10405 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
10406
10407         * Top header beautifications in src/pic16 directory:
10408           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
10409           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
10410           pcoderegs.h, ralloc.c, ralloc.h
10411         * main.c: added top header and GPL license notice
10412         * pcode.c: fixed the if-conditional warning
10413
10414 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
10415
10416         * device/lib/_mullong.c: replaced int by short for gcc
10417
10418 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10419
10420         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
10421         and JUMPTABLE iCodes properly now (worked by accident before)
10422         * src/mcs51/gen.c (leftRightUseAcc),
10423         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
10424         iCode properly now. Use getSize instead of nRegs since a & b
10425         aren't part of the nRegs tally.
10426
10427 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
10428
10429         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
10430         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
10431           before instructions that use the _STATUS register
10432
10433 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
10434
10435         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
10436         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
10437         fetching of the pointer
10438         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
10439         copied from genNearPointerSet()
10440         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
10441         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
10442         If they pop r0/r1 they must be called in the opposite order than aopOp().
10443         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
10444         (resp. --stack-auto), prepared for --xstack
10445
10446 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10447
10448         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
10449
10450 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10451
10452         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
10453         these ports have their own __sdcc_external_start()
10454
10455 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
10456
10457         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10458         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
10459         type for bits was changed. It resulted in bit variables becoming
10460         global, which is not permitted in PIC 14 assembly output.
10461
10462 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10463
10464         * doc/sdccman.lyx: various additions and updates. Rearranged sections
10465
10466 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10467
10468         Z80 and MCS51 linkers complaint if a public symbol is defined
10469         in more than one library module:
10470
10471         * as/mcs51/lklib.c
10472         * link/z80/lklib.c
10473         * as/mcs51/Makefile.in
10474
10475 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10476
10477         A few small changes that speed up the peephole optimizer.
10478
10479         * src/SDCCpeeph.c
10480
10481 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10482
10483         Try to make the peephole optimizer smarter by maintaining
10484         an association between the assembly source code and the
10485         iCodes that originated them. Put this information to use
10486         with a new peephole rule condition "notVolatile" so that
10487         the rules can be aggressive yet still safe.
10488
10489         * src/SDCCpeeph.c
10490         * src/SDCCpeeph.h
10491         * src/mcs51/gen.c
10492         * src/mcs51/peeph.def
10493
10494 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10495
10496         Fixed bug #741761
10497
10498         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
10499         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
10500         if the left or right operand symbols have the accuse flag set.
10501
10502 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10503
10504         Changed the type of the result of the ! (NOT) operator to char;
10505         previously it returned the same type as the source. This allows
10506         us to eliminate all the genFloatNot functions (all of its target
10507         implementations were very buggy) since !float can use the same
10508         code as !long now.
10509
10510         * src/SDCCicode.c (ast2iCode): ! returns char
10511         * src/mcs51/gen.c (genNot, genNotFloat),
10512         * src/ds390/gen.c (genNot, genNotFloat),
10513         * src/z80/gen.c (genNot, genNotFloat),
10514         * src/pic/gen.c (genNot, genNotFloat),
10515         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
10516
10517 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
10518
10519         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10520         1. Interrupt would not compile properly. Ensure PCLATH register is saved
10521            during interrupts. Ensure WSAVE is located at a shared bank address.
10522         2. Fixed page selection in some places
10523         3. Fixed BTFSS/C to where necessary use registers directly and not simply
10524            the registers name strings.
10525         4. Fixed "signed / unsigned compare" compiler warnings.
10526         5. The PIC port manages its own allocation of the general purpose
10527            registers, but makes no attempt to reuse them. As a result when
10528            compiling it soon runs out of general purpose registers. Some
10529            additional code was added to the files pcode.c and device.c to walk
10530            through the function call tree and rename the registers so that they
10531            get reused.
10532
10533         * src/pic/device.c
10534         * src/pic/gen.c
10535         * src/pic/glue.c
10536         * src/pic/pcode.c
10537         * src/pic/pcode.h
10538         * src/pic/ralloc.c
10539         * src/pic/ralloc.h
10540         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
10541         genPlus() & genMinus() when the result is the same as left or right
10542
10543 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10544
10545         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
10546
10547 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10548
10549         Made bitfield a distinct type from bit so that bitfields
10550         convert as per ANSI C and bits retain their traditional
10551         boolean style behaviour. Implemented bitfield support in
10552         the z80 port.
10553
10554         * src/SDCCsymt.h,
10555         * src/SDCCsymt.c,
10556         * src/SDCCast.c,
10557         * src/cdbFile.c,
10558         * src/mcs51/gen.c,
10559         * src/ds390/gen.c: bit v bitfield split
10560         * src/z80/gen.c: New support for bitfields
10561         * support/regression/tests/bitfields.c: reenabled z80,
10562         added more tests
10563
10564 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10565
10566         Rules 246.x, 247.x relate to bitfields, the others speed up
10567         access to xdata mapped I/O devices.
10568
10569         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
10570
10571 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10572
10573         Cleaned up genPackBits and genUnpackBits and added two helper
10574         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
10575         for literal assignments in genPackBits (thanks to Frieder for
10576         reminding me).
10577
10578         * src/mcs51/gen.c
10579         * src/ds390/gen.c
10580
10581 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10582
10583         Fixed bug #748310 (pointer to function type mishandled when the
10584         function name is omitted). Also fixed a SIGSEGV when a function
10585         attribute (reentrant, etc) is used on a non-function or on a
10586         function but misplaced before the parameter list.
10587
10588         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
10589         bug #748310
10590         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
10591         * support/Util/SDCCerr.h,
10592         * support/Util/SDCCerr.c: Added func attr misuse error msg
10593
10594 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
10595
10596         Fixed bug #787649 by anonymous
10597         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
10598         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
10599
10600 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10601
10602         Fixed numerous bitfield problems.
10603
10604         * src/SDCC.y: More bitfield related error checking
10605         * src/SDCCsymt.h,
10606         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
10607         * support/Util/SDCCerr.h,
10608         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
10609         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10610         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10611         * support/regression/tests/bitfields.c: tests added
10612
10613 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10614
10615         Made the constant following the "interrupt" keyword optional. If
10616         omitted, the function will not automatically be given an entry
10617         in the interrupt vector table (similar to #pragma NOIV, but
10618         less syntacticly kludgy). The interrupt number is also now
10619         range checked. Also fixed a bug in the high order bit example
10620         in the manual.
10621
10622         * src/SDCC.y
10623         * src/SDCCmem.c
10624         * src/SDCCglue.c
10625         * src/SDCCsymt.h
10626         * support/Util/SDCCerr.c
10627         * support/Util/SDCCerr.h
10628         * doc/sdccman.lyx
10629
10630 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
10631
10632         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
10633         * src/SDCCicode.c (operandOperation): rewritten some ops
10634         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
10635         * src/SDCCsymt.c (computeType): literals are handled the same way as any
10636         other type
10637         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
10638         be re-activated by defining REDUCE_LITERALS)
10639         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
10640         unsigned, but are signed by default
10641         * src/SDCCval.c (constVal): rearranged
10642         * src/SDCCval.c (valMod): preliminary fix
10643         * src/SDCCval.c (valCastLiteral): use TYPE_* types
10644         * support/regression/literalop.c: added, work in progress
10645
10646 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10647
10648         Generate warnings for useless declarations like "char data;"
10649         that don't do what new users expect.
10650
10651         * src/SDCC.y
10652         * support/Util/SDCCerr.h
10653         * support/Util/SDCCerr.c
10654
10655 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
10656
10657         * src/SDCCval.c (valMult): fix overflow detection of negative int
10658
10659 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10660
10661         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
10662
10663         Changes to support big endian targets:
10664
10665         * src/ports.h
10666         * src/SDCCglue.c
10667         * src/avr/main.c
10668         * src/ds390/main.c
10669         * src/izt/i186.c
10670         * src/mcs51/main.c
10671         * src/pic/main.c
10672         * src/pic16/main.c
10673         * src/xa51/main.c
10674         * src/z80/main.c
10675
10676 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
10677
10678         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
10679         * device/lib/time.c: fixed warning "integer overflow in expression"
10680
10681 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
10682
10683         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
10684         * src/SDCCval.c (constVal): changed default to signed; hex and octal
10685         constants are unsigned; added recognition of "u" flag for unsigned
10686         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
10687         * src/SDCCval.c (valDiv, valMod): fixed signdness
10688         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
10689         signedness of modulo, left and right shift
10690         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
10691         * support/Util/SDCCerr.h: added warning W_INT_OVL
10692         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
10693         * src/SDCCast.c (ast_print): improved output of constants
10694
10695 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10696
10697         Fixed some warnings when building with MSVC:
10698
10699         * as/mcs51/asdata.c
10700         * as/z80/asdata.c
10701         * as/mcs51/asm.h
10702         * as/z80/asm.h
10703         * link/z80/aslink.h
10704         * link/z80/lkdata.c
10705         * link/z80/lkeval.c
10706         * link/z80/lkgb.c
10707         * link/z80/lkihx.c
10708         * link/z80/lks19.c
10709         * link/z80/lksym.c
10710         * support/cpp2/cpplib.c
10711         * src/ds390/gen.c
10712         * src/mcs51/gen.c
10713
10714 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
10715
10716         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
10717
10718 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10719
10720         * support/librarian/clean.mk: Do not remove Makefile.
10721         * support/librarian/Makefile: added.
10722
10723 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10724
10725         Added librarian to MSVC build:
10726         * all.dsp
10727         * sdcc.dsw
10728         * support/librarian/librarian.dsp
10729
10730         'configure' not needed for librarian, removed:
10731         * support/librarian/configure
10732         * support/librarian/configure.in
10733         * support/librarian/config_in.h
10734         * support/librarian/Makefile.in
10735
10736         Hopefully these ones built the librarian and the rest of sdcc properly:
10737         * Makefile
10738         * Makefile.common.in
10739
10740         Messed up 'configure', so revert to previous version:
10741         * configure
10742         * configure.in
10743
10744 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
10745
10746         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
10747         there, while the mantissa of a double is "only" 53 bits wide.
10748
10749 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10750
10751         Adding sdcclib to the build.  MSVC project coming soon.
10752         Files added/changed:
10753
10754         * support/librarian/clean.mk
10755         * support/librarian/configure
10756         * support/librarian/configure.in
10757         * support/librarian/config_in.h
10758         * support/librarian/Makefile.bcc
10759         * support/librarian/Makefile.in
10760         * support/librarian/sdcclib.c
10761         * Makefile.bcc
10762         * Makefile
10763         * Makefile.common.in
10764         * configure
10765         * configure.in
10766
10767 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10768
10769         Linker now complaints if linked modules have conflicting options, for
10770         example, one compiled using --model-large and another one compiled with
10771         --model-small.  The following files were modified:
10772
10773         * as/mcs51/asdata.c
10774         * as/mcs51/aslink.h
10775         * as/mcs51/asm.h
10776         * as/mcs51/asmain.c
10777         * as/mcs51/asout.c
10778         * as/mcs51/i51pst.c
10779         * as/mcs51/lkdata.c
10780         * as/mcs51/lklibr.c
10781         * as/mcs51/lkmain.c
10782         * as/z80/asdata.c
10783         * as/z80/asm.h
10784         * as/z80/asmain.c
10785         * as/z80/asout.c
10786         * as/z80/z80pst.c
10787         * link/z80/aslink.h
10788         * link/z80/lkdata.c
10789         * link/z80/lklibr.c
10790         * link/z80/lkmain.c
10791         * src/SDCCglue.c
10792
10793 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10794
10795         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
10796         as/mcs51/lklibr.c: Generate a warning when a library is not found.
10797
10798 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
10799
10800         * src/z80/mappings.i: fix _mul[us][int,long] entries
10801
10802 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10803
10804         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
10805
10806 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
10807
10808         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
10809         * support/regression/tests/bitopcse.c: added
10810         fixed warning:
10811         * src/avr/gen.c:
10812         * src/pic/gen.c:
10813         * src/pic16/gen.c:
10814         * src/z80/gen.c:
10815         * src/xa51/gen.c:
10816
10817 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10818
10819         added support for new library format to z80, gbz80 linkers:
10820         *link/z80/aslink.h
10821         *link/z80/lklex.c
10822         *link/z80/lklib.c
10823         *link/z80/lklist.c
10824
10825 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
10826
10827         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
10828         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
10829
10830 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
10831
10832         added DUMMY_READ_VOLATILE:
10833         * src/SDCC.y:
10834         * src/avr/gen.c:
10835         * src/xa51/gen.c:
10836         * src/z80/gen.c:
10837         * src/pic/gen.c:
10838         * src/pic16/gen.c:
10839         * src/mcs51/gen.c:
10840         * src/ds390/gen.c:
10841         * src/SDCCcse.c (algebraicOpts): many improvements
10842         * src/SDCCcse.h: removed algebraicOpts()
10843         * src/SDCCicode.c (picDummyRead): added
10844
10845 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10846
10847         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
10848         "Insufficient space in data memory".
10849
10850 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10851
10852         * src/mcs51/gen.c: fixed bug #771358
10853         * src/z80/gen.c: fixed bug #759087
10854
10855 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
10856
10857         * src/pic16/glue.c: minor cleanup by Vangelis
10858
10859 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10860
10861         * device/include/regc515c.h: fixed #758477
10862         * device/lib/_gptrget.c: saving some cycles in generic pointer get
10863         * device/lib/_gptrput.c: saved a few bytes
10864         * my tab spacing is 8, yours too?)
10865         * device/lib/_ser.c: process RX bytes earlier than TX bytes
10866         * device/lib/serial.c: process RX bytes earlier than TX bytes
10867         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
10868
10869 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10870
10871         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
10872
10873 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10874
10875     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
10876
10877 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
10878
10879         * device/lib/Makefile.in: bad fix, reverted to 1.43
10880
10881 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
10882
10883         * device/lib/Makefile.in: added missing z80 object files
10884
10885 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
10886
10887         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
10888         pic16 progress by Vangelis:
10889         * src/SDCCglobl.h:
10890         * src/SDCCmain.c:
10891         * src/pic/Makefile:
10892         * src/pic:
10893         * pic/Makefile:
10894         * pic16/device.c:
10895         * pic16/device.h:
10896         * pic16/gen.c:
10897         * pic16/gen.h:
10898         * pic16/genarith.c:
10899         * pic16/glue.c:
10900         * pic16/main.c:
10901         * pic16/pcode.c:
10902         * pic16/pcode.h:
10903         * pic16/pcodepeep.c:
10904         * pic16/peeph.def:
10905
10906 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10907
10908     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
10909
10910 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10911
10912     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
10913     added gbz80 build to MSVC project.
10914     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
10915     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
10916     from 8051 stuff and setup so it links using a .lnk file.
10917
10918 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10919
10920     * support/librarian/sdcclib.c: sdcc librarian.
10921     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
10922     with sdcclib.
10923
10924 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10925
10926     * as/mcs51/lkmain.c: properly handle extensions in function afile.
10927
10928 2003-07-02  Borut Razem <borut.razem AT siol.net>
10929
10930         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
10931         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
10932         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
10933         src/xa51/main.c, src/z80/main.c:
10934         virtualization of glue() function: each port has it's own glue function,
10935         which is accessed by do_glue function pointer in PORT.general structure
10936
10937 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
10938
10939         * DS800C400 fun, improved ROM interface and tinibios.
10940
10941 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
10942
10943         * More support for DS80C400. Now includes beginning of interface to ROM.
10944
10945 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
10946
10947         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
10948
10949 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10950
10951         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
10952
10953 2003-06-19  Borut Razem <borut.razem AT siol.net>
10954
10955         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
10956
10957 2003-06-19  Borut Razem <borut.razem AT siol.net>
10958
10959         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
10960         fixed Z80 port - crt0.o: cannot open.
10961
10962 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
10963
10964         * support/Util/MySystem.c (merge_command): revert bad fix
10965
10966 2003-06-18  Borut Razem <borut.razem AT siol.net>
10967
10968         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
10969
10970 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10971
10972         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10973         option --use-stdout sends errors to stdout instead of stderr.
10974
10975 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
10976
10977         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
10978
10979 2003-06-15  Borut Razem <borut.razem AT siol.net>
10980
10981         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
10982         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
10983         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
10984         fixed width array of pointers replaced with sets;
10985         multiple include and lib paths ared transferred to preprocessor and linker
10986         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
10987         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
10988         fixed width array of pointers
10989         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
10990         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
10991         fixupPath(), getPathDifference()
10992         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
10993         fixed width array of pointers
10994
10995 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
10996
10997         * src/pic16/ralloc.c: fix warnings
10998         * src/pic16/pcode.c: fix warning
10999
11000 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
11001
11002          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
11003         know all the details, but essentially this set of changes enable
11004         the pic16 port to generate movff instructions and generate assembler
11005         directives,
11006         * src/SDCCmain.c:
11007         * src/pic16/gen.c:
11008         * src/pic16/glue.c:
11009         * src/pic16/pcode.c:
11010         * src/pic16/device.c:
11011         * src/pic16/main.c:
11012         * src/pic16/pcode.h:
11013         * src/pic16/pcoderegs.c:
11014         * src/pic16/ralloc.c:
11015         * src/pic16/ralloc.h:
11016
11017 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11018
11019         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11020         added option --vc, so sdcc errors and warnings are compatible with
11021         Microsoft Visual Studio.
11022
11023 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11024
11025         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
11026           device/lib/libfloat.lib: added atof function.
11027
11028 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
11029
11030         * doc/sdccman.lyx: updated to Lyx 1.3
11031         * doc/cdbfileformat.lyx: updated to Lyx 1.3
11032         * doc/test_suite_spec.lyx: updated to Lyx 1.3
11033         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
11034
11035 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
11036
11037         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
11038
11039 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11040
11041         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
11042           additions to the "related tools/documentation" section
11043
11044 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
11045
11046         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
11047
11048 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
11049
11050         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
11051         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
11052
11053 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
11054
11055         * doc/sdccman.lyx: fix double dash and other minor things
11056         * doc/Makefile: fix double dash
11057
11058 2003-05-28  Karl Bongers(patches from Martin Helmling)
11059         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
11060           condition and ignore commands.
11061
11062 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11063
11064         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
11065           is in parts still quite out of date, I did changes as far as I felt makes sense
11066           for a non-native english speaker.
11067           Please feel free to add to the manual or to correct my changes.
11068         * doc/Makefile: undid touching the date of intermediate tex files.
11069
11070 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11071
11072         * doc/sdccman.lyx: Manual has an index now
11073
11074 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
11075
11076         Finalize muluint/mulsint and mululong/mulslong merging:
11077         * device/lib/_mulint.c
11078         * device/lib/_mullong.c
11079         * device/lib/gbz80/mul.s
11080         * device/lib/gbz80/stubs.s
11081         * device/lib/z80/mul.s
11082         * device/lib/z80/stubs.s
11083         * src/SDCCsymt.c (initCSupport)
11084
11085 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11086
11087         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
11088         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
11089           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
11090           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
11091           instead of /Zm500.
11092
11093 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11094
11095         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
11096           the regression tests I'm not brave enough to enable 245.b, 245.c
11097         * doc/sdccman.lyx: added latex preamble for hyperref package.
11098           Using pdflatex this will give you a hyperlinked pdf file with
11099           bookmarks. (prepend '%' before /usepackage if this breaks something)
11100
11101 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11102
11103          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
11104
11105 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
11106
11107         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
11108
11109 2003-05-21    <johan AT balder>
11110
11111         * src/SDCCglue.c (printIval): fixed bug #739934
11112
11113 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11114
11115         Applied patch from bug 737905 (renamed yylineo to mylineno):
11116         * src/altlex.c
11117         * src/SDCCast.c
11118         * src/SDCglobl.h
11119         * src/SDCC.lex
11120         * src/SDCCsymt.c
11121         * src/SDCCval.c
11122         * src/pic16/pcode.c: Cleaned warnings
11123         * src/pic16/pcodeflow.c: Cleaned warnings
11124         * src/pic16/pcoderegs.c: Cleaned warnings
11125
11126 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
11127
11128         * src/pic16/pcode.c: Cleaned warnings
11129         * src/pic16/pcodepeep.c: Cleaned warnings
11130         * src/pic16/ralloc.c: Cleaned warnings
11131
11132 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11133
11134         * doc/sdccman.lyx: fixed bug 739745
11135         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
11136
11137 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
11138
11139         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
11140         it can be defined with CFLAGS when running configure
11141         * src/SDCCmain.c: fixed compiling + linking with object files
11142
11143 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
11144
11145         * configure.in: configure for pic16 port,
11146             added --disable-pic16-port
11147         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
11148         * src/SDCCmain.c: linkOptions is changed to set *,
11149             added if/endif conditional macros to remove options help
11150             messages from optionsTable when a port is not configured, added
11151             support for the PIc16 port in the ports table, when executing
11152             the compiler with no port specified on command line, a default
11153             port is selected with the new macro DEFAULT_PORT which is
11154             defined in port.h, in setDefaultOptions() linkOptions is removed
11155             from initialization assignment, since now it is a set,
11156             parseCmdLine uses setParseWithComma for linkOptions, in
11157             linkEdit() linkOptions are accessed with new function indexSet()
11158             which returns the i'th item of a set variable. See SDCCset.c, in
11159             linkEdit() when calling buildCmdLine(), added linkOptions as
11160             last argument. Now users can pass arguments to gplink via the
11161             -Wl option, main() uses pic16glue() to glue up pic16 programs
11162         * src/SDCCpeeph.c: various changes to support pic16
11163         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
11164             return the i'th item of the set
11165         * src/SDCCset.h: added function prototype for indexSet()
11166         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
11167         * src/clean.mk: added pic16 in CLEANALLPORTS variable
11168         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
11169             added macro DEFAULT_PORT
11170         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
11171         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
11172             generated
11173         * src/pic16/glue.c: commented out some error producing lines
11174         * src/pic16/main.c: __config directives are commented out to stop
11175             gpasm complaining and test the linkage with gplink, _linkCmd and
11176             _asmCmd changed to be more gplink and gpasm friendly
11177         * src/pic16/peeph.def: peep rule 3 is commented out, since it
11178             produced an error when parsed, peep rule 12 is added to utilize
11179             movff, but it is commented out since the pCode does not support
11180             yet a command with 2 address arguments
11181
11182 2003-05-18    <johan AT balder>
11183
11184         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11185         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11186 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
11187
11188         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
11189   Added feature to script commands from file.
11190
11191 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
11192
11193         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
11194         * src/SDCCutil.c: include ctype.h for win32
11195
11196 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
11197
11198         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
11199
11200 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
11201
11202         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
11203   Fixed so you can set breakpoints prior to run, run does not stop
11204   on entry now.  Add tbreak.  Other enhancements and fixes for use
11205   with ddd.
11206
11207 2003-05-12  Borut Razem <borut.razem AT siol.net>
11208
11209         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
11210
11211 2003-05-11  Borut Razem <borut.razem AT siol.net>
11212
11213         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
11214         the path of bin directory, so that PATH is the only env. variable, which has to be set
11215         in case of standard installation.
11216         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
11217         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
11218         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
11219
11220 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
11221
11222         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
11223         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
11224         temp files are in the port dir; clean the gen/test directory when
11225         generating new test.c
11226         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
11227         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
11228         * support/regression/tests/zeropad.c: added
11229
11230 2003-05-09    <johan AT balder>
11231
11232         * src/SDCCglue.c: fixed bug #597940
11233
11234 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
11235
11236         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11237   cache sfr, optimize next,step, fix off by one sourceline,
11238   support ddd list function.
11239         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
11240
11241 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
11242
11243         * support/regression/HTMLgen.py: added compare_s2f()
11244         * support/regression/Makefile: redo 1.27
11245         * support/regression/generate-cases.py: redo 1.5
11246
11247 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
11248
11249         * support/regression/tests/float.c: workaround 33 bit hex constant
11250         * support/regression/tests/simplefloat.c: fix division for host
11251
11252 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
11253
11254         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
11255         that tame's the PIC's over-aggressive optimizer.
11256
11257 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11258
11259          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
11260          support for MSVC.
11261
11262 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
11263
11264         Initial support for DS80C400. "Hello world" runs on TINIm400
11265         (with polled I/O).
11266
11267 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
11268
11269          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11270          * Some notes on ddd usage added in debugger/README
11271          Martin Helmling adding more features and fixes for ddd GUI debugger.
11272          Code added for nexti, stepi, up, down, and other adjustments.
11273
11274 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
11275
11276         * src/pic/pCodepeep.c non-wildcard asmops are now handled
11277         * src/pic/peeph.def Added two rules to optimize carry manipulation
11278         * src/pic/* removed debug printfs
11279
11280 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
11281
11282         * debugger/mcs51/cmd.c: added header newalloc.h
11283
11284 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
11285
11286         * as/Makefile: new EXEEXT
11287         * as/z80/Makefile: remove trailing slash of BUILDIR
11288         * as/z80/clean.mk: new EXEEXT
11289         * Makefile.common.in: add to CFLAGS (and others), don't replace it
11290         * support/cpp2/Makefile.in: new EXEEXT
11291         * src/pic/glue.c (pic14emitRegularMap): fixed warning
11292
11293 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
11294
11295         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
11296         EXEEXT was introduced to fix all related problems with targets
11297         "clean", "install" and "uninstall"; a couple of further flaws
11298         especially with "clean" have been fixed too
11299         * as/mcs51/Makefile.in
11300         * as/mcs51/clean.mk
11301         * as/z80/Makefile
11302         * Makefile
11303         * clean.mk
11304         * debugger/mcs51/Makefile.in
11305         * debugger/mcs51/clean.mk
11306         * link/z80/Makefile
11307         * link/z80/Makefile.in
11308         * link/z80/clean.mk
11309         * link/Makefile
11310         * packihx/Makefile.in
11311         * packihx/clean.mk
11312         * sim/ucsim/Makefile
11313         * sim/ucsim/clean.mk
11314         * sim/ucsim/avr.src/Makefile.in
11315         * sim/ucsim/avr.src/clean.mk
11316         * sim/ucsim/s51.src/Makefile.in
11317         * sim/ucsim/s51.src/clean.mk
11318         * sim/ucsim/xa.src/Makefile.in
11319         * sim/ucsim/xa.src/clean.mk
11320         * sim/ucsim/z80.src/Makefile.in
11321         * sim/ucsim/z80.src/clean.mk
11322         * sim/ucsim/main_in.mk
11323         * sim/ucsim/packages_in.mk
11324         * sim/ucsim/gui.src/Makefile.in
11325         * sim/ucsim/gui.src/serio.src/Makefile.in
11326         * sim/ucsim/gui.src/serio.src/clean.mk
11327         * src/Makefile.in
11328         * src/clean.mk
11329         * support/cpp2/Makefile.in
11330         * support/cpp2/clean.mk
11331         * support/makebin/Makefile
11332         * support/makebin/clean.mk
11333         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
11334         * doc/sdccman.lyx: --program-suffix no longer needed
11335
11336 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
11337
11338          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
11339          Martin Helmling added support for ddd GUI debugger.
11340          Code added to display assembly, set variables, and other commands
11341          to interface to ddd.
11342
11343 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
11344
11345         * as/Makefile: fix target clean
11346         * as/clean.mk: fix target clean
11347         * as/z80/clean.mk: fix target clean
11348
11349 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
11350
11351         * Makefile.common.in: added  AT EXEEXT AT
11352         * configure.in: removed all mingw32 stuff
11353         * configure: rebuilt from configure.in
11354         * doc/sdccman.lyx: updated section "installation"
11355         * support/scripts/sdcc_mingw32: adapted to configure
11356         * support/scripts/sdcc_cygwin_mingw32: added
11357
11358 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
11359
11360         * src/pic Added object file support for the PIC port
11361         * src/pic Applied patch from Craig Franklin (this started the object file support)
11362         * src/regression Updated the PIC regression tests for object files
11363
11364 2003-04-20  Borut Razem <borut.razem AT siol.net>
11365
11366         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
11367           lklex.c: In function `getfid':
11368           lklex.c:203: warning: array subscript has type `char'
11369         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
11370           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
11371         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
11372           stack handling macros
11373
11374 2003-04-19  Borut Razem <borut.razem AT siol.net>
11375
11376         * "handling space characters in file path" task:
11377         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
11378         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
11379         * support/Util/MySystem.h: make it self-sufficient
11380         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
11381           src/z80/main.c, sdcc/as/mcs51/lklex.c:
11382           handling space characters in file path
11383         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
11384           (it will be used by assemblers, which have their own includes, e.g. gpasm)
11385         * support/Util/MySystem.c: handling space characters in executable's path
11386
11387 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
11388
11389         * as/z80/Makefile: fix permanent rebuild of z80
11390         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
11391         * support/regression/tests/bitfields.c: added Johan's bitfields.c
11392
11393 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
11394
11395         * src/SDCCopt.c: add special case optimization to replace modulo by
11396           a power of two with a bitwise AND.
11397
11398 2003-04-18    <johan AT balder>
11399
11400         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
11401
11402 2003-04-17    <johan AT balder>
11403
11404         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
11405         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
11406
11407 2003-04-13  Borut Razem <borut.razem AT siol.net>
11408
11409         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
11410         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
11411           fixed mingw problem in adl_NORMALIZE_PATH
11412
11413 2003-04-12  Borut Razem <borut.razem AT siol.net>
11414
11415         * fixed "#pragma SAVE/RESTORE can not be nested":
11416         * src/SDCC.lex: reworked pragma handling functions
11417         * sdcc/src/SDCCglobl.h: reworked stack handling macros
11418         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
11419
11420 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
11421
11422         * src/SDCCutil.c (pathEquivalent): defined but not used
11423         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
11424         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
11425         * configure: rebuilt from configure.in
11426         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11427         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11428         * device/include/Makefile.in: replace sdcc_datadir
11429         * device/lib/Makefile.in: replace sdcc_datadir
11430         * Makefile.common.in: add LDFLAGS from configure
11431         * packihx/Makefile.in: use LDFLAGS
11432         * src/Makefile.in: use LDFLAGS
11433         * support/cpp2/Makefile.in: add LDFLAGS from configure
11434         * support/makebin/Makefile: use LDFLAGS
11435         * .version: bumped version number to 2.3.5
11436
11437 2003-04-12  Borut Razem <borut.razem AT siol.net>
11438
11439         * completed "different paths" task:
11440         * src/SDCCmacro.c: fixed bug in handling quotes
11441         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
11442         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
11443
11444 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
11445
11446         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
11447
11448 2003-04-11 kevin Vigor <kevin AT vigor.nu>
11449
11450         * ds390/gen.c ds390/peeph.def: fix bug 706781
11451
11452 2003-04-11  Borut Razem <borut.razem AT siol.net>
11453
11454         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
11455
11456 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
11457
11458         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
11459         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
11460          set - this bit used to not be set...).
11461         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
11462           bad code in PIC Port
11463         * src/regression/and2.c added to test bug 609268
11464         * src/regression/Makefile added and2.c to regression test
11465
11466
11467 2003-04-08    <johan AT CP255758-A>
11468
11469         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
11470         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
11471         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
11472
11473 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
11474
11475         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
11476         fix bug #487815
11477         * support/cpp2/Makefile.in: fix bug #487815
11478         * configure: rebuilt from configure.in
11479         * Makefile.common.in: docdir changed, new path suffixes
11480         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11481         * sdcc_vc_in.h: reflect changes from sdccconf.h
11482         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
11483         * src/SDCCutil.h: remove BINDIR hack
11484         * doc/sdccman.lyx: update new path hierarchy
11485
11486 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11487
11488         * src/SDCCpeeph.c: added okToRemoveSLOC test
11489
11490 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11491
11492         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
11493
11494 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11495
11496         * src/SDCCpeeph.c: added labelIsReturnOnly test
11497         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
11498
11499 2003-04-05    <johan AT balder>
11500
11501         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
11502         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
11503         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
11504         * src/SDCCast.c: fixed a warning
11505         * src/SDCCast.h: fixed a warning
11506         * src/SDCCicode.c (operandFromAst): fixed a warning
11507
11508 2003-04-04    <johan AT balder>
11509
11510         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
11511         * src/SDCCast.c (decorateType): fixed bug #715076
11512         * src/SDCC.y: fixed bug #702907
11513
11514 2003-04-03    <johan AT balder>
11515
11516         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
11517         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
11518         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
11519         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
11520         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
11521
11522 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
11523
11524         * _decdptr.c: fix return values
11525         * _gptrget.c: fix return values
11526         * _gptrgetc.c: fix return values
11527         * _gptrput.c: fix return values
11528         * _mulint.c: fix return values
11529         * as/z80/Makefile: fix 'make -j' problem
11530
11531 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
11532
11533         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
11534         * configure.in: big cleanup, updated to autoconf 2.5x
11535         * configure: rebuilt from configure.in
11536         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11537         * sdcc_vc_in.h: reflect changes from sdccconf.h
11538         * doc/Makefile: fixed a flaw in "make install"
11539
11540 2003-04-02    <johan AT balder>
11541
11542         * src/ds390/gen.c (genCmp): no comments
11543         * src/mcs51/gen.c (genCmp): no comments
11544         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
11545         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
11546
11547 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
11548
11549         * support/regression/generate-cases.py: place generated file in given sub directory
11550         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
11551         * support/regression/Makefile: improvements for 'make -j';
11552         side effect: it's simpler and faster now
11553
11554 2003-03-31  Borut Razem <borut.razem AT siol.net>
11555
11556         * src/z80/main.c: link-{port} and as-{port} defined without path
11557         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
11558
11559 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
11560
11561         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
11562
11563 2003-03-30  Borut Razem <borut.razem AT siol.net>
11564
11565         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
11566           changed type of list parameter to set
11567         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
11568         * src/port.h: changed type of do_assemble() parameter to set
11569         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
11570           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
11571           definition of "cppoutfilename" macro with NULL value in preProcess()
11572         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
11573         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
11574         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
11575           replaced with set *binPathSet
11576         * shash_add() deallocates the item, if allready exsists, before adding the new one
11577         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
11578
11579 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
11580
11581         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
11582           a nested for loop bug in the PIC port
11583         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
11584           for loops
11585
11586 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
11587
11588         * support/Util/dbuf.h: remove C++ stuff to make it portable
11589
11590 2003-03-28  Borut Razem <borut.razem AT siol.net>
11591
11592         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
11593           literal strings in stringLiteral()
11594         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
11595         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
11596           to the project
11597
11598 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
11599
11600         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
11601
11602 2003-03-26    <johan AT balder>
11603
11604         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
11605         * src/ds390/gen.c (saveRegisters): catched symbol abuse
11606         * src/SDCCast.c (decorateType): fixed " -v < 3"
11607
11608 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
11609
11610         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
11611         Added Lenny Story's debug infrastructure changes:
11612         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
11613         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
11614         * src/cdbFile.c: added
11615         * src/SDCCdebug.c: added
11616         * src/SDCCdebug.h: added
11617         * src/SDCCast.c (createFunction)
11618         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
11619         * src/SDCCmain.c (parseCmdLine, main)
11620         * src/SDCCmem.c (redoStackOffsets)
11621         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
11622         * src/SDCCsymt.h
11623         * src/common.h
11624         * src/avr/gen.c (genAVRCode)
11625         * src/ds390/gen.c (gen390Code)
11626         * src/mcs51/gen.c (gen51Code)
11627         * src/pic/gen.c (genpic14Code)
11628         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
11629         * src/xa51/gen.c (genXA51Code)
11630         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
11631
11632 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11633
11634         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
11635         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
11636
11637 2003-03-22    <johan AT balder>
11638
11639         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
11640
11641 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
11642
11643         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
11644         * doc/cdbfileformat.lyx: added, written by Lenny Story
11645         * doc/Makefile: added cdbfileformat.lyx
11646         * doc/clean.mk: added cdbfileformat.lyx
11647
11648 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
11649
11650         * src/mcs51/peeph.def: fix bug #705773
11651
11652 2003-03-20    <johan AT balder>
11653
11654         An sfr/sbit can have an "at #" AND an initializer
11655         * src/SDCCsymt.c (checkSClass):
11656         * src/SDCCmem.c (allocGlobal):
11657         * src/SDCCmem.c (allocLocal):
11658         * src/SDCCast.c (createBlock):
11659
11660 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
11661
11662         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
11663
11664 2003-03-16    <johan AT balder>
11665
11666         Undid the hackup of const and volatile, the problem is much bigger
11667         * src/SDCC.y:1.65
11668         * src/SDCCast.c:1.171
11669         * src/SDCCglue.c:1.138
11670         * src/SDCCicode.c:1.146
11671         * src/SDCCsymt.c:1.150
11672         * src/SDCCval.c:1.65
11673
11674 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
11675
11676         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
11677         * src/ds390/gen.c (genAddrOf): fixed bug #704087
11678
11679 2003-03-13    <johan AT balder>
11680
11681         Hackup const and volatile modifiers in type chains a bit:
11682         * src/SDCC.y:1.63
11683         * src/SDCCast.c:1.169
11684         * src/SDCCglue.c:1.136
11685         * src/SDCCicode.c:1.143
11686         * src/SDCCsymt.c1.146
11687         * src/SDCCsymt.h1.59
11688         * src/SDCCval.c:1.63
11689
11690 2003-03-12    <johan AT balder>
11691
11692         * src/SDCCBBlock.h: more LRH debugging junk
11693         * src/SDCCcflow.h: more LRH debugging junk
11694         * src/SDCCloop.c: more LRH debugging junk
11695         * src/SDCC.y (struct_declaration): fixed bug #697590
11696         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
11697         * src/ds390/gen.c (aopForRemat): fixed bug #700031
11698         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
11699
11700 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11701         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
11702         test function names must now match exactly).
11703         * src/SDCCcse.c: added special case in findCheaperOp to allow
11704         extending a short integer. Makes less awful code for bug 700121 test case.
11705
11706 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11707
11708         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
11709         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
11710
11711 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11712
11713         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
11714         actually called (operandsNotEqual() was called for all
11715         operandsNotEqualX tests).
11716
11717 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11718
11719         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
11720         with shorter literals. Fixes bug 700121.
11721
11722 2003-03-11    <johan AT balder>
11723
11724         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
11725
11726 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
11727
11728         * src/SDCCloop.c (mergeRegions): an evil beast is dead
11729         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
11730
11731 2003-03-10  Borut Razem <borut.razem AT siol.net>
11732
11733         * src/SDCCmain.c: pipe preprocessor's output
11734         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11735         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11736         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11737         which closes all pipes in pipeSet set
11738         * src/SDCCset.c: free deleted item in function deleteSetItem()
11739         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11740         moved from z80 to src subproject
11741         * .version: increased version number to 2.3.4
11742
11743 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
11744
11745         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
11746         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
11747         * support/regression/ports/xa51/spec.mk: fix typo
11748
11749 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
11750
11751         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
11752
11753 2003-03-09  Borut Razem <borut.razem AT siol.net>
11754
11755         * src/SDCCmain.c: pipe preprocessor's output
11756         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11757         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11758         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11759         which closes all pipes in pipeSet set
11760         * src/SDCCset.c: free deleted item in function deleteSetItem()
11761         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11762         moved from z80 to src subproject
11763
11764 2003-03-09  Borut Razem <borut.razem AT siol.net>
11765
11766         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
11767         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
11768         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
11769         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
11770         * src/SDCCglobl.h: unification of WIN32 native definitions
11771
11772 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11773
11774         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
11775
11776 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
11777
11778         * src/configure.in:   check for endianess (even while cross-compiling)
11779         * src/configure:      check for endianess (even while cross-compiling)
11780         * src/configure_in.h: check for endianess (even while cross-compiling)
11781         * src/avr/gen.c:        remove old endianess stuff
11782         * src/mcs51/gen.c:      remove old endianess stuff
11783         * src/ds390/gen.c:      remove old endianess stuff
11784         * src/pic/gen.c:        remove old endianess stuff
11785         * src/pic/genarith.c:   remove old endianess stuff
11786         * src/pic/glue.c:       fix endianess check
11787         * src/pic16/gen.c:      remove old endianess stuff
11788         * src/pic16/genarith.c: remove old endianess stuff
11789         * src/pic16/glue.c:     fix endianess check
11790         * src/xa51/gen.c:       remove old endianess stuff
11791         * src/z80/gen.c:        fix endianess check
11792         * src/SDCCglue.c:       fix endianess check
11793         * src/ds390/peeph.def: fix bug 700036
11794
11795 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
11796
11797         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
11798         * src/configure: find appropriate data-types on host for SDCC's int and long
11799         * src/configure.in: find appropriate data-types on host for SDCC's int and long
11800         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
11801         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
11802
11803 2003-03-07    <johan AT balder>
11804
11805         Just a big NOOP:
11806                 some minor cleanups before the big shot
11807                 OP_DEFS and OP_USES now use Kevin's protection
11808                 new option --nolabelopt
11809
11810         * src/SDCCBBlock.c:
11811         * src/SDCCast.c,:
11812         * src/SDCCcflow.c:
11813         * src/SDCCcse.c:
11814         * src/SDCCicode.c:
11815         * src/SDCCicode.h:
11816         * src/SDCClabel.c:
11817         * src/SDCCloop.c:
11818         * src/SDCCmain.c:
11819         * src/ds390/ralloc.c:
11820         * src/mcs51/ralloc.c:
11821         * src/pic/ralloc.c:
11822         * src/xa51/ralloc.c:
11823         * src/z80/ralloc.c:
11824
11825 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
11826
11827         * src/pic/pcode.c (get_op): fix 64 bit warnings
11828         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
11829         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
11830         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
11831         * support/regression/tests/malloc.c: fix 64 bit warnings
11832
11833 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
11834
11835         * src/mcs51/gen.c (genMinus): fixed bug 696436
11836
11837 2003-03-02  Borut Razem <borut.razem AT siol.net>
11838
11839         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
11840
11841 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
11842
11843         * configure.in: test for mkstemp
11844         * sdccconf_in.h: add HAVE_MKSTEMP
11845
11846 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
11847
11848         * device/include/ctype.h: removed warning while using --stack-auto
11849         * device/include/malloc.h: removed warning while using --stack-auto
11850         * device/include/string.h: removed warning while using --stack-auto
11851
11852 2003-02-23  Borut Razem <borut.razem AT siol.net>
11853
11854         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
11855         because NDEBUG is defined (see man assert)
11856         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
11857
11858 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11859
11860         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
11861         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
11862
11863 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11864
11865         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
11866         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
11867
11868 2003-02-18    <johan AT balder>
11869
11870         * as/mcs51/asmain.c (asmbl): module can start with a digit
11871         * as/z80/asmain.c (asmbl): module can start with a digit
11872
11873 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
11874
11875         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
11876         * src/asm.c: fix pipe() for Mingw32
11877
11878 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
11879
11880         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
11881         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
11882         make -V work again; --c1mode reads now from stdin
11883         * doc/sdccman.lyx: added --c1mode
11884         * support/Util/SDCCerr.c: new messages for c1 mode
11885         * support/Util/SDCCerr.h: new messages for c1 mode
11886         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
11887
11888 2003-02-15    <johan AT balder>
11889
11890         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
11891
11892 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
11893
11894         * doc/sdccman.lyx: Environment variables, -o and other minor things
11895
11896 2003-02-14    <johan AT balder>
11897
11898         * src/xa51/main.c: before anyone really tries to use it :)
11899
11900         * Install doc's in share/sdcc/doc
11901         * removed some obsolete files
11902         * Do a proper make distclean and uninstall
11903         M Makefile.common.in
11904         R sdccbuild.sh
11905         M as/Makefile
11906         M device/include/Makefile.in
11907         M device/lib/Makefile.in
11908         M doc/sdccman.lyx
11909         M link/Makefile
11910         M sim/ucsim/doc/Makefile.in
11911         M src/clean.mk
11912         R src/avr/peeph.rul
11913         R src/xa51/peeph.rul
11914         M support/cpp2/Makefile.in
11915         M support/makebin/Makefile
11916
11917
11918 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
11919
11920         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
11921
11922 2003-02-10  Borut Razem <borut.razem AT siol.net>
11923
11924         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
11925         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
11926         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
11927         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
11928         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
11929         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
11930         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
11931         src/z80/Makefile.bcc: Borland Makefile cleanup
11932         * as/z80/Makefile.bcc: Added Borland Makefile
11933         * support/cpp2/borland.h: Removed
11934
11935 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
11936
11937         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
11938         * src/SDCC.lex: new pragma NOIV
11939         * src/SDCCglobl.h: new pragma NOIV
11940         * src/SDCCmem.c: new pragma NOIV
11941
11942 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
11943
11944         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
11945
11946 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
11947
11948         * src/SDCCmain.c: signal handling is switched off by --debug
11949         * doc/Makefile: small fix for install; use clean.mk again
11950         * doc/clean.mk: clean *.pdf and *.html too
11951
11952 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
11953
11954         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
11955         * device/lib/printfl.c: fix a ds390 bug by making it portable
11956         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
11957         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
11958         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
11959         * debugger/mcs51/cmd.c: converted multi-line string literals
11960         * sim/ucsim/globals.cc: converted multi-line string literals
11961         * src/SDCCmain.c: introduced signal handler to remove temp files
11962         * doc/Makefile: small tweaks, implement clean
11963         * doc: removed generated files
11964
11965 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11966
11967         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
11968         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
11969         Address Record is not correctly generated for DS390."
11970
11971 2003-02-02  Borut Razem <borut.razem AT siol.net>
11972
11973         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
11974         * as/mcs51/asm.h: fixed compilation with Borland C
11975         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
11976         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
11977         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
11978         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
11979         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
11980         src/z80/Makefile.bcc: delete $(LIB) only if exist
11981         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
11982
11983 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
11984
11985         * device/include/malloc.h: introduced NULL
11986         * device/include/string.h: introduced NULL
11987         * device/include/stdlib.h: introduced NULL
11988         * device/lib/_memcpy.c: removed NULL
11989         * device/lib/_strcat.c: removed NULL
11990         * device/lib/_strchr.c: removed NULL
11991         * device/lib/_strcmp.c: removed NULL
11992         * device/lib/_strcpy.c: removed NULL
11993         * device/lib/_strcspn.c: removed NULL
11994         * device/lib/_strlen.c: removed NULL
11995         * device/lib/_strncat.c: removed NULL
11996         * device/lib/_strncmp.c: removed NULL
11997         * device/lib/_strncpy.c: removed NULL
11998         * device/lib/_strpbrk.c: removed NULL
11999         * device/lib/_strrchr.c: removed NULL
12000         * device/lib/_strspn.c: removed NULL
12001         * device/lib/_strstr.c: removed NULL
12002         * device/lib/_strtok.c: removed NULL
12003         * device/lib/malloc.c: removed NULL, include own header
12004
12005 2003-02-02    <johan AT balder>
12006
12007         * 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
12008         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
12009         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
12010         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
12011         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
12012         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
12013
12014 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12015
12016         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
12017         area 'DATA'"
12018
12019 2003-02-01    <johan AT balder>
12020
12021         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
12022
12023 2003-01-31    <johan AT CP255758-A>
12024
12025         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
12026
12027 2003-01-30    <johan AT balder>
12028
12029         * src/SDCCBBlock.c: automatic bug detection
12030         * src/SDCCicode.c: automatic bug detection
12031
12032 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12033
12034         * src/SDCCglobl.h:   now --xram-size 0 works
12035         * src/SDCCmain.c:    now --xram-size 0 works
12036
12037 2003-01-29    <johan AT balder>
12038
12039         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
12040
12041 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12042
12043         * as/mcs51/aslink.h: Added options --xram-size and --code-size
12044         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
12045         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
12046         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
12047         * src/SDCCglobl.h:   Added options --xram-size and --code-size
12048         * src/SDCCmain.c:    Added options --xram-size and --code-size
12049
12050 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
12051
12052         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
12053         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
12054
12055 2003-01-27    <johan AT balder>
12056
12057         * src/SDCC.y: fixed bug #613764
12058
12059 2003-01-26    <johan AT balder>
12060
12061         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
12062         * src/SDCCsymt.h: fixed bug #673374
12063         * src/SDCCglue.c: fixed bug #661910
12064         * src/SDCCast.c: fixed bug #458099 and 673374
12065
12066 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
12067
12068         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
12069         * as/mcs51/strcmpi.h: added
12070         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
12071         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
12072         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
12073         * as/mcs51/assym.c: strcmpi -> as_strcmpi
12074         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
12075         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
12076         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
12077         * as/mcs51/Makefile.aslink: new module strcmpi
12078         * as/mcs51/Makefile.asx8051: new module strcmpi
12079         * as/mcs51/Makefil.bcc: new module strcmpi
12080         * as/mcs51/Makefile.in: new module strcmpi
12081         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
12082
12083 2003-01-26    <johan AT balder>
12084
12085         * src/SDCCglue.c: reverted back to 1.124
12086         * src/SDCCast.c: reverted back to 1.156
12087         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
12088
12089 2003-01-25    <johan AT balder>
12090
12091         * src/SDCCglue.c: A better fix for bug #661910
12092         * src/SDCCast.c: A better fix for bug #661910
12093         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
12094
12095 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12096
12097         * src/Makefile.in: remove spawn.o
12098         * src/SDCCmain.c: remove spawn.h
12099         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
12100         * src/spawn.c: removed
12101         * src/spawn.h: removed
12102         * support/regression/ports/ds390/spec.mk: link with -r
12103
12104 2003-01-24    <johan AT CP255758-A>
12105
12106         * src/ds390/gen.c (aopOp): fixed bug #667458
12107         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
12108         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
12109         (createIvalCharPtr): an ival doesn't always have a storage class anymore
12110
12111 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12112
12113         * src/mcs51/peeph.def: better assembler identation by Frieder
12114         * src/mcs51/gen.c: better assembler identation by Frieder
12115
12116 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
12117
12118         * as/z80/string.h: removed for gcc 3.2
12119         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
12120         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
12121
12122 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12123
12124         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
12125         * src/SDCCpeeph.c (replaceRule): fix bug #663503
12126         * support/regression/Makefile: separate temp files for ports
12127         * support/regression/generate-cases.py: separate temp files for ports
12128         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12129         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12130
12131 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12132
12133         * moved tinitalk to device/examples/ds390
12134
12135 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
12136
12137         * as/mcs51/lkmem.c: rflag is for DS390
12138         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
12139         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
12140                          (linkEdit): move mem- and map-files the same way as ihx-files
12141         * src/z80/main.c (_setDefaultOptions): removed --generic
12142         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
12143         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
12144         * src/pic/glue.c (picglue): --c1mode works again
12145         * src/pic16/glue.c (pic16glue): --c1mode works again
12146         * src/asm.c (printCLine): fix #660034
12147
12148 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
12149
12150         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
12151         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
12152         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
12153         * as/mcs51/lkmem (summary): better fix for sp problem
12154         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
12155         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
12156         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
12157                                               remove --stack-after-data
12158
12159 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
12160
12161         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
12162         * src/SDCCutil.c (join): ugly bug: missing '\0'
12163         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
12164
12165 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12166
12167         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
12168         * src/port.h: typo
12169         * src/pic/main.c (_asmCmd): gpasm supports -o
12170         * src/z80/main.c: more general macros
12171         * device/lib/Makefile.in: remove intermediate files
12172
12173 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12174
12175         * .version: Bumped version number to 2.3.3
12176         * src/SDCCBBlock.c: new option -o
12177         * src/SDCCglobl.h: new option -o
12178         * src/SDCCglue.c: new option -o
12179         * src/SDCCmain.c: new option -o
12180         * src/asm.c: new option -o
12181         * src/ds390/main.c: new option -o
12182         * src/pic/glue.c: new option -o
12183         * src/pic/pcode.c: new option -o
12184         * src/pic/ralloc.c: new option -o
12185         * src/pic16/glue.c: new option -o
12186         * src/pic16/pcode.c: new option -o
12187         * src/pic16/ralloc.c: new option -o
12188         * src/z80/main.c: new option -o
12189         * device/lib/Makefile.in: use -o
12190         * support/regression/ports/ds390/spec.mk: use -o
12191         * support/regression/ports/gbz80/spec.mk: use -o
12192         * support/regression/ports/mcs51/spec.mk: use -o
12193         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
12194         * support/regression/ports/z80/spec.mk: use -o
12195         * support/regression/ports/ucz80/spec.mk: use -o
12196         * support/regression/ports/xa51/spec.mk: use -o
12197         * support/regression/fwk/lib/timeout.c: fix usage string
12198
12199 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
12200         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
12201
12202 2003-01-07    <johan AT balder>
12203
12204         * src/SDCCast.c (decorateType): fixed bug #600035
12205
12206 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
12207         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
12208         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
12209         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
12210         * src/pic/pcode.c: outcommented unused variable to remove warnings
12211         * src/pic/ralloc.c: outcommented unused variable to remove warnings
12212
12213 2003-01-06    <karl AT turbobit.com>
12214         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
12215    regression tests.
12216
12217 2003-01-06    <johan AT balder>
12218
12219         * src/SDCCicode.c: fixed array add
12220
12221 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
12222         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
12223         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
12224
12225 2003-01-04    <johan AT balder>
12226
12227         * src/SDCCval.c (getNelements): fixed the initialized array of structures
12228
12229 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12230         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
12231
12232 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
12233         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
12234         * support/regression/tests/bug-524697.c: fit mem usage into 8032
12235
12236 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
12237         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
12238
12239 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
12240         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
12241
12242 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
12243         * src/mcs51/main.c: removed {bindir}{sep} from aslink
12244
12245 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12246
12247     * in /sdcc/as/mcs51/ changed these files in order to create an
12248     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
12249     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
12250     following files to include the previous two files: aslink.dsp,
12251     Makefile.aslink, Makefile.bcc, and Makefile.in.
12252
12253     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
12254     .adb instead of .cdb
12255
12256 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12257
12258         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
12259         value from option --iram-size.
12260
12261 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12262
12263         * /sdcc/as/mcs51/lklist.c: added boundary check before using
12264         dram[] array.
12265
12266 2002-09-18    <wiml AT hhhh.org>
12267
12268         * SDCClrange.h: exposed setFromRange() and setToRange()
12269         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
12270           packRegsForAccUse() (bug 542397)
12271         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
12272           multiple times and emitting the fetch operations more than once
12273           added aopGetUsesAcc() function to allow binary operators to
12274           fetch their operands in the correct order; made genMinus() emit
12275           compact code for X = LITERAL - Y
12276
12277 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12278         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
12279         sprintf() in line 1267.
12280
12281 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12282         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
12283         like ports.
12284
12285 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12286         Changes to aslink (All the changes are marked with 'JCF'):
12287
12288         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
12289         summary().
12290
12291         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
12292         area BSEG.  Also moves, if possible, the DATA area down into the internal
12293         ram so more space is available.
12294
12295         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
12296         sflag.
12297
12298         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
12299         not bytes.  Function summary() which creates a memory usage summary
12300         file with extension .mem.  Reports of overlaping stack and small stack
12301         size.  If the space for the stack is less than 16 bytes aslink trows a
12302         warning.
12303
12304         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
12305         the 8051.  Option 'y' for memory summary output file.
12306
12307         Changes to sdcc (All the changes are marked with 'JCF'):
12308
12309         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
12310
12311         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
12312         overlaying area for it (uses RegBankUsed[4]).
12313
12314         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
12315         bank zero as used by default.  By default aslink locates the stack
12316         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
12317         the creation of the .mem file.  Delegates the allocation of data area
12318         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
12319         the begining of the stack area to aslink.
12320
12321         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
12322         glue() in SDCCglue.c creates an area for it.
12323
12324 2002-09-03  Borut Razem <borut.razem AT siol.net>
12325         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
12326         sdcc/src/pic/glue.c:
12327         introduced atexit() handler for teporay files removal in case of
12328         errors, assertions, ...
12329
12330 2002-08-29  Borut Razem <borut.razem AT siol.net>
12331         * sdcc/support/cpp2/auto-host_vc_in.h:
12332         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
12333         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
12334         Maybe there is a similar problem with BORLANDC? It should be checked!
12335
12336         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
12337         corrected improper use of assert: the assignment to clr variable was done inside the assert.
12338         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
12339         was not executed, and the compiler (cl) launched a warning:
12340         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
12341
12342 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12343         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
12344
12345 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
12346         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
12347
12348         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12349           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
12350           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
12351           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12352           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
12353           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
12354           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
12355         - added Release configuration in VS projects
12356         - review of compiler an linker options
12357         - VC .exe files are generated in bin_vc directory, not to interfere
12358           with binaries generated from other projects (cygwin, mingw, bcc ...)
12359
12360         * sdcc/src/yacc.dsp: added
12361
12362         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
12363         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
12364         and insert the version number definitions from .version
12365
12366         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
12367
12368         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
12369         added - genarate auto-host.h using auto-host_vc_in.h as template
12370
12371         * sdcc/sdcc_vc.h,
12372         removed from CVS, generated automatically
12373
12374 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
12375         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
12376
12377 2002-08-11  Borut Razem <borut.razem AT siol.net>
12378         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
12379
12380 2002-08-10  Borut Razem <borut.razem AT siol.net>
12381         * src/SDCCmain.c (main):
12382         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
12383         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
12384         The consequence was that some temporary files were not removed.
12385
12386         * src/SDCCglue.c:
12387         unification of code in functions tempfilename() and tempfile():
12388         function tempnam() is defined in Visual Studio 6.0 and .NET
12389
12390         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
12391
12392         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12393           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
12394         - removed compiler command line option /WX: Treats all warnings as errors
12395         - update a list of source files, included into the project
12396
12397         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12398           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
12399         changed project type to Generic Project so that can be correcly converted to VS.NET project
12400
12401         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
12402
12403         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
12404
12405         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
12406
12407         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
12408         added return 0 statements after assert() to make compiler happy
12409
12410         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
12411         added newline in the def file to keep MSC compiler satisfied
12412
12413         * sdcc/src/z80/gen.c:
12414         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
12415           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
12416         - solved MSC error in function aopDump()
12417
12418         * sdcc_vc.h: define PREFIX as "\\sdcc"
12419
12420 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
12421         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
12422
12423 2002-06-22  Scott Dattalo <scott AT dattalo.com>
12424         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
12425         - Rewrote the register banking algorithm.
12426         - Added pCode live-range analysis to registers (for now, only non-used and
12427         singly-used registers optimized away)
12428
12429         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
12430
12431         * 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.
12432
12433 2002-05-10  Scott Dattalo <scott AT dattalo.com>
12434         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
12435
12436 2002-04-22  Michael Hope  <michaelh AT vroom>
12437
12438         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
12439
12440         * configure.in (DD_COPT): Added include support required for gbdk.
12441
12442         * .version: Bumped version number just to increase it.
12443
12444         * src/SDCCmain.c: Added -nostdinc to the default options.
12445
12446 2002-04-15  Michael Hope  <michaelh AT vroom>
12447
12448         * device/lib/z80/printf.c (sprintf): Added.
12449
12450         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
12451
12452         * src/z80/peeph.def: Added transpose redundent load rule.
12453
12454         * src/z80/main.c: Added force callee saves for jaune.
12455
12456         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
12457
12458         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
12459
12460 2002-03-28  Johan Knol  <johan AT balder>
12461
12462         * src/SDCCval.c: fixed bug #532436
12463
12464 2002-03-14  Scott Dattalo <scott AT dattalo.com>
12465         * /src/port.h:
12466         Added "char *Processor" field to the port structure.
12467
12468         * /src/SDCCmain.c:
12469         Added -p option. Allows port dependent processor to be specified.
12470
12471         * all ports:
12472         Initialized the new field char *Processor field to NULL in all ports
12473
12474         * /src/pic/*:
12475         Compiler generated registers for interrupt context saving
12476         were not getting allocated.
12477
12478 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
12479
12480         * /src/SDCCast.c:
12481         Fixed left shift. Will promote the left side of a left shift
12482         if a) left shifting more than size of operand or b) when assigned
12483         to something size > size of left side
12484
12485 2002-03-14  Scott Dattalo <scott AT dattalo.com>
12486         * src/pic/*
12487         tons of changes. Register allocation has been
12488         rewritten. Added customization for the various PICs. Flow
12489         analysis is restructured. ...
12490
12491         * src/pic/device.h:
12492         Added
12493
12494         * src/pic/device.c:
12495         Added. device.c is a PIC port hack to accomodate variations
12496         in PIC devices.
12497
12498 2002-03-13  Michael Hope  <michaelh AT vroom>
12499
12500         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
12501
12502 2002-03-04  johanknol  <johanknol AT manik>
12503
12504         * /src/SDCCval.c: fixed
12505
12506         const unsigned char arr[][2] = { { 0, 1 } };
12507         t18.c:1: error: Initializer element is not constant
12508
12509 2002-03-04  bela  <bela AT manik>
12510
12511         * /device/include/mcs51reg.h:
12512         ds89c420 register definition update
12513
12514 2002-03-03    <johan AT FRIJA>
12515
12516         * support/Util/SDCCerr.c: did something, but don't no why anymore
12517
12518         * support/regression/tests/bug-524691.c: made it a little less shy
12519
12520         * src/SDCCast.c (decorateType): fixed bug #524697
12521
12522         * src/SDCCast.c: made some lineno improvements
12523
12524         * src/SDCCval.c (getNelements): changed warning to error
12525
12526         * src/SDCCglue.c (printIvalArray): changed warning to error
12527
12528         * src/SDCCicode.c: fixed a warning for mingw
12529
12530         * src/SDCCast.c (decorateType): fixed the << promotion for ops
12531
12532         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
12533
12534 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
12535
12536         * src/ds390/peeph.def:
12537         Added some more peephole rules
12538
12539         * src/ds390/gen.c: Various fixes & enhancements
12540
12541         * src/SDCClrange.c, src/SDCClrange.h:
12542         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
12543
12544         * src/ds390/ralloc.c:
12545         various fixes & enhancements (ds390) specific
12546
12547         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
12548         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
12549         from rallocs.
12550
12551         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
12552
12553 2002-03-02    <johan AT FRIJA>
12554
12555         * src/SDCCast.c (decorateType): fixed bug #524708
12556
12557         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
12558
12559         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
12560
12561 2002-03-01  Michael Hope  <michaelh AT vroom>
12562
12563         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
12564
12565         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
12566
12567 2002-03-01    <johan AT FRIJA>
12568
12569         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
12570
12571         * src/SDCCast.c (decorateType): fixed bug #524209
12572
12573         * src/SDCCval.c (valNot): fixed bug #524195
12574
12575 2002-02-26    <johan AT balder>
12576
12577         * src/xa51/gen.c: fixed a warning
12578
12579         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
12580
12581         * src/SDCCast.c (decorateType): fixed bug #522534
12582
12583 2002-02-23    <johan AT balder>
12584
12585         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
12586
12587 2002-02-22    <johan AT balder>
12588
12589         * src/SDCCast.c: fixed bug #514865
12590
12591         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
12592
12593 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
12594
12595         * sdcc/src/SDCCloop.c:
12596         Previous fix was not good. basic blocks that have "break" or "return" are
12597         not really partof a loop , but live ranges used in these blocks should
12598         be live thru the entire loop, so set partOfLoop but don't add them to
12599         loop region
12600
12601 2002-02-21    <johan AT FRIJA>
12602
12603         * src/SDCCcse.c: fixed bug #514308
12604
12605 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
12606
12607         * src/SDCCloop.c:
12608         Fixed BUG #519583. If a conditional block ended in a return/break
12609         statement inside a loop, it was not being considered part of the loop.
12610
12611         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
12612
12613 2002-02-10  Karl Bongers <karl AT turbobit.com>
12614
12615         * debugger/*:
12616         Fixed up SDCDB debugger somewhat.  Updated debugger/README
12617         with lots of comments and notes.
12618
12619         * device/examples/test2.c:
12620         Fix bug, "red" variable not being initialized(compiler complained).
12621
12622         * device/examples/Makefile, examples/test3.c:
12623         Add Makefile in device/examples folder, compiles test3.c
12624         for use as a multiple module SDCDB test case.
12625
12626         * sim/ucsim/cmd.src/cmdset.cc:
12627         Took out debug printfs in ucsim "next" command.
12628
12629         * sim/ucsim/xa.src:
12630         Karl and Johan start ucsim XA support.  Most dissassembly working,
12631         about 75% emulation done(plenty of work remaining).
12632
12633         * sim/ucsim/z80.src:
12634         Add Z80 support to ucsim, add test-ucz80 regression test,
12635         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
12636         Notice z80 compiler fails on examples/test3.c/crc code.
12637
12638 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
12639
12640         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
12641         Added support for --parms-in-bank1
12642
12643         * src/ds390/peeph.def:
12644         added a few more peephole optimzations
12645
12646         * src/ds390/main.c:
12647         1) added __builtin_inp & __builtin_outp used to read in data of given length
12648            from a memory mapped port
12649         2) added __builtin_memcmp
12650         3) added __builtin_swapw swap bytes of a short
12651
12652         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
12653         1) handle multiple send & receives from register bank1
12654         2) ralloc can now allocate DPTR1 to some liveRanges
12655
12656         * src/SDCCsymt.c, src/SDCCsymt.h:
12657         changes to handle multiple sends & receives
12658
12659         * src/SDCCptropt.h:
12660         added some pointer arithmetic optimization
12661
12662         * src/SDCCptropt.c:
12663         added some pointer arithmetic optimizations but not stable yet so not
12664         called from anywhere (will get this working shortly)
12665
12666         * src/SDCCopt.c: fixed for multiple sends & receives
12667
12668         * src/SDCCmain.c:
12669         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
12670         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
12671            set preprocessor defines (depending on options)
12672
12673         * src/SDCCicode.c, src/SDCCicode.h:
12674         changes made to handle multiple sends & receives
12675
12676         * src/SDCCglobl.h:
12677         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
12678
12679         * src/SDCCcse.c, src/SDCCcse.h:
12680         added function findbackward def (to be used in upcoming optimization)
12681
12682         * src/SDCCcflow.c, src/SDCCcflow.h:
12683         added function returnAtEnd - to determine if a basic block terminates with
12684         a RETURN iCode
12685
12686         * src/SDCCast.c, src/SDCCast.h:
12687         added option parms-in-bank1
12688
12689         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
12690         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
12691         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
12692         adjusted for --parms-in-bank1 option
12693
12694         * device/include/string.h:
12695         donot redefine "reentrant" keyword
12696
12697         * device/include/ds80c390.h: Added some more SFRs
12698
12699 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
12700
12701         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
12702
12703 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
12704
12705         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
12706
12707 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
12708
12709         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
12710
12711 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
12712
12713         * Added --xram-movc option
12714
12715 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
12716
12717         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
12718
12719 2002-01-11  Johan Knol
12720
12721         * Added math lib of Jesus Calvino-Fraga
12722
12723 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
12724
12725         * src/SDCCmain.c (processFile): fix processing of ../../src.c
12726         * support/regression/Makefile: new target test-mcs51-stack-auto
12727         * support/regression/ports/mcs51-stack-auto/spec.mk: added
12728
12729 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12730
12731         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
12732
12733 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12734
12735         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
12736
12737 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
12738
12739         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
12740
12741         * src/SDCCglue.h: add definition for printIvalChar()
12742
12743 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12744
12745         * src/SDCCast.c: fix #498138 by Johan
12746
12747         * src/SDCCglue.c: fix #498138 by Johan
12748
12749 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12750
12751         * support/regression/Makefile: fix clean
12752
12753         * support/regression/ports/ds390/support.c: fix transmission of last character
12754
12755 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
12756
12757         * /sdcc/src/ds390/gen.c:
12758         a) improved computing address of stack variable
12759         b) took out some #if 0 code
12760         c) improved parmBytes adjustment
12761         d) improved genPlusIncr & genMinusIncr
12762         e) genCmp could generate bad code (when left assigned to DPTR)
12763         f) Fixed bug in hasInc
12764
12765         * /sdcc/src/ds390/ralloc.c:
12766         a) packRegsForSupport could mess up live information (Fixed)
12767         b) packRegsDPTRuse could be incorrect for left & right shift
12768
12769         * /sdcc/src/mcs51/ralloc.c:
12770         packRegsForSupport could mess up the live information (Fixed)
12771
12772         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
12773
12774         * /sdcc/src/SDCCast.c:
12775         can reverse a loop even if function call is present as long
12776         as the loop control variable is local & is not passed as parameter
12777
12778 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12779
12780         * /sdcc/ChangeLog: *** empty log message ***
12781
12782         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
12783         More builtin function additions for TININative
12784
12785         * /sdcc/src/ds390/ralloc.c:
12786         Had broken the regression testsuite
12787
12788         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
12789
12790         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
12791         Added funcattr hasStackParms will be set for reentrant functions when there
12792         are paramteres on the stack, this helps in minimizing frame pointer generation
12793         typeFromStr can handle function pointers now
12794
12795         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
12796         *** empty log message ***
12797
12798 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12799
12800         * /src/ds390/gen.c, /src/ds390/main.c:
12801         More builtin function additions for TININative
12802
12803         * /src/ds390/ralloc.c:
12804         Had broken the regression testsuite
12805
12806         * /src/SDCCast.c: Fixed a bug in dumptree
12807
12808         * /src/SDCCsymt.c, /src/SDCCsymt.h:
12809         Added funcattr hasStackParms will be set for reentrant functions when there
12810         are paramteres on the stack, this helps in minimizing frame pointer generation
12811         typeFromStr can handle function pointers now
12812
12813         * /doc/builtins.txt, /doc/TININative.txt:
12814         *** empty log message ***
12815
12816
12817 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12818
12819         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
12820         ALPHA version for -mTININative
12821
12822         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
12823         updated to reflect changes in the port structure
12824
12825         * /src/port.h:
12826         added function do_assemble (similar to do_link) if non-null this function
12827         will be called to do assembly (-mTININative) requires a multi command
12828         assembly
12829         added function genAssemblerEnd will be called to generate assembler Epilogue
12830
12831         * /src/SDCCsymt.c:
12832         added _JavaNative to debug info printing
12833
12834         * /src/SDCCmain.c: added option --tini-libid
12835         added port->do_assemble function (-mTININative) has a multi command assemble
12836
12837         * /src/SDCCglue.c: Disabled "constExpr" check
12838         added port->genAssemblerEnd function
12839
12840         * /src/SDCCglobl.h: Added option --tini-libid value
12841
12842         * /src/SDCCast.h:
12843         tookout optimizeCompare from the header (has no external references)
12844
12845         * /src/SDCCast.c: made one more function "static"
12846
12847 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
12848
12849         * src/z80/mappings.i: Added z80asm support.
12850
12851         * src/z80/main.c: Added z80asm support on --asm=z80asm
12852
12853         * src/z80/gen.c: Fixed asm portability issues.
12854
12855         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
12856
12857         * src/SDCCglue.c (printExterns): Added global/extern split.
12858
12859 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
12860
12861         * support/regression/Makefile: added test for mcs51 model large
12862
12863         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
12864
12865         * support/regression/ports/gbz80/spec.mk: added -mgbz80
12866
12867 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
12868
12869         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
12870
12871 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
12872
12873         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
12874
12875         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
12876
12877 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
12878
12879         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
12880
12881         * support/regression/tests/simplefloat.c: Port to mcs51.
12882
12883 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
12884         * support/regression/tests/bug-485362.c: Added.
12885
12886         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
12887
12888         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
12889
12890         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
12891
12892         * src/z80/gen.c (aopDump): Added a dump function.
12893
12894 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
12895         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
12896
12897         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
12898
12899         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
12900
12901         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
12902
12903         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
12904
12905         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
12906
12907         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
12908
12909         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
12910
12911         * support/regression/ports/ds390/support.c: Use tinibios.
12912
12913         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
12914
12915 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
12916
12917         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
12918         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
12919
12920         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
12921
12922         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
12923
12924 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
12925
12926         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
12927
12928         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
12929         (packRegsForIYUse): Created and optimised.
12930
12931 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
12932
12933         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
12934 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
12935
12936         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
12937
12938         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
12939
12940         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
12941
12942 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12943
12944         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
12945
12946         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
12947
12948 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12949
12950         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
12951
12952         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
12953
12954         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
12955
12956 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
12957
12958         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
12959         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
12960         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
12961
12962         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
12963
12964         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
12965         (genNotFloat): Added.
12966         (genUminusFloat): Added.
12967
12968         * device/lib/z80/Makefile: Added floating pt stubs.
12969
12970         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
12971
12972         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
12973
12974         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
12975
12976 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12977
12978         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
12979
12980         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
12981
12982         * sdcc/support/regression/Makefile: Add port ds390.
12983
12984         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
12985
12986         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
12987
12988         * sdcc/support/regression/ports/ds390/spec.mk: Added.
12989
12990         * sdcc/support/regression/ports/ds390/support.c: Added.
12991
12992         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
12993
12994         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
12995
12996         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
12997
12998 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12999
13000         * device/include/malloc.h: Added z80 and gbz80 support.
13001
13002         * device/lib/gbz80/heap.s: Added.
13003
13004         * device/lib/z80/heap.s: Added.
13005
13006         * device/lib/malloc.c: Added z80 and gbz80 support.
13007
13008         * support/regression/tests/malloc.c (testMalloc): Added.
13009
13010         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
13011
13012         * support/regression/tests/bug-478094.c: Added.
13013
13014         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
13015
13016 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
13017
13018         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
13019
13020         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
13021
13022         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
13023
13024         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
13025
13026         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
13027
13028 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
13029
13030         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
13031
13032 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
13033
13034         * support/regression/tests/bug-477927.c: Added.
13035
13036         * src/z80/peeph.def: Added minor rules.
13037
13038         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
13039
13040         * src/z80/peeph.def: Added jump optimisation modification.
13041
13042 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
13043
13044         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
13045
13046 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
13047
13048         * support/regression/tests/funptrs.c: Added.
13049
13050 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
13051
13052         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
13053
13054 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
13055
13056         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
13057
13058         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
13059
13060         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
13061         (movLeft2ResultLong): Created.
13062
13063         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
13064         (joinPushes): Added.  Joins two char pushes into a word push.
13065
13066 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
13067
13068         * support/cpp2/Makefile.in (install): Added creation of dest dir.
13069
13070         * support/makebin/Makefile (install): Added creation of dest dir.
13071
13072 2001-10-24 Karl Bongers <karl AT turbobit.com>
13073
13074         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
13075
13076 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
13077
13078         * src/z80/ralloc.c: Turned off faulty pack for one use.
13079
13080         * src/z80/peeph-gbz80.def: Removed redundent restart options.
13081
13082         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
13083
13084 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
13085
13086         * support/regression/Makefile: Improved clean
13087
13088         * support/regression/ports/gbz80/spec.mk: Added clean
13089
13090         * support/regression/ports/host/spec.mk: Added clean
13091
13092         * support/regression/ports/z80/spec.mk: Added clean
13093
13094         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
13095
13096         * support/regression/ports/mcs51/timeout.c: little improvements
13097
13098 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
13099
13100         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
13101
13102         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
13103
13104         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
13105
13106 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
13107
13108         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
13109
13110         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
13111
13112 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
13113         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
13114
13115         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
13116
13117         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
13118
13119         * src/mcs51/main.c (_linkCmd): Added bin path to command.
13120
13121         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
13122
13123         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
13124
13125         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
13126
13127         * support/regression/tests/longor.c: Added.
13128
13129 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
13130
13131         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
13132
13133         * as/mcs51/aslink.h: define PATH_MAX
13134
13135         * as/mcs51/asm.h: define PATH_MAX
13136
13137         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
13138
13139         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
13140
13141         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
13142
13143         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
13144
13145         * src/SDCCglobl.h: define PATH_MAX
13146
13147         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
13148
13149         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
13150
13151 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
13152
13153         * src/z80/gen.c (gencjneshort): Fixed
13154
13155         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
13156
13157 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
13158
13159         * support/regression/tests/bug-469671.c: Added.
13160
13161         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
13162
13163 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
13164
13165         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
13166
13167         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
13168
13169 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
13170
13171         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
13172
13173         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
13174
13175         * src/device/lib/_mullong.c : removed hint: nooverlay bug
13176
13177         * src/device/lib/_divuint.c : removed hint: nooverlay bug
13178
13179         * src/device/lib/_divulong.c: removed hint: nooverlay bug
13180
13181         * src/device/lib/_moduint.c : removed hint: nooverlay bug
13182
13183         * src/device/lib/_modulong.c: removed hint: nooverlay bug
13184
13185 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
13186
13187         * 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.
13188
13189         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
13190
13191         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
13192
13193 2001-10-07    <johan AT FRIJA>
13194
13195         * device/lib/gets.c (gets): fixed the return value.
13196
13197 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
13198         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
13199
13200         * 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.
13201
13202         * 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.
13203
13204         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
13205
13206         * src/pic/gen.c: Removed Safe_strdup.
13207
13208         * configure.in: Added option to enable libgc support.
13209
13210         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
13211         (bitVectUnion): Optimised.
13212         (bitVectIntersect): Optimised.
13213         (bitVectBitsInCommon): Optimised.
13214         (bitVectCplAnd): Optimised.
13215
13216         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
13217
13218 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13219
13220         * src/SDCCmain.c: distinguish between assembler debug and plain options
13221
13222         * src/avr/main.c:   remove standard assembler options
13223
13224         * src/ds390/main.c: remove standard assembler options
13225
13226         * src/mcs51/main.c: remove standard assembler options
13227
13228         * src/port.h: removed "PENDING" comment
13229
13230 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13231
13232         * src/device/lib/_mulint.c  : new, with assember functions
13233
13234         * src/device/lib/_mullong.c : new, with assember functions
13235
13236         * src/device/lib/_divuint.c : with assember functions
13237
13238         * src/device/lib/_divsint.c : with assember functions
13239
13240         * src/device/lib/_divulong.c: with assember functions
13241
13242         * src/device/lib/_divslong.c: with assember functions
13243
13244         * src/device/lib/_moduint.c : with assember functions
13245
13246         * src/device/lib/_modsint.c : with assember functions
13247
13248         * src/device/lib/_modulong.c: with assember functions
13249
13250         * src/device/lib/_modslong.c: with assember functions
13251
13252         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
13253
13254         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
13255
13256         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
13257                                       replaced _mululong.c and _mulslong.c by _mullong.c
13258
13259 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13260
13261         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
13262
13263 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13264
13265         * src/SDCCglue.c: test, if win32api is available for MINGW
13266
13267 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * src/SDCCsymt.c: no more _modifier in printTypeChain()
13270         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
13271         * support/regression/ports/gbz80/spec.mk: removed GENERIC
13272         * support/regression/ports/host/spec.mk: removed GENERIC
13273         * support/regression/ports/mcs51/spec.mk: removed GENERIC
13274         * support/regression/ports/z80/spec.mk: removed GENERIC
13275
13276 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
13277
13278         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
13279
13280         * support/regression/tests/bug-467035.c: Created.
13281
13282 2001-10-01    <johan AT FRIJA>
13283
13284         * src/SDCC.y: fixed bug #466586 part 1
13285
13286 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
13287
13288         * SDCCicode.c: z80 has no generic pointers
13289         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
13290
13291 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
13292
13293         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
13294
13295 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
13296
13297         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
13298
13299         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
13300
13301 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
13302
13303         * configure.in: Fixed up so that ucsim is only configured once.
13304
13305         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
13306
13307         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
13308         (getPathDifference): As above.
13309
13310         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
13311
13312         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
13313
13314 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
13315         * .version: Updated to 2.3.1
13316
13317         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
13318         Added copyright header.
13319
13320         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
13321         (assemble): Added support for macro based assembler commands.
13322         (linkEdit): Added support for macro based linker commands.
13323         (preProcess): Changed the pre-processor to use macros.
13324         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
13325         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
13326
13327         * device/lib/z80/crt0.s: Added module name for debugging.
13328
13329 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
13330
13331         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13332
13333         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
13334
13335         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
13336
13337         * src/Makefile.in: Added SDCCmacro and SDCCutil
13338
13339 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
13340
13341         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13342
13343 2001-09-16    <johan AT FRIJA>
13344
13345         * 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.
13346
13347 2001-09-15    <johan AT FRIJA>
13348
13349         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
13350         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
13351
13352 2001-09-11    <johan AT FRIJA>
13353
13354         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
13355
13356 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
13357
13358         * support/regression/tests/bug-460444.c: Added test case.
13359
13360         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
13361         (genCast): Added justification for all of the asserts.
13362
13363 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
13364
13365         * support/regression/support.c: _xdata replaced by xdata
13366
13367         * support/regression/spec.mk: removed _generic
13368
13369 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
13370
13371         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
13372
13373         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
13374         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
13375
13376         * src/z80/peeph.def: Added a rule to optimise shift then compare.
13377
13378         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
13379
13380         * support/regression/tests/bug-460010.c: Added test case.
13381
13382         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
13383
13384 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
13385
13386         * support/regression/Makefile: inter-port-clean adjusted for mcs51
13387
13388         * support/regression/testfwk.c: removed workaround for bug #436344
13389
13390         * support/regression/tests/bp.c: use less memory with mcs51
13391
13392         * support/regression/tests/bug-441448.c: use less memory
13393
13394         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
13395
13396         * support/regression/collate-results.py: typo
13397
13398 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
13399
13400         * support/regression/tests/fetchoverlap.c: Added new test case.
13401
13402         * support/regression/tests/bp.c: Added new test case.
13403
13404         * support/regression/tests/bug-448984.c: Added new test case.
13405
13406         * support/regression/tests/pow2shifts.c: Added new test case.
13407
13408         * src/z80/gen.c: Turned off the noise it normally generates for the release.
13409         (genlshTwo): Fixed right shift for count > 8.
13410
13411         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
13412
13413 2001-09-08    <johan AT FRIJA>
13414
13415         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
13416
13417 2001-09-07    <johan AT FRIJA>
13418
13419         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
13420
13421         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
13422
13423 2001-09-06    <johan AT FRIJA>
13424
13425         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
13426         * bernhard noted me at this: "() equals to (void)" (1.38)
13427
13428 2001-09-05    <johan AT FRIJA>
13429
13430         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
13431
13432 2001-09-04    <johan AT FRIJA>
13433
13434         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
13435
13436
13437 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
13438
13439         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
13440
13441 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
13442
13443         * link/z80/aslink.h: Fixed path for PATH_MAX
13444
13445 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
13446
13447         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
13448
13449         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
13450
13451         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
13452
13453         * 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.
13454
13455 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
13456
13457         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
13458         (genCmp): Fixed up genCmp for the GB with longs.
13459
13460         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
13461
13462         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
13463
13464         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
13465
13466         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
13467
13468 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
13469
13470         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
13471
13472 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
13473
13474         * 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.
13475
13476         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
13477
13478 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
13479
13480         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
13481
13482         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
13483
13484 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
13485
13486   * sim/ucsim/configure:    little improvement of Cygwin-detection
13487   * sim/ucsim/configure.in: little improvement of Cygwin-detection
13488   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
13489   * support/regression/tests/bug-221100.c: small changes for mcs51
13490   * support/regression/tests/bug-221168.c: small changes for mcs51
13491   * support/regression/tests/bug-227710.c: small changes for mcs51
13492   * support/regression/tests/staticinit.c: small changes for mcs51
13493   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
13494   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
13495   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
13496
13497 $Revision$