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