* src/SDCCmain.c (linkEdit): modifications only for pic16 port,
[fw/sdcc] / ChangeLog
1 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
2
3         * src/pic16/pcode.c: removed buggy double colon
4
5 2004-07-01 Borut Razem <borut.razem AT siol.net>
6
7         * support/scripts/sdcc.nsi: added include/pic16 to setup
8
9 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10
11         * device/lib/Makefile.in: fixed bug in target objects-pic16,
12         * device/lib/pic16/Makefile: prefixed with dash (-) command under
13         target 'clean',
14         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
15         specific command line arguments. Also added sample lkr script
16         for placing a variable at a specific memory bank.
17         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
18         at a specific memory bank,
19         * (pic16_dump_isection): fixed bug which caused string literals to
20         be omitted when dumping idata section,
21         * (pic16_groupRegistersInSection): added code to handle registers
22         in specific memory banks,
23         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
24         public, all references are renamed too,
25         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
26         AOP_DPTR2,
27         * (pic16_storeForReturn): added case to handle when dest is WREG,
28         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
29         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
30         pic16_rel_udata, check to see if that register is marked as being
31         a member of a specific memory bank,
32         * (pic16_printIvalCharPtr): added code to add string literals either
33         to code or the idata sections,
34         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
35         also accept the 'udata' pragma,
36         * src/pic16/main.h: new structure types sectName and sectSym
37         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
38         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
39         * (pic16_findPrevInstruction): fixed, it returned nothing,
40         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
41         instruction combinations,
42         * (pic16_FixRegisterBanking): heavily reorganised,
43         * (pic16_AnalyzeBanking): if generating banksel directives is
44         disabled, then don't call FixRegisterBanking at all,
45         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
46         completely removed,
47         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
48
49 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
50
51         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
52         Phuah Yee Keat <yk.phuah AT nestac.com>
53
54 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
55
56         * src/pic16/glue.c (pic16createInterruptVect): function now emits
57         correctly the IVT even if it is relocated to some other location
58
59 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
60
61         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
62         * device/include/pic16/pic18f2220.h: NEW,
63         * device/lib/pic16/libdev/pic18f2220.c: NEW,
64         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
65         * src/pic16/device.c (struct Pics16): added info for 18f2220,
66         * src/pic16/device.h (struct pic16_options): added ivt_loc and
67         nodefaultlibs, ivt_loc is the location of the interrupt vector
68         table, and nodefaultlibs signs that default libraries should not be
69         linked in link stage,
70         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
71         according to --ivt-loc argument,
72         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
73         when pragma stack is found,
74
75 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
76
77         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0), 
78         256 (range check), 257 (do while), 258.a-f (bit banging 
79         f.e. on 3-wire SPI bus)
80
81 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
82
83         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
84         variables used exclusively within a loop
85
86 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
87
88         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
89
90 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
91
92         * src/SDCClrange.c (computeClash): fixed bug #971834
93
94 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
95
96         * src/mcs51/gen.c (genCmp): fixed bug #975903
97         * src/hc08/gen.c (operandsEqu),
98         * src/ds390/gen.c (operandsEqu),
99         * src/z80/gen.c (operandsEqu),
100         * src/pic/gen.c (operandsEqu),
101         * src/pic16/gen.c (operandsEqu),
102         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
103         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
104
105 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
106
107         * src/SDCCcse.c (cseBBlock): fixed bug #966963
108
109 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
110
111         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
112         default case in switch statement,
113         * glue.c (pic16_initPointer): expr is initialised via decoarteType
114         to eliminate problem with initialisation of pointers, but problem
115         still exists,
116         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
117         * (emitStaticSegment): removed various lines emitting debug info,
118         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
119         added processor registers for utilizing EEPROM,
120         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
121         configurable and set 8
122
123 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
124
125         * .version: increased version number to 2.4.2,
126
127         Cumulative patch for pic16 port
128         * src/pic16/device.c: changed scheme to dump initial values for
129         variables in idata segment, all print_idata* functions were removed,
130         now the pic16_printIval* will be called,
131         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
132         * _pic16_printPointerType, pic16_printPointerType,
133         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
134         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
135         NEW, similar to the respective functions in SDCCglue.c,
136         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
137         way, emitting hex bytes,
138         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
139
140 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
141
142         * src/avr/ralloc.c (serialRegAssign),
143         * src/xa51/ralloc.c (serialRegAssign),
144         * src/pic/ralloc.c (serialRegAssign),
145         * src/pic16/ralloc.c (serialRegAssign),
146         * src/hc08/ralloc.c (serialRegAssign),
147         * src/z80/ralloc.c (serialRegAssign),
148         * src/ds390/ralloc.c (serialRegAssign),
149         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
150         
151 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
152
153         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
154         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
155
156 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
157
158         Cumulative patch for pic16 port:
159         * src/pic16/device.h (typedef PIC16_device) modified fields for
160         defining microcontrollers,
161         * src/pic16/device.c: added new info for all devices in Pics16 array,
162         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
163         to be optimised out by the pCode optimiser,
164         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
165         specially, bug reported by G.M. Gallant,
166         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
167         as force'd so that cannot be optimised out by pCode optimiser,
168         * src/pic16/pcode.c,
169         * src/pic16/pcodepeeph.c,
170         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
171         they are disabled by default, but can be enabled explicit with
172         command argument --denable-peeps, for testing,
173         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
174         --pomit-ivt in COMPILE_FLAGS
175  
176 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
177
178         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
179           compilation on MSVC
180
181 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
182
183         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
184
185 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
186
187         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
188         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
189
190 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
191
192         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
193         would only assign 0x300001 register.
194
195 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
196
197         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
198         in COMPILE_FLAGS. Thanks to G. Gallant for report.
199
200 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
201
202         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
203         for ds80c400
204         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
205         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
206         added peephole 254 (left shift), 255 (jump table)
207
208 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
209
210         * device/lib/Makefile.in: removed comment line with model-pic16,
211         * (target port-specific-objects-pic16): the libraries and objects
212         are copied to the build directory form the device/lib/pic16/bin
213         directory
214
215         Cumulative patch concerning pic16 port:
216         * library directory has been re-organized,
217         * added support for PIC18F1220,
218         * added headers and library sources for chips 18f1220,18f6520,
219         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
220
221         * configuration registers setting has changed, now each supported
222         device has a complete description of the registers it uses,
223         * all initialisations are moved to idata sections, these section
224         can be absolute or relocatable,
225         * fixed initialisation of codespace variables,
226         * fixed warning about PCLATU and gpsim,
227         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
228         * (genAssign): use table reads when assigning from variables in codespace,
229         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
230         char/int variables placed in codespace,
231         * (pic16_emitConfigRegs): NEW, emits a list with configuration
232         registers set in .asm file, no need for --pomit-config-words anymore,
233         * (pic16glue): some 8051 legacy segments are commented out
234         (to be removed completely),
235         * added support for alternative assembler and linker with --asm=
236         and --link= command line arguments,
237         * peepholes are disabled automatically in the port, no need to
238         specify on command line,
239         * port supports natively char/int/long multiplication, but converts
240         all divisions to support functions,
241         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
242         to the file set in variable $2,
243         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
244         strings in ASCII format and not in hex,
245         * ralloc.c (serialRegAssign): added a triplet of conditional calls
246         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
247         allocate proper register if iCodes aren't temporary,
248
249 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
250
251         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
252
253 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
254
255         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
256         is commented out
257
258 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
259
260         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
261         computed address is reused
262         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
263         multi-byte bitfields
264
265 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
266
267         * src/z80/gen.c: (genArrayInit): must check for pointers too
268
269 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
270
271         * support/regression/tests/zeropad.c: never meant to commit the
272           nestedstruct test: removed, added check for GCC version
273
274 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
277         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
278         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
279           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
280           bugs 928906 and 954082 half-empty initializers
281         * src/SDCCsymt.h,
282         * src/SDCCsymt.c (getAllocSize): added for above fix
283         * src/z80/gen.c (genArrayInit): fixed bug 741044
284         * support/regression/tests/zeropad.c: added tests
285
286 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
287
288         * src/pic16/device.c (pic16_dump_section): corrected bug which
289         caused some symbols of the libraries to be misplaced
290
291 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
292
293         * src/pic16/glue.c,
294         * src/pic16/ralloc.h,
295         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
296         to fix conflict with pic port
297
298 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
299
300         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
301         externs configuration variables,
302         * src/pic16/ralloc.h,
303         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
304         prototype in header, commented out some debug messages
305
306 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
307
308         * src/pic16/glue.c,
309         * src/pic16/main.c,
310         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
311         for gpasm COFF object generation. Thanks to D. Hawkins for
312         his patch info
313
314 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
315
316         * src/ds390/main.c,
317         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
318         Brock for spotting this)
319         * src/ds390/gen.c (genEndFunction),
320         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
321         interrupt handler and critical. Disable push/pop optimizations when
322         peephole optimizations disabled.
323
324 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
325
326         Updated pic16 library sources and headers.
327         * device/lib/pic16/pic18f*/ ,
328         * device/include/pic16/*.h: modified to handle structured SFR
329         definitions
330
331 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
332
333         * src/port.h (PORT structure): added hook initPaths, now each
334         port can declare its own default search paths,
335         which can been seen with the --print-search-dirs option,
336         see pic16 port for example,
337         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
338         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
339         * (doPrintSearchDirs): NEW, replaces in a central manner the
340         printing of search dirs which was split in set*Paths functions,
341         * (main): added call to port->initPaths and doPrintSearchDirs,
342         * src/avr/main.c,
343         * src/ds390/main.c,
344         * src/hc08/main.c,
345         * src/izt/i186.c,
346         * src/izt/tlcs900h.c,
347         * src/mcs51/main.c,
348         * src/pic/main.c,
349         * src/pic16/main.c: modified port structures to reflect addition of
350         initPaths hook,
351
352         * src/pic16/device.c (regCompare): registers are finally sorted by name,
353         * (pic16_dump_section): for registers in same address reserve memory once,
354         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
355         to no_banksel,
356         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
357         result is greater in size than right or left,
358         * (pic16_genUMult8X8_8): there are some cases where the result can
359         be 16 bits size, so handle these,
360         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
361         * (pic16_outBitC): modified to emit pcodes,
362         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
363         or not,
364         * (genDivOneByte): implemented algorithm to divide 8-bits,
365         * (genCmp): uncommented goto, but issues still exist,
366         * (genAnd): fixed a bug with variables >8bits,
367         * (genPackBits): optimization added that uses BCF/BSF to change a
368         single bit,
369         * (genAssign): fixed bug when assigning floating point literals,
370         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
371         __sdcc_gsinit_startup label,
372         * src/pic16/main.c (_pic16_init): removed search directory
373         initialisations,
374         * (_pic16_initPaths): NEW, used to initialise search directories,
375         * (_hasNativeMulFor): support functions for all except char/int
376         multiplication, and char division,
377         * (PIC16_port struct): modified entry for native mul support,
378         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
379         no_banksel option,
380         * (buildCallTree): call to register_usage is ifdef'ed out,
381
382 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
383
384         * device/include/string.h: applied Stas Sergeev's patch to make this
385         header file compatible with the preprocessor -Wundef option
386         * src/SDCCmain.c (main): abort compilation if preprocessor reports
387         failure (fixes bug #941458)
388
389 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
390
391         * src/SDCCopt.c (killDeadCode): fixed bug #907733
392         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
393         that the variable, not the function, should be static
394         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
395         to be consistent with non-literal case
396
397 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
398
399         * src/SDCCast.c (isConformingBody): fixed bug #949967
400         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
401         convilong): fixed bug #952086
402
403 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
404
405         * src/SDCCmem.c (allocVariables): fixed bug #955321
406
407 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
408
409         * src/hc08/main.c (_hc08_genAssemblerEnd),
410         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
411         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
412         completely eliminated the use of a temporary file
413         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
414         when more than one file linked
415         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
416
417 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
418
419         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
420         which fixes bug #543481
421         * support/regression/tests/bug-751703.c: fixed comments left from a
422         cut and paste error
423         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
424         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
425         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
426         scopes
427         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
428         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
429         are now changed to underscores in moduleName
430
431 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
432
433         * as/mcs51/lkmem.c: better fix for bug #954173
434
435 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
436         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
437
438         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
439         * device/include/c8051f000.h,
440         * device/include/c8051f120.h,
441         * device/include/c8051f300.h,
442         * device/include/c8051f310.h,
443         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
444         PWM16) and detab'ed
445
446 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
447
448         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
449         and mailing lists, doc'ed --no-peep-comments, removed reference
450         to knoppix (newest version has no LyX/LaTeX), other minor changes
451         * src/SDCCglue.c (glue): save 2 bytes stack space with
452         option --main-return. The ljmp could probably be avoided too
453
454 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
455
456         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
457
458 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
459
460         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
461         * src/SDCCopt.c (isLocalWithoutDef),
462         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
463         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
464         (credit to Maarten Brock for patch #949363, on which this is based)
465         * support/regression/tests/bug-751703.c: some test cases of extern used
466         within inner scopes.
467
468 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
469
470         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
471         SPEC_STRUCT
472         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
473         struct definitions
474         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
475         dwWriteLabel): fix to create valid debugger symbols even when
476         the module name has non-alphanumeric symbols in it
477         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
478         when a variable's allocation has been optimized away
479
480
481 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
482
483         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
484         * src/hc08/main.c,
485         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
486         * src/mcs51/main.c,
487         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
488         * src/ds390/main.c,
489         * src/z80/gen.c (z80_emitDebuggerSymbol),
490         * src/z80/main.c,
491         * src/pic/gen.c (pic14_emitDebuggerSymbol),
492         * src/pic/main.c,
493         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
494         * src/pic16/main.c,
495         * src/avr/gen.c (avr_emitDebuggerSymbol),
496         * src/avr/main.c,
497         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
498         * src/xa51/main.c,
499         * src/SDCCdebug.c (emitDebuggerSymbol),
500         * src/SDCCdebug.h,
501         * src/port.h: added a debugger struct to the port struct. Added a
502         callback for defining debugger symbols
503
504         * src/SDCCast.c (createLabel),
505         * src/SDCC.y (labeled_statement): mark all compiler generated labels
506         with isitmp = 1
507         * src/SDCCicode.h,
508         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
509         iCode back to the ast for the function
510
511         * src/hc08/ralloc.c (hc08_assignRegisters),
512         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
513         unneeded fields from the regs struct.
514         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
515         pushReg() & pullReg() functions instead of emitcode()
516
517         * src/hc08/gen.c (genLabel, genhc08Code),
518         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
519
520         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
521         debugger hooks
522
523         * src/hc08/gen.c (genEndFunction, genhc08Code),
524         * src/hc08/gen.h,
525         * src/mcs51/gen.c (genEndFunction, gen51Code),
526         * src/mcs51/gen.h,
527         * src/ds390/gen.c (genEndFunction, gen390Code),
528         * src/ds390/gen.h,
529         * src/z80/gen.c (genEndFunction, genZ80Code),
530         * src/z80/gen.h,
531         * src/z80/z80.h,
532         * src/pic/gen.c (genEndFunction, genpic14Code),
533         * src/pic/gen.h,
534         * src/pic16/gen.c (genEndFunction, genpic16Code),
535         * src/pic16/gen.h,
536         * src/avr/gen.c (genEndFunction, genAVRCode),
537         * src/avr/gen.h,
538         * src/xa51/gen.c (genEndFunction, genXA51Code),
539         * src/xa51/gen.h,
540         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
541         specific code to cdbFile.c and out of the backend code generators
542
543         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
544         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
545         starting address is now 0
546
547         * as/hc08/asm.h,
548         * as/hc08/m08pst.c,
549         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
550         assembler directive for DWARF support
551         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
552
553         * src/src.dsp,
554         * src/Makefile.in,
555         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
556
557 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
558
559         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
560         and inappropriate peephole optimization in jump tables
561
562 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
563
564         * as/hc08/m08pst.c,
565         * src/SDCCglue.c: sdccopt works for the hc08 port now
566
567 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
568
569         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
570
571 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
572
573         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
574
575 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
576
577         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
578         rules
579         * src/SDCCmain.c,
580         * src/SDCCglobl.h,
581         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
582         comments from the peephole optimizer replacement rules
583         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
584         symbols
585         * src/SDCCcse.c (updateSpillLocation),
586         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
587         equivalents
588         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
589         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
590         objects far pointers
591
592 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
593
594         * src/SDCCsymt.h: a missing part of my last change
595         * src/pic/ralloc.c (regTypeNum),
596         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
597
598 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
599
600         * src/SDCCicode.h,
601         * src/SDCCicode.c (aggrToPtrDclType),
602         * src/SDCCptropt.h,
603         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
604         ptrPseudoSymConvert),
605         * src/pic/ralloc.c (regTypeNum),
606         * src/pic16/ralloc.c (regTypeNum),
607         * src/hc08/ralloc.c (regTypeNum),
608         * src/ds390/ralloc.c (regTypeNum),
609         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
610         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
611
612 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
613
614         * link/z80/lkmain.c (afile),
615         * as/hc08/lkmain.c (afile),
616         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
617         prevent a pointer problem when a filename has no directory and
618         no extension specified.
619
620 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
621
622         * link/z80/lkmain.c (afile): allow periods in directory names
623         * link/z80/lkmain.c (afile),
624         * as/mcs51/lkmain.c (afile),
625         * as/hc08/lkmain.c (afile): allow linker script file to have an
626         extension other than ".lnk"
627         * link/z80/lklex.c (getfid),
628         * link/z80/lkmain.c (parse),
629         * as/mcs51/lklex.c (getfid),
630         * as/mcs51/lkmain.c (parse),
631         * as/hc08/lklex.c (getfid),
632         * as/hc08/lkmain.c (parse): Support comments in the linker script
633         file on lines by themselves and after filenames
634
635 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
636
637         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
638
639 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
640
641         * src/z80/peeph-z80.def: removed some peephole rules that don't
642         work with multibyte arithmetic (fixed bug #937126)
643         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
644         to registers and not global variables
645         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
646         geniCodePreInc, geniCodePostDec, geniCodePreDec,
647         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
648         checking for assignments not internally generated (fixed bug #931895)
649         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
650         structure member (fixed bug #930072)
651
652 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
653
654         * src/SDCCmain.c (linkEdit),
655         * src/hc08/main.c (_hc08_parseOptions),
656         * as/hc08/Makefile.in,
657         * as/hc08/aslink.h,
658         * as/hc08/asm.h,
659         * as/hc08/m08pst.c,
660         * as/hc08/lkrloc.c (relr, rele),
661         * as/hc08/lkarea.c (lnkarea)
662         * as/hc08/lkmain.c (afile, parse),
663         * as/hc08/lkelf.c: support for ELF output
664         * as/hc08/lks19.c (s19),
665         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
666
667 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
668
669         * as/mcs51/lkihx.c: Fixed bug #899105.
670
671 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
672
673         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
674         .dsp files from Unix to DOS.
675
676 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
677
678         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
679         function pointers; we have been compliant for several months now.
680         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
681         change that was accidently commented out
682         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
683         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
684         bug #922319
685
686 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
687
688         * src/hc08/gen.c: output of all of the internal debugging information
689         is now controlled by the D() macro; it is disabled by default
690
691 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
692
693         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
694         harder to keep the same registers during a CAST iCode
695         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
696         long via int can be done in a single cast, if the signedness is
697         correct.
698         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
699         putchar() in tinibios.c in ds390's library
700
701 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
702
703         * src/SDCCast.c (decorateType): fixed bug #898889,
704         cast result of a literal complement too
705         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
706         fixed check for bitfields
707
708 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
709
710         * src/SDCCicode.c (geniCodeLogic): made it static,
711         (geniCodeLogicAndOr): added in order to fix bug #905492,
712         (ast2iCode): fixed bug #905492
713         * support/regression/tests/bug-905492.c: added
714         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
715         (processParms): fixed bug #927659: don't copy parms, this will clear
716         decorated flag
717         * support/regression/tests/bug-927659.c: added
718
719 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
720
721         * src/SDCCast.c (addCast): don't cast float to char
722         * device/lib/libsdcc.lib: added _memmove
723
724 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
725
726         * device/lib/large/Makefile: fixed parallel execution by
727         replacing `make` by `$(MAKE)`
728
729 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
730
731         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
732         offsets (fixes bug #923936)
733
734 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
735
736         * device/lib/small/Makefile: fixed parallel execution by
737         replacing `make` by `$(MAKE)`
738
739 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
740
741         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
742
743 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
744
745         * src/pic/gen.c (genCpl): multi-byte complements were not working.
746         * src/regression/Makefile: Regression test was not running.
747
748 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
749
750         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
751         complement if possible
752         * src/SDCCval.c (valComplement),
753         * src/SDCCicode.c (operandOperation): fixed complement of literal
754         * support/regression/tests/onebyte.c (testComplement): added
755
756 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
757
758         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
759         return an optimized tree; actually replace actParm with the new tree
760         * src/SDCCast.h: added some parantheses to remove side effects
761         * support/regression/tests/bug-920866.c
762
763 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
764         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
765         Bit operands were not being handled properly in the pic14 port.
766         (now src/regression/add.c passes again).
767
768 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
769
770         * src/SDCC.y (labeled_statement): case and default no longer require
771         a following statement (RFE #893037)
772
773 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
774
775         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
776         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
777         disabled (fixes bug #916294)
778         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
779         "mov a,acc"; patch provided by Lenny Story
780         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
781
782 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
783
784         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
785         functions
786         * src/ds390/gen.c (genFunction, genEndFunction),
787         * src/ds390/ralloc.c (ds390_assignRegisters),
788         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
789         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
790         pushed if there are parameters passed on the stack. Also, a cleaner
791         way to decide if r0/r1 should be pushed/popped. (Together they fix
792         bug #918693)
793
794 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
795
796         * doc/sdccman.lyx,
797         * device/lib/mcs51/crtpagesfr.asm,
798         * device/lib/mcs51/crtxinit.asm,
799         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
800         to avoid confusion with Si Lab's SFRPAGE register.
801
802 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
803
804         * src/SDCCglue.c (emitMaps): allow public sfr variables
805         * src/SDCCglue.c (initialComments): include compiler build date
806         with compiler version and put the timestamp of the generated
807         assembly file on a serperate line to be less confusing.
808         * src/port.h: added genInitStartup hook
809         * src/avr/main.c,
810         * src/ds390/main.c,
811         * src/hc08/main.c,
812         * src/pic/main.c,
813         * src/pic16/main.c,
814         * src/xa51/main.c,
815         * src/z80/main.c: genInitStartup initialize as NULL (default to
816         historical behaviour)
817         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
818         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
819         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
820         library instead of hard coding it into the compiler.
821         * support/regression/ports/mcs51-stack-auto/spec.mk,
822         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
823         * device/lib/mcs51/Makefile,
824         * device/lib/small/Makefile,
825         * device/lib/large/Makefile,
826         * device/lib/mcs51/crtpagesfr.asm,
827         * device/lib/mcs51/crtstart.asm,
828         * device/lib/mcs51/crtxclear.asm,
829         * device/lib/mcs51/crtxinit.asm,
830         * device/lib/mcs51/crtclear.asm,
831         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
832         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
833         and into user configurable files.
834         * device/lib/clean.mk: clean mcs51 directory too
835         * support/regression/tests/longlit.c: added static to T1 declaration
836         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
837         accesses in the initialization code
838
839 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
840
841         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
842         OSCTRIMVAL as noted in bug #916008
843
844 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
845
846         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
847         in loops with multiple exits (reported as incorrect registers
848         used by Martin Helmling in Sdcc-user list)
849
850 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
851
852         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
853         made ds390 register extensions look less like error messages
854
855 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
856
857         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
858         reported by Adam Wozniak in Sdcc-user list
859
860 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
861
862         * src/SDCCast.c (decorateType): fixed with bug and promotion in
863         arithmetic optimizations, added debug output
864
865 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
866
867         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
868         * sdcc.spec: updated and split sdcc into 3 rpms
869         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
870         needed for literals of LEFT_OP and '+'
871         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
872         introduced RESULT_TYPE_NOPROM
873         (geniCodeMultiply): fixed logic for decision if mul is optimized to
874         left shift
875         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
876         limited promotion to int only for '*'
877         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
878
879 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
880
881         * src/pic16/gen.c (genSkip),
882         (genc16bit2lit), (gencjneshort): commented out
883         (is_LitOp): new helper function, checks operand type
884         (genCmpEq): rewritten
885
886 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
887
888         * support/regression/tests/bug-908454.c: added
889
890 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
891
892         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
893         * src/SDCCicode.c (usualBinaryConversions): op needs int type
894         (geniCodeCast): cosmetic, don't preserve bit storage class
895         (geniCodeLeftShift): added promotion
896         (geniCodeLogic): fixed regression
897         * src/SDCCsymt.c (computeTypeOr): accept bits too
898         (compareType): 2nd part of fix for bug #908454, needed for bitfields
899
900 2004-03-07  Borut Razem <borut.razem AT siol.net>
901
902         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
903
904 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
905
906         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
907         version of pic16_genPackRegisters which does not check if ic is a
908         CAST operator,
909         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
910         function cause string1.c regression test fails
911
912 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
913
914         * sim/ucsim/configure.in,
915         * sim/ucsim/configure,
916         * sim/ucsim/doc/Makefile.in: use docdir
917         * src/SDCC.y: fixed sbit atrributes
918         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
919         * src/SDCCast.c (decorateType): |^& need special promotion handling
920         * src/SDCCast.h,
921         * src/SDCCsymt.h: moved definition of RESULT_TYPE
922         * src/SDCCsymt.h (computeType),
923         * src/SDCCicode.c: computeType() needs op
924         * src/SDCCsymt.c (checkTypeSanity),
925         * doc/sddman.lyx: "plain" bitfields are unsigned
926         * src/SDCCsymt.c (computeTypeOr): added
927         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
928         |^& ops
929         * src/SDCCval.c (val*): computeType() needs op
930         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
931         * support/regression/tests/onebyte.c: added tests for |^&
932
933 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
934
935         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
936         for writing icode into asm output.
937
938 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
939
940         * src/pic16/device.c: added some debug lines enabled
941         with macro DEBUG_CHECK,
942         * src/pic16/genarith.c: more debug in genPlus,
943         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
944         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
945         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
946         * (aopForSym): onStack symbols are re-placed in data memspace,
947         and onStack flag is cleared,
948         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
949         copy temporary pcodeop,
950         * (genPcall): added warning for not updating PCLATU,
951         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
952         always true for pic16 port,
953         * (genMultOneWord): NEW, supports integer multiplication,
954         * (genMult): modified to call genMultOneWord,
955         * (ifxForOp): added warning when return NULL,
956         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
957         flag is set before call to operandFromSymbol for implicit
958         added structures,
959         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
960         options.intlong_rent are set by default,
961         * (_hasNativeMulFor): modified to allow port generation of integer
962         multiplication,
963         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
964         set regtype to REG_SFR for all registers, restricting seting the
965         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
966
967 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
968
969         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
970         more than 500 times in the regression tests
971
972 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
973
974         * support/Util/SDCCerr.h,
975         * support/Util/SDCCerr.c,
976         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
977         enumerator_list),
978         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
979         for symbol conflicts.
980         * support/valdiags/tests/enum.c,
981         * support/valdiags/tests/tentdecl.c,
982         * support/valdiags/tests/struct.c: expect possible error messages
983         referring to original symbol definitions.
984         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
985         * src/SDCCsymt.h,
986         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
987
988 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
989
990         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
991
992 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
993
994         * src/pic16/ralloc.c (newReg): fixed bug #908929
995
996 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
997
998         * src/ds390/gen.c: added missing #include "main.h"
999
1000 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
1001
1002         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
1003         checking if symbol is already in set,
1004         * src/pic16/device.h: prototype for checkAddSym,
1005         * src/pic16/gen.c: (_G): added entry interruptvector,
1006         * (assignResultValue): removed some commented out lines,
1007         * (genFunction): check for ISR via sym->type, absolute section for
1008         interrupt code is created via a new pBlock, the goto instruction is
1009         placed now correctly at the interrupt vector position, changed all
1010         references from ivec to _G.interruptvector,
1011         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
1012         is the interrupt is a high priority one, same for return from ISR,
1013         * src/pic16/glue.c: changed all calls of addSetHead for publics and
1014         externs to calls of checkAddSym,
1015         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
1016         pic16_pcode_verbose flag is set,
1017         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
1018         * src/pic16/pcoderegs.c: message about how many registers are saved
1019         will only be emitted if pic16_pcode_verbose flag is set,
1020
1021 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1022
1023         * src/ds390/ralloc.h,
1024         * src/ds390/ralloc.c (ds390_regWithIdx),
1025         * src/ds390/gen.c (emitcode),
1026         * src/ds390/main.h,
1027         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
1028         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1029         ds390operandCompare, getRegsRead, getRegsWritten,
1030         initializeAsmLineNode): customized instruction size calculation for
1031         ds390, started basis for some register optimizations
1032         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
1033         corresponding assembly output
1034         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
1035         missing push/pop of r0/r1. Optimized push/pops
1036
1037 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1038
1039         * src/mcs51/main.c (instructionSize): fixed ACALL size
1040         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
1041
1042 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
1043
1044         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
1045         the sorting of rlist with NULL elements
1046         * (print_idataType, print_idata): NEW to create idata sections
1047         * src/pic16/device.h: idataSymSet new variable
1048         * src/pic16/gen.c (genFunction): fixed some bugs in string
1049         comparing, improved the absolute section creation for ISRs,
1050         added FSR0L/FSR0H in registers that are saved in an ISR,
1051         * (genInline): fixed the processing of inline snippets,
1052         now they undergo no process by the peephole optimizer
1053         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
1054         are placed in idataSymSet,
1055         * (pic16emitStaticSeg): extern symbols are added in externs,
1056         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
1057         switching when aboslute variables are placed in access bank memory
1058         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
1059         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
1060         commented out with #if,
1061         * (pic16_packRegisters): reintroduce the check for CAST because some
1062         symbols are not correctly handled,
1063         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
1064         pCodeInstruction instead of pCode,
1065         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
1066         pCodeAsmDir definition,
1067         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
1068         directive, then the argument directive is emitted without the leading
1069         tab, hack for inline labels which must be in the first column,
1070         * (compareLabel,pic16_findNextInstruction),
1071         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
1072         * (insertBankSwitch): modified for the new pCodeAsmDir,
1073
1074 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1075         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
1076
1077         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
1078         instance,
1079         * (pushSide): commented out with #if,
1080         * (assignResultValue): fixed some typos in saving
1081         registers,
1082         * (genPcall): FIXED and sync'ed with genCall,
1083         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
1084         * (genNearPointerGet): fixed to handle some more cases,
1085         implementation scheme via table reads,
1086         * (genConstPointerGet): modified to access code memory correct,
1087         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
1088         and improved to handle some cases
1089         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
1090         instead of "RETLW" for init data
1091         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
1092         not IN_DIRSPACE, work around to reduce bank switching when aboslute
1093         variables are placed in access bank memory (<0x80 and >=0xf80),
1094         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
1095         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
1096         TBLWT_POSTDEC,TBLWT_PREINC
1097         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
1098         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
1099         directives
1100         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
1101         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
1102         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
1103         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
1104
1105 2004-02-29  Borut Razem <borut.razem AT siol.net>
1106
1107         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
1108         support/Util/findme.h, support/Util/system.h: enhance binary relative
1109         search for lib and include by using findProgramPath()
1110
1111 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1112
1113         * src/SDCCpeeph.h,
1114         * src/SDCCpeeph.c (pcDistance),
1115         * src/port.h,
1116         * src/mcs51/ralloc.h,
1117         * src/mcs51/ralloc.c (mcs51_regWithIdx),
1118         * src/mcs51/main.h,
1119         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
1120         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1121         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
1122         size calculation port specific, started basis for some register
1123         optimizations
1124         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
1125         missing push/pop of r0/r1. Optimized push/pops
1126         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
1127         * device/lib/_modsint.c (_modsint),
1128         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
1129         and stack version so regression tests pass
1130
1131 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
1132
1133         * src/Makefile.in (dep): include SLIBOBJS in dependency check
1134         * src/SDCCast.c (decorateType): catch another small optimization
1135         with '?' operator
1136         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
1137         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
1138         modified to finally use computeType() all over SDCC,
1139         see Feature Request #877103
1140         * src/SDCCval.h: cosmetic
1141         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
1142         valCompare(); regression tested in muldiv.c
1143         * support/regression/tests/muldiv.c (testMod): mod sign follows
1144         dividend only
1145
1146 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
1147
1148         * src/SDCCast.c (decorateType): fixed bug #902362
1149         * doc/INSTALL.txt: fixed install instructions for win32
1150
1151 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
1152
1153         * device/include/Makefile.in (install): fixed by replacing spaces
1154         by tabs
1155         * doc/README.txt,
1156         * doc/INSTALL.txt: updated for release
1157         * doc/sdccman.lyx: added warning for --xstack being buggy
1158
1159 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
1160
1161         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
1162         to eliminate build warnings.
1163         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
1164
1165 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
1166            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1167
1168         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
1169         removed -penable-stack, added comment for stack pragma, added
1170         warning for not initializing the stack/frame registers, removed
1171         comment at interrupts section
1172
1173         Stack is made permanent, there is no ability to disable stack usage.
1174         * src/pic16/device.h,
1175         * src/pic16/device.c: removed all references to USE_STACK macro,
1176         * src/pic16/device.c (pic16_dump_section): when no elements in
1177         rlist, free rlist before return,
1178         * (pic16_dump_int_registers): NEW, internal registers are a new set
1179         of general purpose registers reused by each function,
1180         * (checkAddReg): returns 1 if registers is added to set,
1181         * (pic16_groupRegistersInSection): when a registers is of type
1182         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
1183         * src/pic16/device.h: memRange and Assigned Memory are deleted,
1184         SRCASECMP macro is moved here from device.c
1185         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
1186         PO_PCLATU, PO_PRODL, PO_PRODH,
1187         * (pic16_pCodeOpType, genMinus,
1188         changed compares to "a" register, with AOP_ACC,
1189         * (pic16_genPlus): fixed some bugs and indented properly,
1190         * (pic16_addSign): changed size to size+offset in the MOVWF
1191         instruction,
1192         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
1193         multiply 8-bit operand by literal, result is 8-bit,
1194         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
1195         multiply 2 8-bit operand, result is 8-bit,
1196         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
1197         genUMult8X*_16,
1198         * src/pic16/gen.c: changed accUse to contain WREG only,
1199         * (pic16_emitcomment): renamed to pic16_emitpcomment,
1200         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
1201         true, do not use immediate addressing any more unless sym is a
1202         pointer in codespace,
1203         * (aopForRemat): do not use immediate addressing when symbol not in
1204         codespace and when symbol's address is requested,
1205         * (aopOp): for-loop in if(sym->accUse) is modified for the new
1206         accUse size (= 1),
1207         * (aopGet): added case for AOP_ACC and don't return "accumulator
1208         bug" but WREG instead,
1209         * (popGetTempReg): pushes contents of temporary register in stack,
1210         * (popReleaseTempReg): pops contents of temporary register from
1211         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
1212         * (pic16_popGet): separated case AOP_ACC to return register WREG
1213         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
1214         or PO_IMMEDIATE and initializes their instance/offset appropriately,
1215         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
1216         the use of immediate pointers to certain cases only.
1217
1218         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
1219         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
1220         * (assignResultValue, genCall, genRet): modified to use the new
1221         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
1222         genPcall is still broken,
1223         * (genFunction): added code to create 'A' type pBlocks when
1224         interrupt functions are generated, code not extensively tested yet,
1225         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
1226         * (genEndFunction): modified so ISRs pop stored registers from stack,
1227         * (genMultOneByte): cleanup,
1228         * (AccRsh): added flag andmask, to and result with appropriate mask,
1229         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
1230         * (genDataPointerGet): fixed and reenabled its use,
1231         * (genNearDataPointerGet): bugs fixed,
1232         * (genDataPointerSet): bugs fixed,
1233         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
1234         pic16_DumpSymbol, pic16_DumpOp,
1235         * src/pic16/genutils.h: function prototypes for the above functions,
1236         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
1237         pointers,
1238         * (pic16emitRegularMap): many many many improvements, but needs a
1239         major cleanup,
1240         * src/pic16/main.c: enable_stack in pic16_options is removed,
1241         * (_pic16_parseOptions): removed command line options -penable-stack,
1242         * (_process_pragma): emit stack symbol only when stack pragma is
1243         processed,
1244         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
1245         redirected to FSR0L/FSR0H pair,
1246         * (pic16_get_op, pic16_get_op2): modifications and improvements,
1247         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
1248         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
1249         for immediates,
1250         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
1251         * (dumpPicOptype): NEW,
1252         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
1253         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
1254         with movff instruction,
1255         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
1256         added pic16_int_regs, some packRegsFor* functions are commented out,
1257         because produce errors,
1258         * src/pic16/NOTES: minor modifications
1259
1260 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1261
1262         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
1263         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
1264         --pack-iram.
1265         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
1266         * as/mcs51/lkaomf51.c: fixed bug #895763
1267
1268 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
1269
1270         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
1271
1272 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1273
1274         * doc/sdccman.lyx: added details about the HC08 storage classes and
1275         interrupts, fixed the register usage info for z80 & gbz80
1276
1277 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
1278
1279         * doc/sdccman.lyx: added more pic16 port documentation
1280         * device/include/pic16/: added header pic18fregs.h
1281
1282 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
1283
1284         * doc/sdccman.lyx: added Vangelis' contribution
1285
1286 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1287
1288         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
1289         extend to the next CALL or PCALL, not just to the next CALL.
1290
1291 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
1292
1293         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
1294
1295 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1296
1297         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
1298         bug #895752 and a better fix for bug #716790
1299
1300 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1301
1302         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
1303
1304 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1305
1306         * doc/sdccman.lyx: minor changes, minor changed
1307
1308 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
1309
1310         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
1311         which can't handle SDCC_NEWONEBYTEOPS,
1312         (geniCodeMultiply): removed conversion from mult to shift for pic14
1313         and pic16
1314
1315 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1316
1317         * src/hc08/gen.h,
1318         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
1319         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
1320         thus fixing bug #895406
1321
1322 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
1323
1324         * device/lib/_modsint.c,
1325         * device/lib/_modslong.c: sign follows divisor only
1326         * src/hc08/gen.c (genMultOneByte): if result size is 1,
1327         signs or signedness can be ignored
1328         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
1329         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
1330         added optimization for IFX,
1331         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
1332         arguments;
1333         reenabled optimization for IFX, which was removed on 2004-01-11
1334         * src/SDCCast.h: added return type IFX
1335         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
1336         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
1337         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
1338         SDCC_OLDONEBYTEOPS selects the old behaviour
1339         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
1340         changed again and commented promotion rule
1341         * src/SDCCval.c (valDiv): promotion no longer necessary
1342         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
1343         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
1344         rewritten
1345         * support/regression/tests/onebyte.c: added
1346
1347 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
1348
1349         * gen.c (genInline): reverted to old code for assemnling inline
1350         code because of bug reported James Chadd
1351
1352 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
1353
1354         * ralloc.h: missing declarations from previous patch,
1355         seems that patch for ralloc.h was never applied, fixed
1356
1357 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1358            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1359
1360         * pcode.c,
1361         * pcode.h,
1362         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
1363         indirect addressing. Marked FSR0 as deprecated
1364         * gen.c (pointerCode): commented out, not needed now
1365         (pic16_popGet2p): new MOVFF helper function
1366         (genGenPointerGet),
1367         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
1368         (shiftRLong): removed duplicate debugging info
1369
1370 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1371
1372         * src/ds390/gen.c (genNearPointerGet),
1373         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
1374         optimization with bits, but not bitfields.
1375         * src/ds390/ralloc.c (packRegisters),
1376         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
1377
1378 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1379
1380         * src/SDCCcse.c (algebraicOpts): copy operands before modification
1381
1382 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1383
1384         * src/SDCCsymt.h,
1385         * src/SDCCicode.c (operandFromSymbol),
1386         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
1387         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
1388         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
1389         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
1390         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
1391         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
1392         bug #892038
1393         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
1394         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
1395         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
1396         * src/SDCCsymt.c (newSymbol),
1397         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
1398         enumerator_list),
1399         * src/SDCCval.h,
1400         * src/SDCCval.c (newiList): fixed bug #885705
1401
1402 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1403
1404         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
1405         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
1406
1407 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1408
1409         * device/include/c8051f120.h,
1410         * device/include/c8051f300.h,
1411         * device/include/c8051f310.h: added/updated header files for Silicon
1412         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
1413         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
1414         in new section Submitting patches
1415
1416 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1417
1418         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
1419         genFarPointerGet, genCodePointerGet, genGenPointerGet,
1420         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1421         genGenPointerSet),
1422         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
1423         genFarPointerGet, genCodePointerGet, genGenPointerGet,
1424         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1425         genGenPointerSet),
1426         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
1427         genFarPointerGet, genCodePointerGet, genGenPointerGet,
1428         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1429         genGenPointerSet),
1430         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
1431         genFarPointerGet, genCodePointerGet, genGenPointerGet,
1432         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1433         genGenPointerSet): fixed bug #892400
1434         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
1435         to eliminate build warnings.
1436         * src/SDCCast.c (processParms),
1437         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
1438         fixed bug 751859
1439         * support/valdiag/valdiag.py: added GCC to the list of defines active
1440         when compiling with gcc
1441
1442 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1443
1444         * support/Util/SDCCerr.h,
1445         * support/Util/SDCCerr.c,
1446         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
1447         with an incomplete type (fixed bug #883734)
1448         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
1449
1450 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1451
1452         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
1453
1454 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1455
1456         * src/SDCCast.c (decorateType),
1457         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
1458         function pointer implementation
1459         * support/regression/tests/funptrs.c: added tests to verify both forms
1460         of function pointers work correctly. Added tests to verify parameters
1461         are passed in the correct order.
1462
1463 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
1464
1465         * device.c (regCompare): registers are sorted by ascending
1466         address and increasing size,
1467         * main.c (_pic16_finaliseOptions): removed the declaration
1468         of compiler macro MCU. Now a macro of the format pic18fxxxx
1469         will be defined from the command line
1470
1471 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1472             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1473
1474         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
1475         PCOP_RLCF was overwritten!
1476         * gen.c (genSkip): commented out calls to pic16_emitcode,
1477         * (genCmpEQ): fixed "long" compares, only high word did get compared,
1478         * (genlshTwo),
1479         * (genRRC): added debugging info,
1480         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
1481         overwritten while shifting,
1482         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
1483         overwritten while shifting,
1484         * (AccLsh),
1485         * (AccRsh),
1486         * (shiftLLeftOrResult),
1487         * (shiftRLeftOrResult),
1488         * (shiftRLong),
1489         * (shiftLLong): Implemented with pic16_emitpcode
1490         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
1491         * (genLeftShift): Fixed bug, operand for shift by variable always
1492         was "and"ed with 0x0f,
1493         * (genLeftShiftLiteral),
1494         * (genrshTwo),
1495         * (genRightShiftLiteral): added debugging info,
1496         * (genrshFour): added comment,
1497         * (genRightShift): determined signedness from operand "left"
1498         instead of "result"
1499
1500 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1501
1502         * src/SDCCicode.c (geniCodeParms),
1503         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
1504         function pointers, fixed function pointer bugs #861242 and #861896
1505
1506 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1507
1508         * device/include/c8051f000.h,
1509         * device/include/c8051f120.h,
1510         * device/include/c8051f300.h: added header files for Silicon
1511         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
1512
1513 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
1514
1515         * src/SDCCast.c (processParams): added new type flow and restructured
1516         (gatherAutoInit): added new type flow
1517         (addCast): cosmetic changes
1518         (getLeftResultType): added new type flow for array indices, patch
1519         provided by Stas, see FR #877103
1520         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
1521         array index patch by Stas
1522         * src/SDCCast.h: added prototype getResultTypeFromType()
1523         * src/SDCCval.h,
1524         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
1525         * src/pic/glue.c (pic14emitStaticSeg),
1526         * src/pic16/glue.c (pic16emitStaticSeg),
1527         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
1528         for initialization of symbols
1529         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
1530         * support/Util/SDCCerr.h:
1531         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
1532         * .version: bumped version number to 2.3.8
1533         * device/include/Makefile.in (install),
1534         * doc/Makefile (install): changed to 'rm `find ...`' construct to
1535         avoid warnings
1536
1537 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
1538
1539         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
1540         Slade Rich fixed an optimization bug
1541         * src/pic/pcodepeep.c,
1542         * src/pic/pcoderegs.c
1543         * doc/Makefile (install): added test for directory
1544
1545 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1546
1547         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
1548         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
1549         * src/pic/ralloc.c (getRegPtr, getRegGpr),
1550         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
1551         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
1552         * as/mcs51/asexpr.c (term),
1553         * as/hc08/asexpr.c (term): fixed bug #887146
1554
1555 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1556
1557         * src/z80/gen.c (genMult): handle single byte result product
1558         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
1559         DUMMY_READ_VOLATILE (fixed bug #886367)
1560
1561 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1562
1563         * support/regression/tests/libmullong.c: fixed logic, on little endian
1564         hosts we ended without a mullong_wrapper()
1565
1566 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1567
1568         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
1569         virus/worm forged address usage.
1570
1571 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1572
1573         Fixed promotion, it should be done on AST level:
1574         * src/SDCCast.c (addCast): added promotion to int
1575         (decorateType): updated call to upCast()
1576         * src/SDCCicode.c (geniCodeLeftShift): removed call to
1577         usualUnaryConversions()
1578
1579 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
1580
1581         * support/regression/tests/literalop.c (mulWrapper): Added a
1582         wrapper to remove integer overflow warnings.
1583
1584         * support/regression/tests/float_trans.c: Made work on host.
1585
1586         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
1587         location of sz80.
1588
1589         * support/regression/generate-cases.py (main): Changed from inline
1590         to a main method.
1591
1592         * doc/Makefile (install): Changed to depth first to get rid of
1593         missing directory install warning.
1594
1595         * as/Makefile (install-doc): Made work on Mac.
1596
1597 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
1598
1599         * src/SDCCast.c: added an additional type flow in decorateType() of
1600         opposite direction, see feature request #860006; it's enabled at runtime
1601         by setting the environment variable SDCC_NEWTYPEFLOW
1602         * src/SDCCast.h: changed prototype of decorateType()
1603         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
1604         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
1605         'char' to 'int' can be omitted, if both operands are 'unsigned char';
1606         see feature request #877103
1607         * src/SDCCval.c: updated call of decorateType()
1608         (valBitwise): fixed bug #882876
1609         (valMinus): added promotion
1610         (valLogicAndOr): result is unsigned
1611         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
1612         * src/SDCCsymt.c (computeType),
1613         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
1614         must not cause an unsigned operation
1615         * src/pic/glue (pic14emitRegularMap),
1616         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
1617
1618 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
1619
1620         * src/pic/pcode.c (PCodeID): commented out left over debug code
1621
1622 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1623
1624         * support/valdiag/tests/overflow.c: added shift tests
1625         * src/pic/device.c,
1626         * src/pic/gen.c,
1627         * src/pic/gen.h,
1628         * src/pic/glue.c,
1629         * src/pic/main.c,
1630         * src/pic/pcode.c,
1631         * src/pic/pcode.h,
1632         * src/pic/pcodepeep.c,
1633         * src/pic/pcoderegs.c,
1634         * src/pic/ralloc.c,
1635         * src/pic/ralloc.h: applied patch from Slade Rich;
1636         added support for multiple code pages and multiple RAM banks on the
1637         PIC 14 port. The ASM files now no longer simply assume all the
1638         code / RAM are in the same page / bank. This means the linker can
1639         safely allocate code/RAM of separate ASM files to different pages/banks.
1640         * doc/sdccman.lyx: added Slade's tips
1641         * src/mcs51/peeph.def: fixed bug #880768
1642
1643 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1644
1645         * src/hc08/ralloc.c (rematStr): fixed bug #879282
1646         * src/SDCCast.c (decorateType): fixed bug #880197
1647
1648 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
1649
1650         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
1651         getopt.h.
1652
1653         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
1654         strtof is not part of C89 and isn't included with Mac OS X.
1655
1656 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1657
1658         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
1659         shiftL2Left2Result): fixed bug #879326
1660         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
1661         (genMultOneByte): fixed bug in signed vs unsigned multiplication
1662         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
1663         address fetch for clr instruction
1664         * device/lib/hc08/_mulint.c: created optimized assembly version
1665         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
1666
1667 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1668
1669         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
1670         proposed in FR #877103
1671
1672 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1673
1674         * src/SDCCval.c (cheapestVal): added missing checks
1675         * src/SDCCicode.c (usualBinaryConversions): fixed condition
1676         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
1677
1678 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
1679
1680         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
1681         equal operands
1682
1683 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
1684
1685         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
1686         loaded with the linker search paths (-L arguments) and the libraries
1687         to be linked with the current source (-l arguments). Changes
1688         currently will affect only the pic16 port.
1689         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
1690         include path the port specific paths and port specific libraries,
1691         * gplink command now contains the $3 argument,
1692         * src/pic16/device.h,
1693         * src/pic16/device.c,: structure PIC_device is made public and
1694         renamed to PIC16_device, the same for variable Pics which is renamed
1695         to Pics16. Updated all references to them.
1696         * src/pic16/glue.c (pic16glue): corrected bug with code
1697         initialization which bypassed the variable initializations block.
1698
1699         * device/lib/pic16/Makefile.rules: removed --penable-stack from
1700         COMPILE_FLAGS and added the --nostdinc option
1701
1702 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1703
1704         * device/include/mc68hc908jb8.h: Register defs for another member
1705         of the hc08 family. Contributed by Bjorn Bringert - thanks!
1706
1707 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
1708
1709         Documenting changes from previous commits.
1710         * configure.in (version 1.56),
1711         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
1712         when generating output files to configure the pic16 library,
1713         but now I've commented it out, since gputils aren't installed in the
1714         SF compile farm, so library won't compile
1715
1716         * device/lib/Makefile.in (version 1.56): initially I've added in
1717         target 'all' the prerequestive 'model-pic16' so it compiled the
1718         pic16 library, but now I've commented it out for the same reasons
1719         above,
1720         * added targets 'model-pic16' and 'objects-pic16' to compile the
1721         library
1722         * added target 'port-specific-objects-pic16' to handle the
1723         generated libraries and copy them into the build/ directory
1724         * added target 'clean-intermediate-pic16' to clean intermediate
1725         files into pic16 directory
1726         * in target 'installdirs' added line to create directory pic16 in
1727         the installation path
1728
1729         * device/include/Makefile.in (version 1.11): in target 'install'
1730         added lines to copy all header files to installation path,
1731         * in target 'installdirs' added line create directory for pic16
1732         headers in the installation path
1733
1734 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
1735
1736         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
1737          a function call
1738
1739 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
1740
1741         * configure,
1742         * device/lib/configure.in,
1743         * device/lib/configure: fixed for autoconf 2.57
1744
1745 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1746
1747         * src/z80/main.c (_parseOptions): fixed the portmode= command line
1748         option so that it actually works. Made it specific to the z80, since
1749         the gbz80 doesn't have these kinds of I/O ports.
1750
1751 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1752
1753         * device/include/z180.h,
1754         * device/lib/_memcpy.c,
1755         * device/lib/_memmove.c,
1756         * device/lib/_mulint.c,
1757         * device/lib/ser_ir.c,
1758         * device/lib/ser_ir_cts_rts.c,
1759         * device/lib/_strcmp.c,
1760         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
1761         * src/z80/main.c (_process_pragma): add support for pragmas bank and
1762         portmode; added deprecation warning for bank= and protmode= forms.
1763         Also, guard against buffer overflow.
1764         * src/z80/gen.c (aopGet): generate better code for sfr banked read
1765
1766 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1767
1768         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
1769         changed interrupt vector table generation to only emit declared vectors.
1770         * device/include/Makefile.in: added missing backslash
1771         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
1772
1773 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1774
1775         Mainly changes to support compilation of the device libraries
1776         * src/pic16/device.c: stack is allocated via symbol and not
1777         via literal number. The symbol is placed in the corresponding
1778         position of the data ram
1779         * (pic16_dump_section): relocatable and absolute uninitialized
1780         data are now emitted in sorted order to reduce section naming,
1781         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
1782         weren't marked as being in the access bank,
1783
1784 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1785
1786         Added portion of GNU PIC Library under the directory
1787         device/include/pic16 and device/lib/pic16. These files
1788         contain the declarations of SFRs for the PIC18Fxx2 devices.
1789         The directory is initialized via configure from toplevel.
1790
1791 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
1792
1793         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
1794         the spilllocations to be compared correctly
1795
1796 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1797
1798         * src/SDCCast.c (decorateType): fixed bug introduced today
1799
1800 2004-01-12  Borut Razem <borut.razem AT siol.net>
1801
1802         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
1803         doc/sdccman.lyx: upper case pragmas are deprecated
1804
1805 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1806
1807         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
1808         in simpler and even better code
1809
1810 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
1811
1812         * src/SDCCicode.c (operandOperation): fixed bug #874819
1813         * src/SDCCast.c (decorateType): fixed
1814         char foo (unsigned long ul) { return ul > 0; }
1815
1816 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1817
1818         * doc/sdccman.lyx: Moved and added some sections, small changes
1819         all over. Telling LaTeX to be less strict with word spacing
1820         to better keep the right margin. Changed some notes about
1821         maintainance of the ports in section 3.2.1 - is it OK like this?
1822
1823 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1824
1825         SDCC source changes:
1826         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
1827         convilong): modified to inform the pic16 port that builtin functions
1828         are external
1829
1830         PIC16 PORT specific changes:
1831         * src/pic16/device.c pic16_dump_equates() added,
1832         processor registers declared internally by the port are emitted in
1833         the translation as equates,
1834         * src/pic16/gen.c: inline code is passed unprocessed to the
1835         translation,
1836         * (pic16_popGetLit2): fnuction modified to take second operand as
1837         pCodeOp pointer and not as literal,
1838         * (popRegFromIdx): prefixed with pic16_,
1839         * (pic16_popCombine2): modified to receive already allocated pCode
1840         operands,
1841         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
1842         * (genFunction): initializes local stack frame and pushes on stack
1843         all the registers used by this function,
1844         * (genEndFunction): restores all registers from stack and restores
1845         stack frame,
1846         * src/pic16/glue.c (pic16emitRegularMap): various changes and
1847         improvements,
1848         * (pic16glue): changed the program startup sequence,
1849         * added new dbName code 'A' for functions placed in absolute section
1850         * src/pic16/main.c: added function attribute _naked,
1851         * added pragma 'code' to place a fnuction at an absolute address,
1852         * added command line arguments --debug-ralloc and --pcode-verbose,
1853         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
1854         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
1855         * (pic16_newpCodeOpLit2): modified to take the second operand as
1856         pCodeOp pointer,
1857         * (pic16_printpBlock): modified to emit each function in a separate
1858         section,
1859         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
1860         UPPER for immediate operands,
1861         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
1862         instruction,
1863         * src/pic16/peeph.def: all peepholes with movff are commented out,
1864         because there is a problem in the pcode peep optimizer,
1865         * src/pic16/ralloc.c: the register allocator can now reuse local
1866         function symbols for another function. This saves register usage.
1867         * src/pic16/ralloc.h: added flag isLocal in structure regs,
1868
1869         Added file src/pic16/NOTES with information about program writing on
1870         the current port version.
1871
1872 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1873
1874         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
1875         and peephole 252 (array access)
1876
1877 2004-01-09  Borut Razem <borut.razem AT siol.net>
1878
1879         * src/SDCCmain.c : fixed #872250: -l command line defined library
1880           files are scanned before standard library files
1881
1882 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1883
1884         * src/SDCCast.c (decorateType): fixed bug #874046
1885
1886 2004-01-09  Borut Razem <borut.razem AT siol.net>
1887
1888         * support/scripts/sdcc.nsi: remove previous installation
1889
1890 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1891
1892         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
1893         bytes for last interrupt vector (mcs51)
1894         * sdcc.spec: fixed typo
1895
1896 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1897
1898         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
1899         gen51Code): more efficient parameter receive for --model-large
1900         ("bug" #845294)
1901
1902 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1903
1904         * src/ds390/main.c,
1905         * src/z80/main.c: added missed needLinkerScript flags (more than
1906         one port structure defined in these file)
1907         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
1908         bug #795325
1909
1910 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
1911
1912         * src/SDCCmain.c: removed various references to DEFAULT_PORT
1913         * src/port.h: added flag needLinkerScript in port->linker
1914         structure to inform whether to create a .lnk file or not,
1915         * src/avr/main.c,
1916         * src/ds390/main.c,
1917         * src/hc08/main.c,
1918         * src/mcs51/main.c,
1919         * src/pic/main.c,
1920         * src/pic16/main.c,
1921         * src/xa51/main.c,
1922         * src/z80/main.c: changed appropriately to configure
1923         needLinkerScript flag
1924         * src/pic/gen.c,
1925         * src/pic16/gen.c (genAddrOf): fixed bug #863624
1926         * src/pic/glue.c: added variable udata_section_name to
1927         override default uninitialized data segment definition for
1928         devices only with SHAREBANK memory (reported from Erik Epetrich)
1929         * (pic14emitOverlay): modified to emit a commented overlay segment
1930         directive when no overlay data exist
1931         * (picglue): modified to emit uninitialized data segment
1932         according to udata_section_name
1933         * src/pic/main.c (_pic14_parseOptions): added command line
1934         options --udata-section-name=[name] to override default
1935         udata definition name
1936         * modified _linkCmd and _asmCmd to include compiler passed
1937         arguments via -W option
1938         * src/pic16/main.c: added $l in _asmCmd, changed extension for
1939         object file from '.rel' to '.o' in port->linker structure,
1940         changed size of fptr from 2 to 3 in port structure
1941
1942 2004-01-07  Borut Razem <borut.razem AT siol.net>
1943
1944         * support/scripts/sdcc.nsi: update PATH
1945         * support/scripts/sdcc.ico: craeted
1946
1947 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
1948
1949         * device/include/Makefile.in: fix install
1950         * doc/Makefile: fix install
1951
1952 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1953
1954         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
1955         in bug #860505
1956         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
1957         how the function variable allocation summary is displayed; also
1958         include information about variables allocated to the overlay
1959         segment
1960
1961 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1962
1963         * as/mcs51/lkmain.c: Help about -Y option
1964         * as/mcs51/lkarea.c: Fixed gcc warnings
1965
1966 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1967
1968         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
1969         fixed warning
1970         * support/valdiag/tests/overflow.c: added
1971         * src/SDCCast.c (decorateType),
1972         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
1973         LEFT_OP (left shift)
1974
1975 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1976
1977         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
1978         (default behaviour).
1979
1980 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1981
1982         A python script to validate compiler diagnostic messages. It can be
1983         used to verify that sdcc complains about bad c source code and
1984         gives a good location of the error.
1985         * support/valdiag/Makefile,
1986         * support/valdiag/valdiag.py,
1987         * support/valdiag/tests/*
1988
1989 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1990
1991         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
1992         * src/SDCCsymt.c (newEnumType),
1993         * src/SDCCsymt.h
1994         * support/Util/SDCCerr.c,
1995         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1996         enum related bugs.
1997         * support/regression/tests/enum.c: added test for enum values that
1998         require at least 2 bytes of storage.
1999
2000 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2001
2002         * src/common.h: added ifndef/define/endif macros
2003         around the header file.
2004         Bug reported from Jesus Calvino-Fraga
2005
2006 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2007
2008         * sdcc.spec: updated
2009         * device/include/Makefile.in: don't install CVS directories
2010         * device/lib/Makefile.in: added removal of CVS directories after install
2011         * doc/Makefile: fixed install, added local_icons
2012         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
2013         * src/mcs51/gen.c (genRightShift): fixed bug #870788
2014         * src/ds390/gen.c (genRightShift): fixed bug #870788
2015         * src/SDCCast.c (decorateType): fixed bug #870781
2016
2017 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2018
2019         PIC16 port related changes:
2020         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
2021         added variable stackPos,
2022
2023         * gen.c: genCall, assignResultValue: added support for
2024         pushing/retrieving function parameters to/from stack,
2025         genFunction,genEndFunction: setup stack frame for the
2026         generated function,
2027         genAddrOf: will be changed according to bug 863624
2028
2029         * added files genutils.c and genutils.h which contain gen*
2030         debugged and optimised functions extracted from gen.c
2031
2032         * glue.c: added variable 'externs' which holds extern symbols,
2033         pic16emitRegularMap: is modified to properly handle relocatable
2034          symbols under the new scheme,
2035         pic16createInterruptVect: is modified
2036         pic16printPublics: is modified to emit 'global' assembler directives,
2037         added pic16_printExterns to print extern symbols,
2038         pic16glue: initializes stack/frame pointer in the beginning of
2039         the assembly output. Temporary hack, will be corrected later,
2040         because gplink yet does not support stack and SDCC does not
2041         yet support a type of crt0.o object to create the final binary.
2042
2043         * Removed many lines that contain 8051 legacy code.
2044         * The code is finally placed under a 'code' directive.
2045         * Added port specific options.
2046
2047         * _process_pragma: simplified since now we do not need *special*
2048         include file to define SFR registers. But a separate header
2049         will be needed. This will be developed later.
2050         * _pic16_parseOptions: added, parses port specific options:
2051         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
2052         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
2053         --preplace-udata-with=
2054
2055         * _pic16_setDefaultOptions: modified to initialize section names,
2056         but hack is temporarly out of order since it needs improvement.
2057         * _pic16_genAssemblerPreamble: configuration words are emitted by
2058         their address instead of their name. This part is incomplete and
2059         supports only the 18Fxx2 devices. Other devices will emit an error
2060         during assembly since they do not contain the same set of config
2061         registers
2062         * _pic16_genIVT: is modified,
2063
2064         * pcode.c: added definitions for some hardware registers that are needed
2065         for stack support
2066         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
2067         All PCI entries are updated. Now LFSR is supported.
2068         * Removed pic16_pciTRIS is mentioned by mdubuc in source
2069         * added pic16_newpCodeOpLit2 to support instructions with
2070         two literal arguments
2071         * pic16_pCode2str: corrected code that emits assembler instructions
2072         with two literal operands and those that have an access bit modifier
2073         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
2074         this fixes a bug which caused some labels to be lost, when an
2075         assembler directive was added, i.e. banksel,
2076         * pic16_FixRegisterBanking: improved logic that causes the insertion
2077         of bank switching,
2078         * InlineFunction: functions that are called once, are not any more
2079         inlined. This can be a port option in the future,
2080
2081         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
2082
2083         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
2084         hold the corresponding uninitialized symbols,
2085         * pic16_allocProcessorRegister: registers have explicit marked the
2086         accessBank field,
2087         * pic16_allocInternalRegister: registers are explicit marked as
2088         not used,
2089         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
2090         processing list, so bit registers were lost,
2091         *
2092
2093         * ralloc.h: added field 'accessBank' and original symbol operand
2094         in register definition,
2095         * removed the field isMapped from register definition,
2096
2097         ** Several functions have been removed from various sources:
2098         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
2099         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
2100         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
2101         pic16_assignRelocatableRegisters
2102
2103         ** others have been introduced:
2104         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
2105         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
2106
2107 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
2108
2109         * support/scripts/inc2h.pl: changed definition of BIT_AT
2110         to emit 'sbit at' instead of 'bit at'. This was a request.
2111
2112         PIC16 port related preliminary changes:
2113         * gen.c: prefixed function popRegFromString with
2114         pic16_ and all references to it corrected
2115         * pcode.c: all pic16_pc_* hardware registers prefixed
2116         with underscore (_),
2117         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
2118         * ralloc.c: newReg(): when register is REG_SFR then
2119         set address to rIdx,
2120         pic16_allocProcessorRegister(): marks register wasUsed=0
2121         pic16_writeUsedRegs(): added a call to assign processor
2122         registers via pic16_assignFixedRegisters
2123
2124 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2125
2126         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
2127         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
2128         variables in unused register banks.  Also the SSEG is placed
2129         wherever there is enough space for it, and IDATA can be anywhere
2130         in internal RAM.  For now compile using -Wl-Y[stack_size].
2131         The mem file is different for this option as well, since it
2132         makes no sense of talking about DSEG lenght.
2133
2134 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
2135
2136         * src/SDCClrange.c: fixed bug 869095 that caused segfault
2137         in certain cases, e.g. when ROM assignment, patch provided
2138         from Albert den Haan.
2139
2140 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2141
2142         Many signedness and type propagation fixes:
2143         * src/SDCCicode.c: made geniCodeCast() static
2144         replaced SPEC_ by IS_ (cosmetic)
2145         (operandOperation): fixed div and mod operation
2146         (usualBinaryConversions): added support for promotion of char
2147         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
2148         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
2149         (geniCodeAdd): an array index will stay unsigned, even if promoted
2150         from char to int
2151         (geniCodeArray): ditto
2152         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
2153         * src/SDCCsymt.c (computeType): added more support for char;
2154         promotion of char is selectable by promoteCharToInt, fixed signedness
2155         for all cases
2156         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2157         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2158         * src/SDCCval (val*): replaced signedness calculation by
2159         computeType()
2160         rearranged if-branches (cosmetic)
2161         (valShift): added warning W_SHIFT_CHANGED
2162         (valCompare): fixed problem with different types
2163         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
2164         * support/regression/tests/literalop.c: added many cases
2165         * support/regression/tests/ast_constant_folding.c: changed finally to
2166         'unsigned int'
2167         * .version: new year, new version: 2.3.7
2168         * src/SDCCmain.c (main): applied patch #866468
2169         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
2170         provided by Scott Bronson
2171         * doc/sdccman.lyx: updated documentation for sdcdb
2172         updated and added chapter tips
2173
2174 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2175
2176         * src/SDCCsymt.h: missing from yesterday's commits
2177
2178 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2179
2180         * src/SDCC.y (struct_or_union_specifier),
2181         * support/Util/SDCCerr.c,
2182         * support/Util/SDCCerr.h: verify that struct & union tags are used
2183         as declared.
2184
2185 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2186
2187         * src/SDCCglobl.h: missing from yesterday's commits
2188
2189 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2190
2191         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
2192         sft_attributes, struct_declaration, parameter_declaration,
2193         type_name, start_block, declaration_list),
2194         * src/SDCC.lex (check_type): support redefinition of typedef names
2195
2196 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2197
2198         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
2199         aligned xdata arrays. Erik helped me with the if clause.
2200
2201 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2202
2203         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
2204         warning
2205
2206 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2207
2208         * src/SDCCast.h,
2209         * src/SDCCast.c (newAst_),
2210         * src/SDCCicode.h,
2211         * src/SDCCicode.c (ast2iCode, newiCode),
2212         * src/SDCCglobl.h,
2213         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
2214         expr, statement, expression_statement, selection_statement,
2215         iteration_statement, expr_opt, jump_statement): foundation for tracking
2216         sequence points
2217         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
2218         point code too)
2219
2220 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2221
2222         * support/Util/SDCCerr.c,
2223         * src/SDCCast.h,
2224         * src/SDCCast.c (createCase, createDefault, decorateType),
2225         * src/SDCClabel.c (labelUnreach),
2226         * src/SDCC.y (labeled_statement, jump_statement): More improvements
2227         to error messages.
2228         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
2229         (with thanks to Stas Sergeev)
2230         * device/include/time.h,
2231         * device/lib/time.c (CheckTime): suppress unreachable code warning
2232
2233 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2234
2235         * src/SDCCast.c (createIvalCharPtr),
2236         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
2237         bug #753752)
2238         * support/regression/tests/nullstring.c: tests for these two bugs
2239
2240 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2241
2242         * support/Util/SDCCerr.h,
2243         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
2244         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
2245         about storage class and 'at' used inside struct or union
2246         * src/SDCCBBlock.c (iCodeFromeBBlock),
2247         * src/SDCCcse.c (ifxOptimize),
2248         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
2249         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
2250         printIval, emitStaticSeg, emitOverlay),
2251         * src/SDCClabel.c (deleteIfx),
2252         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
2253         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
2254         gatherAutoInit, processParms),
2255         * support/Util/SDCCerr.h,
2256         * support/Util/SDCCerr.c (werrorfl): Support for better error location
2257         reporting for post-parse errors.
2258
2259 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2260
2261         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
2262         implicit casts via union; they don't work on big endian systems
2263         (possible fix for bug #861138)
2264
2265 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2266
2267         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
2268         * src/mcs51/main.c: fixed the fix for bug #737001
2269
2270 2003-12-15  Borut Razem <borut.razem AT siol.net>
2271
2272         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
2273
2274 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2275
2276         * support/makebin/makebin.c: put output in binary mode
2277
2278 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2279
2280         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
2281         xdata and data memory on startup. Set the environment variable
2282         SDCC_NOGENRAMCLEAR to disable this.
2283         * src/mcs51/peephole.def,
2284         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
2285         (allows non-interrupt and interrupt code to safely compete for a resource
2286         without the non-interrupt code having to disable interrupts)
2287
2288 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2289
2290         * src/SDCCicode.c (geniCodeAdd),
2291         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
2292         with valFromType if type might be a pointer and host is big endian).
2293         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
2294         types, not just integer types.
2295         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
2296         multiply defined with mismatching "at" address.
2297
2298 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2299
2300         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
2301         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
2302         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
2303         with embedded nulls (fixed bug #753752)
2304
2305 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2306
2307         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
2308         Apparently this did not see much testing (endless loop)
2309
2310 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2311
2312         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
2313
2314 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2315
2316         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
2317         gracefully handle NULL memmap pointers
2318
2319 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2320
2321         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
2322         instead of deleting the iCode when an operand is volatile
2323         * src/z80/gen.c (genDummyRead),
2324         * src/mcs51/gen.c (genDummyRead),
2325         * src/ds390/gen.c (genDummyRead),
2326         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
2327         not just IC_RIGHT
2328         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
2329         * src/SDCC.y: fixed bug #850420
2330
2331 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2332
2333         Applied z80 i/o port patch from Peter Townson and fixed some operators
2334         to better handle operands in A register.
2335         * device/include/z180.h
2336         * src/SDCC.y
2337         * src/SDCCglue.c
2338         * src/z80/gen.c
2339         * src/z80/gen.h
2340         * src/z80/main.c
2341         * src/z80/peeph-z80.def
2342         * src/z80/peeph.def
2343         * src/z80/z80.h
2344
2345 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2346
2347         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
2348
2349 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2350
2351         * device/lib/hc08/_mullong.c: Removed extra #endif
2352
2353 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2354
2355         * sim/ucsim/hc08.src/inst.cc,
2356         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
2357         carries from x to h
2358         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
2359         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
2360         * device/include/stdarg.h: fixed varargs for hc08
2361         * device/lib/Makefile.in,
2362         * device/lib/hc08/Makefile,
2363         * device/lib/hc08/_mulint.c,
2364         * device/lib/hc08/_mullong.c: fixed some endian problems
2365
2366 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2367
2368         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
2369         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
2370         * device/lib/_gptrget.c,
2371         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
2372
2373 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2374
2375         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
2376         * src/SDCCast.c (astErrors): fixed bug #846007
2377         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
2378
2379 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2380
2381         * src/SDCCast.c (decorateType): disabled a transformation I added in
2382         revision 1.188 (access to fields of a structure at an absolute address);
2383         it breaks with bitfields, extern declarations, and gcse analysis.
2384         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
2385         could be assigned through a pointer, so don't complain.
2386         * src/SDCCast.c (astErrors),
2387         * src/SDCCast.h,
2388         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
2389
2390 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
2391
2392         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
2393         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
2394         output of __config directives, since gpasm now supports them
2395         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
2396         pre-processor macro, i.e. -DMCU=p18f452
2397         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
2398         and modified to handle 'cast' icode similarly to '=' icode
2399         * src/pic16/device.h (typedef struct PIC_device): added field
2400         'extMIface' to indicate that chip has external memory interface
2401         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
2402         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
2403         18F8720
2404
2405 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2406
2407         * src/SDCC.y (pointer): fixed bug #846006
2408         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
2409         * src/SDCCast.c (decorateType): fixed bug #846009
2410         * src/ds390/peeph.def,
2411         * src/ds390/gen.c (genAnd, genOr),
2412         * src/mcs51/peeph.def,
2413         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
2414
2415 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2416
2417         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
2418         * src/SDCCdflow.c
2419         * src/SDCCcse.c
2420         * src/SDCCcse.h
2421         * src/SDCCBBlock.h
2422         * src/SDCCBBlock.c
2423
2424 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
2425
2426         fixed bug #845089
2427         * src/SDCCbitv.h,
2428         * src/SDCCbitv.c: added function to free a bitvector
2429         * src/SDCClrange.h,
2430         * src/SDCClrange.c: added function to recompute the liveranges
2431         * src/avr/ralloc.c,
2432         * src/ds390/ralloc.c,
2433         * src/hc08/ralloc.c,
2434         * src/mcs51/ralloc.c,
2435         * src/pic/ralloc.c,
2436         * src/pic16/ralloc.c,
2437         * src/xa51/ralloc.c,
2438         * src/z80/ralloc.c: recompute the liveranges after register packing
2439
2440 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
2441
2442         * src/SDCCloop.c (newInduction): fixed bug #845630
2443
2444 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2445
2446         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
2447         inadvertantly left behind from my 2003-11-12 change
2448
2449 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2450
2451         Updated headers I neglected to commit yesterday.
2452         * src/SDCClrange.h,
2453         * src/SDCCicode.h
2454
2455 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2456
2457         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
2458         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
2459         * src/SDCCopt.c (eBBlockFromiCode),
2460         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
2461         the creation of the key hash table from the sequencing so it can be used
2462         earlier (for some GCSE bug fixes still pending)
2463
2464 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2465
2466         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
2467         * support/regression/tests/addsub.c: testing genPlus shortcut
2468
2469 2003-11-15  Borut Razem <borut.razem AT siol.net>
2470
2471         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
2472
2473 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2474
2475         * src/SDCCcse.c (cseBBlock): fixed bug #527779
2476         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
2477         ordering is immaterial.
2478         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
2479
2480 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2481
2482         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
2483         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
2484         (SIGSEV) of bug #840381
2485         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
2486         unlink new file before rename if new and old filenames are the same)
2487
2488 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2489
2490         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
2491         uninitialized variables) for the mcs51. Set environment variable
2492         SDCC_GENRAMCLEAR to test.
2493         xdata initialization slightly shorter
2494
2495 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2496
2497         * src/SDCCsymt.h,
2498         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
2499         #838241 & 780691 (basicly the same bug)
2500         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
2501         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
2502
2503 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
2504
2505         * src/SDCCmain.c (linkEdit): "fix" #834252
2506
2507 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2508
2509         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
2510         * src/SDCCast.h,
2511         * src/SDCC.y: fixed bug #819403
2512
2513 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2514
2515         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
2516         the reentrant attribute.
2517         * src/hc08/gen.c (genPackBits): added missing stack readjustment
2518         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
2519         simulation
2520         * src/SDCCast.c (decorateType): fixed bug with storage class not being
2521         updated during pointer dereference; f.e. ~(((char *)1)*) was being
2522         erroneously reduced to a literal.
2523         * src/hc08/ralloc.c (packRegisters, rematStr),
2524         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
2525         some cases
2526
2527 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2528
2529         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
2530         * doc/sdccman.lyx: changed from 'article' to 'book'
2531         * doc/Makefile: readded test_suite_spec and cdbfileformat
2532
2533 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
2534
2535         * device/include/stdlib.h: include malloc.h to comply with ANSI
2536         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
2537
2538 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2539
2540         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
2541         * doc/clean.mk: also remove *.out files
2542         * doc/sdccman.lyx: some additions, larger top/bottom margins
2543
2544 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2545
2546         * src/SDCC.y: fixed bug #837365
2547         * support/regression/tests/bitopcse.c
2548         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
2549         a symbol (might be valop instead)
2550         * device/lib/Makefile.in: added errno.c to HC08SOURCES
2551         * device/lib/clean.mk: added hc08 to the cleaning list
2552
2553 2003-11-04  Borut Razem <borut.razem AT siol.net>
2554
2555         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
2556           made 2003-11-04
2557         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2558           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
2559           malloc is declared in standard stdlib.h
2560
2561 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2562
2563         * device/lib/hc08/Makefile: need to clean .rel not .o files
2564         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
2565
2566 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2567
2568         * src/port.h,
2569         * src/hc08/main.c,
2570         * src/mcs51/main.c,
2571         * src/ds390/main.c,
2572         * src/z80/main.c,
2573         * src/avr/main.c,
2574         * src/pic/main.c,
2575         * src/pic16/main.c,
2576         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
2577         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
2578         tests (which uses the port's oclsExpense function)
2579         * src/SDCC.y,
2580         * src/SDCCast.c,
2581         * src/SDCCicode.c,
2582         * src/hc08/gen.c,
2583         * src/ds390/gen.c,
2584         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
2585
2586 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2587
2588         * src/SDCCcse.c (ifxOptimize),
2589         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
2590         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
2591         deleting the IFX iCode.
2592         * src/hc08/ralloc.c: reduced unneeded slocs
2593         * src/hc08/gen.c: fixed bug in asmopToBoolean
2594
2595 2003-11-04  Borut Razem <borut.razem AT siol.net>
2596
2597         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
2598           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2599           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
2600           transferred to configure
2601
2602 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
2603
2604         Use headers defined in the C[++] standards:
2605         * sim/ucsim/gui.src/serio.src/fileio.cc
2606         * sim/ucsim/gui.src/serio.src/frontend.cc
2607         * sim/ucsim/gui.src/serio.src/main.cc
2608         * sim/ucsim/gui.src/serio.src/posix_signal.cc
2609         * support/Util/NewAlloc.c
2610         * as/hc08/lklibr.c
2611         * as/mcs51/lklibr.c
2612         * as/z80/aslist.c
2613         * as/z80/assym.c
2614
2615 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2616
2617         * Added MSVC projects for hc08 assembler and linker:
2618         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
2619         /as/hc08/link_hc08.dsp
2620
2621 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
2622
2623         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
2624
2625 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
2626
2627         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
2628
2629 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2630
2631         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
2632
2633 2003-10-31  Borut Razem <borut.razem AT siol.net>
2634
2635         * support/cpp2/cpplib.h,
2636           support/cpp2/cpplib.c,
2637           support/cpp2/cpplex.c,
2638           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
2639           to switch _asm block preprocessing on / off. Default is
2640           #pragma preproc_asm +
2641
2642 2003-10-31  Borut Razem <borut.razem AT siol.net>
2643
2644         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
2645           when outputting comment blocks (when executed with -C option) and
2646           _asm (SDCPP specific) blocks
2647
2648 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2649
2650         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
2651
2652 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
2653
2654         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
2655
2656 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
2657
2658         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
2659         * src/SDCCast.c (decorateType): fixed bug #832664
2660
2661 2003-10-31  Borut Razem <borut.razem AT siol.net>
2662
2663         * support\cpp2\cpplex.c: fixed for SDCPP:
2664           comments(when executed with -C option) and _asm blocks
2665           were included even if they where in skipped #if block.
2666           Applied solution from GCC cpp 3.3.2
2667
2668 2003-10-31  Borut Razem <borut.razem AT siol.net>
2669
2670         * src/SDCC.lex: sdcc now understands both formats:
2671           '# <line_number> <file_name>' and
2672           '#line <line_number> <file_name>'
2673         * support/cpp2/cppmain.c: sdcpp now generates the standard
2674           '# <line_number> <file_name>' instead of former
2675           '#line <line_number> <file_name>'
2676
2677 2003-10-30  Borut Razem <borut.razem AT siol.net>
2678
2679         * support/cpp2/cpphash.h,
2680         * support/cpp2/cpplib.h
2681         * support/cpp2/cpplex.c,
2682         * support/cpp2/cppmain.c,
2683         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
2684
2685 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2686
2687         Fixed a number of problems revealed by bug #827883.
2688         * src/SDCCloop.c (loopInvariants): Spill location of the
2689         result operand should be recomputed if extracted from
2690         a loop. Also, don't extract assignments of an iTemp
2691         from a literal.
2692         * src/SDCCast.c (isConformingBody): loop reversal should
2693         not occur if the control variable is involved with a
2694         relational operator.
2695
2696 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2697
2698         * .version: bumped to 2.3.6 to reflect the big improvements
2699         made by Erik and Klaus. Thanks!
2700
2701 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
2702
2703         Replaced the livrange code.
2704         * src/SDCClrange.c: added new LR code
2705         * src/SDCCloop.c,
2706         * src/SDCCBBlock.h: removed remainig parts from old LR code
2707         * src/ds390/ralloc.c,
2708         * src/ds390/gen.c: minor fixes to make it work with new code
2709
2710 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2711
2712         * as/hc08/asm.h,
2713         * as/hc08/lkrloc.c,
2714         * src/hc08/gen.c,
2715         * src/hc08/ralloc.c: Fix various warnings related to the hc08
2716         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
2717         (tweaked fix for bug #818696)
2718
2719 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2720
2721         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
2722
2723 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2724
2725         * src/SDCCmain.c,
2726         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
2727         * src/mcs51/gen.c (gencjneshort),
2728         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
2729         more efficient (per Scott Bronson's suggestion)
2730
2731 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2732
2733         Extended the semantics of the critical keyword to include
2734         individual statements. See RFE #827755 and #799831
2735         * src/SDCC.y
2736         * src/SDCCicode.c
2737         * src/SDCCopt.c
2738         * src/SDCCast.c
2739         * support/Util/SDCCerr.c
2740         * support/Util/SDCCerr.h
2741         * src/mcs51/gen.c
2742         * src/ds390/gen.c
2743         * src/hc08/gen.c
2744
2745 2003-10-19  Borut Razem <borut.razem AT siol.net>
2746
2747         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
2748
2749 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2750
2751         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
2752         Fixed bug #818696
2753         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
2754         and predecrement operand is displayed
2755
2756 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2757
2758         * src/SDCCval.c (valMinus): fixed bug #826041
2759
2760 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2761
2762         Some hc08 related updates that I missed earlier
2763         * sim/ucsim/stypes.h
2764         * support/regression/ports/hc08/spec.mk
2765
2766 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2767
2768         New target "hc08" for the Motorola 68hc08 family of micros
2769
2770         * configure
2771         * configure.in
2772         * Makefile
2773         * src/hc08/*
2774         * src/SDCCmain.c
2775         * src/port.h
2776         * sim/ucsim/hc08.src/*
2777         * sim/ucsim/configure.in
2778         * src/ucsim/configure
2779         * sim/ucsim/packages_in.mk
2780         * as/hc08/*
2781         * as/Makefile
2782         * device/include/mc68hc908qy.h
2783         * device/lib/hc08/*
2784         * device/lib/Makefile.in
2785         * support/regression/ports/hc08/*
2786         * support/regression/Makefile
2787
2788 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2789
2790         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
2791         regression test
2792         * src/ds390/gen.c (genCast): fixed bug #821957
2793
2794 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2795
2796         * device/lib/logf.c: "fixed" overlay bug
2797         * support/regression/ports/host/spec.mk: added m library
2798         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
2799         * support/regression/tests/float_trans: added (for Eric)
2800
2801 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
2802
2803         * src/mcs51/gen.c (genCpl): fixed bug
2804         http://sf.net/mailarchive/message.php?msg_id=6263915
2805
2806 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
2807
2808         * src/SDCCast.c (decorateType): added extended constant folding
2809         * src/SDCCsymt.c (computeType): cleanup
2810         * src/SDCCval.c (valShift): minor optimization
2811         * support/regression/tests/ast_constant_folding.c: added
2812
2813 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2814
2815         * src/SDCCmain.c: removed some unintended changes
2816
2817 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2818
2819         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
2820         * src/z80/gen.c: fixed part of bug #817589
2821         * src/SDCCsymt.c (checkFunction): fixed bug #817895
2822
2823 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
2824
2825         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
2826         * src/SDCCcflow.c
2827         * src/SDCCcse.c
2828         * src/SDCCdflow.c
2829         * src/SDCClabel.c
2830         * src/SDCClrange.c
2831         * src/SDCCmem.c
2832         * src/SDCCopt.c
2833         * src/SDCCpeeph.c
2834         * src/SDCCset.c
2835         * src/avr/ralloc.c
2836         * src/ds390/ralloc.c
2837         * src/izt/ralloc.c
2838         * src/mcs51/ralloc.c
2839         * src/pic/ralloc.c
2840         * src/pic16/ralloc.c
2841         * src/xa51/ralloc.c
2842         * src/z80/ralloc.c
2843         * src/z80/gen.c: removed unused label "release:"
2844
2845 2003-10-06  Borut Razem <borut.razem AT siol.net>
2846
2847         * src/SDCC.lex: removed definition of unused variables
2848           save_optimize and save_options
2849
2850 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2851
2852         * clean.mk: removed '=' in "-maxdepth=1"
2853         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
2854         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
2855
2856 2003-10-06  Borut Razem <borut.razem AT siol.net>
2857
2858         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
2859           my_unput() replaced by unput()
2860
2861 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
2862
2863         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
2864         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
2865         type-punned pointer will break strict-aliasing rules"
2866         Old LR behaviour is again default; Klaus' LR can be choosen by
2867         defining the environment variable LRKLAUS
2868         * src/SDCCBBlock.h
2869         * src/SDCCloop.c
2870         * src/SDCClrange.c
2871         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
2872         * clean.mk: fixed removal of files in bin/CVS/
2873         * device/lib/clean.mk: fixed removal of directories small and large
2874         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
2875         * src/SDCCicode.c,
2876         * src/SDCCval.c: removed superflous test for pedantic
2877
2878 2003-10-05  Borut Razem <borut.razem AT siol.net>
2879
2880         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
2881           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
2882           message "unmatched #pragma SAVE and #pragma RESTORE"
2883
2884 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2885
2886         * doc/sdccman.lyx: various additions and updates (interrupts, inline
2887           assembly, critical functions, atomic, nojtbound)
2888
2889 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
2890
2891         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
2892         * src/SDCCBBlock.h
2893         * src/SDCCloop.c
2894         * src/SDCCloop.h
2895         * src/SDCClrange.c
2896
2897 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2898
2899         * src/z80/gen.h,
2900         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2901         * src/mcs51/gen.h
2902         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2903         * src/ds390/gen.h
2904         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2905         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
2906         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
2907
2908 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2909
2910         * src/z80/gen.c (genRet): fixed bug #524753
2911         * src/z80/gen.c (genCast): fixed internal error on cast from
2912         pointer to long
2913         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
2914         fix for bug #477835 to the z80
2915         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
2916         for tracking iCodes in the peephole optimizer for z80
2917
2918 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2919
2920         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
2921         the other part of bug #814548
2922         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2923
2924 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
2925
2926         * src/SDCCcse.c: fixed part of bug #814548
2927
2928 2003-09-28  Borut Razem <borut.razem AT siol.net>
2929
2930         * src/asm.c: rewrite of printILine() to use temporary file instead
2931           a pipe
2932         * src/xa51/main.c: commented out declaration of int rewinds
2933
2934 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2935
2936         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
2937
2938 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2939
2940         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
2941         * src/asm.c (printILine): Fixed bug #811015
2942
2943 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2944
2945         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
2946         freeing.
2947
2948 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2949
2950         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
2951         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
2952         to correctly handle general case of AOP_PAIRPTR
2953         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
2954
2955 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2956
2957         * src/mcs51/ralloc.c (fillGaps),
2958         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
2959         register positioning bug)
2960
2961 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
2962
2963         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
2964
2965 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2966
2967         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
2968         genCodePointerGet, genGenPointerGet, genFarPointerSet,
2969         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
2970         (ralloc doesn't intentionally do this now, but perhaps later)
2971         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
2972         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
2973         register positioning bugs (Fixed bug #762602 and #795325)
2974         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
2975         (Fixed bug #808779)
2976         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
2977         lines that --i-code-in-asm generates
2978
2979 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2980
2981         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
2982         trying to fclose a FILE* that was already closed.
2983
2984 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2985
2986         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
2987         of const struct should be treated as if const themselves)
2988
2989 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
2990
2991         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
2992
2993 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2994
2995         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2996         Unix (/n) and DOS (/r/n) line terminations.
2997
2998 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2999
3000         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
3001         bug #613775
3002
3003 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3004
3005         * src/mcs51/gen.c (genFunction, genEndFunction),
3006         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
3007         and restore of EA so that stack offsets to parameters are
3008         correct when using both critical and reentrant/stack-auto.
3009         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
3010         size (can be triggered in error if sloc is shared between
3011         different sized objects)
3012         * device/include/float.h: fixed macros to explicitly use
3013         unsigned long where needed
3014
3015 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
3016
3017         Feature req. 799831: added code to allow nesting of critical functions
3018         * src/mcs51/gen.c (genFunction, genEndFunction)
3019         * src/ds390/gen.c (genFunction, genEndFunction)
3020
3021 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3022
3023         * src/SDCCsymt.c (sclsFromPtr),
3024         * src/SDCCsymt.h,
3025         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
3026         support for standard C idiom of memory mapped variables; for
3027         example, *((xdata int*)0x1234) = 1 is now internally equivalent
3028         to xdata int at 0x1234 tempvar = 1.
3029         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
3030         provided by Akiya ISHIDA
3031
3032 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
3033
3034         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
3035         * src/SDCCval.c (constVal): added reduction from int to char
3036         * src/SDCCval.c (valMult, valDiv): fixed sign handling
3037         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
3038         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
3039         to ignore the sign
3040         * support/regression/tests/shifts.c: fixed
3041
3042 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3043
3044         * src/z80/gen.c (genXor): Fixed bug #805445
3045
3046 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3047
3048         Fixed bug #621531 (const & volatile confusion in the type chain).
3049         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
3050         refer to the const or volatile state of the pointer itself.
3051
3052         * src/SDCCast.c
3053         * src/SDCCglue.c
3054         * src/SDCCicode.c
3055         * src/SDCCsymt.c
3056         * src/SDCCval.c
3057         * src/SDCC.y
3058         * src/SDCCsymt.h
3059         * src/pic/gen.c
3060         * src/pic/ralloc.c
3061         * src/pic16/gen.c
3062         * src/pic16/ralloc.c
3063         * support/regression/tests/const.c
3064
3065 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3066
3067         When checking for duplicated modules, use absolute paths
3068         instead of relative paths.  Files changed:
3069
3070         * as/mcs51/lklib.c
3071         * link/z80/lklib.c
3072
3073 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3074
3075         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
3076
3077 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3078
3079         * device/include/string.h: added size_t typedef, changed
3080         prototypes to use size_t, eliminated separate reentrant and
3081         non-reentrant declarations, added _memmove declaration
3082         * device/lib/_memcpy.c: changed to use size_t instead of int,
3083         changed /4 to >>2 to avoid division library call
3084         * device/lib/_memcmp.c,
3085         * device/lib/_memset.c,
3086         * device/lib/_strncat.c,
3087         * device/lib/_strncpy.c,
3088         * device/lib/_strncmp.c: changed to use size_t instead of int
3089         * device/lib/_memmove.c: new file (fixed bug #772294)
3090         * device/lib/Makefile.in: added _memmove.c
3091         * device/lib/z80/asm_strings.s: fixed bug #772290
3092         * support/regression/tests/bitfields.c: attempt to fix host assertion
3093         failure on amd64-unknown-linux2.2
3094
3095 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3096
3097         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
3098         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
3099         * as/z80/asmain.c (main): fixed bug #801766
3100
3101 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
3102
3103         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
3104         compilers
3105
3106 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3107
3108         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
3109         reported in bug #800609
3110
3111 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
3112
3113         * Top header beautifications in src/pic16 directory:
3114           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
3115           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
3116           pcoderegs.h, ralloc.c, ralloc.h
3117         * main.c: added top header and GPL license notice
3118         * pcode.c: fixed the if-conditional warning
3119
3120 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
3121
3122         * device/lib/_mullong.c: replaced int by short for gcc
3123
3124 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3125
3126         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
3127         and JUMPTABLE iCodes properly now (worked by accident before)
3128         * src/mcs51/gen.c (leftRightUseAcc),
3129         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
3130         iCode properly now. Use getSize instead of nRegs since a & b
3131         aren't part of the nRegs tally.
3132
3133 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
3134
3135         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
3136         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
3137           before instructions that use the _STATUS register
3138
3139 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
3140
3141         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
3142         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
3143         fetching of the pointer
3144         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
3145         copied from genNearPointerSet()
3146         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
3147         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
3148         If they pop r0/r1 they must be called in the opposite order than aopOp().
3149         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
3150         (resp. --stack-auto), prepared for --xstack
3151
3152 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3153
3154         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
3155
3156 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
3157
3158         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
3159         these ports have their own __sdcc_external_start()
3160
3161 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
3162
3163         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3164         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
3165         type for bits was changed. It resulted in bit variables becoming
3166         global, which is not permitted in PIC 14 assembly output.
3167
3168 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3169
3170         * doc/sdccman.lyx: various additions and updates. Rearranged sections
3171
3172 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3173
3174         Z80 and MCS51 linkers complaint if a public symbol is defined
3175         in more than one library module:
3176
3177         * as/mcs51/lklib.c
3178         * link/z80/lklib.c
3179         * as/mcs51/Makefile.in
3180
3181 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3182
3183         A few small changes that speed up the peephole optimizer.
3184
3185         * src/SDCCpeeph.c
3186
3187 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3188
3189         Try to make the peephole optimizer smarter by maintaining
3190         an association between the assembly source code and the
3191         iCodes that originated them. Put this information to use
3192         with a new peephole rule condition "notVolatile" so that
3193         the rules can be aggressive yet still safe.
3194
3195         * src/SDCCpeeph.c
3196         * src/SDCCpeeph.h
3197         * src/mcs51/gen.c
3198         * src/mcs51/peeph.def
3199
3200 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3201
3202         Fixed bug #741761
3203
3204         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
3205         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
3206         if the left or right operand symbols have the accuse flag set.
3207
3208 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3209
3210         Changed the type of the result of the ! (NOT) operator to char;
3211         previously it returned the same type as the source. This allows
3212         us to eliminate all the genFloatNot functions (all of its target
3213         implementations were very buggy) since !float can use the same
3214         code as !long now.
3215
3216         * src/SDCCicode.c (ast2iCode): ! returns char
3217         * src/mcs51/gen.c (genNot, genNotFloat),
3218         * src/ds390/gen.c (genNot, genNotFloat),
3219         * src/z80/gen.c (genNot, genNotFloat),
3220         * src/pic/gen.c (genNot, genNotFloat),
3221         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
3222
3223 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
3224
3225         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3226         1. Interrupt would not compile properly. Ensure PCLATH register is saved
3227            during interrupts. Ensure WSAVE is located at a shared bank address.
3228         2. Fixed page selection in some places
3229         3. Fixed BTFSS/C to where necessary use registers directly and not simply
3230            the registers name strings.
3231         4. Fixed "signed / unsigned compare" compiler warnings.
3232         5. The PIC port manages its own allocation of the general purpose
3233            registers, but makes no attempt to reuse them. As a result when
3234            compiling it soon runs out of general purpose registers. Some
3235            additional code was added to the files pcode.c and device.c to walk
3236            through the function call tree and rename the registers so that they
3237            get reused.
3238
3239         * src/pic/device.c
3240         * src/pic/gen.c
3241         * src/pic/glue.c
3242         * src/pic/pcode.c
3243         * src/pic/pcode.h
3244         * src/pic/ralloc.c
3245         * src/pic/ralloc.h
3246         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
3247         genPlus() & genMinus() when the result is the same as left or right
3248
3249 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3250
3251         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
3252
3253 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3254
3255         Made bitfield a distinct type from bit so that bitfields
3256         convert as per ANSI C and bits retain their traditional
3257         boolean style behaviour. Implemented bitfield support in
3258         the z80 port.
3259
3260         * src/SDCCsymt.h,
3261         * src/SDCCsymt.c,
3262         * src/SDCCast.c,
3263         * src/cdbFile.c,
3264         * src/mcs51/gen.c,
3265         * src/ds390/gen.c: bit v bitfield split
3266         * src/z80/gen.c: New support for bitfields
3267         * support/regression/tests/bitfields.c: reenabled z80,
3268         added more tests
3269
3270 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3271
3272         Rules 246.x, 247.x relate to bitfields, the others speed up
3273         access to xdata mapped I/O devices.
3274
3275         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
3276
3277 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3278
3279         Cleaned up genPackBits and genUnpackBits and added two helper
3280         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
3281         for literal assignments in genPackBits (thanks to Frieder for
3282         reminding me).
3283
3284         * src/mcs51/gen.c
3285         * src/ds390/gen.c
3286
3287 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3288
3289         Fixed bug #748310 (pointer to function type mishandled when the
3290         function name is omitted). Also fixed a SIGSEGV when a function
3291         attribute (reentrant, etc) is used on a non-function or on a
3292         function but misplaced before the parameter list.
3293
3294         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
3295         bug #748310
3296         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
3297         * support/Util/SDCCerr.h,
3298         * support/Util/SDCCerr.c: Added func attr misuse error msg
3299
3300 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
3301
3302         Fixed bug #787649 by anonymous
3303         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
3304         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
3305
3306 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3307
3308         Fixed numerous bitfield problems.
3309
3310         * src/SDCC.y: More bitfield related error checking
3311         * src/SDCCsymt.h,
3312         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
3313         * support/Util/SDCCerr.h,
3314         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
3315         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3316         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3317         * support/regression/tests/bitfields.c: tests added
3318
3319 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3320
3321         Made the constant following the "interrupt" keyword optional. If
3322         omitted, the function will not automatically be given an entry
3323         in the interrupt vector table (similar to #pragma NOIV, but
3324         less syntacticly kludgy). The interrupt number is also now
3325         range checked. Also fixed a bug in the high order bit example
3326         in the manual.
3327
3328         * src/SDCC.y
3329         * src/SDCCmem.c
3330         * src/SDCCglue.c
3331         * src/SDCCsymt.h
3332         * support/Util/SDCCerr.c
3333         * support/Util/SDCCerr.h
3334         * doc/sdccman.lyx
3335
3336 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
3337
3338         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
3339         * src/SDCCicode.c (operandOperation): rewritten some ops
3340         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
3341         * src/SDCCsymt.c (computeType): literals are handled the same way as any
3342         other type
3343         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
3344         be re-activated by defining REDUCE_LITERALS)
3345         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
3346         unsigned, but are signed by default
3347         * src/SDCCval.c (constVal): rearranged
3348         * src/SDCCval.c (valMod): preliminary fix
3349         * src/SDCCval.c (valCastLiteral): use TYPE_* types
3350         * support/regression/literalop.c: added, work in progress
3351
3352 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3353
3354         Generate warnings for useless declarations like "char data;"
3355         that don't do what new users expect.
3356
3357         * src/SDCC.y
3358         * support/Util/SDCCerr.h
3359         * support/Util/SDCCerr.c
3360
3361 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
3362
3363         * src/SDCCval.c (valMult): fix overflow detection of negative int
3364
3365 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3366
3367         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
3368
3369         Changes to support big endian targets:
3370
3371         * src/ports.h
3372         * src/SDCCglue.c
3373         * src/avr/main.c
3374         * src/ds390/main.c
3375         * src/izt/i186.c
3376         * src/mcs51/main.c
3377         * src/pic/main.c
3378         * src/pic16/main.c
3379         * src/xa51/main.c
3380         * src/z80/main.c
3381
3382 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
3383
3384         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
3385         * device/lib/time.c: fixed warning "integer overflow in expression"
3386
3387 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
3388
3389         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
3390         * src/SDCCval.c (constVal): changed default to signed; hex and octal
3391         constants are unsigned; added recognition of "u" flag for unsigned
3392         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
3393         * src/SDCCval.c (valDiv, valMod): fixed signdness
3394         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
3395         signedness of modulo, left and right shift
3396         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
3397         * support/Util/SDCCerr.h: added warning W_INT_OVL
3398         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
3399         * src/SDCCast.c (ast_print): improved output of constants
3400
3401 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3402
3403         Fixed some warnings when building with MSVC:
3404
3405         * as\mcs51\asdata.c
3406         * as\z80\asdata.c
3407         * as\mcs51\asm.h
3408         * as\z80\asm.h
3409         * link\z80\aslink.h
3410         * link\z80\lkdata.c
3411         * link\z80\lkeval.c
3412         * link\z80\lkgb.c
3413         * link\z80\lkihx.c
3414         * link\z80\lks19.c
3415         * link\z80\lksym.c
3416         * support\cpp2\cpplib.c
3417         * src\ds390\gen.c
3418         * src\mcs51\gen.c
3419
3420 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
3421
3422         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
3423
3424 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3425
3426         * support\librarian\clean.mk: Do not remove Makefile.
3427         * support\librarian\Makefile: added.
3428
3429 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3430
3431         Added librarian to MSVC build:
3432         * all.dsp
3433         * sdcc.dsw
3434         * support\librarian\librarian.dsp
3435
3436         'configure' not needed for librarian, removed:
3437         * support\librarian\configure
3438         * support\librarian\configure.in
3439         * support\librarian\config_in.h
3440         * support\librarian\Makefile.in
3441
3442         Hopefully these ones built the librarian and the rest of sdcc properly:
3443         * Makefile
3444         * Makefile.common.in
3445
3446         Messed up 'configure', so revert to previous version:
3447         * configure
3448         * configure.in
3449
3450 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
3451
3452         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
3453         there, while the mantissa of a double is "only" 53 bits wide.
3454
3455 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3456
3457         Adding sdcclib to the build.  MSVC project coming soon.
3458         Files added/changed:
3459
3460         * support\librarian\clean.mk
3461         * support\librarian\configure
3462         * support\librarian\configure.in
3463         * support\librarian\config_in.h
3464         * support\librarian\Makefile.bcc
3465         * support\librarian\Makefile.in
3466         * support\librarian\sdcclib.c
3467         * Makefile.bcc
3468         * Makefile
3469         * Makefile.common.in
3470         * configure
3471         * configure.in
3472
3473 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3474
3475         Linker now complaints if linked modules have conflicting options, for
3476         example, one compiled using --model-large and another one compiled with
3477         --model-small.  The following files were modified:
3478
3479         * as\mcs51\asdata.c
3480         * as\mcs51\aslink.h
3481         * as\mcs51\asm.h
3482         * as\mcs51\asmain.c
3483         * as\mcs51\asout.c
3484         * as\mcs51\i51pst.c
3485         * as\mcs51\lkdata.c
3486         * as\mcs51\lklibr.c
3487         * as\mcs51\lkmain.c
3488         * as\z80\asdata.c
3489         * as\z80\asm.h
3490         * as\z80\asmain.c
3491         * as\z80\asout.c
3492         * as\z80\z80pst.c
3493         * link\z80\aslink.h
3494         * link\z80\lkdata.c
3495         * link\z80\lklibr.c
3496         * link\z80\lkmain.c
3497         * src\SDCCglue.c
3498
3499 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3500
3501         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
3502         as/mcs51/lklibr.c: Generate a warning when a library is not found.
3503
3504 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
3505
3506         * src/z80/mappings.i: fix _mul[us][int,long] entries
3507
3508 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3509
3510         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
3511
3512 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
3513
3514         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
3515         * support/regression/tests/bitopcse.c: added
3516         fixed warning:
3517         * src/avr/gen.c:
3518         * src/pic/gen.c:
3519         * src/pic16/gen.c:
3520         * src/z80/gen.c:
3521         * src/xa51/gen.c:
3522
3523 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3524
3525         added support for new library format to z80, gbz80 linkers:
3526         *link/z80/aslink.h
3527         *link/z80/lklex.c
3528         *link/z80/lklib.c
3529         *link/z80/lklist.c
3530
3531 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
3532
3533         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
3534         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
3535
3536 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
3537
3538         added DUMMY_READ_VOLATILE:
3539         * src/SDCC.y:
3540         * src/avr/gen.c:
3541         * src/xa51/gen.c:
3542         * src/z80/gen.c:
3543         * src/pic/gen.c:
3544         * src/pic16/gen.c:
3545         * src/mcs51/gen.c:
3546         * src/ds390/gen.c:
3547         * src/SDCCcse.c (algebraicOpts): many improvements
3548         * src/SDCCcse.h: removed algebraicOpts()
3549         * src/SDCCicode.c (picDummyRead): added
3550
3551 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3552
3553         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
3554         "Insufficient space in data memory".
3555
3556 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3557
3558         * src/mcs51/gen.c: fixed bug #771358
3559         * src/z80/gen.c: fixed bug #759087
3560
3561 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
3562
3563         * src/pic16/glue.c: minor cleanup by Vangelis
3564
3565 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3566
3567         * device/include/regc515c.h: fixed #758477
3568         * device/lib/_gptrget.c: saving some cycles in generic pointer get
3569         * device/lib/_gptrput.c: saved a few bytes
3570         * my tab spacing is 8, yours too?)
3571         * device/lib/_ser.c: process RX bytes earlier than TX bytes
3572         * device/lib/serial.c: process RX bytes earlier than TX bytes
3573         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
3574
3575 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3576
3577         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
3578
3579 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3580
3581     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
3582
3583 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
3584
3585         * device/lib/Makefile.in: bad fix, reverted to 1.43
3586
3587 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
3588
3589         * device/lib/Makefile.in: added missing z80 object files
3590
3591 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
3592
3593         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
3594         pic16 progress by Vangelis:
3595         * src/SDCCglobl.h:
3596         * src/SDCCmain.c:
3597         * src/pic/Makefile:
3598         * src/pic:
3599         * pic/Makefile:
3600         * pic16/device.c:
3601         * pic16/device.h:
3602         * pic16/gen.c:
3603         * pic16/gen.h:
3604         * pic16/genarith.c:
3605         * pic16/glue.c:
3606         * pic16/main.c:
3607         * pic16/pcode.c:
3608         * pic16/pcode.h:
3609         * pic16/pcodepeep.c:
3610         * pic16/peeph.def:
3611
3612 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3613
3614     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
3615
3616 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3617
3618     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
3619     added gbz80 build to MSVC project.
3620     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
3621     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
3622     from 8051 stuff and setup so it links using a .lnk file.
3623
3624 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3625
3626     * support/librarian/sdcclib.c: sdcc librarian.
3627     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
3628     with sdcclib.
3629
3630 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3631
3632     * as/mcs51/lkmain.c: properly handle extensions in function afile.
3633
3634 2003-07-02  Borut Razem <borut.razem AT siol.net>
3635
3636         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
3637         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
3638         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
3639         src/xa51/main.c, src/z80/main.c:
3640         virtualization of glue() function: each port has it's own glue function,
3641         which is accessed by do_glue function pointer in PORT.general structure
3642
3643 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
3644
3645         * DS800C400 fun, improved ROM interface and tinibios.
3646
3647 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
3648
3649         * More support for DS80C400. Now includes beginning of interface to ROM.
3650
3651 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
3652
3653         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
3654
3655 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3656
3657         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
3658
3659 2003-06-19  Borut Razem <borut.razem AT siol.net>
3660
3661         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
3662
3663 2003-06-19  Borut Razem <borut.razem AT siol.net>
3664
3665         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
3666         fixed Z80 port - crt0.o: cannot open.
3667
3668 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
3669
3670         * support/Util/MySystem.c (merge_command): revert bad fix
3671
3672 2003-06-18  Borut Razem <borut.razem AT siol.net>
3673
3674         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
3675
3676 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3677
3678         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3679         option --use-stdout sends errors to stdout instead of stderr.
3680
3681 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
3682
3683         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
3684
3685 2003-06-15  Borut Razem <borut.razem AT siol.net>
3686
3687         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
3688         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
3689         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
3690         fixed width array of pointers replaced with sets;
3691         multiple include and lib paths ared transferred to preprocessor and linker
3692         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
3693         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
3694         fixed width array of pointers
3695         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
3696         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
3697         fixupPath(), getPathDifference()
3698         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
3699         fixed width array of pointers
3700
3701 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
3702
3703         * src/pic16/ralloc.c: fix warnings
3704         * src/pic16/pcode.c: fix warning
3705
3706 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
3707
3708          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
3709         know all the details, but essentially this set of changes enable
3710         the pic16 port to generate movff instructions and generate assembler
3711         directives,
3712         * src/SDCCmain.c:
3713         * src/pic16/gen.c:
3714         * src/pic16/glue.c:
3715         * src/pic16/pcode.c:
3716         * src/pic16/device.c:
3717         * src/pic16/main.c:
3718         * src/pic16/pcode.h:
3719         * src/pic16/pcoderegs.c:
3720         * src/pic16/ralloc.c:
3721         * src/pic16/ralloc.h:
3722
3723 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3724
3725         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3726         added option --vc, so sdcc errors and warnings are compatible with
3727         Microsoft Visual Studio.
3728
3729 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3730
3731         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
3732           device/lib/libfloat.lib: added atof function.
3733
3734 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
3735
3736         * doc/sdccman.lyx: updated to Lyx 1.3
3737         * doc/cdbfileformat.lyx: updated to Lyx 1.3
3738         * doc/test_suite_spec.lyx: updated to Lyx 1.3
3739         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
3740
3741 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
3742
3743         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
3744
3745 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3746
3747         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
3748           additions to the "related tools/documentation" section
3749
3750 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
3751
3752         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
3753
3754 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
3755
3756         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
3757         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
3758
3759 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
3760
3761         * doc/sdccman.lyx: fix double dash and other minor things
3762         * doc/Makefile: fix double dash
3763
3764 2003-05-28  Karl Bongers(patches from Martin Helmling)
3765         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
3766           condition and ignore commands.
3767
3768 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3769
3770         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
3771           is in parts still quite out of date, I did changes as far as I felt makes sense
3772           for a non-native english speaker.
3773           Please feel free to add to the manual or to correct my changes.
3774         * doc/Makefile: undid touching the date of intermediate tex files.
3775
3776 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3777
3778         * doc/sdccman.lyx: Manual has an index now
3779
3780 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
3781
3782         Finalize muluint/mulsint and mululong/mulslong merging:
3783         * device/lib/_mulint.c
3784         * device/lib/_mullong.c
3785         * device/lib/gbz80/mul.s
3786         * device/lib/gbz80/stubs.s
3787         * device/lib/z80/mul.s
3788         * device/lib/z80/stubs.s
3789         * src/SDCCsymt.c (initCSupport)
3790
3791 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3792
3793         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
3794         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
3795           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
3796           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
3797           instead of /Zm500.
3798
3799 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3800
3801         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
3802           the regression tests I'm not brave enough to enable 245.b, 245.c
3803         * doc/sdccman.lyx: added latex preamble for hyperref package.
3804           Using pdflatex this will give you a hyperlinked pdf file with
3805           bookmarks. (prepend '%' before /usepackage if this breaks something)
3806
3807 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3808
3809          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
3810
3811 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
3812
3813         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
3814
3815 2003-05-21    <johan AT balder>
3816
3817         * src/SDCCglue.c (printIval): fixed bug #739934
3818
3819 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
3820
3821         Applied patch from bug 737905 (renamed yylineo to mylineno):
3822         * src/altlex.c
3823         * src/SDCCast.c
3824         * src/SDCglobl.h
3825         * src/SDCC.lex
3826         * src/SDCCsymt.c
3827         * src/SDCCval.c
3828         * src/pic16/pcode.c: Cleaned warnings
3829         * src/pic16/pcodeflow.c: Cleaned warnings
3830         * src/pic16/pcoderegs.c: Cleaned warnings
3831
3832 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
3833
3834         * src/pic16/pcode.c: Cleaned warnings
3835         * src/pic16/pcodepeep.c: Cleaned warnings
3836         * src/pic16/ralloc.c: Cleaned warnings
3837
3838 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
3839
3840         * doc/sdccman.lyx: fixed bug 739745
3841         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
3842
3843 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
3844
3845         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
3846         it can be defined with CFLAGS when running configure
3847         * src/SDCCmain.c: fixed compiling + linking with object files
3848
3849 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
3850
3851         * configure.in: configure for pic16 port,
3852             added --disable-pic16-port
3853         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
3854         * src/SDCCmain.c: linkOptions is changed to set *,
3855             added if/endif conditional macros to remove options help
3856             messages from optionsTable when a port is not configured, added
3857             support for the PIc16 port in the ports table, when executing
3858             the compiler with no port specified on command line, a default
3859             port is selected with the new macro DEFAULT_PORT which is
3860             defined in port.h, in setDefaultOptions() linkOptions is removed
3861             from initialization assignment, since now it is a set,
3862             parseCmdLine uses setParseWithComma for linkOptions, in
3863             linkEdit() linkOptions are accessed with new function indexSet()
3864             which returns the i'th item of a set variable. See SDCCset.c, in
3865             linkEdit() when calling buildCmdLine(), added linkOptions as
3866             last argument. Now users can pass arguments to gplink via the
3867             -Wl option, main() uses pic16glue() to glue up pic16 programs
3868         * src/SDCCpeeph.c: various changes to support pic16
3869         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
3870             return the i'th item of the set
3871         * src/SDCCset.h: added function prototype for indexSet()
3872         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
3873         * src/clean.mk: added pic16 in CLEANALLPORTS variable
3874         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
3875             added macro DEFAULT_PORT
3876         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
3877         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
3878             generated
3879         * src/pic16/glue.c: commented out some error producing lines
3880         * src/pic16/main.c: __config directives are commented out to stop
3881             gpasm complaining and test the linkage with gplink, _linkCmd and
3882             _asmCmd changed to be more gplink and gpasm friendly
3883         * src/pic16/peeph.def: peep rule 3 is commented out, since it
3884             produced an error when parsed, peep rule 12 is added to utilize
3885             movff, but it is commented out since the pCode does not support
3886             yet a command with 2 address arguments
3887
3888 2003-05-18    <johan AT balder>
3889
3890         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3891         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3892 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
3893
3894         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
3895   Added feature to script commands from file.
3896
3897 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
3898
3899         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
3900         * src/SDCCutil.c: include ctype.h for win32
3901
3902 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
3903
3904         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
3905
3906 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
3907
3908         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
3909   Fixed so you can set breakpoints prior to run, run does not stop
3910   on entry now.  Add tbreak.  Other enhancements and fixes for use
3911   with ddd.
3912
3913 2003-05-12  Borut Razem <borut.razem AT siol.net>
3914
3915         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
3916
3917 2003-05-11  Borut Razem <borut.razem AT siol.net>
3918
3919         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
3920         the path of bin directory, so that PATH is the only env. variable, which has to be set
3921         in case of standard installation.
3922         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
3923         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
3924         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
3925
3926 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
3927
3928         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
3929         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
3930         temp files are in the port dir; clean the gen/test directory when
3931         generating new test.c
3932         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
3933         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
3934         * support/regression/tests/zeropad.c: added
3935
3936 2003-05-09    <johan AT balder>
3937
3938         * src/SDCCglue.c: fixed bug #597940
3939
3940 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
3941
3942         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3943   cache sfr, optimize next,step, fix off by one sourceline,
3944   support ddd list function.
3945         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
3946
3947 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
3948
3949         * support/regression/HTMLgen.py: added compare_s2f()
3950         * support/regression/Makefile: redo 1.27
3951         * support/regression/generate-cases.py: redo 1.5
3952
3953 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
3954
3955         * support/regression/tests/float.c: workaround 33 bit hex constant
3956         * support/regression/tests/simplefloat.c: fix division for host
3957
3958 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
3959
3960         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
3961         that tame's the PIC's over-aggressive optimizer.
3962
3963 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3964
3965          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
3966          support for MSVC.
3967
3968 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
3969
3970         Initial support for DS80C400. "Hello world" runs on TINIm400
3971         (with polled I/O).
3972
3973 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
3974
3975          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3976          * Some notes on ddd usage added in debugger/README
3977          Martin Helmling adding more features and fixes for ddd GUI debugger.
3978          Code added for nexti, stepi, up, down, and other adjustments.
3979
3980 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
3981
3982         * src/pic/pCodepeep.c non-wildcard asmops are now handled
3983         * src/pic/peeph.def Added two rules to optimize carry manipulation
3984         * src/pic/* removed debug printfs
3985
3986 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
3987
3988         * debugger/mcs51/cmd.c: added header newalloc.h
3989
3990 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
3991
3992         * as/Makefile: new EXEEXT
3993         * as/z80/Makefile: remove trailing slash of BUILDIR
3994         * as/z80/clean.mk: new EXEEXT
3995         * Makefile.common.in: add to CFLAGS (and others), don't replace it
3996         * support/cpp2/Makefile.in: new EXEEXT
3997         * src/pic/glue.c (pic14emitRegularMap): fixed warning
3998
3999 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
4000
4001         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
4002         EXEEXT was introduced to fix all related problems with targets
4003         "clean", "install" and "uninstall"; a couple of further flaws
4004         especially with "clean" have been fixed too
4005         * as/mcs51/Makefile.in
4006         * as/mcs51/clean.mk
4007         * as/z80/Makefile
4008         * Makefile
4009         * clean.mk
4010         * debugger/mcs51/Makefile.in
4011         * debugger/mcs51/clean.mk
4012         * link/z80/Makefile
4013         * link/z80/Makefile.in
4014         * link/z80/clean.mk
4015         * link/Makefile
4016         * packihx/Makefile.in
4017         * packihx/clean.mk
4018         * sim/ucsim/Makefile
4019         * sim/ucsim/clean.mk
4020         * sim/ucsim/avr.src/Makefile.in
4021         * sim/ucsim/avr.src/clean.mk
4022         * sim/ucsim/s51.src/Makefile.in
4023         * sim/ucsim/s51.src/clean.mk
4024         * sim/ucsim/xa.src/Makefile.in
4025         * sim/ucsim/xa.src/clean.mk
4026         * sim/ucsim/z80.src/Makefile.in
4027         * sim/ucsim/z80.src/clean.mk
4028         * sim/ucsim/main_in.mk
4029         * sim/ucsim/packages_in.mk
4030         * sim/ucsim/gui.src/Makefile.in
4031         * sim/ucsim/gui.src/serio.src/Makefile.in
4032         * sim/ucsim/gui.src/serio.src/clean.mk
4033         * src/Makefile.in
4034         * src/clean.mk
4035         * support/cpp2/Makefile.in
4036         * support/cpp2/clean.mk
4037         * support/makebin/Makefile
4038         * support/makebin/clean.mk
4039         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
4040         * doc/sdccman.lyx: --program-suffix no longer needed
4041
4042 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
4043
4044          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
4045          Martin Helmling added support for ddd GUI debugger.
4046          Code added to display assembly, set variables, and other commands
4047          to interface to ddd.
4048
4049 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
4050
4051         * as/Makefile: fix target clean
4052         * as/clean.mk: fix target clean
4053         * as/z80/clean.mk: fix target clean
4054
4055 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
4056
4057         * Makefile.common.in: added  AT EXEEXT AT
4058         * configure.in: removed all mingw32 stuff
4059         * configure: rebuilt from configure.in
4060         * doc/sdccman.lyx: updated section "installation"
4061         * support/scripts/sdcc_mingw32: adapted to configure
4062         * support/scripts/sdcc_cygwin_mingw32: added
4063
4064 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
4065
4066         * src/pic Added object file support for the PIC port
4067         * src/pic Applied patch from Craig Franklin (this started the object file support)
4068         * src/regression Updated the PIC regression tests for object files
4069
4070 2003-04-20  Borut Razem <borut.razem AT siol.net>
4071
4072         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
4073           lklex.c: In function `getfid':
4074           lklex.c:203: warning: array subscript has type `char'
4075         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
4076           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
4077         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
4078           stack handling macros
4079
4080 2003-04-19  Borut Razem <borut.razem AT siol.net>
4081
4082         * "handling space characters in file path" task:
4083         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
4084         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
4085         * support/Util/MySystem.h: make it self-sufficient
4086         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
4087           src/z80/main.c, sdcc/as/mcs51/lklex.c:
4088           handling space characters in file path
4089         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
4090           (it will be used by assemblers, which have their own includes, e.g. gpasm)
4091         * support/Util/MySystem.c: handling space characters in executable's path
4092
4093 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
4094
4095         * as/z80/Makefile: fix permanent rebuild of z80
4096         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
4097         * support/regression/tests/bitfields.c: added Johan's bitfields.c
4098
4099 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
4100
4101         * src/SDCCopt.c: add special case optimization to replace modulo by
4102           a power of two with a bitwise AND.
4103
4104 2003-04-18    <johan AT balder>
4105
4106         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
4107
4108 2003-04-17    <johan AT balder>
4109
4110         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
4111         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
4112
4113 2003-04-13  Borut Razem <borut.razem AT siol.net>
4114
4115         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
4116         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
4117           fixed mingw problem in adl_NORMALIZE_PATH
4118
4119 2003-04-12  Borut Razem <borut.razem AT siol.net>
4120
4121         * fixed "#pragma SAVE/RESTORE can not be nested":
4122         * src/SDCC.lex: reworked pragma handling functions
4123         * sdcc/src/SDCCglobl.h: reworked stack handling macros
4124         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
4125
4126 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
4127
4128         * src/SDCCutil.c (pathEquivalent): defined but not used
4129         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
4130         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
4131         * configure: rebuilt from configure.in
4132         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4133         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4134         * device/include/Makefile.in: replace sdcc_datadir
4135         * device/lib/Makefile.in: replace sdcc_datadir
4136         * Makefile.common.in: add LDFLAGS from configure
4137         * packihx/Makefile.in: use LDFLAGS
4138         * src/Makefile.in: use LDFLAGS
4139         * support/cpp2/Makefile.in: add LDFLAGS from configure
4140         * support/makebin/Makefile: use LDFLAGS
4141         * .version: bumped version number to 2.3.5
4142
4143 2003-04-12  Borut Razem <borut.razem AT siol.net>
4144
4145         * completed "different paths" task:
4146         * src/SDCCmacro.c: fixed bug in handling quotes
4147         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
4148         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
4149
4150 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
4151
4152         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
4153
4154 2003-04-11 kevin Vigor <kevin AT vigor.nu>
4155
4156         * ds390/gen.c ds390/peeph.def: fix bug 706781
4157
4158 2003-04-11  Borut Razem <borut.razem AT siol.net>
4159
4160         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
4161
4162 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
4163
4164         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
4165         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
4166          set - this bit used to not be set...).
4167         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
4168           bad code in PIC Port
4169         * src/regression/and2.c added to test bug 609268
4170         * src/regression/Makefile added and2.c to regression test
4171
4172
4173 2003-04-08    <johan AT CP255758-A>
4174
4175         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
4176         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
4177         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
4178
4179 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
4180
4181         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
4182         fix bug #487815
4183         * support/cpp2/Makefile.in: fix bug #487815
4184         * configure: rebuilt from configure.in
4185         * Makefile.common.in: docdir changed, new path suffixes
4186         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4187         * sdcc_vc_in.h: reflect changes from sdccconf.h
4188         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
4189         * src/SDCCutil.h: remove BINDIR hack
4190         * doc/sdccman.lyx: update new path hierarchy
4191
4192 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4193
4194         * src/SDCCpeeph.c: added okToRemoveSLOC test
4195
4196 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4197
4198         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
4199
4200 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4201
4202         * src/SDCCpeeph.c: added labelIsReturnOnly test
4203         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
4204
4205 2003-04-05    <johan AT balder>
4206
4207         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
4208         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
4209         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
4210         * src/SDCCast.c: fixed a warning
4211         * src/SDCCast.h: fixed a warning
4212         * src/SDCCicode.c (operandFromAst): fixed a warning
4213
4214 2003-04-04    <johan AT balder>
4215
4216         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
4217         * src/SDCCast.c (decorateType): fixed bug #715076
4218         * src/SDCC.y: fixed bug #702907
4219
4220 2003-04-03    <johan AT balder>
4221
4222         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
4223         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
4224         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
4225         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
4226         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
4227
4228 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
4229
4230         * _decdptr.c: fix return values
4231         * _gptrget.c: fix return values
4232         * _gptrgetc.c: fix return values
4233         * _gptrput.c: fix return values
4234         * _mulint.c: fix return values
4235         * as/z80/Makefile: fix 'make -j' problem
4236
4237 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
4238
4239         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
4240         * configure.in: big cleanup, updated to autoconf 2.5x
4241         * configure: rebuilt from configure.in
4242         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4243         * sdcc_vc_in.h: reflect changes from sdccconf.h
4244         * doc/Makefile: fixed a flaw in "make install"
4245
4246 2003-04-02    <johan AT balder>
4247
4248         * src/ds390/gen.c (genCmp): no comments
4249         * src/mcs51/gen.c (genCmp): no comments
4250         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
4251         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
4252
4253 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
4254
4255         * support/regression/generate-cases.py: place generated file in given sub directory
4256         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
4257         * support/regression/Makefile: improvements for 'make -j';
4258         side effect: it's simpler and faster now
4259
4260 2003-03-31  Borut Razem <borut.razem AT siol.net>
4261
4262         * src/z80/main.c: link-{port} and as-{port} defined without path
4263         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
4264
4265 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
4266
4267         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
4268
4269 2003-03-30  Borut Razem <borut.razem AT siol.net>
4270
4271         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
4272           changed type of list parameter to set
4273         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
4274         * src/port.h: changed type of do_assemble() parameter to set
4275         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
4276           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
4277           definition of "cppoutfilename" macro with NULL value in preProcess()
4278         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
4279         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
4280         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
4281           replaced with set *binPathSet
4282         * shash_add() deallocates the item, if allready exsists, before adding the new one
4283         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
4284
4285 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
4286
4287         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
4288           a nested for loop bug in the PIC port
4289         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
4290           for loops
4291
4292 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
4293
4294         * support/Util/dbuf.h: remove C++ stuff to make it portable
4295
4296 2003-03-28  Borut Razem <borut.razem AT siol.net>
4297
4298         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
4299           literal strings in stringLiteral()
4300         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
4301         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
4302           to the project
4303
4304 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
4305
4306         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
4307
4308 2003-03-26    <johan AT balder>
4309
4310         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
4311         * src/ds390/gen.c (saveRegisters): catched symbol abuse
4312         * src/SDCCast.c (decorateType): fixed " -v < 3"
4313
4314 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
4315
4316         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
4317         Added Lenny Story's debug infrastructure changes:
4318         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
4319         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
4320         * src/cdbFile.c: added
4321         * src/SDCCdebug.c: added
4322         * src/SDCCdebug.h: added
4323         * src/SDCCast.c (createFunction)
4324         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
4325         * src/SDCCmain.c (parseCmdLine, main)
4326         * src/SDCCmem.c (redoStackOffsets)
4327         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
4328         * src/SDCCsymt.h
4329         * src/common.h
4330         * src/avr/gen.c (genAVRCode)
4331         * src/ds390/gen.c (gen390Code)
4332         * src/mcs51/gen.c (gen51Code)
4333         * src/pic/gen.c (genpic14Code)
4334         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
4335         * src/xa51/gen.c (genXA51Code)
4336         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
4337
4338 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4339
4340         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
4341         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
4342
4343 2003-03-22    <johan AT balder>
4344
4345         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
4346
4347 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
4348
4349         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
4350         * doc/cdbfileformat.lyx: added, written by Lenny Story
4351         * doc/Makefile: added cdbfileformat.lyx
4352         * doc/clean.mk: added cdbfileformat.lyx
4353
4354 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
4355
4356         * src/mcs51/peeph.def: fix bug #705773
4357
4358 2003-03-20    <johan AT balder>
4359
4360         An sfr/sbit can have an "at #" AND an initializer
4361         * src/SDCCsymt.c (checkSClass):
4362         * src/SDCCmem.c (allocGlobal):
4363         * src/SDCCmem.c (allocLocal):
4364         * src/SDCCast.c (createBlock):
4365
4366 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
4367
4368         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
4369
4370 2003-03-16    <johan AT balder>
4371
4372         Undid the hackup of const and volatile, the problem is much bigger
4373         * src/SDCC.y:1.65
4374         * src/SDCCast.c:1.171
4375         * src/SDCCglue.c:1.138
4376         * src/SDCCicode.c:1.146
4377         * src/SDCCsymt.c:1.150
4378         * src/SDCCval.c:1.65
4379
4380 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
4381
4382         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
4383         * src/ds390/gen.c (genAddrOf): fixed bug #704087
4384
4385 2003-03-13    <johan AT balder>
4386
4387         Hackup const and volatile modifiers in type chains a bit:
4388         * src/SDCC.y:1.63
4389         * src/SDCCast.c:1.169
4390         * src/SDCCglue.c:1.136
4391         * src/SDCCicode.c:1.143
4392         * src/SDCCsymt.c1.146
4393         * src/SDCCsymt.h1.59
4394         * src/SDCCval.c:1.63
4395
4396 2003-03-12    <johan AT balder>
4397
4398         * src/SDCCBBlock.h: more LRH debugging junk
4399         * src/SDCCcflow.h: more LRH debugging junk
4400         * src/SDCCloop.c: more LRH debugging junk
4401         * src/SDCC.y (struct_declaration): fixed bug #697590
4402         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
4403         * src/ds390/gen.c (aopForRemat): fixed bug #700031
4404         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
4405
4406 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4407         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
4408         test function names must now match exactly).
4409         * src/SDCCcse.c: added special case in findCheaperOp to allow
4410         extending a short integer. Makes less awful code for bug 700121 test case.
4411
4412 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4413
4414         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
4415         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
4416
4417 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4418
4419         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
4420         actually called (operandsNotEqual() was called for all
4421         operandsNotEqualX tests).
4422
4423 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4424
4425         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
4426         with shorter literals. Fixes bug 700121.
4427
4428 2003-03-11    <johan AT balder>
4429
4430         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
4431
4432 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
4433
4434         * src/SDCCloop.c (mergeRegions): an evil beast is dead
4435         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
4436
4437 2003-03-10  Borut Razem <borut.razem AT siol.net>
4438
4439         * src/SDCCmain.c: pipe preprocessor's output
4440         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
4441         * sdcc_vc_in.h: define pclose as _pclose for WIN32
4442         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
4443         which closes all pipes in pipeSet set
4444         * src/SDCCset.c: free deleted item in function deleteSetItem()
4445         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
4446         moved from z80 to src subproject
4447         * .version: increased version number to 2.3.4
4448
4449 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
4450
4451         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
4452         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
4453         * support/regression/ports/xa51/spec.mk: fix typo
4454
4455 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
4456
4457         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
4458
4459 2003-03-09  Borut Razem <borut.razem AT siol.net>
4460
4461         * src/SDCCmain.c: pipe preprocessor's output
4462         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
4463         * sdcc_vc_in.h: define pclose as _pclose for WIN32
4464         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
4465         which closes all pipes in pipeSet set
4466         * src/SDCCset.c: free deleted item in function deleteSetItem()
4467         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
4468         moved from z80 to src subproject
4469
4470 2003-03-09  Borut Razem <borut.razem AT siol.net>
4471
4472         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
4473         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
4474         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
4475         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
4476         * src/SDCCglobl.h: unification of WIN32 native definitions
4477
4478 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4479
4480         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
4481
4482 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
4483
4484         * src/configure.in:   check for endianess (even while cross-compiling)
4485         * src/configure:      check for endianess (even while cross-compiling)
4486         * src/configure_in.h: check for endianess (even while cross-compiling)
4487         * src/avr/gen.c:        remove old endianess stuff
4488         * src/mcs51/gen.c:      remove old endianess stuff
4489         * src/ds390/gen.c:      remove old endianess stuff
4490         * src/pic/gen.c:        remove old endianess stuff
4491         * src/pic/genarith.c:   remove old endianess stuff
4492         * src/pic/glue.c:       fix endianess check
4493         * src/pic16/gen.c:      remove old endianess stuff
4494         * src/pic16/genarith.c: remove old endianess stuff
4495         * src/pic16/glue.c:     fix endianess check
4496         * src/xa51/gen.c:       remove old endianess stuff
4497         * src/z80/gen.c:        fix endianess check
4498         * src/SDCCglue.c:       fix endianess check
4499         * src/ds390/peeph.def: fix bug 700036
4500
4501 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
4502
4503         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
4504         * src/configure: find appropriate data-types on host for SDCC's int and long
4505         * src/configure.in: find appropriate data-types on host for SDCC's int and long
4506         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
4507         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
4508
4509 2003-03-07    <johan AT balder>
4510
4511         Just a big NOOP:
4512                 some minor cleanups before the big shot
4513                 OP_DEFS and OP_USES now use Kevin's protection
4514                 new option --nolabelopt
4515
4516         * src/SDCCBBlock.c:
4517         * src/SDCCast.c,:
4518         * src/SDCCcflow.c:
4519         * src/SDCCcse.c:
4520         * src/SDCCicode.c:
4521         * src/SDCCicode.h:
4522         * src/SDCClabel.c:
4523         * src/SDCCloop.c:
4524         * src/SDCCmain.c:
4525         * src/ds390/ralloc.c:
4526         * src/mcs51/ralloc.c:
4527         * src/pic/ralloc.c:
4528         * src/xa51/ralloc.c:
4529         * src/z80/ralloc.c:
4530
4531 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
4532
4533         * src/pic/pcode.c (get_op): fix 64 bit warnings
4534         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
4535         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
4536         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
4537         * support/regression/tests/malloc.c: fix 64 bit warnings
4538
4539 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
4540
4541         * src/mcs51/gen.c (genMinus): fixed bug 696436
4542
4543 2003-03-02  Borut Razem <borut.razem AT siol.net>
4544
4545         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
4546
4547 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
4548
4549         * configure.in: test for mkstemp
4550         * sdccconf_in.h: add HAVE_MKSTEMP
4551
4552 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
4553
4554         * device/include/ctype.h: removed warning while using --stack-auto
4555         * device/include/malloc.h: removed warning while using --stack-auto
4556         * device/include/string.h: removed warning while using --stack-auto
4557
4558 2003-02-23  Borut Razem <borut.razem AT siol.net>
4559
4560         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
4561         because NDEBUG is defined (see man assert)
4562         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
4563
4564 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4565
4566         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
4567         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
4568
4569 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4570
4571         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
4572         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
4573
4574 2003-02-18    <johan AT balder>
4575
4576         * as/mcs51/asmain.c (asmbl): module can start with a digit
4577         * as/z80/asmain.c (asmbl): module can start with a digit
4578
4579 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
4580
4581         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
4582         * src/asm.c: fix pipe() for Mingw32
4583
4584 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
4585
4586         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
4587         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
4588         make -V work again; --c1mode reads now from stdin
4589         * doc/sdccman.lyx: added --c1mode
4590         * support/Util/SDCCerr.c: new messages for c1 mode
4591         * support/Util/SDCCerr.h: new messages for c1 mode
4592         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
4593
4594 2003-02-15    <johan AT balder>
4595
4596         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
4597
4598 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
4599
4600         * doc/sdccman.lyx: Environment variables, -o and other minor things
4601
4602 2003-02-14    <johan AT balder>
4603
4604         * src/xa51/main.c: before anyone really tries to use it :)
4605
4606         * Install doc's in share/sdcc/doc
4607         * removed some obsolete files
4608         * Do a proper make distclean and uninstall
4609         M Makefile.common.in
4610         R sdccbuild.sh
4611         M as/Makefile
4612         M device/include/Makefile.in
4613         M device/lib/Makefile.in
4614         M doc/sdccman.lyx
4615         M link/Makefile
4616         M sim/ucsim/doc/Makefile.in
4617         M src/clean.mk
4618         R src/avr/peeph.rul
4619         R src/xa51/peeph.rul
4620         M support/cpp2/Makefile.in
4621         M support/makebin/Makefile
4622
4623
4624 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
4625
4626         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
4627
4628 2003-02-10  Borut Razem <borut.razem AT siol.net>
4629
4630         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
4631         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
4632         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
4633         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
4634         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
4635         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
4636         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
4637         src/z80/Makefile.bcc: Borland Makefile cleanup
4638         * as/z80/Makefile.bcc: Added Borland Makefile
4639         * support/cpp2/borland.h: Removed
4640
4641 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
4642
4643         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
4644         * src/SDCC.lex: new pragma NOIV
4645         * src/SDCCglobl.h: new pragma NOIV
4646         * src/SDCCmem.c: new pragma NOIV
4647
4648 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
4649
4650         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
4651
4652 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
4653
4654         * src/SDCCmain.c: signal handling is switched off by --debug
4655         * doc/Makefile: small fix for install; use clean.mk again
4656         * doc/clean.mk: clean *.pdf and *.html too
4657
4658 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
4659
4660         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
4661         * device/lib/printfl.c: fix a ds390 bug by making it portable
4662         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
4663         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
4664         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
4665         * debugger/mcs51/cmd.c: converted multi-line string literals
4666         * sim/ucsim/globals.cc: converted multi-line string literals
4667         * src/SDCCmain.c: introduced signal handler to remove temp files
4668         * doc/Makefile: small tweaks, implement clean
4669         * doc: removed generated files
4670
4671 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4672
4673         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
4674         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
4675         Address Record is not correctly generated for DS390."
4676
4677 2003-02-02  Borut Razem <borut.razem AT siol.net>
4678
4679         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
4680         * as/mcs51/asm.h: fixed compilation with Borland C
4681         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
4682         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
4683         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
4684         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
4685         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
4686         src/z80/Makefile.bcc: delete $(LIB) only if exist
4687         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
4688
4689 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
4690
4691         * device/include/malloc.h: introduced NULL
4692         * device/include/string.h: introduced NULL
4693         * device/include/stdlib.h: introduced NULL
4694         * device/lib/_memcpy.c: removed NULL
4695         * device/lib/_strcat.c: removed NULL
4696         * device/lib/_strchr.c: removed NULL
4697         * device/lib/_strcmp.c: removed NULL
4698         * device/lib/_strcpy.c: removed NULL
4699         * device/lib/_strcspn.c: removed NULL
4700         * device/lib/_strlen.c: removed NULL
4701         * device/lib/_strncat.c: removed NULL
4702         * device/lib/_strncmp.c: removed NULL
4703         * device/lib/_strncpy.c: removed NULL
4704         * device/lib/_strpbrk.c: removed NULL
4705         * device/lib/_strrchr.c: removed NULL
4706         * device/lib/_strspn.c: removed NULL
4707         * device/lib/_strstr.c: removed NULL
4708         * device/lib/_strtok.c: removed NULL
4709         * device/lib/malloc.c: removed NULL, include own header
4710
4711 2003-02-02    <johan AT balder>
4712
4713         * 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
4714         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
4715         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
4716         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
4717         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
4718         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
4719
4720 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4721
4722         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
4723         area 'DATA'"
4724
4725 2003-02-01    <johan AT balder>
4726
4727         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
4728
4729 2003-01-31    <johan AT CP255758-A>
4730
4731         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
4732
4733 2003-01-30    <johan AT balder>
4734
4735         * src/SDCCBBlock.c: automatic bug detection
4736         * src/SDCCicode.c: automatic bug detection
4737
4738 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4739
4740         * src/SDCCglobl.h:   now --xram-size 0 works
4741         * src/SDCCmain.c:    now --xram-size 0 works
4742
4743 2003-01-29    <johan AT balder>
4744
4745         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
4746
4747 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4748
4749         * as/mcs51/aslink.h: Added options --xram-size and --code-size
4750         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
4751         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
4752         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
4753         * src/SDCCglobl.h:   Added options --xram-size and --code-size
4754         * src/SDCCmain.c:    Added options --xram-size and --code-size
4755
4756 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
4757
4758         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
4759         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
4760
4761 2003-01-27    <johan AT balder>
4762
4763         * src/SDCC.y: fixed bug #613764
4764
4765 2003-01-26    <johan AT balder>
4766
4767         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
4768         * src/SDCCsymt.h: fixed bug #673374
4769         * src/SDCCglue.c: fixed bug #661910
4770         * src/SDCCast.c: fixed bug #458099 and 673374
4771
4772 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
4773
4774         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
4775         * as/mcs51/strcmpi.h: added
4776         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
4777         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
4778         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
4779         * as/mcs51/assym.c: strcmpi -> as_strcmpi
4780         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
4781         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
4782         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
4783         * as/mcs51/Makefile.aslink: new module strcmpi
4784         * as/mcs51/Makefile.asx8051: new module strcmpi
4785         * as/mcs51/Makefil.bcc: new module strcmpi
4786         * as/mcs51/Makefile.in: new module strcmpi
4787         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
4788
4789 2003-01-26    <johan AT balder>
4790
4791         * src/SDCCglue.c: reverted back to 1.124
4792         * src/SDCCast.c: reverted back to 1.156
4793         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
4794
4795 2003-01-25    <johan AT balder>
4796
4797         * src/SDCCglue.c: A better fix for bug #661910
4798         * src/SDCCast.c: A better fix for bug #661910
4799         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
4800
4801 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
4802
4803         * src/Makefile.in: remove spawn.o
4804         * src/SDCCmain.c: remove spawn.h
4805         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
4806         * src/spawn.c: removed
4807         * src/spawn.h: removed
4808         * support/regression/ports/ds390/spec.mk: link with -r
4809
4810 2003-01-24    <johan AT CP255758-A>
4811
4812         * src/ds390/gen.c (aopOp): fixed bug #667458
4813         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
4814         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
4815         (createIvalCharPtr): an ival doesn't always have a storage class anymore
4816
4817 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
4818
4819         * src/mcs51/peeph.def: better assembler identation by Frieder
4820         * src/mcs51/gen.c: better assembler identation by Frieder
4821
4822 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
4823
4824         * as/z80/string.h: removed for gcc 3.2
4825         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
4826         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
4827
4828 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
4829
4830         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
4831         * src/SDCCpeeph.c (replaceRule): fix bug #663503
4832         * support/regression/Makefile: separate temp files for ports
4833         * support/regression/generate-cases.py: separate temp files for ports
4834         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4835         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4836
4837 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
4838
4839         * moved tinitalk to device/examples/ds390
4840
4841 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
4842
4843         * as/mcs51/lkmem.c: rflag is for DS390
4844         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
4845         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
4846                          (linkEdit): move mem- and map-files the same way as ihx-files
4847         * src/z80/main.c (_setDefaultOptions): removed --generic
4848         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
4849         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
4850         * src/pic/glue.c (picglue): --c1mode works again
4851         * src/pic16/glue.c (pic16glue): --c1mode works again
4852         * src/asm.c (printCLine): fix #660034
4853
4854 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
4855
4856         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
4857         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
4858         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
4859         * as/mcs51/lkmem (summary): better fix for sp problem
4860         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
4861         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
4862         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
4863                                               remove --stack-after-data
4864
4865 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
4866
4867         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
4868         * src/SDCCutil.c (join): ugly bug: missing '\0'
4869         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
4870
4871 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
4872
4873         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
4874         * src/port.h: typo
4875         * src/pic/main.c (_asmCmd): gpasm supports -o
4876         * src/z80/main.c: more general macros
4877         * device/lib/Makefile.in: remove intermediate files
4878
4879 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
4880
4881         * .version: Bumped version number to 2.3.3
4882         * src/SDCCBBlock.c: new option -o
4883         * src/SDCCglobl.h: new option -o
4884         * src/SDCCglue.c: new option -o
4885         * src/SDCCmain.c: new option -o
4886         * src/asm.c: new option -o
4887         * src/ds390/main.c: new option -o
4888         * src/pic/glue.c: new option -o
4889         * src/pic/pcode.c: new option -o
4890         * src/pic/ralloc.c: new option -o
4891         * src/pic16/glue.c: new option -o
4892         * src/pic16/pcode.c: new option -o
4893         * src/pic16/ralloc.c: new option -o
4894         * src/z80/main.c: new option -o
4895         * device/lib/Makefile.in: use -o
4896         * support/regression/ports/ds390/spec.mk: use -o
4897         * support/regression/ports/gbz80/spec.mk: use -o
4898         * support/regression/ports/mcs51/spec.mk: use -o
4899         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
4900         * support/regression/ports/z80/spec.mk: use -o
4901         * support/regression/ports/ucz80/spec.mk: use -o
4902         * support/regression/ports/xa51/spec.mk: use -o
4903         * support/regression/fwk/lib/timeout.c: fix usage string
4904
4905 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
4906         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
4907
4908 2003-01-07    <johan AT balder>
4909
4910         * src/SDCCast.c (decorateType): fixed bug #600035
4911
4912 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
4913         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
4914         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
4915         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
4916         * src/pic/pcode.c: outcommented unused variable to remove warnings
4917         * src/pic/ralloc.c: outcommented unused variable to remove warnings
4918
4919 2003-01-06    <karl AT turbobit.com>
4920         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
4921    regression tests.
4922
4923 2003-01-06    <johan AT balder>
4924
4925         * src/SDCCicode.c: fixed array add
4926
4927 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
4928         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
4929         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
4930
4931 2003-01-04    <johan AT balder>
4932
4933         * src/SDCCval.c (getNelements): fixed the initialized array of structures
4934
4935 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4936         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
4937
4938 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
4939         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
4940         * support/regression/tests/bug-524697.c: fit mem usage into 8032
4941
4942 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
4943         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
4944
4945 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
4946         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
4947
4948 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
4949         * src/mcs51/main.c: removed {bindir}{sep} from aslink
4950
4951 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4952
4953     * in \sdcc\as\mcs51\ changed these files in order to create an
4954     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
4955     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
4956     following files to include the previous two files: aslink.dsp,
4957     Makefile.aslink, Makefile.bcc, and Makefile.in.
4958
4959     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
4960     .adb instead of .cdb
4961
4962 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4963
4964         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
4965         value from option --iram-size.
4966
4967 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4968
4969         * \sdcc\as\mcs51\lklist.c: added boundary check before using
4970         dram[] array.
4971
4972 2002-09-18    <wiml AT hhhh.org>
4973
4974         * SDCClrange.h: exposed setFromRange() and setToRange()
4975         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
4976           packRegsForAccUse() (bug 542397)
4977         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
4978           multiple times and emitting the fetch operations more than once
4979           added aopGetUsesAcc() function to allow binary operators to
4980           fetch their operands in the correct order; made genMinus() emit
4981           compact code for X = LITERAL - Y
4982
4983 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4984         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
4985         sprintf() in line 1267.
4986
4987 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4988         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
4989         like ports.
4990
4991 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4992         Changes to aslink (All the changes are marked with 'JCF'):
4993
4994         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4995         summary().
4996
4997         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4998         area BSEG.  Also moves, if possible, the DATA area down into the internal
4999         ram so more space is available.
5000
5001         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
5002         sflag.
5003
5004         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
5005         not bytes.  Function summary() which creates a memory usage summary
5006         file with extension .mem.  Reports of overlaping stack and small stack
5007         size.  If the space for the stack is less than 16 bytes aslink trows a
5008         warning.
5009
5010         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
5011         the 8051.  Option 'y' for memory summary output file.
5012
5013         Changes to sdcc (All the changes are marked with 'JCF'):
5014
5015         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
5016
5017         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
5018         overlaying area for it (uses RegBankUsed[4]).
5019
5020         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
5021         bank zero as used by default.  By default aslink locates the stack
5022         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
5023         the creation of the .mem file.  Delegates the allocation of data area
5024         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
5025         the begining of the stack area to aslink.
5026
5027         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
5028         glue() in SDCCglue.c creates an area for it.
5029
5030 2002-09-03  Borut Razem <borut.razem AT siol.net>
5031         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
5032         sdcc/src/pic/glue.c:
5033         introduced atexit() handler for teporay files removal in case of
5034         errors, assertions, ...
5035
5036 2002-08-29  Borut Razem <borut.razem AT siol.net>
5037         * sdcc/support/cpp2/auto-host_vc_in.h:
5038         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
5039         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
5040         Maybe there is a similar problem with BORLANDC? It should be checked!
5041
5042         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
5043         corrected improper use of assert: the assignment to clr variable was done inside the assert.
5044         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
5045         was not executed, and the compiler (cl) launched a warning:
5046         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
5047
5048 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
5049         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
5050
5051 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
5052         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
5053
5054         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5055           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
5056           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
5057           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5058           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
5059           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
5060           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
5061         - added Release configuration in VS projects
5062         - review of compiler an linker options
5063         - VC .exe files are generated in bin_vc directory, not to interfere
5064           with binaries generated from other projects (cygwin, mingw, bcc ...)
5065
5066         * sdcc/src/yacc.dsp: added
5067
5068         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
5069         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
5070         and insert the version number definitions from .version
5071
5072         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
5073
5074         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
5075         added - genarate auto-host.h using auto-host_vc_in.h as template
5076
5077         * sdcc/sdcc_vc.h,
5078         removed from CVS, generated automatically
5079
5080 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
5081         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
5082
5083 2002-08-11  Borut Razem <borut.razem AT siol.net>
5084         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
5085
5086 2002-08-10  Borut Razem <borut.razem AT siol.net>
5087         * src/SDCCmain.c (main):
5088         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
5089         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
5090         The consequence was that some temporary files were not removed.
5091
5092         * src/SDCCglue.c:
5093         unification of code in functions tempfilename() and tempfile():
5094         function tempnam() is defined in Visual Studio 6.0 and .NET
5095
5096         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
5097
5098         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5099           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
5100         - removed compiler command line option /WX: Treats all warnings as errors
5101         - update a list of source files, included into the project
5102
5103         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5104           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
5105         changed project type to Generic Project so that can be correcly converted to VS.NET project
5106
5107         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
5108
5109         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
5110
5111         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
5112
5113         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
5114         added return 0 statements after assert() to make compiler happy
5115
5116         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
5117         added newline in the def file to keep MSC compiler satisfied
5118
5119         * sdcc/src/z80/gen.c:
5120         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
5121           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
5122         - solved MSC error in function aopDump()
5123
5124         * sdcc_vc.h: define PREFIX as "\\sdcc"
5125
5126 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
5127         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
5128
5129 2002-06-22  Scott Dattalo <scott AT dattalo.com>
5130         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
5131         - Rewrote the register banking algorithm.
5132         - Added pCode live-range analysis to registers (for now, only non-used and
5133         singly-used registers optimized away)
5134
5135         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
5136
5137         * 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.
5138
5139 2002-05-10  Scott Dattalo <scott AT dattalo.com>
5140         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
5141
5142 2002-04-22  Michael Hope  <michaelh AT vroom>
5143
5144         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
5145
5146         * configure.in (DD_COPT): Added include support required for gbdk.
5147
5148         * .version: Bumped version number just to increase it.
5149
5150         * src/SDCCmain.c: Added -nostdinc to the default options.
5151
5152 2002-04-15  Michael Hope  <michaelh AT vroom>
5153
5154         * device/lib/z80/printf.c (sprintf): Added.
5155
5156         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
5157
5158         * src/z80/peeph.def: Added transpose redundent load rule.
5159
5160         * src/z80/main.c: Added force callee saves for jaune.
5161
5162         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
5163
5164         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
5165
5166 2002-03-28  Johan Knol  <johan AT balder>
5167
5168         * src/SDCCval.c: fixed bug #532436
5169
5170 2002-03-14  Scott Dattalo <scott AT dattalo.com>
5171         * /src/port.h:
5172         Added "char *Processor" field to the port structure.
5173
5174         * /src/SDCCmain.c:
5175         Added -p option. Allows port dependent processor to be specified.
5176
5177         * all ports:
5178         Initialized the new field char *Processor field to NULL in all ports
5179
5180         * /src/pic/*:
5181         Compiler generated registers for interrupt context saving
5182         were not getting allocated.
5183
5184 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
5185
5186         * /src/SDCCast.c:
5187         Fixed left shift. Will promote the left side of a left shift
5188         if a) left shifting more than size of operand or b) when assigned
5189         to something size > size of left side
5190
5191 2002-03-14  Scott Dattalo <scott AT dattalo.com>
5192         * src/pic/*
5193         tons of changes. Register allocation has been
5194         rewritten. Added customization for the various PICs. Flow
5195         analysis is restructured. ...
5196
5197         * src/pic/device.h:
5198         Added
5199
5200         * src/pic/device.c:
5201         Added. device.c is a PIC port hack to accomodate variations
5202         in PIC devices.
5203
5204 2002-03-13  Michael Hope  <michaelh AT vroom>
5205
5206         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
5207
5208 2002-03-04  johanknol  <johanknol AT manik>
5209
5210         * /src/SDCCval.c: fixed
5211
5212         const unsigned char arr[][2] = { { 0, 1 } };
5213         t18.c:1: error: Initializer element is not constant
5214
5215 2002-03-04  bela  <bela AT manik>
5216
5217         * /device/include/mcs51reg.h:
5218         ds89c420 register definition update
5219
5220 2002-03-03    <johan AT FRIJA>
5221
5222         * support/Util/SDCCerr.c: did something, but don't no why anymore
5223
5224         * support/regression/tests/bug-524691.c: made it a little less shy
5225
5226         * src/SDCCast.c (decorateType): fixed bug #524697
5227
5228         * src/SDCCast.c: made some lineno improvements
5229
5230         * src/SDCCval.c (getNelements): changed warning to error
5231
5232         * src/SDCCglue.c (printIvalArray): changed warning to error
5233
5234         * src/SDCCicode.c: fixed a warning for mingw
5235
5236         * src/SDCCast.c (decorateType): fixed the << promotion for ops
5237
5238         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
5239
5240 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
5241
5242         * src/ds390/peeph.def:
5243         Added some more peephole rules
5244
5245         * src/ds390/gen.c: Various fixes & enhancements
5246
5247         * src/SDCClrange.c, src/SDCClrange.h:
5248         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
5249
5250         * src/ds390/ralloc.c:
5251         various fixes & enhancements (ds390) specific
5252
5253         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
5254         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
5255         from rallocs.
5256
5257         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
5258
5259 2002-03-02    <johan AT FRIJA>
5260
5261         * src/SDCCast.c (decorateType): fixed bug #524708
5262
5263         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
5264
5265         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
5266
5267 2002-03-01  Michael Hope  <michaelh AT vroom>
5268
5269         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
5270
5271         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
5272
5273 2002-03-01    <johan AT FRIJA>
5274
5275         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
5276
5277         * src/SDCCast.c (decorateType): fixed bug #524209
5278
5279         * src/SDCCval.c (valNot): fixed bug #524195
5280
5281 2002-02-26    <johan AT balder>
5282
5283         * src/xa51/gen.c: fixed a warning
5284
5285         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
5286
5287         * src/SDCCast.c (decorateType): fixed bug #522534
5288
5289 2002-02-23    <johan AT balder>
5290
5291         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
5292
5293 2002-02-22    <johan AT balder>
5294
5295         * src/SDCCast.c: fixed bug #514865
5296
5297         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
5298
5299 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
5300
5301         * sdcc/src/SDCCloop.c:
5302         Previous fix was not good. basic blocks that have "break" or "return" are
5303         not really partof a loop , but live ranges used in these blocks should
5304         be live thru the entire loop, so set partOfLoop but don't add them to
5305         loop region
5306
5307 2002-02-21    <johan AT FRIJA>
5308
5309         * src/SDCCcse.c: fixed bug #514308
5310
5311 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
5312
5313         * src/SDCCloop.c:
5314         Fixed BUG #519583. If a conditional block ended in a return/break
5315         statement inside a loop, it was not being considered part of the loop.
5316
5317         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
5318
5319 2002-02-10  Karl Bongers <karl AT turbobit.com>
5320
5321         * debugger/*:
5322         Fixed up SDCDB debugger somewhat.  Updated debugger/README
5323         with lots of comments and notes.
5324
5325         * device/examples/test2.c:
5326         Fix bug, "red" variable not being initialized(compiler complained).
5327
5328         * device/examples/Makefile, examples/test3.c:
5329         Add Makefile in device/examples folder, compiles test3.c
5330         for use as a multiple module SDCDB test case.
5331
5332         * sim/ucsim/cmd.src/cmdset.cc:
5333         Took out debug printfs in ucsim "next" command.
5334
5335         * sim/ucsim/xa.src:
5336         Karl and Johan start ucsim XA support.  Most dissassembly working,
5337         about 75% emulation done(plenty of work remaining).
5338
5339         * sim/ucsim/z80.src:
5340         Add Z80 support to ucsim, add test-ucz80 regression test,
5341         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
5342         Notice z80 compiler fails on examples/test3.c/crc code.
5343
5344 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
5345
5346         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
5347         Added support for --parms-in-bank1
5348
5349         * src/ds390/peeph.def:
5350         added a few more peephole optimzations
5351
5352         * src/ds390/main.c:
5353         1) added __builtin_inp & __builtin_outp used to read in data of given length
5354            from a memory mapped port
5355         2) added __builtin_memcmp
5356         3) added __builtin_swapw swap bytes of a short
5357
5358         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
5359         1) handle multiple send & receives from register bank1
5360         2) ralloc can now allocate DPTR1 to some liveRanges
5361
5362         * src/SDCCsymt.c, src/SDCCsymt.h:
5363         changes to handle multiple sends & receives
5364
5365         * src/SDCCptropt.h:
5366         added some pointer arithmetic optimization
5367
5368         * src/SDCCptropt.c:
5369         added some pointer arithmetic optimizations but not stable yet so not
5370         called from anywhere (will get this working shortly)
5371
5372         * src/SDCCopt.c: fixed for multiple sends & receives
5373
5374         * src/SDCCmain.c:
5375         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
5376         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
5377            set preprocessor defines (depending on options)
5378
5379         * src/SDCCicode.c, src/SDCCicode.h:
5380         changes made to handle multiple sends & receives
5381
5382         * src/SDCCglobl.h:
5383         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
5384
5385         * src/SDCCcse.c, src/SDCCcse.h:
5386         added function findbackward def (to be used in upcoming optimization)
5387
5388         * src/SDCCcflow.c, src/SDCCcflow.h:
5389         added function returnAtEnd - to determine if a basic block terminates with
5390         a RETURN iCode
5391
5392         * src/SDCCast.c, src/SDCCast.h:
5393         added option parms-in-bank1
5394
5395         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
5396         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
5397         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
5398         adjusted for --parms-in-bank1 option
5399
5400         * device/include/string.h:
5401         donot redefine "reentrant" keyword
5402
5403         * device/include/ds80c390.h: Added some more SFRs
5404
5405 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
5406
5407         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
5408
5409 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
5410
5411         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
5412
5413 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
5414
5415         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
5416
5417 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
5418
5419         * Added --xram-movc option
5420
5421 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
5422
5423         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
5424
5425 2002-01-11  Johan Knol
5426
5427         * Added math lib of Jesus Calvino-Fraga
5428
5429 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
5430
5431         * src/SDCCmain.c (processFile): fix processing of ../../src.c
5432         * support/regression/Makefile: new target test-mcs51-stack-auto
5433         * support/regression/ports/mcs51-stack-auto/spec.mk: added
5434
5435 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
5436
5437         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
5438
5439 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
5440
5441         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
5442
5443 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
5444
5445         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
5446
5447         * src/SDCCglue.h: add definition for printIvalChar()
5448
5449 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
5450
5451         * src/SDCCast.c: fix #498138 by Johan
5452
5453         * src/SDCCglue.c: fix #498138 by Johan
5454
5455 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
5456
5457         * support/regression/Makefile: fix clean
5458
5459         * support/regression/ports/ds390/support.c: fix transmission of last character
5460
5461 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
5462
5463         * /sdcc/src/ds390/gen.c:
5464         a) improved computing address of stack variable
5465         b) took out some #if 0 code
5466         c) improved parmBytes adjustment
5467         d) improved genPlusIncr & genMinusIncr
5468         e) genCmp could generate bad code (when left assigned to DPTR)
5469         f) Fixed bug in hasInc
5470
5471         * /sdcc/src/ds390/ralloc.c:
5472         a) packRegsForSupport could mess up live information (Fixed)
5473         b) packRegsDPTRuse could be incorrect for left & right shift
5474
5475         * /sdcc/src/mcs51/ralloc.c:
5476         packRegsForSupport could mess up the live information (Fixed)
5477
5478         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
5479
5480         * /sdcc/src/SDCCast.c:
5481         can reverse a loop even if function call is present as long
5482         as the loop control variable is local & is not passed as parameter
5483
5484 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
5485
5486         * /sdcc/ChangeLog: *** empty log message ***
5487
5488         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
5489         More builtin function additions for TININative
5490
5491         * /sdcc/src/ds390/ralloc.c:
5492         Had broken the regression testsuite
5493
5494         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
5495
5496         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
5497         Added funcattr hasStackParms will be set for reentrant functions when there
5498         are paramteres on the stack, this helps in minimizing frame pointer generation
5499         typeFromStr can handle function pointers now
5500
5501         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
5502         *** empty log message ***
5503
5504 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
5505
5506         * /src/ds390/gen.c, /src/ds390/main.c:
5507         More builtin function additions for TININative
5508
5509         * /src/ds390/ralloc.c:
5510         Had broken the regression testsuite
5511
5512         * /src/SDCCast.c: Fixed a bug in dumptree
5513
5514         * /src/SDCCsymt.c, /src/SDCCsymt.h:
5515         Added funcattr hasStackParms will be set for reentrant functions when there
5516         are paramteres on the stack, this helps in minimizing frame pointer generation
5517         typeFromStr can handle function pointers now
5518
5519         * /doc/builtins.txt, /doc/TININative.txt:
5520         *** empty log message ***
5521
5522
5523 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
5524
5525         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
5526         ALPHA version for -mTININative
5527
5528         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
5529         updated to reflect changes in the port structure
5530
5531         * /src/port.h:
5532         added function do_assemble (similar to do_link) if non-null this function
5533         will be called to do assembly (-mTININative) requires a multi command
5534         assembly
5535         added function genAssemblerEnd will be called to generate assembler Epilogue
5536
5537         * /src/SDCCsymt.c:
5538         added _JavaNative to debug info printing
5539
5540         * /src/SDCCmain.c: added option --tini-libid
5541         added port->do_assemble function (-mTININative) has a multi command assemble
5542
5543         * /src/SDCCglue.c: Disabled "constExpr" check
5544         added port->genAssemblerEnd function
5545
5546         * /src/SDCCglobl.h: Added option --tini-libid value
5547
5548         * /src/SDCCast.h:
5549         tookout optimizeCompare from the header (has no external references)
5550
5551         * /src/SDCCast.c: made one more function "static"
5552
5553 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
5554
5555         * src/z80/mappings.i: Added z80asm support.
5556
5557         * src/z80/main.c: Added z80asm support on --asm=z80asm
5558
5559         * src/z80/gen.c: Fixed asm portability issues.
5560
5561         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
5562
5563         * src/SDCCglue.c (printExterns): Added global/extern split.
5564
5565 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
5566
5567         * support/regression/Makefile: added test for mcs51 model large
5568
5569         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
5570
5571         * support/regression/ports/gbz80/spec.mk: added -mgbz80
5572
5573 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
5574
5575         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
5576
5577 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
5578
5579         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
5580
5581         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
5582
5583 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
5584
5585         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
5586
5587         * support/regression/tests/simplefloat.c: Port to mcs51.
5588
5589 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
5590         * support/regression/tests/bug-485362.c: Added.
5591
5592         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
5593
5594         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
5595
5596         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
5597
5598         * src/z80/gen.c (aopDump): Added a dump function.
5599
5600 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
5601         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
5602
5603         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
5604
5605         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
5606
5607         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
5608
5609         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
5610
5611         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
5612
5613         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
5614
5615         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
5616
5617         * support/regression/ports/ds390/support.c: Use tinibios.
5618
5619         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
5620
5621 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
5622
5623         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
5624         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
5625
5626         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
5627
5628         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
5629
5630 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
5631
5632         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
5633
5634         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
5635         (packRegsForIYUse): Created and optimised.
5636
5637 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
5638
5639         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
5640 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
5641
5642         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
5643
5644         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
5645
5646         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
5647
5648 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
5649
5650         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
5651
5652         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
5653
5654 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
5655
5656         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
5657
5658         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
5659
5660         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
5661
5662 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
5663
5664         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
5665         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
5666         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
5667
5668         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
5669
5670         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
5671         (genNotFloat): Added.
5672         (genUminusFloat): Added.
5673
5674         * device/lib/z80/Makefile: Added floating pt stubs.
5675
5676         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
5677
5678         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
5679
5680         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
5681
5682 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
5683
5684         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
5685
5686         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
5687
5688         * sdcc/support/regression/Makefile: Add port ds390.
5689
5690         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
5691
5692         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
5693
5694         * sdcc/support/regression/ports/ds390/spec.mk: Added.
5695
5696         * sdcc/support/regression/ports/ds390/support.c: Added.
5697
5698         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
5699
5700         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
5701
5702         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
5703
5704 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
5705
5706         * device/include/malloc.h: Added z80 and gbz80 support.
5707
5708         * device/lib/gbz80/heap.s: Added.
5709
5710         * device/lib/z80/heap.s: Added.
5711
5712         * device/lib/malloc.c: Added z80 and gbz80 support.
5713
5714         * support/regression/tests/malloc.c (testMalloc): Added.
5715
5716         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
5717
5718         * support/regression/tests/bug-478094.c: Added.
5719
5720         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
5721
5722 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
5723
5724         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
5725
5726         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
5727
5728         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
5729
5730         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
5731
5732         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
5733
5734 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
5735
5736         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
5737
5738 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
5739
5740         * support/regression/tests/bug-477927.c: Added.
5741
5742         * src/z80/peeph.def: Added minor rules.
5743
5744         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
5745
5746         * src/z80/peeph.def: Added jump optimisation modification.
5747
5748 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
5749
5750         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
5751
5752 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
5753
5754         * support/regression/tests/funptrs.c: Added.
5755
5756 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
5757
5758         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
5759
5760 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
5761
5762         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
5763
5764         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
5765
5766         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
5767         (movLeft2ResultLong): Created.
5768
5769         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
5770         (joinPushes): Added.  Joins two char pushes into a word push.
5771
5772 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
5773
5774         * support/cpp2/Makefile.in (install): Added creation of dest dir.
5775
5776         * support/makebin/Makefile (install): Added creation of dest dir.
5777
5778 2001-10-24 Karl Bongers <karl AT turbobit.com>
5779
5780         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
5781
5782 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
5783
5784         * src/z80/ralloc.c: Turned off faulty pack for one use.
5785
5786         * src/z80/peeph-gbz80.def: Removed redundent restart options.
5787
5788         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
5789
5790 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
5791
5792         * support/regression/Makefile: Improved clean
5793
5794         * support/regression/ports/gbz80/spec.mk: Added clean
5795
5796         * support/regression/ports/host/spec.mk: Added clean
5797
5798         * support/regression/ports/z80/spec.mk: Added clean
5799
5800         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
5801
5802         * support/regression/ports/mcs51/timeout.c: little improvements
5803
5804 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
5805
5806         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
5807
5808         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
5809
5810         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
5811
5812 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
5813
5814         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
5815
5816         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
5817
5818 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
5819         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
5820
5821         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
5822
5823         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
5824
5825         * src/mcs51/main.c (_linkCmd): Added bin path to command.
5826
5827         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
5828
5829         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
5830
5831         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
5832
5833         * support/regression/tests/longor.c: Added.
5834
5835 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
5836
5837         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
5838
5839         * as/mcs51/aslink.h: define PATH_MAX
5840
5841         * as/mcs51/asm.h: define PATH_MAX
5842
5843         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
5844
5845         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
5846
5847         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
5848
5849         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
5850
5851         * src/SDCCglobl.h: define PATH_MAX
5852
5853         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
5854
5855         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
5856
5857 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
5858
5859         * src/z80/gen.c (gencjneshort): Fixed
5860
5861         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
5862
5863 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
5864
5865         * support/regression/tests/bug-469671.c: Added.
5866
5867         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
5868
5869 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
5870
5871         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
5872
5873         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
5874
5875 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
5876
5877         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
5878
5879         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
5880
5881         * src/device/lib/_mullong.c : removed hint: nooverlay bug
5882
5883         * src/device/lib/_divuint.c : removed hint: nooverlay bug
5884
5885         * src/device/lib/_divulong.c: removed hint: nooverlay bug
5886
5887         * src/device/lib/_moduint.c : removed hint: nooverlay bug
5888
5889         * src/device/lib/_modulong.c: removed hint: nooverlay bug
5890
5891 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
5892
5893         * 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.
5894
5895         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
5896
5897         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
5898
5899 2001-10-07    <johan AT FRIJA>
5900
5901         * device/lib/gets.c (gets): fixed the return value.
5902
5903 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
5904         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
5905
5906         * 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.
5907
5908         * 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.
5909
5910         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
5911
5912         * src/pic/gen.c: Removed Safe_strdup.
5913
5914         * configure.in: Added option to enable libgc support.
5915
5916         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
5917         (bitVectUnion): Optimised.
5918         (bitVectIntersect): Optimised.
5919         (bitVectBitsInCommon): Optimised.
5920         (bitVectCplAnd): Optimised.
5921
5922         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
5923
5924 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5925
5926         * src/SDCCmain.c: distinguish between assembler debug and plain options
5927
5928         * src/avr/main.c:   remove standard assembler options
5929
5930         * src/ds390/main.c: remove standard assembler options
5931
5932         * src/mcs51/main.c: remove standard assembler options
5933
5934         * src/port.h: removed "PENDING" comment
5935
5936 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5937
5938         * src/device/lib/_mulint.c  : new, with assember functions
5939
5940         * src/device/lib/_mullong.c : new, with assember functions
5941
5942         * src/device/lib/_divuint.c : with assember functions
5943
5944         * src/device/lib/_divsint.c : with assember functions
5945
5946         * src/device/lib/_divulong.c: with assember functions
5947
5948         * src/device/lib/_divslong.c: with assember functions
5949
5950         * src/device/lib/_moduint.c : with assember functions
5951
5952         * src/device/lib/_modsint.c : with assember functions
5953
5954         * src/device/lib/_modulong.c: with assember functions
5955
5956         * src/device/lib/_modslong.c: with assember functions
5957
5958         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
5959
5960         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
5961
5962         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
5963                                       replaced _mululong.c and _mulslong.c by _mullong.c
5964
5965 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5966
5967         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
5968
5969 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5970
5971         * src/SDCCglue.c: test, if win32api is available for MINGW
5972
5973 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5974
5975         * src/SDCCsymt.c: no more _modifier in printTypeChain()
5976         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
5977         * support/regression/ports/gbz80/spec.mk: removed GENERIC
5978         * support/regression/ports/host/spec.mk: removed GENERIC
5979         * support/regression/ports/mcs51/spec.mk: removed GENERIC
5980         * support/regression/ports/z80/spec.mk: removed GENERIC
5981
5982 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
5983
5984         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
5985
5986         * support/regression/tests/bug-467035.c: Created.
5987
5988 2001-10-01    <johan AT FRIJA>
5989
5990         * src/SDCC.y: fixed bug #466586 part 1
5991
5992 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
5993
5994         * SDCCicode.c: z80 has no generic pointers
5995         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5996
5997 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
5998
5999         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
6000
6001 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
6002
6003         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
6004
6005         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
6006
6007 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
6008
6009         * configure.in: Fixed up so that ucsim is only configured once.
6010
6011         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
6012
6013         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
6014         (getPathDifference): As above.
6015
6016         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
6017
6018         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
6019
6020 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
6021         * .version: Updated to 2.3.1
6022
6023         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
6024         Added copyright header.
6025
6026         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
6027         (assemble): Added support for macro based assembler commands.
6028         (linkEdit): Added support for macro based linker commands.
6029         (preProcess): Changed the pre-processor to use macros.
6030         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
6031         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
6032
6033         * device/lib/z80/crt0.s: Added module name for debugging.
6034
6035 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
6036
6037         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6038
6039         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
6040
6041         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
6042
6043         * src/Makefile.in: Added SDCCmacro and SDCCutil
6044
6045 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
6046
6047         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6048
6049 2001-09-16    <johan AT FRIJA>
6050
6051         * 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.
6052
6053 2001-09-15    <johan AT FRIJA>
6054
6055         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
6056         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
6057
6058 2001-09-11    <johan AT FRIJA>
6059
6060         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
6061
6062 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
6063
6064         * support/regression/tests/bug-460444.c: Added test case.
6065
6066         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
6067         (genCast): Added justification for all of the asserts.
6068
6069 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
6070
6071         * support/regression/support.c: _xdata replaced by xdata
6072
6073         * support/regression/spec.mk: removed _generic
6074
6075 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
6076
6077         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
6078
6079         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
6080         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
6081
6082         * src/z80/peeph.def: Added a rule to optimise shift then compare.
6083
6084         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
6085
6086         * support/regression/tests/bug-460010.c: Added test case.
6087
6088         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
6089
6090 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
6091
6092         * support/regression/Makefile: inter-port-clean adjusted for mcs51
6093
6094         * support/regression/testfwk.c: removed workaround for bug #436344
6095
6096         * support/regression/tests/bp.c: use less memory with mcs51
6097
6098         * support/regression/tests/bug-441448.c: use less memory
6099
6100         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
6101
6102         * support/regression/collate-results.py: typo
6103
6104 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
6105
6106         * support/regression/tests/fetchoverlap.c: Added new test case.
6107
6108         * support/regression/tests/bp.c: Added new test case.
6109
6110         * support/regression/tests/bug-448984.c: Added new test case.
6111
6112         * support/regression/tests/pow2shifts.c: Added new test case.
6113
6114         * src/z80/gen.c: Turned off the noise it normally generates for the release.
6115         (genlshTwo): Fixed right shift for count > 8.
6116
6117         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
6118
6119 2001-09-08    <johan AT FRIJA>
6120
6121         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
6122
6123 2001-09-07    <johan AT FRIJA>
6124
6125         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
6126
6127         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
6128
6129 2001-09-06    <johan AT FRIJA>
6130
6131         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
6132         * bernhard noted me at this: "() equals to (void)" (1.38)
6133
6134 2001-09-05    <johan AT FRIJA>
6135
6136         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
6137
6138 2001-09-04    <johan AT FRIJA>
6139
6140         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
6141
6142
6143 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
6144
6145         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
6146
6147 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
6148
6149         * link/z80/aslink.h: Fixed path for PATH_MAX
6150
6151 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
6152
6153         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
6154
6155         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
6156
6157         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
6158
6159         * 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.
6160
6161 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
6162
6163         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
6164         (genCmp): Fixed up genCmp for the GB with longs.
6165
6166         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
6167
6168         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
6169
6170         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
6171
6172         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
6173
6174 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
6175
6176         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
6177
6178 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
6179
6180         * 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.
6181
6182         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
6183
6184 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
6185
6186         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
6187
6188         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
6189
6190 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
6191
6192   * sim/ucsim/configure:    little improvement of Cygwin-detection
6193   * sim/ucsim/configure.in: little improvement of Cygwin-detection
6194   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
6195   * support/regression/tests/bug-221100.c: small changes for mcs51
6196   * support/regression/tests/bug-221168.c: small changes for mcs51
6197   * support/regression/tests/bug-227710.c: small changes for mcs51
6198   * support/regression/tests/staticinit.c: small changes for mcs51
6199   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
6200   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
6201   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601