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