1 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4 add relFilesSet to $3, manipulate $2 to handle linking of object
5 files without source files in command line,
6 * device/include/pic16 (all headers): added ID location macros,
7 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8 entries for ID location bytes,
9 * (pic16_assignIdByteValue): NEW,
10 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11 added field dumpcalltree to pic16_options_t,
12 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
13 is used instead of pic16_Gstack_base_addr, check if (ifx) before
14 emitting rFalseIfx label after check_carry label,
15 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
16 pic16_emitDIRegs), NEW
17 * (pic16glue): dump .calltree file when option --calltree found,
18 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
19 * (_pic16_genAssemblerPreamble): emit ID locations after
20 configuration registers,
21 * (pic16_linkCmd): modifications of the link command,
22 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
23 * (pic16_pCodeInitRegisters): don't init stack registers,
24 * (pic16_findPrevInstruction): fixed bug,
25 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
26 bug with immediate registers,
27 * (buildCallTree): traces stack push and pop,
28 * (pct2): dump also stack usage for each function,
29 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
30 * (pic16_allocDirReg): various modifications,
31 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
34 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
36 * src/pic16/pcode.c: removed buggy double colon
38 2004-07-01 Borut Razem <borut.razem AT siol.net>
40 * support/scripts/sdcc.nsi: added include/pic16 to setup
42 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
44 * device/lib/Makefile.in: fixed bug in target objects-pic16,
45 * device/lib/pic16/Makefile: prefixed with dash (-) command under
47 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
48 specific command line arguments. Also added sample lkr script
49 for placing a variable at a specific memory bank.
50 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
51 at a specific memory bank,
52 * (pic16_dump_isection): fixed bug which caused string literals to
53 be omitted when dumping idata section,
54 * (pic16_groupRegistersInSection): added code to handle registers
55 in specific memory banks,
56 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
57 public, all references are renamed too,
58 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
60 * (pic16_storeForReturn): added case to handle when dest is WREG,
61 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
62 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
63 pic16_rel_udata, check to see if that register is marked as being
64 a member of a specific memory bank,
65 * (pic16_printIvalCharPtr): added code to add string literals either
66 to code or the idata sections,
67 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
68 also accept the 'udata' pragma,
69 * src/pic16/main.h: new structure types sectName and sectSym
70 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
71 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
72 * (pic16_findPrevInstruction): fixed, it returned nothing,
73 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
74 instruction combinations,
75 * (pic16_FixRegisterBanking): heavily reorganised,
76 * (pic16_AnalyzeBanking): if generating banksel directives is
77 disabled, then don't call FixRegisterBanking at all,
78 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
80 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
82 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
84 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
85 Phuah Yee Keat <yk.phuah AT nestac.com>
87 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
89 * src/pic16/glue.c (pic16createInterruptVect): function now emits
90 correctly the IVT even if it is relocated to some other location
92 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
94 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
95 * device/include/pic16/pic18f2220.h: NEW,
96 * device/lib/pic16/libdev/pic18f2220.c: NEW,
97 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
98 * src/pic16/device.c (struct Pics16): added info for 18f2220,
99 * src/pic16/device.h (struct pic16_options): added ivt_loc and
100 nodefaultlibs, ivt_loc is the location of the interrupt vector
101 table, and nodefaultlibs signs that default libraries should not be
102 linked in link stage,
103 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
104 according to --ivt-loc argument,
105 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
106 when pragma stack is found,
108 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
110 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
111 256 (range check), 257 (do while), 258.a-f (bit banging
112 f.e. on 3-wire SPI bus)
114 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
116 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
117 variables used exclusively within a loop
119 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
121 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
123 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
125 * src/SDCClrange.c (computeClash): fixed bug #971834
127 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
129 * src/mcs51/gen.c (genCmp): fixed bug #975903
130 * src/hc08/gen.c (operandsEqu),
131 * src/ds390/gen.c (operandsEqu),
132 * src/z80/gen.c (operandsEqu),
133 * src/pic/gen.c (operandsEqu),
134 * src/pic16/gen.c (operandsEqu),
135 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
136 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
138 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
140 * src/SDCCcse.c (cseBBlock): fixed bug #966963
142 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
144 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
145 default case in switch statement,
146 * glue.c (pic16_initPointer): expr is initialised via decoarteType
147 to eliminate problem with initialisation of pointers, but problem
149 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
150 * (emitStaticSegment): removed various lines emitting debug info,
151 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
152 added processor registers for utilizing EEPROM,
153 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
154 configurable and set 8
156 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
158 * .version: increased version number to 2.4.2,
160 Cumulative patch for pic16 port
161 * src/pic16/device.c: changed scheme to dump initial values for
162 variables in idata segment, all print_idata* functions were removed,
163 now the pic16_printIval* will be called,
164 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
165 * _pic16_printPointerType, pic16_printPointerType,
166 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
167 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
168 NEW, similar to the respective functions in SDCCglue.c,
169 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
170 way, emitting hex bytes,
171 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
173 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
175 * src/avr/ralloc.c (serialRegAssign),
176 * src/xa51/ralloc.c (serialRegAssign),
177 * src/pic/ralloc.c (serialRegAssign),
178 * src/pic16/ralloc.c (serialRegAssign),
179 * src/hc08/ralloc.c (serialRegAssign),
180 * src/z80/ralloc.c (serialRegAssign),
181 * src/ds390/ralloc.c (serialRegAssign),
182 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
184 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
186 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
187 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
189 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
191 Cumulative patch for pic16 port:
192 * src/pic16/device.h (typedef PIC16_device) modified fields for
193 defining microcontrollers,
194 * src/pic16/device.c: added new info for all devices in Pics16 array,
195 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
196 to be optimised out by the pCode optimiser,
197 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
198 specially, bug reported by G.M. Gallant,
199 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
200 as force'd so that cannot be optimised out by pCode optimiser,
202 * src/pic16/pcodepeeph.c,
203 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
204 they are disabled by default, but can be enabled explicit with
205 command argument --denable-peeps, for testing,
206 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
207 --pomit-ivt in COMPILE_FLAGS
209 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
211 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
214 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
216 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
218 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
220 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
221 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
223 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
225 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
226 would only assign 0x300001 register.
228 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
230 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
231 in COMPILE_FLAGS. Thanks to G. Gallant for report.
233 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
235 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
237 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
238 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
239 added peephole 254 (left shift), 255 (jump table)
241 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
243 * device/lib/Makefile.in: removed comment line with model-pic16,
244 * (target port-specific-objects-pic16): the libraries and objects
245 are copied to the build directory form the device/lib/pic16/bin
248 Cumulative patch concerning pic16 port:
249 * library directory has been re-organized,
250 * added support for PIC18F1220,
251 * added headers and library sources for chips 18f1220,18f6520,
252 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
254 * configuration registers setting has changed, now each supported
255 device has a complete description of the registers it uses,
256 * all initialisations are moved to idata sections, these section
257 can be absolute or relocatable,
258 * fixed initialisation of codespace variables,
259 * fixed warning about PCLATU and gpsim,
260 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
261 * (genAssign): use table reads when assigning from variables in codespace,
262 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
263 char/int variables placed in codespace,
264 * (pic16_emitConfigRegs): NEW, emits a list with configuration
265 registers set in .asm file, no need for --pomit-config-words anymore,
266 * (pic16glue): some 8051 legacy segments are commented out
267 (to be removed completely),
268 * added support for alternative assembler and linker with --asm=
269 and --link= command line arguments,
270 * peepholes are disabled automatically in the port, no need to
271 specify on command line,
272 * port supports natively char/int/long multiplication, but converts
273 all divisions to support functions,
274 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
275 to the file set in variable $2,
276 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
277 strings in ASCII format and not in hex,
278 * ralloc.c (serialRegAssign): added a triplet of conditional calls
279 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
280 allocate proper register if iCodes aren't temporary,
282 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
284 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
286 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
288 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
291 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
293 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
294 computed address is reused
295 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
298 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
300 * src/z80/gen.c: (genArrayInit): must check for pointers too
302 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
304 * support/regression/tests/zeropad.c: never meant to commit the
305 nestedstruct test: removed, added check for GCC version
307 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
309 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
310 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
311 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
312 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
313 bugs 928906 and 954082 half-empty initializers
315 * src/SDCCsymt.c (getAllocSize): added for above fix
316 * src/z80/gen.c (genArrayInit): fixed bug 741044
317 * support/regression/tests/zeropad.c: added tests
319 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
321 * src/pic16/device.c (pic16_dump_section): corrected bug which
322 caused some symbols of the libraries to be misplaced
324 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
327 * src/pic16/ralloc.h,
328 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
329 to fix conflict with pic port
331 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
333 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
334 externs configuration variables,
335 * src/pic16/ralloc.h,
336 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
337 prototype in header, commented out some debug messages
339 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
343 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
344 for gpasm COFF object generation. Thanks to D. Hawkins for
347 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
350 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
351 Brock for spotting this)
352 * src/ds390/gen.c (genEndFunction),
353 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
354 interrupt handler and critical. Disable push/pop optimizations when
355 peephole optimizations disabled.
357 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
359 Updated pic16 library sources and headers.
360 * device/lib/pic16/pic18f*/ ,
361 * device/include/pic16/*.h: modified to handle structured SFR
364 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
366 * src/port.h (PORT structure): added hook initPaths, now each
367 port can declare its own default search paths,
368 which can been seen with the --print-search-dirs option,
369 see pic16 port for example,
370 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
371 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
372 * (doPrintSearchDirs): NEW, replaces in a central manner the
373 printing of search dirs which was split in set*Paths functions,
374 * (main): added call to port->initPaths and doPrintSearchDirs,
379 * src/izt/tlcs900h.c,
382 * src/pic16/main.c: modified port structures to reflect addition of
385 * src/pic16/device.c (regCompare): registers are finally sorted by name,
386 * (pic16_dump_section): for registers in same address reserve memory once,
387 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
389 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
390 result is greater in size than right or left,
391 * (pic16_genUMult8X8_8): there are some cases where the result can
392 be 16 bits size, so handle these,
393 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
394 * (pic16_outBitC): modified to emit pcodes,
395 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
397 * (genDivOneByte): implemented algorithm to divide 8-bits,
398 * (genCmp): uncommented goto, but issues still exist,
399 * (genAnd): fixed a bug with variables >8bits,
400 * (genPackBits): optimization added that uses BCF/BSF to change a
402 * (genAssign): fixed bug when assigning floating point literals,
403 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
404 __sdcc_gsinit_startup label,
405 * src/pic16/main.c (_pic16_init): removed search directory
407 * (_pic16_initPaths): NEW, used to initialise search directories,
408 * (_hasNativeMulFor): support functions for all except char/int
409 multiplication, and char division,
410 * (PIC16_port struct): modified entry for native mul support,
411 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
413 * (buildCallTree): call to register_usage is ifdef'ed out,
415 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
417 * device/include/string.h: applied Stas Sergeev's patch to make this
418 header file compatible with the preprocessor -Wundef option
419 * src/SDCCmain.c (main): abort compilation if preprocessor reports
420 failure (fixes bug #941458)
422 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
424 * src/SDCCopt.c (killDeadCode): fixed bug #907733
425 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
426 that the variable, not the function, should be static
427 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
428 to be consistent with non-literal case
430 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
432 * src/SDCCast.c (isConformingBody): fixed bug #949967
433 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
434 convilong): fixed bug #952086
436 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
438 * src/SDCCmem.c (allocVariables): fixed bug #955321
440 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
442 * src/hc08/main.c (_hc08_genAssemblerEnd),
443 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
444 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
445 completely eliminated the use of a temporary file
446 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
447 when more than one file linked
448 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
450 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
452 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
453 which fixes bug #543481
454 * support/regression/tests/bug-751703.c: fixed comments left from a
456 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
457 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
458 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
460 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
461 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
462 are now changed to underscores in moduleName
464 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
466 * as/mcs51/lkmem.c: better fix for bug #954173
468 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
469 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
471 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
472 * device/include/c8051f000.h,
473 * device/include/c8051f120.h,
474 * device/include/c8051f300.h,
475 * device/include/c8051f310.h,
476 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
479 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
481 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
482 and mailing lists, doc'ed --no-peep-comments, removed reference
483 to knoppix (newest version has no LyX/LaTeX), other minor changes
484 * src/SDCCglue.c (glue): save 2 bytes stack space with
485 option --main-return. The ljmp could probably be avoided too
487 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
489 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
491 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
493 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
494 * src/SDCCopt.c (isLocalWithoutDef),
495 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
496 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
497 (credit to Maarten Brock for patch #949363, on which this is based)
498 * support/regression/tests/bug-751703.c: some test cases of extern used
501 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
503 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
505 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
507 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
508 dwWriteLabel): fix to create valid debugger symbols even when
509 the module name has non-alphanumeric symbols in it
510 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
511 when a variable's allocation has been optimized away
514 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
516 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
518 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
520 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
522 * src/z80/gen.c (z80_emitDebuggerSymbol),
524 * src/pic/gen.c (pic14_emitDebuggerSymbol),
526 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
528 * src/avr/gen.c (avr_emitDebuggerSymbol),
530 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
532 * src/SDCCdebug.c (emitDebuggerSymbol),
534 * src/port.h: added a debugger struct to the port struct. Added a
535 callback for defining debugger symbols
537 * src/SDCCast.c (createLabel),
538 * src/SDCC.y (labeled_statement): mark all compiler generated labels
541 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
542 iCode back to the ast for the function
544 * src/hc08/ralloc.c (hc08_assignRegisters),
545 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
546 unneeded fields from the regs struct.
547 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
548 pushReg() & pullReg() functions instead of emitcode()
550 * src/hc08/gen.c (genLabel, genhc08Code),
551 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
553 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
556 * src/hc08/gen.c (genEndFunction, genhc08Code),
558 * src/mcs51/gen.c (genEndFunction, gen51Code),
560 * src/ds390/gen.c (genEndFunction, gen390Code),
562 * src/z80/gen.c (genEndFunction, genZ80Code),
565 * src/pic/gen.c (genEndFunction, genpic14Code),
567 * src/pic16/gen.c (genEndFunction, genpic16Code),
569 * src/avr/gen.c (genEndFunction, genAVRCode),
571 * src/xa51/gen.c (genEndFunction, genXA51Code),
573 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
574 specific code to cdbFile.c and out of the backend code generators
576 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
577 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
578 starting address is now 0
582 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
583 assembler directive for DWARF support
584 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
588 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
590 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
592 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
593 and inappropriate peephole optimization in jump tables
595 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
598 * src/SDCCglue.c: sdccopt works for the hc08 port now
600 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
602 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
604 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
606 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
608 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
610 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
614 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
615 comments from the peephole optimizer replacement rules
616 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
618 * src/SDCCcse.c (updateSpillLocation),
619 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
621 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
622 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
625 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
627 * src/SDCCsymt.h: a missing part of my last change
628 * src/pic/ralloc.c (regTypeNum),
629 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
631 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
634 * src/SDCCicode.c (aggrToPtrDclType),
636 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
637 ptrPseudoSymConvert),
638 * src/pic/ralloc.c (regTypeNum),
639 * src/pic16/ralloc.c (regTypeNum),
640 * src/hc08/ralloc.c (regTypeNum),
641 * src/ds390/ralloc.c (regTypeNum),
642 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
643 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
645 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
647 * link/z80/lkmain.c (afile),
648 * as/hc08/lkmain.c (afile),
649 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
650 prevent a pointer problem when a filename has no directory and
651 no extension specified.
653 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
655 * link/z80/lkmain.c (afile): allow periods in directory names
656 * link/z80/lkmain.c (afile),
657 * as/mcs51/lkmain.c (afile),
658 * as/hc08/lkmain.c (afile): allow linker script file to have an
659 extension other than ".lnk"
660 * link/z80/lklex.c (getfid),
661 * link/z80/lkmain.c (parse),
662 * as/mcs51/lklex.c (getfid),
663 * as/mcs51/lkmain.c (parse),
664 * as/hc08/lklex.c (getfid),
665 * as/hc08/lkmain.c (parse): Support comments in the linker script
666 file on lines by themselves and after filenames
668 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
670 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
672 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
674 * src/z80/peeph-z80.def: removed some peephole rules that don't
675 work with multibyte arithmetic (fixed bug #937126)
676 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
677 to registers and not global variables
678 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
679 geniCodePreInc, geniCodePostDec, geniCodePreDec,
680 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
681 checking for assignments not internally generated (fixed bug #931895)
682 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
683 structure member (fixed bug #930072)
685 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
687 * src/SDCCmain.c (linkEdit),
688 * src/hc08/main.c (_hc08_parseOptions),
689 * as/hc08/Makefile.in,
693 * as/hc08/lkrloc.c (relr, rele),
694 * as/hc08/lkarea.c (lnkarea)
695 * as/hc08/lkmain.c (afile, parse),
696 * as/hc08/lkelf.c: support for ELF output
697 * as/hc08/lks19.c (s19),
698 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
700 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
702 * as/mcs51/lkihx.c: Fixed bug #899105.
704 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
706 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
707 .dsp files from Unix to DOS.
709 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
711 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
712 function pointers; we have been compliant for several months now.
713 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
714 change that was accidently commented out
715 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
716 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
719 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
721 * src/hc08/gen.c: output of all of the internal debugging information
722 is now controlled by the D() macro; it is disabled by default
724 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
726 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
727 harder to keep the same registers during a CAST iCode
728 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
729 long via int can be done in a single cast, if the signedness is
731 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
732 putchar() in tinibios.c in ds390's library
734 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
736 * src/SDCCast.c (decorateType): fixed bug #898889,
737 cast result of a literal complement too
738 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
739 fixed check for bitfields
741 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
743 * src/SDCCicode.c (geniCodeLogic): made it static,
744 (geniCodeLogicAndOr): added in order to fix bug #905492,
745 (ast2iCode): fixed bug #905492
746 * support/regression/tests/bug-905492.c: added
747 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
748 (processParms): fixed bug #927659: don't copy parms, this will clear
750 * support/regression/tests/bug-927659.c: added
752 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
754 * src/SDCCast.c (addCast): don't cast float to char
755 * device/lib/libsdcc.lib: added _memmove
757 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
759 * device/lib/large/Makefile: fixed parallel execution by
760 replacing `make` by `$(MAKE)`
762 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
764 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
765 offsets (fixes bug #923936)
767 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
769 * device/lib/small/Makefile: fixed parallel execution by
770 replacing `make` by `$(MAKE)`
772 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
774 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
776 2004-03-23 Scott Dattalo <scott AT dattalo.com>
778 * src/pic/gen.c (genCpl): multi-byte complements were not working.
779 * src/regression/Makefile: Regression test was not running.
781 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
783 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
784 complement if possible
785 * src/SDCCval.c (valComplement),
786 * src/SDCCicode.c (operandOperation): fixed complement of literal
787 * support/regression/tests/onebyte.c (testComplement): added
789 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
791 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
792 return an optimized tree; actually replace actParm with the new tree
793 * src/SDCCast.h: added some parantheses to remove side effects
794 * support/regression/tests/bug-920866.c
796 2004-03-21 Scott Dattalo <scott AT dattalo.com>
797 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
798 Bit operands were not being handled properly in the pic14 port.
799 (now src/regression/add.c passes again).
801 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
803 * src/SDCC.y (labeled_statement): case and default no longer require
804 a following statement (RFE #893037)
806 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
808 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
809 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
810 disabled (fixes bug #916294)
811 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
812 "mov a,acc"; patch provided by Lenny Story
813 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
815 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
817 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
819 * src/ds390/gen.c (genFunction, genEndFunction),
820 * src/ds390/ralloc.c (ds390_assignRegisters),
821 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
822 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
823 pushed if there are parameters passed on the stack. Also, a cleaner
824 way to decide if r0/r1 should be pushed/popped. (Together they fix
827 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
830 * device/lib/mcs51/crtpagesfr.asm,
831 * device/lib/mcs51/crtxinit.asm,
832 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
833 to avoid confusion with Si Lab's SFRPAGE register.
835 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
837 * src/SDCCglue.c (emitMaps): allow public sfr variables
838 * src/SDCCglue.c (initialComments): include compiler build date
839 with compiler version and put the timestamp of the generated
840 assembly file on a serperate line to be less confusing.
841 * src/port.h: added genInitStartup hook
848 * src/z80/main.c: genInitStartup initialize as NULL (default to
849 historical behaviour)
850 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
851 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
852 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
853 library instead of hard coding it into the compiler.
854 * support/regression/ports/mcs51-stack-auto/spec.mk,
855 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
856 * device/lib/mcs51/Makefile,
857 * device/lib/small/Makefile,
858 * device/lib/large/Makefile,
859 * device/lib/mcs51/crtpagesfr.asm,
860 * device/lib/mcs51/crtstart.asm,
861 * device/lib/mcs51/crtxclear.asm,
862 * device/lib/mcs51/crtxinit.asm,
863 * device/lib/mcs51/crtclear.asm,
864 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
865 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
866 and into user configurable files.
867 * device/lib/clean.mk: clean mcs51 directory too
868 * support/regression/tests/longlit.c: added static to T1 declaration
869 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
870 accesses in the initialization code
872 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
874 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
875 OSCTRIMVAL as noted in bug #916008
877 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
879 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
880 in loops with multiple exits (reported as incorrect registers
881 used by Martin Helmling in Sdcc-user list)
883 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
885 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
886 made ds390 register extensions look less like error messages
888 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
890 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
891 reported by Adam Wozniak in Sdcc-user list
893 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
895 * src/SDCCast.c (decorateType): fixed with bug and promotion in
896 arithmetic optimizations, added debug output
898 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
900 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
901 * sdcc.spec: updated and split sdcc into 3 rpms
902 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
903 needed for literals of LEFT_OP and '+'
904 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
905 introduced RESULT_TYPE_NOPROM
906 (geniCodeMultiply): fixed logic for decision if mul is optimized to
908 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
909 limited promotion to int only for '*'
910 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
912 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
914 * src/pic16/gen.c (genSkip),
915 (genc16bit2lit), (gencjneshort): commented out
916 (is_LitOp): new helper function, checks operand type
917 (genCmpEq): rewritten
919 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
921 * support/regression/tests/bug-908454.c: added
923 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
925 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
926 * src/SDCCicode.c (usualBinaryConversions): op needs int type
927 (geniCodeCast): cosmetic, don't preserve bit storage class
928 (geniCodeLeftShift): added promotion
929 (geniCodeLogic): fixed regression
930 * src/SDCCsymt.c (computeTypeOr): accept bits too
931 (compareType): 2nd part of fix for bug #908454, needed for bitfields
933 2004-03-07 Borut Razem <borut.razem AT siol.net>
935 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
937 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
939 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
940 version of pic16_genPackRegisters which does not check if ic is a
942 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
943 function cause string1.c regression test fails
945 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
947 * sim/ucsim/configure.in,
948 * sim/ucsim/configure,
949 * sim/ucsim/doc/Makefile.in: use docdir
950 * src/SDCC.y: fixed sbit atrributes
951 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
952 * src/SDCCast.c (decorateType): |^& need special promotion handling
954 * src/SDCCsymt.h: moved definition of RESULT_TYPE
955 * src/SDCCsymt.h (computeType),
956 * src/SDCCicode.c: computeType() needs op
957 * src/SDCCsymt.c (checkTypeSanity),
958 * doc/sddman.lyx: "plain" bitfields are unsigned
959 * src/SDCCsymt.c (computeTypeOr): added
960 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
962 * src/SDCCval.c (val*): computeType() needs op
963 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
964 * support/regression/tests/onebyte.c: added tests for |^&
966 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
968 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
969 for writing icode into asm output.
971 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
973 * src/pic16/device.c: added some debug lines enabled
974 with macro DEBUG_CHECK,
975 * src/pic16/genarith.c: more debug in genPlus,
976 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
977 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
978 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
979 * (aopForSym): onStack symbols are re-placed in data memspace,
980 and onStack flag is cleared,
981 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
982 copy temporary pcodeop,
983 * (genPcall): added warning for not updating PCLATU,
984 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
985 always true for pic16 port,
986 * (genMultOneWord): NEW, supports integer multiplication,
987 * (genMult): modified to call genMultOneWord,
988 * (ifxForOp): added warning when return NULL,
989 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
990 flag is set before call to operandFromSymbol for implicit
992 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
993 options.intlong_rent are set by default,
994 * (_hasNativeMulFor): modified to allow port generation of integer
996 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
997 set regtype to REG_SFR for all registers, restricting seting the
998 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
1000 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1002 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
1003 more than 500 times in the regression tests
1005 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1007 * support/Util/SDCCerr.h,
1008 * support/Util/SDCCerr.c,
1009 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
1011 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
1012 for symbol conflicts.
1013 * support/valdiags/tests/enum.c,
1014 * support/valdiags/tests/tentdecl.c,
1015 * support/valdiags/tests/struct.c: expect possible error messages
1016 referring to original symbol definitions.
1017 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
1019 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
1021 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
1023 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
1025 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
1027 * src/pic16/ralloc.c (newReg): fixed bug #908929
1029 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1031 * src/ds390/gen.c: added missing #include "main.h"
1033 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
1035 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
1036 checking if symbol is already in set,
1037 * src/pic16/device.h: prototype for checkAddSym,
1038 * src/pic16/gen.c: (_G): added entry interruptvector,
1039 * (assignResultValue): removed some commented out lines,
1040 * (genFunction): check for ISR via sym->type, absolute section for
1041 interrupt code is created via a new pBlock, the goto instruction is
1042 placed now correctly at the interrupt vector position, changed all
1043 references from ivec to _G.interruptvector,
1044 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
1045 is the interrupt is a high priority one, same for return from ISR,
1046 * src/pic16/glue.c: changed all calls of addSetHead for publics and
1047 externs to calls of checkAddSym,
1048 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
1049 pic16_pcode_verbose flag is set,
1050 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
1051 * src/pic16/pcoderegs.c: message about how many registers are saved
1052 will only be emitted if pic16_pcode_verbose flag is set,
1054 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1056 * src/ds390/ralloc.h,
1057 * src/ds390/ralloc.c (ds390_regWithIdx),
1058 * src/ds390/gen.c (emitcode),
1060 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
1061 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1062 ds390operandCompare, getRegsRead, getRegsWritten,
1063 initializeAsmLineNode): customized instruction size calculation for
1064 ds390, started basis for some register optimizations
1065 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
1066 corresponding assembly output
1067 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
1068 missing push/pop of r0/r1. Optimized push/pops
1070 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1072 * src/mcs51/main.c (instructionSize): fixed ACALL size
1073 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
1075 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
1077 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
1078 the sorting of rlist with NULL elements
1079 * (print_idataType, print_idata): NEW to create idata sections
1080 * src/pic16/device.h: idataSymSet new variable
1081 * src/pic16/gen.c (genFunction): fixed some bugs in string
1082 comparing, improved the absolute section creation for ISRs,
1083 added FSR0L/FSR0H in registers that are saved in an ISR,
1084 * (genInline): fixed the processing of inline snippets,
1085 now they undergo no process by the peephole optimizer
1086 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
1087 are placed in idataSymSet,
1088 * (pic16emitStaticSeg): extern symbols are added in externs,
1089 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
1090 switching when aboslute variables are placed in access bank memory
1091 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
1092 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
1093 commented out with #if,
1094 * (pic16_packRegisters): reintroduce the check for CAST because some
1095 symbols are not correctly handled,
1096 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
1097 pCodeInstruction instead of pCode,
1098 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
1099 pCodeAsmDir definition,
1100 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
1101 directive, then the argument directive is emitted without the leading
1102 tab, hack for inline labels which must be in the first column,
1103 * (compareLabel,pic16_findNextInstruction),
1104 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
1105 * (insertBankSwitch): modified for the new pCodeAsmDir,
1107 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1108 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
1110 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
1112 * (pushSide): commented out with #if,
1113 * (assignResultValue): fixed some typos in saving
1115 * (genPcall): FIXED and sync'ed with genCall,
1116 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
1117 * (genNearPointerGet): fixed to handle some more cases,
1118 implementation scheme via table reads,
1119 * (genConstPointerGet): modified to access code memory correct,
1120 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
1121 and improved to handle some cases
1122 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
1123 instead of "RETLW" for init data
1124 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
1125 not IN_DIRSPACE, work around to reduce bank switching when aboslute
1126 variables are placed in access bank memory (<0x80 and >=0xf80),
1127 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
1128 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
1129 TBLWT_POSTDEC,TBLWT_PREINC
1130 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
1131 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
1133 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
1134 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
1135 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
1136 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
1138 2004-02-29 Borut Razem <borut.razem AT siol.net>
1140 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
1141 support/Util/findme.h, support/Util/system.h: enhance binary relative
1142 search for lib and include by using findProgramPath()
1144 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1147 * src/SDCCpeeph.c (pcDistance),
1149 * src/mcs51/ralloc.h,
1150 * src/mcs51/ralloc.c (mcs51_regWithIdx),
1152 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
1153 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1154 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
1155 size calculation port specific, started basis for some register
1157 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
1158 missing push/pop of r0/r1. Optimized push/pops
1159 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
1160 * device/lib/_modsint.c (_modsint),
1161 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
1162 and stack version so regression tests pass
1164 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
1166 * src/Makefile.in (dep): include SLIBOBJS in dependency check
1167 * src/SDCCast.c (decorateType): catch another small optimization
1169 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
1170 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
1171 modified to finally use computeType() all over SDCC,
1172 see Feature Request #877103
1173 * src/SDCCval.h: cosmetic
1174 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
1175 valCompare(); regression tested in muldiv.c
1176 * support/regression/tests/muldiv.c (testMod): mod sign follows
1179 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
1181 * src/SDCCast.c (decorateType): fixed bug #902362
1182 * doc/INSTALL.txt: fixed install instructions for win32
1184 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
1186 * device/include/Makefile.in (install): fixed by replacing spaces
1189 * doc/INSTALL.txt: updated for release
1190 * doc/sdccman.lyx: added warning for --xstack being buggy
1192 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
1194 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
1195 to eliminate build warnings.
1196 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
1198 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
1199 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1201 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
1202 removed -penable-stack, added comment for stack pragma, added
1203 warning for not initializing the stack/frame registers, removed
1204 comment at interrupts section
1206 Stack is made permanent, there is no ability to disable stack usage.
1207 * src/pic16/device.h,
1208 * src/pic16/device.c: removed all references to USE_STACK macro,
1209 * src/pic16/device.c (pic16_dump_section): when no elements in
1210 rlist, free rlist before return,
1211 * (pic16_dump_int_registers): NEW, internal registers are a new set
1212 of general purpose registers reused by each function,
1213 * (checkAddReg): returns 1 if registers is added to set,
1214 * (pic16_groupRegistersInSection): when a registers is of type
1215 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
1216 * src/pic16/device.h: memRange and Assigned Memory are deleted,
1217 SRCASECMP macro is moved here from device.c
1218 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
1219 PO_PCLATU, PO_PRODL, PO_PRODH,
1220 * (pic16_pCodeOpType, genMinus,
1221 changed compares to "a" register, with AOP_ACC,
1222 * (pic16_genPlus): fixed some bugs and indented properly,
1223 * (pic16_addSign): changed size to size+offset in the MOVWF
1225 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
1226 multiply 8-bit operand by literal, result is 8-bit,
1227 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
1228 multiply 2 8-bit operand, result is 8-bit,
1229 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
1231 * src/pic16/gen.c: changed accUse to contain WREG only,
1232 * (pic16_emitcomment): renamed to pic16_emitpcomment,
1233 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
1234 true, do not use immediate addressing any more unless sym is a
1235 pointer in codespace,
1236 * (aopForRemat): do not use immediate addressing when symbol not in
1237 codespace and when symbol's address is requested,
1238 * (aopOp): for-loop in if(sym->accUse) is modified for the new
1240 * (aopGet): added case for AOP_ACC and don't return "accumulator
1241 bug" but WREG instead,
1242 * (popGetTempReg): pushes contents of temporary register in stack,
1243 * (popReleaseTempReg): pops contents of temporary register from
1244 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
1245 * (pic16_popGet): separated case AOP_ACC to return register WREG
1246 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
1247 or PO_IMMEDIATE and initializes their instance/offset appropriately,
1248 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
1249 the use of immediate pointers to certain cases only.
1251 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
1252 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
1253 * (assignResultValue, genCall, genRet): modified to use the new
1254 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
1255 genPcall is still broken,
1256 * (genFunction): added code to create 'A' type pBlocks when
1257 interrupt functions are generated, code not extensively tested yet,
1258 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
1259 * (genEndFunction): modified so ISRs pop stored registers from stack,
1260 * (genMultOneByte): cleanup,
1261 * (AccRsh): added flag andmask, to and result with appropriate mask,
1262 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
1263 * (genDataPointerGet): fixed and reenabled its use,
1264 * (genNearDataPointerGet): bugs fixed,
1265 * (genDataPointerSet): bugs fixed,
1266 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
1267 pic16_DumpSymbol, pic16_DumpOp,
1268 * src/pic16/genutils.h: function prototypes for the above functions,
1269 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
1271 * (pic16emitRegularMap): many many many improvements, but needs a
1273 * src/pic16/main.c: enable_stack in pic16_options is removed,
1274 * (_pic16_parseOptions): removed command line options -penable-stack,
1275 * (_process_pragma): emit stack symbol only when stack pragma is
1277 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
1278 redirected to FSR0L/FSR0H pair,
1279 * (pic16_get_op, pic16_get_op2): modifications and improvements,
1280 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
1281 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
1283 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
1284 * (dumpPicOptype): NEW,
1285 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
1286 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
1287 with movff instruction,
1288 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
1289 added pic16_int_regs, some packRegsFor* functions are commented out,
1290 because produce errors,
1291 * src/pic16/NOTES: minor modifications
1293 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1295 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
1296 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
1298 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
1299 * as/mcs51/lkaomf51.c: fixed bug #895763
1301 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
1303 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
1305 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1307 * doc/sdccman.lyx: added details about the HC08 storage classes and
1308 interrupts, fixed the register usage info for z80 & gbz80
1310 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
1312 * doc/sdccman.lyx: added more pic16 port documentation
1313 * device/include/pic16/: added header pic18fregs.h
1315 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
1317 * doc/sdccman.lyx: added Vangelis' contribution
1319 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1321 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
1322 extend to the next CALL or PCALL, not just to the next CALL.
1324 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
1326 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
1328 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1330 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
1331 bug #895752 and a better fix for bug #716790
1333 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1335 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
1337 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1339 * doc/sdccman.lyx: minor changes, minor changed
1341 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
1343 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
1344 which can't handle SDCC_NEWONEBYTEOPS,
1345 (geniCodeMultiply): removed conversion from mult to shift for pic14
1348 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1351 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
1352 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
1353 thus fixing bug #895406
1355 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
1357 * device/lib/_modsint.c,
1358 * device/lib/_modslong.c: sign follows divisor only
1359 * src/hc08/gen.c (genMultOneByte): if result size is 1,
1360 signs or signedness can be ignored
1361 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
1362 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
1363 added optimization for IFX,
1364 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
1366 reenabled optimization for IFX, which was removed on 2004-01-11
1367 * src/SDCCast.h: added return type IFX
1368 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
1369 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
1370 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
1371 SDCC_OLDONEBYTEOPS selects the old behaviour
1372 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
1373 changed again and commented promotion rule
1374 * src/SDCCval.c (valDiv): promotion no longer necessary
1375 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
1376 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
1378 * support/regression/tests/onebyte.c: added
1380 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
1382 * gen.c (genInline): reverted to old code for assemnling inline
1383 code because of bug reported James Chadd
1385 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
1387 * ralloc.h: missing declarations from previous patch,
1388 seems that patch for ralloc.h was never applied, fixed
1390 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1391 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1395 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
1396 indirect addressing. Marked FSR0 as deprecated
1397 * gen.c (pointerCode): commented out, not needed now
1398 (pic16_popGet2p): new MOVFF helper function
1400 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
1401 (shiftRLong): removed duplicate debugging info
1403 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1405 * src/ds390/gen.c (genNearPointerGet),
1406 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
1407 optimization with bits, but not bitfields.
1408 * src/ds390/ralloc.c (packRegisters),
1409 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
1411 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1413 * src/SDCCcse.c (algebraicOpts): copy operands before modification
1415 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1418 * src/SDCCicode.c (operandFromSymbol),
1419 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
1420 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
1421 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
1422 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
1423 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
1424 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
1426 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
1427 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
1428 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
1429 * src/SDCCsymt.c (newSymbol),
1430 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
1433 * src/SDCCval.c (newiList): fixed bug #885705
1435 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1437 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
1438 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
1440 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1442 * device/include/c8051f120.h,
1443 * device/include/c8051f300.h,
1444 * device/include/c8051f310.h: added/updated header files for Silicon
1445 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
1446 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
1447 in new section Submitting patches
1449 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1451 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
1452 genFarPointerGet, genCodePointerGet, genGenPointerGet,
1453 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1455 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
1456 genFarPointerGet, genCodePointerGet, genGenPointerGet,
1457 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1459 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
1460 genFarPointerGet, genCodePointerGet, genGenPointerGet,
1461 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1463 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
1464 genFarPointerGet, genCodePointerGet, genGenPointerGet,
1465 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
1466 genGenPointerSet): fixed bug #892400
1467 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
1468 to eliminate build warnings.
1469 * src/SDCCast.c (processParms),
1470 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
1472 * support/valdiag/valdiag.py: added GCC to the list of defines active
1473 when compiling with gcc
1475 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1477 * support/Util/SDCCerr.h,
1478 * support/Util/SDCCerr.c,
1479 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
1480 with an incomplete type (fixed bug #883734)
1481 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
1483 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
1487 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1489 * src/SDCCast.c (decorateType),
1490 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
1491 function pointer implementation
1492 * support/regression/tests/funptrs.c: added tests to verify both forms
1493 of function pointers work correctly. Added tests to verify parameters
1494 are passed in the correct order.
1496 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
1498 * device.c (regCompare): registers are sorted by ascending
1499 address and increasing size,
1500 * main.c (_pic16_finaliseOptions): removed the declaration
1501 of compiler macro MCU. Now a macro of the format pic18fxxxx
1502 will be defined from the command line
1504 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1505 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1507 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
1508 PCOP_RLCF was overwritten!
1509 * gen.c (genSkip): commented out calls to pic16_emitcode,
1510 * (genCmpEQ): fixed "long" compares, only high word did get compared,
1512 * (genRRC): added debugging info,
1513 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
1514 overwritten while shifting,
1515 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
1516 overwritten while shifting,
1519 * (shiftLLeftOrResult),
1520 * (shiftRLeftOrResult),
1522 * (shiftLLong): Implemented with pic16_emitpcode
1523 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
1524 * (genLeftShift): Fixed bug, operand for shift by variable always
1525 was "and"ed with 0x0f,
1526 * (genLeftShiftLiteral),
1528 * (genRightShiftLiteral): added debugging info,
1529 * (genrshFour): added comment,
1530 * (genRightShift): determined signedness from operand "left"
1533 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1535 * src/SDCCicode.c (geniCodeParms),
1536 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
1537 function pointers, fixed function pointer bugs #861242 and #861896
1539 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1541 * device/include/c8051f000.h,
1542 * device/include/c8051f120.h,
1543 * device/include/c8051f300.h: added header files for Silicon
1544 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
1546 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
1548 * src/SDCCast.c (processParams): added new type flow and restructured
1549 (gatherAutoInit): added new type flow
1550 (addCast): cosmetic changes
1551 (getLeftResultType): added new type flow for array indices, patch
1552 provided by Stas, see FR #877103
1553 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
1554 array index patch by Stas
1555 * src/SDCCast.h: added prototype getResultTypeFromType()
1557 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
1558 * src/pic/glue.c (pic14emitStaticSeg),
1559 * src/pic16/glue.c (pic16emitStaticSeg),
1560 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
1561 for initialization of symbols
1562 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
1563 * support/Util/SDCCerr.h:
1564 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
1565 * .version: bumped version number to 2.3.8
1566 * device/include/Makefile.in (install),
1567 * doc/Makefile (install): changed to 'rm `find ...`' construct to
1570 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
1572 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
1573 Slade Rich fixed an optimization bug
1574 * src/pic/pcodepeep.c,
1575 * src/pic/pcoderegs.c
1576 * doc/Makefile (install): added test for directory
1578 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1580 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
1581 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
1582 * src/pic/ralloc.c (getRegPtr, getRegGpr),
1583 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
1584 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
1585 * as/mcs51/asexpr.c (term),
1586 * as/hc08/asexpr.c (term): fixed bug #887146
1588 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1590 * src/z80/gen.c (genMult): handle single byte result product
1591 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
1592 DUMMY_READ_VOLATILE (fixed bug #886367)
1594 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1596 * support/regression/tests/libmullong.c: fixed logic, on little endian
1597 hosts we ended without a mullong_wrapper()
1599 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1601 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
1602 virus/worm forged address usage.
1604 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1606 Fixed promotion, it should be done on AST level:
1607 * src/SDCCast.c (addCast): added promotion to int
1608 (decorateType): updated call to upCast()
1609 * src/SDCCicode.c (geniCodeLeftShift): removed call to
1610 usualUnaryConversions()
1612 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
1614 * support/regression/tests/literalop.c (mulWrapper): Added a
1615 wrapper to remove integer overflow warnings.
1617 * support/regression/tests/float_trans.c: Made work on host.
1619 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
1622 * support/regression/generate-cases.py (main): Changed from inline
1625 * doc/Makefile (install): Changed to depth first to get rid of
1626 missing directory install warning.
1628 * as/Makefile (install-doc): Made work on Mac.
1630 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
1632 * src/SDCCast.c: added an additional type flow in decorateType() of
1633 opposite direction, see feature request #860006; it's enabled at runtime
1634 by setting the environment variable SDCC_NEWTYPEFLOW
1635 * src/SDCCast.h: changed prototype of decorateType()
1636 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
1637 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
1638 'char' to 'int' can be omitted, if both operands are 'unsigned char';
1639 see feature request #877103
1640 * src/SDCCval.c: updated call of decorateType()
1641 (valBitwise): fixed bug #882876
1642 (valMinus): added promotion
1643 (valLogicAndOr): result is unsigned
1644 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
1645 * src/SDCCsymt.c (computeType),
1646 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
1647 must not cause an unsigned operation
1648 * src/pic/glue (pic14emitRegularMap),
1649 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
1651 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
1653 * src/pic/pcode.c (PCodeID): commented out left over debug code
1655 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1657 * support/valdiag/tests/overflow.c: added shift tests
1665 * src/pic/pcodepeep.c,
1666 * src/pic/pcoderegs.c,
1668 * src/pic/ralloc.h: applied patch from Slade Rich;
1669 added support for multiple code pages and multiple RAM banks on the
1670 PIC 14 port. The ASM files now no longer simply assume all the
1671 code / RAM are in the same page / bank. This means the linker can
1672 safely allocate code/RAM of separate ASM files to different pages/banks.
1673 * doc/sdccman.lyx: added Slade's tips
1674 * src/mcs51/peeph.def: fixed bug #880768
1676 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1678 * src/hc08/ralloc.c (rematStr): fixed bug #879282
1679 * src/SDCCast.c (decorateType): fixed bug #880197
1681 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
1683 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
1686 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
1687 strtof is not part of C89 and isn't included with Mac OS X.
1689 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1691 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
1692 shiftL2Left2Result): fixed bug #879326
1693 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
1694 (genMultOneByte): fixed bug in signed vs unsigned multiplication
1695 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
1696 address fetch for clr instruction
1697 * device/lib/hc08/_mulint.c: created optimized assembly version
1698 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
1700 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1702 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
1703 proposed in FR #877103
1705 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1707 * src/SDCCval.c (cheapestVal): added missing checks
1708 * src/SDCCicode.c (usualBinaryConversions): fixed condition
1709 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
1711 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
1713 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
1716 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
1718 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
1719 loaded with the linker search paths (-L arguments) and the libraries
1720 to be linked with the current source (-l arguments). Changes
1721 currently will affect only the pic16 port.
1722 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
1723 include path the port specific paths and port specific libraries,
1724 * gplink command now contains the $3 argument,
1725 * src/pic16/device.h,
1726 * src/pic16/device.c,: structure PIC_device is made public and
1727 renamed to PIC16_device, the same for variable Pics which is renamed
1728 to Pics16. Updated all references to them.
1729 * src/pic16/glue.c (pic16glue): corrected bug with code
1730 initialization which bypassed the variable initializations block.
1732 * device/lib/pic16/Makefile.rules: removed --penable-stack from
1733 COMPILE_FLAGS and added the --nostdinc option
1735 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1737 * device/include/mc68hc908jb8.h: Register defs for another member
1738 of the hc08 family. Contributed by Bjorn Bringert - thanks!
1740 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
1742 Documenting changes from previous commits.
1743 * configure.in (version 1.56),
1744 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
1745 when generating output files to configure the pic16 library,
1746 but now I've commented it out, since gputils aren't installed in the
1747 SF compile farm, so library won't compile
1749 * device/lib/Makefile.in (version 1.56): initially I've added in
1750 target 'all' the prerequestive 'model-pic16' so it compiled the
1751 pic16 library, but now I've commented it out for the same reasons
1753 * added targets 'model-pic16' and 'objects-pic16' to compile the
1755 * added target 'port-specific-objects-pic16' to handle the
1756 generated libraries and copy them into the build/ directory
1757 * added target 'clean-intermediate-pic16' to clean intermediate
1758 files into pic16 directory
1759 * in target 'installdirs' added line to create directory pic16 in
1760 the installation path
1762 * device/include/Makefile.in (version 1.11): in target 'install'
1763 added lines to copy all header files to installation path,
1764 * in target 'installdirs' added line create directory for pic16
1765 headers in the installation path
1767 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
1769 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
1772 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
1775 * device/lib/configure.in,
1776 * device/lib/configure: fixed for autoconf 2.57
1778 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1780 * src/z80/main.c (_parseOptions): fixed the portmode= command line
1781 option so that it actually works. Made it specific to the z80, since
1782 the gbz80 doesn't have these kinds of I/O ports.
1784 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1786 * device/include/z180.h,
1787 * device/lib/_memcpy.c,
1788 * device/lib/_memmove.c,
1789 * device/lib/_mulint.c,
1790 * device/lib/ser_ir.c,
1791 * device/lib/ser_ir_cts_rts.c,
1792 * device/lib/_strcmp.c,
1793 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
1794 * src/z80/main.c (_process_pragma): add support for pragmas bank and
1795 portmode; added deprecation warning for bank= and protmode= forms.
1796 Also, guard against buffer overflow.
1797 * src/z80/gen.c (aopGet): generate better code for sfr banked read
1799 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1801 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
1802 changed interrupt vector table generation to only emit declared vectors.
1803 * device/include/Makefile.in: added missing backslash
1804 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
1806 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1808 Mainly changes to support compilation of the device libraries
1809 * src/pic16/device.c: stack is allocated via symbol and not
1810 via literal number. The symbol is placed in the corresponding
1811 position of the data ram
1812 * (pic16_dump_section): relocatable and absolute uninitialized
1813 data are now emitted in sorted order to reduce section naming,
1814 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
1815 weren't marked as being in the access bank,
1817 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1819 Added portion of GNU PIC Library under the directory
1820 device/include/pic16 and device/lib/pic16. These files
1821 contain the declarations of SFRs for the PIC18Fxx2 devices.
1822 The directory is initialized via configure from toplevel.
1824 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
1826 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
1827 the spilllocations to be compared correctly
1829 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1831 * src/SDCCast.c (decorateType): fixed bug introduced today
1833 2004-01-12 Borut Razem <borut.razem AT siol.net>
1835 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
1836 doc/sdccman.lyx: upper case pragmas are deprecated
1838 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1840 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
1841 in simpler and even better code
1843 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
1845 * src/SDCCicode.c (operandOperation): fixed bug #874819
1846 * src/SDCCast.c (decorateType): fixed
1847 char foo (unsigned long ul) { return ul > 0; }
1849 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1851 * doc/sdccman.lyx: Moved and added some sections, small changes
1852 all over. Telling LaTeX to be less strict with word spacing
1853 to better keep the right margin. Changed some notes about
1854 maintainance of the ports in section 3.2.1 - is it OK like this?
1856 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1858 SDCC source changes:
1859 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
1860 convilong): modified to inform the pic16 port that builtin functions
1863 PIC16 PORT specific changes:
1864 * src/pic16/device.c pic16_dump_equates() added,
1865 processor registers declared internally by the port are emitted in
1866 the translation as equates,
1867 * src/pic16/gen.c: inline code is passed unprocessed to the
1869 * (pic16_popGetLit2): fnuction modified to take second operand as
1870 pCodeOp pointer and not as literal,
1871 * (popRegFromIdx): prefixed with pic16_,
1872 * (pic16_popCombine2): modified to receive already allocated pCode
1874 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
1875 * (genFunction): initializes local stack frame and pushes on stack
1876 all the registers used by this function,
1877 * (genEndFunction): restores all registers from stack and restores
1879 * src/pic16/glue.c (pic16emitRegularMap): various changes and
1881 * (pic16glue): changed the program startup sequence,
1882 * added new dbName code 'A' for functions placed in absolute section
1883 * src/pic16/main.c: added function attribute _naked,
1884 * added pragma 'code' to place a fnuction at an absolute address,
1885 * added command line arguments --debug-ralloc and --pcode-verbose,
1886 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
1887 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
1888 * (pic16_newpCodeOpLit2): modified to take the second operand as
1890 * (pic16_printpBlock): modified to emit each function in a separate
1892 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
1893 UPPER for immediate operands,
1894 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
1896 * src/pic16/peeph.def: all peepholes with movff are commented out,
1897 because there is a problem in the pcode peep optimizer,
1898 * src/pic16/ralloc.c: the register allocator can now reuse local
1899 function symbols for another function. This saves register usage.
1900 * src/pic16/ralloc.h: added flag isLocal in structure regs,
1902 Added file src/pic16/NOTES with information about program writing on
1903 the current port version.
1905 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1907 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
1908 and peephole 252 (array access)
1910 2004-01-09 Borut Razem <borut.razem AT siol.net>
1912 * src/SDCCmain.c : fixed #872250: -l command line defined library
1913 files are scanned before standard library files
1915 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1917 * src/SDCCast.c (decorateType): fixed bug #874046
1919 2004-01-09 Borut Razem <borut.razem AT siol.net>
1921 * support/scripts/sdcc.nsi: remove previous installation
1923 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1925 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
1926 bytes for last interrupt vector (mcs51)
1927 * sdcc.spec: fixed typo
1929 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1931 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
1932 gen51Code): more efficient parameter receive for --model-large
1935 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1938 * src/z80/main.c: added missed needLinkerScript flags (more than
1939 one port structure defined in these file)
1940 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
1943 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
1945 * src/SDCCmain.c: removed various references to DEFAULT_PORT
1946 * src/port.h: added flag needLinkerScript in port->linker
1947 structure to inform whether to create a .lnk file or not,
1955 * src/z80/main.c: changed appropriately to configure
1956 needLinkerScript flag
1958 * src/pic16/gen.c (genAddrOf): fixed bug #863624
1959 * src/pic/glue.c: added variable udata_section_name to
1960 override default uninitialized data segment definition for
1961 devices only with SHAREBANK memory (reported from Erik Epetrich)
1962 * (pic14emitOverlay): modified to emit a commented overlay segment
1963 directive when no overlay data exist
1964 * (picglue): modified to emit uninitialized data segment
1965 according to udata_section_name
1966 * src/pic/main.c (_pic14_parseOptions): added command line
1967 options --udata-section-name=[name] to override default
1968 udata definition name
1969 * modified _linkCmd and _asmCmd to include compiler passed
1970 arguments via -W option
1971 * src/pic16/main.c: added $l in _asmCmd, changed extension for
1972 object file from '.rel' to '.o' in port->linker structure,
1973 changed size of fptr from 2 to 3 in port structure
1975 2004-01-07 Borut Razem <borut.razem AT siol.net>
1977 * support/scripts/sdcc.nsi: update PATH
1978 * support/scripts/sdcc.ico: craeted
1980 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
1982 * device/include/Makefile.in: fix install
1983 * doc/Makefile: fix install
1985 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1987 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
1989 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
1990 how the function variable allocation summary is displayed; also
1991 include information about variables allocated to the overlay
1994 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1996 * as/mcs51/lkmain.c: Help about -Y option
1997 * as/mcs51/lkarea.c: Fixed gcc warnings
1999 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2001 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
2003 * support/valdiag/tests/overflow.c: added
2004 * src/SDCCast.c (decorateType),
2005 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
2006 LEFT_OP (left shift)
2008 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2010 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
2011 (default behaviour).
2013 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2015 A python script to validate compiler diagnostic messages. It can be
2016 used to verify that sdcc complains about bad c source code and
2017 gives a good location of the error.
2018 * support/valdiag/Makefile,
2019 * support/valdiag/valdiag.py,
2020 * support/valdiag/tests/*
2022 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2024 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
2025 * src/SDCCsymt.c (newEnumType),
2027 * support/Util/SDCCerr.c,
2028 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
2030 * support/regression/tests/enum.c: added test for enum values that
2031 require at least 2 bytes of storage.
2033 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2035 * src/common.h: added ifndef/define/endif macros
2036 around the header file.
2037 Bug reported from Jesus Calvino-Fraga
2039 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2041 * sdcc.spec: updated
2042 * device/include/Makefile.in: don't install CVS directories
2043 * device/lib/Makefile.in: added removal of CVS directories after install
2044 * doc/Makefile: fixed install, added local_icons
2045 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
2046 * src/mcs51/gen.c (genRightShift): fixed bug #870788
2047 * src/ds390/gen.c (genRightShift): fixed bug #870788
2048 * src/SDCCast.c (decorateType): fixed bug #870781
2050 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2052 PIC16 port related changes:
2053 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
2054 added variable stackPos,
2056 * gen.c: genCall, assignResultValue: added support for
2057 pushing/retrieving function parameters to/from stack,
2058 genFunction,genEndFunction: setup stack frame for the
2060 genAddrOf: will be changed according to bug 863624
2062 * added files genutils.c and genutils.h which contain gen*
2063 debugged and optimised functions extracted from gen.c
2065 * glue.c: added variable 'externs' which holds extern symbols,
2066 pic16emitRegularMap: is modified to properly handle relocatable
2067 symbols under the new scheme,
2068 pic16createInterruptVect: is modified
2069 pic16printPublics: is modified to emit 'global' assembler directives,
2070 added pic16_printExterns to print extern symbols,
2071 pic16glue: initializes stack/frame pointer in the beginning of
2072 the assembly output. Temporary hack, will be corrected later,
2073 because gplink yet does not support stack and SDCC does not
2074 yet support a type of crt0.o object to create the final binary.
2076 * Removed many lines that contain 8051 legacy code.
2077 * The code is finally placed under a 'code' directive.
2078 * Added port specific options.
2080 * _process_pragma: simplified since now we do not need *special*
2081 include file to define SFR registers. But a separate header
2082 will be needed. This will be developed later.
2083 * _pic16_parseOptions: added, parses port specific options:
2084 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
2085 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
2086 --preplace-udata-with=
2088 * _pic16_setDefaultOptions: modified to initialize section names,
2089 but hack is temporarly out of order since it needs improvement.
2090 * _pic16_genAssemblerPreamble: configuration words are emitted by
2091 their address instead of their name. This part is incomplete and
2092 supports only the 18Fxx2 devices. Other devices will emit an error
2093 during assembly since they do not contain the same set of config
2095 * _pic16_genIVT: is modified,
2097 * pcode.c: added definitions for some hardware registers that are needed
2099 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
2100 All PCI entries are updated. Now LFSR is supported.
2101 * Removed pic16_pciTRIS is mentioned by mdubuc in source
2102 * added pic16_newpCodeOpLit2 to support instructions with
2103 two literal arguments
2104 * pic16_pCode2str: corrected code that emits assembler instructions
2105 with two literal operands and those that have an access bit modifier
2106 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
2107 this fixes a bug which caused some labels to be lost, when an
2108 assembler directive was added, i.e. banksel,
2109 * pic16_FixRegisterBanking: improved logic that causes the insertion
2111 * InlineFunction: functions that are called once, are not any more
2112 inlined. This can be a port option in the future,
2114 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
2116 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
2117 hold the corresponding uninitialized symbols,
2118 * pic16_allocProcessorRegister: registers have explicit marked the
2120 * pic16_allocInternalRegister: registers are explicit marked as
2122 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
2123 processing list, so bit registers were lost,
2126 * ralloc.h: added field 'accessBank' and original symbol operand
2127 in register definition,
2128 * removed the field isMapped from register definition,
2130 ** Several functions have been removed from various sources:
2131 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
2132 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
2133 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
2134 pic16_assignRelocatableRegisters
2136 ** others have been introduced:
2137 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
2138 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
2140 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
2142 * support/scripts/inc2h.pl: changed definition of BIT_AT
2143 to emit 'sbit at' instead of 'bit at'. This was a request.
2145 PIC16 port related preliminary changes:
2146 * gen.c: prefixed function popRegFromString with
2147 pic16_ and all references to it corrected
2148 * pcode.c: all pic16_pc_* hardware registers prefixed
2149 with underscore (_),
2150 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
2151 * ralloc.c: newReg(): when register is REG_SFR then
2152 set address to rIdx,
2153 pic16_allocProcessorRegister(): marks register wasUsed=0
2154 pic16_writeUsedRegs(): added a call to assign processor
2155 registers via pic16_assignFixedRegisters
2157 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2159 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
2160 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
2161 variables in unused register banks. Also the SSEG is placed
2162 wherever there is enough space for it, and IDATA can be anywhere
2163 in internal RAM. For now compile using -Wl-Y[stack_size].
2164 The mem file is different for this option as well, since it
2165 makes no sense of talking about DSEG lenght.
2167 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
2169 * src/SDCClrange.c: fixed bug 869095 that caused segfault
2170 in certain cases, e.g. when ROM assignment, patch provided
2171 from Albert den Haan.
2173 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2175 Many signedness and type propagation fixes:
2176 * src/SDCCicode.c: made geniCodeCast() static
2177 replaced SPEC_ by IS_ (cosmetic)
2178 (operandOperation): fixed div and mod operation
2179 (usualBinaryConversions): added support for promotion of char
2180 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
2181 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
2182 (geniCodeAdd): an array index will stay unsigned, even if promoted
2184 (geniCodeArray): ditto
2185 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
2186 * src/SDCCsymt.c (computeType): added more support for char;
2187 promotion of char is selectable by promoteCharToInt, fixed signedness
2189 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2190 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2191 * src/SDCCval (val*): replaced signedness calculation by
2193 rearranged if-branches (cosmetic)
2194 (valShift): added warning W_SHIFT_CHANGED
2195 (valCompare): fixed problem with different types
2196 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
2197 * support/regression/tests/literalop.c: added many cases
2198 * support/regression/tests/ast_constant_folding.c: changed finally to
2200 * .version: new year, new version: 2.3.7
2201 * src/SDCCmain.c (main): applied patch #866468
2202 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
2203 provided by Scott Bronson
2204 * doc/sdccman.lyx: updated documentation for sdcdb
2205 updated and added chapter tips
2207 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2209 * src/SDCCsymt.h: missing from yesterday's commits
2211 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2213 * src/SDCC.y (struct_or_union_specifier),
2214 * support/Util/SDCCerr.c,
2215 * support/Util/SDCCerr.h: verify that struct & union tags are used
2218 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2220 * src/SDCCglobl.h: missing from yesterday's commits
2222 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2224 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
2225 sft_attributes, struct_declaration, parameter_declaration,
2226 type_name, start_block, declaration_list),
2227 * src/SDCC.lex (check_type): support redefinition of typedef names
2229 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2231 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
2232 aligned xdata arrays. Erik helped me with the if clause.
2234 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2236 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
2239 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2242 * src/SDCCast.c (newAst_),
2244 * src/SDCCicode.c (ast2iCode, newiCode),
2246 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
2247 expr, statement, expression_statement, selection_statement,
2248 iteration_statement, expr_opt, jump_statement): foundation for tracking
2250 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
2253 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2255 * support/Util/SDCCerr.c,
2257 * src/SDCCast.c (createCase, createDefault, decorateType),
2258 * src/SDCClabel.c (labelUnreach),
2259 * src/SDCC.y (labeled_statement, jump_statement): More improvements
2261 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
2262 (with thanks to Stas Sergeev)
2263 * device/include/time.h,
2264 * device/lib/time.c (CheckTime): suppress unreachable code warning
2266 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2268 * src/SDCCast.c (createIvalCharPtr),
2269 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
2271 * support/regression/tests/nullstring.c: tests for these two bugs
2273 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2275 * support/Util/SDCCerr.h,
2276 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
2277 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
2278 about storage class and 'at' used inside struct or union
2279 * src/SDCCBBlock.c (iCodeFromeBBlock),
2280 * src/SDCCcse.c (ifxOptimize),
2281 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
2282 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
2283 printIval, emitStaticSeg, emitOverlay),
2284 * src/SDCClabel.c (deleteIfx),
2285 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
2286 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
2287 gatherAutoInit, processParms),
2288 * support/Util/SDCCerr.h,
2289 * support/Util/SDCCerr.c (werrorfl): Support for better error location
2290 reporting for post-parse errors.
2292 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2294 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
2295 implicit casts via union; they don't work on big endian systems
2296 (possible fix for bug #861138)
2298 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2300 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
2301 * src/mcs51/main.c: fixed the fix for bug #737001
2303 2003-12-15 Borut Razem <borut.razem AT siol.net>
2305 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
2307 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2309 * support/makebin/makebin.c: put output in binary mode
2311 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2313 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
2314 xdata and data memory on startup. Set the environment variable
2315 SDCC_NOGENRAMCLEAR to disable this.
2316 * src/mcs51/peephole.def,
2317 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
2318 (allows non-interrupt and interrupt code to safely compete for a resource
2319 without the non-interrupt code having to disable interrupts)
2321 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2323 * src/SDCCicode.c (geniCodeAdd),
2324 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
2325 with valFromType if type might be a pointer and host is big endian).
2326 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
2327 types, not just integer types.
2328 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
2329 multiply defined with mismatching "at" address.
2331 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2333 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
2334 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
2335 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
2336 with embedded nulls (fixed bug #753752)
2338 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2340 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
2341 Apparently this did not see much testing (endless loop)
2343 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2345 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
2347 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2349 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
2350 gracefully handle NULL memmap pointers
2352 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2354 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
2355 instead of deleting the iCode when an operand is volatile
2356 * src/z80/gen.c (genDummyRead),
2357 * src/mcs51/gen.c (genDummyRead),
2358 * src/ds390/gen.c (genDummyRead),
2359 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
2361 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
2362 * src/SDCC.y: fixed bug #850420
2364 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2366 Applied z80 i/o port patch from Peter Townson and fixed some operators
2367 to better handle operands in A register.
2368 * device/include/z180.h
2374 * src/z80/peeph-z80.def
2378 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2380 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
2382 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2384 * device/lib/hc08/_mullong.c: Removed extra #endif
2386 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2388 * sim/ucsim/hc08.src/inst.cc,
2389 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
2391 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
2392 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
2393 * device/include/stdarg.h: fixed varargs for hc08
2394 * device/lib/Makefile.in,
2395 * device/lib/hc08/Makefile,
2396 * device/lib/hc08/_mulint.c,
2397 * device/lib/hc08/_mullong.c: fixed some endian problems
2399 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2401 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
2402 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
2403 * device/lib/_gptrget.c,
2404 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
2406 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2408 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
2409 * src/SDCCast.c (astErrors): fixed bug #846007
2410 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
2412 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2414 * src/SDCCast.c (decorateType): disabled a transformation I added in
2415 revision 1.188 (access to fields of a structure at an absolute address);
2416 it breaks with bitfields, extern declarations, and gcse analysis.
2417 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
2418 could be assigned through a pointer, so don't complain.
2419 * src/SDCCast.c (astErrors),
2421 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
2423 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
2425 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
2426 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
2427 output of __config directives, since gpasm now supports them
2428 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
2429 pre-processor macro, i.e. -DMCU=p18f452
2430 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
2431 and modified to handle 'cast' icode similarly to '=' icode
2432 * src/pic16/device.h (typedef struct PIC_device): added field
2433 'extMIface' to indicate that chip has external memory interface
2434 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
2435 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
2438 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2440 * src/SDCC.y (pointer): fixed bug #846006
2441 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
2442 * src/SDCCast.c (decorateType): fixed bug #846009
2443 * src/ds390/peeph.def,
2444 * src/ds390/gen.c (genAnd, genOr),
2445 * src/mcs51/peeph.def,
2446 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
2448 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2450 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
2457 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
2461 * src/SDCCbitv.c: added function to free a bitvector
2463 * src/SDCClrange.c: added function to recompute the liveranges
2465 * src/ds390/ralloc.c,
2466 * src/hc08/ralloc.c,
2467 * src/mcs51/ralloc.c,
2469 * src/pic16/ralloc.c,
2470 * src/xa51/ralloc.c,
2471 * src/z80/ralloc.c: recompute the liveranges after register packing
2473 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
2475 * src/SDCCloop.c (newInduction): fixed bug #845630
2477 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2479 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
2480 inadvertantly left behind from my 2003-11-12 change
2482 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2484 Updated headers I neglected to commit yesterday.
2488 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2490 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
2491 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
2492 * src/SDCCopt.c (eBBlockFromiCode),
2493 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
2494 the creation of the key hash table from the sequencing so it can be used
2495 earlier (for some GCSE bug fixes still pending)
2497 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2499 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
2500 * support/regression/tests/addsub.c: testing genPlus shortcut
2502 2003-11-15 Borut Razem <borut.razem AT siol.net>
2504 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
2506 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2508 * src/SDCCcse.c (cseBBlock): fixed bug #527779
2509 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
2510 ordering is immaterial.
2511 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
2513 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2515 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
2516 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
2517 (SIGSEV) of bug #840381
2518 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
2519 unlink new file before rename if new and old filenames are the same)
2521 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2523 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
2524 uninitialized variables) for the mcs51. Set environment variable
2525 SDCC_GENRAMCLEAR to test.
2526 xdata initialization slightly shorter
2528 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2531 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
2532 #838241 & 780691 (basicly the same bug)
2533 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
2534 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
2536 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
2538 * src/SDCCmain.c (linkEdit): "fix" #834252
2540 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2542 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
2544 * src/SDCC.y: fixed bug #819403
2546 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2548 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
2549 the reentrant attribute.
2550 * src/hc08/gen.c (genPackBits): added missing stack readjustment
2551 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
2553 * src/SDCCast.c (decorateType): fixed bug with storage class not being
2554 updated during pointer dereference; f.e. ~(((char *)1)*) was being
2555 erroneously reduced to a literal.
2556 * src/hc08/ralloc.c (packRegisters, rematStr),
2557 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
2560 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2562 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
2563 * doc/sdccman.lyx: changed from 'article' to 'book'
2564 * doc/Makefile: readded test_suite_spec and cdbfileformat
2566 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
2568 * device/include/stdlib.h: include malloc.h to comply with ANSI
2569 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
2571 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2573 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
2574 * doc/clean.mk: also remove *.out files
2575 * doc/sdccman.lyx: some additions, larger top/bottom margins
2577 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2579 * src/SDCC.y: fixed bug #837365
2580 * support/regression/tests/bitopcse.c
2581 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
2582 a symbol (might be valop instead)
2583 * device/lib/Makefile.in: added errno.c to HC08SOURCES
2584 * device/lib/clean.mk: added hc08 to the cleaning list
2586 2003-11-04 Borut Razem <borut.razem AT siol.net>
2588 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
2590 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2591 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
2592 malloc is declared in standard stdlib.h
2594 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2596 * device/lib/hc08/Makefile: need to clean .rel not .o files
2597 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
2599 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2609 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
2610 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
2611 tests (which uses the port's oclsExpense function)
2617 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
2619 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2621 * src/SDCCcse.c (ifxOptimize),
2622 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
2623 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
2624 deleting the IFX iCode.
2625 * src/hc08/ralloc.c: reduced unneeded slocs
2626 * src/hc08/gen.c: fixed bug in asmopToBoolean
2628 2003-11-04 Borut Razem <borut.razem AT siol.net>
2630 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
2631 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2632 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
2633 transferred to configure
2635 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
2637 Use headers defined in the C[++] standards:
2638 * sim/ucsim/gui.src/serio.src/fileio.cc
2639 * sim/ucsim/gui.src/serio.src/frontend.cc
2640 * sim/ucsim/gui.src/serio.src/main.cc
2641 * sim/ucsim/gui.src/serio.src/posix_signal.cc
2642 * support/Util/NewAlloc.c
2648 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2650 * Added MSVC projects for hc08 assembler and linker:
2651 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
2652 /as/hc08/link_hc08.dsp
2654 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
2656 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
2658 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
2660 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
2662 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2664 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
2666 2003-10-31 Borut Razem <borut.razem AT siol.net>
2668 * support/cpp2/cpplib.h,
2669 support/cpp2/cpplib.c,
2670 support/cpp2/cpplex.c,
2671 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
2672 to switch _asm block preprocessing on / off. Default is
2673 #pragma preproc_asm +
2675 2003-10-31 Borut Razem <borut.razem AT siol.net>
2677 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
2678 when outputting comment blocks (when executed with -C option) and
2679 _asm (SDCPP specific) blocks
2681 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2683 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
2685 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
2687 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
2689 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
2691 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
2692 * src/SDCCast.c (decorateType): fixed bug #832664
2694 2003-10-31 Borut Razem <borut.razem AT siol.net>
2696 * support\cpp2\cpplex.c: fixed for SDCPP:
2697 comments(when executed with -C option) and _asm blocks
2698 were included even if they where in skipped #if block.
2699 Applied solution from GCC cpp 3.3.2
2701 2003-10-31 Borut Razem <borut.razem AT siol.net>
2703 * src/SDCC.lex: sdcc now understands both formats:
2704 '# <line_number> <file_name>' and
2705 '#line <line_number> <file_name>'
2706 * support/cpp2/cppmain.c: sdcpp now generates the standard
2707 '# <line_number> <file_name>' instead of former
2708 '#line <line_number> <file_name>'
2710 2003-10-30 Borut Razem <borut.razem AT siol.net>
2712 * support/cpp2/cpphash.h,
2713 * support/cpp2/cpplib.h
2714 * support/cpp2/cpplex.c,
2715 * support/cpp2/cppmain.c,
2716 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
2718 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2720 Fixed a number of problems revealed by bug #827883.
2721 * src/SDCCloop.c (loopInvariants): Spill location of the
2722 result operand should be recomputed if extracted from
2723 a loop. Also, don't extract assignments of an iTemp
2725 * src/SDCCast.c (isConformingBody): loop reversal should
2726 not occur if the control variable is involved with a
2727 relational operator.
2729 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2731 * .version: bumped to 2.3.6 to reflect the big improvements
2732 made by Erik and Klaus. Thanks!
2734 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
2736 Replaced the livrange code.
2737 * src/SDCClrange.c: added new LR code
2739 * src/SDCCBBlock.h: removed remainig parts from old LR code
2740 * src/ds390/ralloc.c,
2741 * src/ds390/gen.c: minor fixes to make it work with new code
2743 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2748 * src/hc08/ralloc.c: Fix various warnings related to the hc08
2749 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
2750 (tweaked fix for bug #818696)
2752 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2754 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
2756 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2759 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
2760 * src/mcs51/gen.c (gencjneshort),
2761 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
2762 more efficient (per Scott Bronson's suggestion)
2764 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2766 Extended the semantics of the critical keyword to include
2767 individual statements. See RFE #827755 and #799831
2772 * support/Util/SDCCerr.c
2773 * support/Util/SDCCerr.h
2778 2003-10-19 Borut Razem <borut.razem AT siol.net>
2780 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
2782 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2784 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
2786 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
2787 and predecrement operand is displayed
2789 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2791 * src/SDCCval.c (valMinus): fixed bug #826041
2793 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2795 Some hc08 related updates that I missed earlier
2796 * sim/ucsim/stypes.h
2797 * support/regression/ports/hc08/spec.mk
2799 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2801 New target "hc08" for the Motorola 68hc08 family of micros
2809 * sim/ucsim/hc08.src/*
2810 * sim/ucsim/configure.in
2811 * src/ucsim/configure
2812 * sim/ucsim/packages_in.mk
2815 * device/include/mc68hc908qy.h
2817 * device/lib/Makefile.in
2818 * support/regression/ports/hc08/*
2819 * support/regression/Makefile
2821 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2823 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
2825 * src/ds390/gen.c (genCast): fixed bug #821957
2827 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2829 * device/lib/logf.c: "fixed" overlay bug
2830 * support/regression/ports/host/spec.mk: added m library
2831 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
2832 * support/regression/tests/float_trans: added (for Eric)
2834 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
2836 * src/mcs51/gen.c (genCpl): fixed bug
2837 http://sf.net/mailarchive/message.php?msg_id=6263915
2839 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
2841 * src/SDCCast.c (decorateType): added extended constant folding
2842 * src/SDCCsymt.c (computeType): cleanup
2843 * src/SDCCval.c (valShift): minor optimization
2844 * support/regression/tests/ast_constant_folding.c: added
2846 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2848 * src/SDCCmain.c: removed some unintended changes
2850 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2852 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
2853 * src/z80/gen.c: fixed part of bug #817589
2854 * src/SDCCsymt.c (checkFunction): fixed bug #817895
2856 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
2858 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
2869 * src/ds390/ralloc.c
2871 * src/mcs51/ralloc.c
2873 * src/pic16/ralloc.c
2876 * src/z80/gen.c: removed unused label "release:"
2878 2003-10-06 Borut Razem <borut.razem AT siol.net>
2880 * src/SDCC.lex: removed definition of unused variables
2881 save_optimize and save_options
2883 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2885 * clean.mk: removed '=' in "-maxdepth=1"
2886 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
2887 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
2889 2003-10-06 Borut Razem <borut.razem AT siol.net>
2891 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
2892 my_unput() replaced by unput()
2894 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
2896 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
2897 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
2898 type-punned pointer will break strict-aliasing rules"
2899 Old LR behaviour is again default; Klaus' LR can be choosen by
2900 defining the environment variable LRKLAUS
2904 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
2905 * clean.mk: fixed removal of files in bin/CVS/
2906 * device/lib/clean.mk: fixed removal of directories small and large
2907 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
2909 * src/SDCCval.c: removed superflous test for pedantic
2911 2003-10-05 Borut Razem <borut.razem AT siol.net>
2913 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
2914 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
2915 message "unmatched #pragma SAVE and #pragma RESTORE"
2917 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2919 * doc/sdccman.lyx: various additions and updates (interrupts, inline
2920 assembly, critical functions, atomic, nojtbound)
2922 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
2924 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
2930 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2933 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2935 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2937 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2938 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
2939 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
2941 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2943 * src/z80/gen.c (genRet): fixed bug #524753
2944 * src/z80/gen.c (genCast): fixed internal error on cast from
2946 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
2947 fix for bug #477835 to the z80
2948 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
2949 for tracking iCodes in the peephole optimizer for z80
2951 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2953 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
2954 the other part of bug #814548
2955 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2957 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
2959 * src/SDCCcse.c: fixed part of bug #814548
2961 2003-09-28 Borut Razem <borut.razem AT siol.net>
2963 * src/asm.c: rewrite of printILine() to use temporary file instead
2965 * src/xa51/main.c: commented out declaration of int rewinds
2967 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2969 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
2971 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2973 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
2974 * src/asm.c (printILine): Fixed bug #811015
2976 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2978 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
2981 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2983 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
2984 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
2985 to correctly handle general case of AOP_PAIRPTR
2986 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
2988 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2990 * src/mcs51/ralloc.c (fillGaps),
2991 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
2992 register positioning bug)
2994 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
2996 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
2998 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3000 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
3001 genCodePointerGet, genGenPointerGet, genFarPointerSet,
3002 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
3003 (ralloc doesn't intentionally do this now, but perhaps later)
3004 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
3005 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
3006 register positioning bugs (Fixed bug #762602 and #795325)
3007 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
3009 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
3010 lines that --i-code-in-asm generates
3012 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3014 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
3015 trying to fclose a FILE* that was already closed.
3017 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3019 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
3020 of const struct should be treated as if const themselves)
3022 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
3024 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
3026 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3028 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
3029 Unix (/n) and DOS (/r/n) line terminations.
3031 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3033 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
3036 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3038 * src/mcs51/gen.c (genFunction, genEndFunction),
3039 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
3040 and restore of EA so that stack offsets to parameters are
3041 correct when using both critical and reentrant/stack-auto.
3042 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
3043 size (can be triggered in error if sloc is shared between
3044 different sized objects)
3045 * device/include/float.h: fixed macros to explicitly use
3046 unsigned long where needed
3048 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3050 Feature req. 799831: added code to allow nesting of critical functions
3051 * src/mcs51/gen.c (genFunction, genEndFunction)
3052 * src/ds390/gen.c (genFunction, genEndFunction)
3054 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3056 * src/SDCCsymt.c (sclsFromPtr),
3058 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
3059 support for standard C idiom of memory mapped variables; for
3060 example, *((xdata int*)0x1234) = 1 is now internally equivalent
3061 to xdata int at 0x1234 tempvar = 1.
3062 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
3063 provided by Akiya ISHIDA
3065 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
3067 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
3068 * src/SDCCval.c (constVal): added reduction from int to char
3069 * src/SDCCval.c (valMult, valDiv): fixed sign handling
3070 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
3071 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
3073 * support/regression/tests/shifts.c: fixed
3075 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3077 * src/z80/gen.c (genXor): Fixed bug #805445
3079 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3081 Fixed bug #621531 (const & volatile confusion in the type chain).
3082 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
3083 refer to the const or volatile state of the pointer itself.
3095 * src/pic16/ralloc.c
3096 * support/regression/tests/const.c
3098 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3100 When checking for duplicated modules, use absolute paths
3101 instead of relative paths. Files changed:
3106 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3108 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
3110 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3112 * device/include/string.h: added size_t typedef, changed
3113 prototypes to use size_t, eliminated separate reentrant and
3114 non-reentrant declarations, added _memmove declaration
3115 * device/lib/_memcpy.c: changed to use size_t instead of int,
3116 changed /4 to >>2 to avoid division library call
3117 * device/lib/_memcmp.c,
3118 * device/lib/_memset.c,
3119 * device/lib/_strncat.c,
3120 * device/lib/_strncpy.c,
3121 * device/lib/_strncmp.c: changed to use size_t instead of int
3122 * device/lib/_memmove.c: new file (fixed bug #772294)
3123 * device/lib/Makefile.in: added _memmove.c
3124 * device/lib/z80/asm_strings.s: fixed bug #772290
3125 * support/regression/tests/bitfields.c: attempt to fix host assertion
3126 failure on amd64-unknown-linux2.2
3128 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3130 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
3131 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
3132 * as/z80/asmain.c (main): fixed bug #801766
3134 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
3136 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
3139 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3141 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
3142 reported in bug #800609
3144 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
3146 * Top header beautifications in src/pic16 directory:
3147 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
3148 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
3149 pcoderegs.h, ralloc.c, ralloc.h
3150 * main.c: added top header and GPL license notice
3151 * pcode.c: fixed the if-conditional warning
3153 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
3155 * device/lib/_mullong.c: replaced int by short for gcc
3157 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3159 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
3160 and JUMPTABLE iCodes properly now (worked by accident before)
3161 * src/mcs51/gen.c (leftRightUseAcc),
3162 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
3163 iCode properly now. Use getSize instead of nRegs since a & b
3164 aren't part of the nRegs tally.
3166 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
3168 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
3169 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
3170 before instructions that use the _STATUS register
3172 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
3174 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
3175 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
3176 fetching of the pointer
3177 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
3178 copied from genNearPointerSet()
3179 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
3180 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
3181 If they pop r0/r1 they must be called in the opposite order than aopOp().
3182 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
3183 (resp. --stack-auto), prepared for --xstack
3185 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3187 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
3189 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3191 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
3192 these ports have their own __sdcc_external_start()
3194 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
3196 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3197 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
3198 type for bits was changed. It resulted in bit variables becoming
3199 global, which is not permitted in PIC 14 assembly output.
3201 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3203 * doc/sdccman.lyx: various additions and updates. Rearranged sections
3205 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3207 Z80 and MCS51 linkers complaint if a public symbol is defined
3208 in more than one library module:
3212 * as/mcs51/Makefile.in
3214 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3216 A few small changes that speed up the peephole optimizer.
3220 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3222 Try to make the peephole optimizer smarter by maintaining
3223 an association between the assembly source code and the
3224 iCodes that originated them. Put this information to use
3225 with a new peephole rule condition "notVolatile" so that
3226 the rules can be aggressive yet still safe.
3231 * src/mcs51/peeph.def
3233 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3237 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
3238 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
3239 if the left or right operand symbols have the accuse flag set.
3241 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3243 Changed the type of the result of the ! (NOT) operator to char;
3244 previously it returned the same type as the source. This allows
3245 us to eliminate all the genFloatNot functions (all of its target
3246 implementations were very buggy) since !float can use the same
3249 * src/SDCCicode.c (ast2iCode): ! returns char
3250 * src/mcs51/gen.c (genNot, genNotFloat),
3251 * src/ds390/gen.c (genNot, genNotFloat),
3252 * src/z80/gen.c (genNot, genNotFloat),
3253 * src/pic/gen.c (genNot, genNotFloat),
3254 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
3256 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
3258 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3259 1. Interrupt would not compile properly. Ensure PCLATH register is saved
3260 during interrupts. Ensure WSAVE is located at a shared bank address.
3261 2. Fixed page selection in some places
3262 3. Fixed BTFSS/C to where necessary use registers directly and not simply
3263 the registers name strings.
3264 4. Fixed "signed / unsigned compare" compiler warnings.
3265 5. The PIC port manages its own allocation of the general purpose
3266 registers, but makes no attempt to reuse them. As a result when
3267 compiling it soon runs out of general purpose registers. Some
3268 additional code was added to the files pcode.c and device.c to walk
3269 through the function call tree and rename the registers so that they
3279 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
3280 genPlus() & genMinus() when the result is the same as left or right
3282 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3284 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
3286 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3288 Made bitfield a distinct type from bit so that bitfields
3289 convert as per ANSI C and bits retain their traditional
3290 boolean style behaviour. Implemented bitfield support in
3298 * src/ds390/gen.c: bit v bitfield split
3299 * src/z80/gen.c: New support for bitfields
3300 * support/regression/tests/bitfields.c: reenabled z80,
3303 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3305 Rules 246.x, 247.x relate to bitfields, the others speed up
3306 access to xdata mapped I/O devices.
3308 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
3310 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3312 Cleaned up genPackBits and genUnpackBits and added two helper
3313 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
3314 for literal assignments in genPackBits (thanks to Frieder for
3320 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3322 Fixed bug #748310 (pointer to function type mishandled when the
3323 function name is omitted). Also fixed a SIGSEGV when a function
3324 attribute (reentrant, etc) is used on a non-function or on a
3325 function but misplaced before the parameter list.
3327 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
3329 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
3330 * support/Util/SDCCerr.h,
3331 * support/Util/SDCCerr.c: Added func attr misuse error msg
3333 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
3335 Fixed bug #787649 by anonymous
3336 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
3337 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
3339 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3341 Fixed numerous bitfield problems.
3343 * src/SDCC.y: More bitfield related error checking
3345 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
3346 * support/Util/SDCCerr.h,
3347 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
3348 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3349 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3350 * support/regression/tests/bitfields.c: tests added
3352 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3354 Made the constant following the "interrupt" keyword optional. If
3355 omitted, the function will not automatically be given an entry
3356 in the interrupt vector table (similar to #pragma NOIV, but
3357 less syntacticly kludgy). The interrupt number is also now
3358 range checked. Also fixed a bug in the high order bit example
3365 * support/Util/SDCCerr.c
3366 * support/Util/SDCCerr.h
3369 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
3371 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
3372 * src/SDCCicode.c (operandOperation): rewritten some ops
3373 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
3374 * src/SDCCsymt.c (computeType): literals are handled the same way as any
3376 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
3377 be re-activated by defining REDUCE_LITERALS)
3378 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
3379 unsigned, but are signed by default
3380 * src/SDCCval.c (constVal): rearranged
3381 * src/SDCCval.c (valMod): preliminary fix
3382 * src/SDCCval.c (valCastLiteral): use TYPE_* types
3383 * support/regression/literalop.c: added, work in progress
3385 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3387 Generate warnings for useless declarations like "char data;"
3388 that don't do what new users expect.
3391 * support/Util/SDCCerr.h
3392 * support/Util/SDCCerr.c
3394 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
3396 * src/SDCCval.c (valMult): fix overflow detection of negative int
3398 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3400 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
3402 Changes to support big endian targets:
3415 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
3417 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
3418 * device/lib/time.c: fixed warning "integer overflow in expression"
3420 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
3422 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
3423 * src/SDCCval.c (constVal): changed default to signed; hex and octal
3424 constants are unsigned; added recognition of "u" flag for unsigned
3425 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
3426 * src/SDCCval.c (valDiv, valMod): fixed signdness
3427 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
3428 signedness of modulo, left and right shift
3429 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
3430 * support/Util/SDCCerr.h: added warning W_INT_OVL
3431 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
3432 * src/SDCCast.c (ast_print): improved output of constants
3434 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3436 Fixed some warnings when building with MSVC:
3449 * support\cpp2\cpplib.c
3453 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
3455 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
3457 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3459 * support\librarian\clean.mk: Do not remove Makefile.
3460 * support\librarian\Makefile: added.
3462 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3464 Added librarian to MSVC build:
3467 * support\librarian\librarian.dsp
3469 'configure' not needed for librarian, removed:
3470 * support\librarian\configure
3471 * support\librarian\configure.in
3472 * support\librarian\config_in.h
3473 * support\librarian\Makefile.in
3475 Hopefully these ones built the librarian and the rest of sdcc properly:
3477 * Makefile.common.in
3479 Messed up 'configure', so revert to previous version:
3483 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
3485 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
3486 there, while the mantissa of a double is "only" 53 bits wide.
3488 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3490 Adding sdcclib to the build. MSVC project coming soon.
3491 Files added/changed:
3493 * support\librarian\clean.mk
3494 * support\librarian\configure
3495 * support\librarian\configure.in
3496 * support\librarian\config_in.h
3497 * support\librarian\Makefile.bcc
3498 * support\librarian\Makefile.in
3499 * support\librarian\sdcclib.c
3502 * Makefile.common.in
3506 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3508 Linker now complaints if linked modules have conflicting options, for
3509 example, one compiled using --model-large and another one compiled with
3510 --model-small. The following files were modified:
3532 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3534 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
3535 as/mcs51/lklibr.c: Generate a warning when a library is not found.
3537 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
3539 * src/z80/mappings.i: fix _mul[us][int,long] entries
3541 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3543 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
3545 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
3547 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
3548 * support/regression/tests/bitopcse.c: added
3556 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3558 added support for new library format to z80, gbz80 linkers:
3564 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
3566 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
3567 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
3569 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
3571 added DUMMY_READ_VOLATILE:
3580 * src/SDCCcse.c (algebraicOpts): many improvements
3581 * src/SDCCcse.h: removed algebraicOpts()
3582 * src/SDCCicode.c (picDummyRead): added
3584 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3586 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
3587 "Insufficient space in data memory".
3589 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3591 * src/mcs51/gen.c: fixed bug #771358
3592 * src/z80/gen.c: fixed bug #759087
3594 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
3596 * src/pic16/glue.c: minor cleanup by Vangelis
3598 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3600 * device/include/regc515c.h: fixed #758477
3601 * device/lib/_gptrget.c: saving some cycles in generic pointer get
3602 * device/lib/_gptrput.c: saved a few bytes
3603 * my tab spacing is 8, yours too?)
3604 * device/lib/_ser.c: process RX bytes earlier than TX bytes
3605 * device/lib/serial.c: process RX bytes earlier than TX bytes
3606 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
3608 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3610 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
3612 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3614 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
3616 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
3618 * device/lib/Makefile.in: bad fix, reverted to 1.43
3620 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
3622 * device/lib/Makefile.in: added missing z80 object files
3624 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
3626 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
3627 pic16 progress by Vangelis:
3642 * pic16/pcodepeep.c:
3645 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3647 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
3649 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3651 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
3652 added gbz80 build to MSVC project.
3653 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
3654 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
3655 from 8051 stuff and setup so it links using a .lnk file.
3657 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3659 * support/librarian/sdcclib.c: sdcc librarian.
3660 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
3663 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3665 * as/mcs51/lkmain.c: properly handle extensions in function afile.
3667 2003-07-02 Borut Razem <borut.razem AT siol.net>
3669 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
3670 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
3671 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
3672 src/xa51/main.c, src/z80/main.c:
3673 virtualization of glue() function: each port has it's own glue function,
3674 which is accessed by do_glue function pointer in PORT.general structure
3676 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
3678 * DS800C400 fun, improved ROM interface and tinibios.
3680 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
3682 * More support for DS80C400. Now includes beginning of interface to ROM.
3684 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
3686 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
3688 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3690 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
3692 2003-06-19 Borut Razem <borut.razem AT siol.net>
3694 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
3696 2003-06-19 Borut Razem <borut.razem AT siol.net>
3698 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
3699 fixed Z80 port - crt0.o: cannot open.
3701 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
3703 * support/Util/MySystem.c (merge_command): revert bad fix
3705 2003-06-18 Borut Razem <borut.razem AT siol.net>
3707 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
3709 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3711 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3712 option --use-stdout sends errors to stdout instead of stderr.
3714 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
3716 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
3718 2003-06-15 Borut Razem <borut.razem AT siol.net>
3720 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
3721 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
3722 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
3723 fixed width array of pointers replaced with sets;
3724 multiple include and lib paths ared transferred to preprocessor and linker
3725 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
3726 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
3727 fixed width array of pointers
3728 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
3729 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
3730 fixupPath(), getPathDifference()
3731 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
3732 fixed width array of pointers
3734 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
3736 * src/pic16/ralloc.c: fix warnings
3737 * src/pic16/pcode.c: fix warning
3739 2003-06-10 Scott Dattalo <scott AT dattalo.com>
3741 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
3742 know all the details, but essentially this set of changes enable
3743 the pic16 port to generate movff instructions and generate assembler
3748 * src/pic16/pcode.c:
3749 * src/pic16/device.c:
3751 * src/pic16/pcode.h:
3752 * src/pic16/pcoderegs.c:
3753 * src/pic16/ralloc.c:
3754 * src/pic16/ralloc.h:
3756 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3758 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3759 added option --vc, so sdcc errors and warnings are compatible with
3760 Microsoft Visual Studio.
3762 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3764 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
3765 device/lib/libfloat.lib: added atof function.
3767 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3769 * doc/sdccman.lyx: updated to Lyx 1.3
3770 * doc/cdbfileformat.lyx: updated to Lyx 1.3
3771 * doc/test_suite_spec.lyx: updated to Lyx 1.3
3772 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
3774 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
3776 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
3778 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3780 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
3781 additions to the "related tools/documentation" section
3783 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
3785 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
3787 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
3789 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
3790 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
3792 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
3794 * doc/sdccman.lyx: fix double dash and other minor things
3795 * doc/Makefile: fix double dash
3797 2003-05-28 Karl Bongers(patches from Martin Helmling)
3798 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
3799 condition and ignore commands.
3801 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3803 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
3804 is in parts still quite out of date, I did changes as far as I felt makes sense
3805 for a non-native english speaker.
3806 Please feel free to add to the manual or to correct my changes.
3807 * doc/Makefile: undid touching the date of intermediate tex files.
3809 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3811 * doc/sdccman.lyx: Manual has an index now
3813 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
3815 Finalize muluint/mulsint and mululong/mulslong merging:
3816 * device/lib/_mulint.c
3817 * device/lib/_mullong.c
3818 * device/lib/gbz80/mul.s
3819 * device/lib/gbz80/stubs.s
3820 * device/lib/z80/mul.s
3821 * device/lib/z80/stubs.s
3822 * src/SDCCsymt.c (initCSupport)
3824 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3826 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
3827 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
3828 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
3829 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
3832 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3834 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
3835 the regression tests I'm not brave enough to enable 245.b, 245.c
3836 * doc/sdccman.lyx: added latex preamble for hyperref package.
3837 Using pdflatex this will give you a hyperlinked pdf file with
3838 bookmarks. (prepend '%' before /usepackage if this breaks something)
3840 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3842 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
3844 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
3846 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
3848 2003-05-21 <johan AT balder>
3850 * src/SDCCglue.c (printIval): fixed bug #739934
3852 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3854 Applied patch from bug 737905 (renamed yylineo to mylineno):
3861 * src/pic16/pcode.c: Cleaned warnings
3862 * src/pic16/pcodeflow.c: Cleaned warnings
3863 * src/pic16/pcoderegs.c: Cleaned warnings
3865 2003-05-19 Scott Dattalo <scott AT dattalo.com>
3867 * src/pic16/pcode.c: Cleaned warnings
3868 * src/pic16/pcodepeep.c: Cleaned warnings
3869 * src/pic16/ralloc.c: Cleaned warnings
3871 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3873 * doc/sdccman.lyx: fixed bug 739745
3874 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
3876 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
3878 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
3879 it can be defined with CFLAGS when running configure
3880 * src/SDCCmain.c: fixed compiling + linking with object files
3882 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
3884 * configure.in: configure for pic16 port,
3885 added --disable-pic16-port
3886 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
3887 * src/SDCCmain.c: linkOptions is changed to set *,
3888 added if/endif conditional macros to remove options help
3889 messages from optionsTable when a port is not configured, added
3890 support for the PIc16 port in the ports table, when executing
3891 the compiler with no port specified on command line, a default
3892 port is selected with the new macro DEFAULT_PORT which is
3893 defined in port.h, in setDefaultOptions() linkOptions is removed
3894 from initialization assignment, since now it is a set,
3895 parseCmdLine uses setParseWithComma for linkOptions, in
3896 linkEdit() linkOptions are accessed with new function indexSet()
3897 which returns the i'th item of a set variable. See SDCCset.c, in
3898 linkEdit() when calling buildCmdLine(), added linkOptions as
3899 last argument. Now users can pass arguments to gplink via the
3900 -Wl option, main() uses pic16glue() to glue up pic16 programs
3901 * src/SDCCpeeph.c: various changes to support pic16
3902 * src/SDCCset.c: added function void *indexSet(set *, int) to
3903 return the i'th item of the set
3904 * src/SDCCset.h: added function prototype for indexSet()
3905 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
3906 * src/clean.mk: added pic16 in CLEANALLPORTS variable
3907 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
3908 added macro DEFAULT_PORT
3909 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
3910 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
3912 * src/pic16/glue.c: commented out some error producing lines
3913 * src/pic16/main.c: __config directives are commented out to stop
3914 gpasm complaining and test the linkage with gplink, _linkCmd and
3915 _asmCmd changed to be more gplink and gpasm friendly
3916 * src/pic16/peeph.def: peep rule 3 is commented out, since it
3917 produced an error when parsed, peep rule 12 is added to utilize
3918 movff, but it is commented out since the pCode does not support
3919 yet a command with 2 address arguments
3921 2003-05-18 <johan AT balder>
3923 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3924 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3925 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
3927 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
3928 Added feature to script commands from file.
3930 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3932 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
3933 * src/SDCCutil.c: include ctype.h for win32
3935 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3937 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
3939 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
3941 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
3942 Fixed so you can set breakpoints prior to run, run does not stop
3943 on entry now. Add tbreak. Other enhancements and fixes for use
3946 2003-05-12 Borut Razem <borut.razem AT siol.net>
3948 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
3950 2003-05-11 Borut Razem <borut.razem AT siol.net>
3952 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
3953 the path of bin directory, so that PATH is the only env. variable, which has to be set
3954 in case of standard installation.
3955 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
3956 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
3957 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
3959 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3961 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
3962 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
3963 temp files are in the port dir; clean the gen/test directory when
3964 generating new test.c
3965 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
3966 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
3967 * support/regression/tests/zeropad.c: added
3969 2003-05-09 <johan AT balder>
3971 * src/SDCCglue.c: fixed bug #597940
3973 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
3975 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3976 cache sfr, optimize next,step, fix off by one sourceline,
3977 support ddd list function.
3978 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
3980 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3982 * support/regression/HTMLgen.py: added compare_s2f()
3983 * support/regression/Makefile: redo 1.27
3984 * support/regression/generate-cases.py: redo 1.5
3986 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3988 * support/regression/tests/float.c: workaround 33 bit hex constant
3989 * support/regression/tests/simplefloat.c: fix division for host
3991 2003-04-29 Scott Dattalo <scott AT dattalo.com>
3993 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
3994 that tame's the PIC's over-aggressive optimizer.
3996 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3998 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
4001 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
4003 Initial support for DS80C400. "Hello world" runs on TINIm400
4006 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
4008 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
4009 * Some notes on ddd usage added in debugger/README
4010 Martin Helmling adding more features and fixes for ddd GUI debugger.
4011 Code added for nexti, stepi, up, down, and other adjustments.
4013 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
4015 * src/pic/pCodepeep.c non-wildcard asmops are now handled
4016 * src/pic/peeph.def Added two rules to optimize carry manipulation
4017 * src/pic/* removed debug printfs
4019 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4021 * debugger/mcs51/cmd.c: added header newalloc.h
4023 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4025 * as/Makefile: new EXEEXT
4026 * as/z80/Makefile: remove trailing slash of BUILDIR
4027 * as/z80/clean.mk: new EXEEXT
4028 * Makefile.common.in: add to CFLAGS (and others), don't replace it
4029 * support/cpp2/Makefile.in: new EXEEXT
4030 * src/pic/glue.c (pic14emitRegularMap): fixed warning
4032 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4034 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
4035 EXEEXT was introduced to fix all related problems with targets
4036 "clean", "install" and "uninstall"; a couple of further flaws
4037 especially with "clean" have been fixed too
4038 * as/mcs51/Makefile.in
4043 * debugger/mcs51/Makefile.in
4044 * debugger/mcs51/clean.mk
4046 * link/z80/Makefile.in
4049 * packihx/Makefile.in
4051 * sim/ucsim/Makefile
4052 * sim/ucsim/clean.mk
4053 * sim/ucsim/avr.src/Makefile.in
4054 * sim/ucsim/avr.src/clean.mk
4055 * sim/ucsim/s51.src/Makefile.in
4056 * sim/ucsim/s51.src/clean.mk
4057 * sim/ucsim/xa.src/Makefile.in
4058 * sim/ucsim/xa.src/clean.mk
4059 * sim/ucsim/z80.src/Makefile.in
4060 * sim/ucsim/z80.src/clean.mk
4061 * sim/ucsim/main_in.mk
4062 * sim/ucsim/packages_in.mk
4063 * sim/ucsim/gui.src/Makefile.in
4064 * sim/ucsim/gui.src/serio.src/Makefile.in
4065 * sim/ucsim/gui.src/serio.src/clean.mk
4068 * support/cpp2/Makefile.in
4069 * support/cpp2/clean.mk
4070 * support/makebin/Makefile
4071 * support/makebin/clean.mk
4072 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
4073 * doc/sdccman.lyx: --program-suffix no longer needed
4075 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
4077 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
4078 Martin Helmling added support for ddd GUI debugger.
4079 Code added to display assembly, set variables, and other commands
4080 to interface to ddd.
4082 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
4084 * as/Makefile: fix target clean
4085 * as/clean.mk: fix target clean
4086 * as/z80/clean.mk: fix target clean
4088 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
4090 * Makefile.common.in: added AT EXEEXT AT
4091 * configure.in: removed all mingw32 stuff
4092 * configure: rebuilt from configure.in
4093 * doc/sdccman.lyx: updated section "installation"
4094 * support/scripts/sdcc_mingw32: adapted to configure
4095 * support/scripts/sdcc_cygwin_mingw32: added
4097 2003-04-22 Scott Dattalo <scott AT dattalo.com>
4099 * src/pic Added object file support for the PIC port
4100 * src/pic Applied patch from Craig Franklin (this started the object file support)
4101 * src/regression Updated the PIC regression tests for object files
4103 2003-04-20 Borut Razem <borut.razem AT siol.net>
4105 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
4106 lklex.c: In function `getfid':
4107 lklex.c:203: warning: array subscript has type `char'
4108 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
4109 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
4110 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
4111 stack handling macros
4113 2003-04-19 Borut Razem <borut.razem AT siol.net>
4115 * "handling space characters in file path" task:
4116 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
4117 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
4118 * support/Util/MySystem.h: make it self-sufficient
4119 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
4120 src/z80/main.c, sdcc/as/mcs51/lklex.c:
4121 handling space characters in file path
4122 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
4123 (it will be used by assemblers, which have their own includes, e.g. gpasm)
4124 * support/Util/MySystem.c: handling space characters in executable's path
4126 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
4128 * as/z80/Makefile: fix permanent rebuild of z80
4129 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
4130 * support/regression/tests/bitfields.c: added Johan's bitfields.c
4132 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
4134 * src/SDCCopt.c: add special case optimization to replace modulo by
4135 a power of two with a bitwise AND.
4137 2003-04-18 <johan AT balder>
4139 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
4141 2003-04-17 <johan AT balder>
4143 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
4144 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
4146 2003-04-13 Borut Razem <borut.razem AT siol.net>
4148 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
4149 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
4150 fixed mingw problem in adl_NORMALIZE_PATH
4152 2003-04-12 Borut Razem <borut.razem AT siol.net>
4154 * fixed "#pragma SAVE/RESTORE can not be nested":
4155 * src/SDCC.lex: reworked pragma handling functions
4156 * sdcc/src/SDCCglobl.h: reworked stack handling macros
4157 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
4159 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4161 * src/SDCCutil.c (pathEquivalent): defined but not used
4162 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
4163 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
4164 * configure: rebuilt from configure.in
4165 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4166 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4167 * device/include/Makefile.in: replace sdcc_datadir
4168 * device/lib/Makefile.in: replace sdcc_datadir
4169 * Makefile.common.in: add LDFLAGS from configure
4170 * packihx/Makefile.in: use LDFLAGS
4171 * src/Makefile.in: use LDFLAGS
4172 * support/cpp2/Makefile.in: add LDFLAGS from configure
4173 * support/makebin/Makefile: use LDFLAGS
4174 * .version: bumped version number to 2.3.5
4176 2003-04-12 Borut Razem <borut.razem AT siol.net>
4178 * completed "different paths" task:
4179 * src/SDCCmacro.c: fixed bug in handling quotes
4180 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
4181 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
4183 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4185 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
4187 2003-04-11 kevin Vigor <kevin AT vigor.nu>
4189 * ds390/gen.c ds390/peeph.def: fix bug 706781
4191 2003-04-11 Borut Razem <borut.razem AT siol.net>
4193 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
4195 2003-04-10 Scott Dattalo <scott AT dattalo.com>
4197 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
4198 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
4199 set - this bit used to not be set...).
4200 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
4201 bad code in PIC Port
4202 * src/regression/and2.c added to test bug 609268
4203 * src/regression/Makefile added and2.c to regression test
4206 2003-04-08 <johan AT CP255758-A>
4208 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
4209 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
4210 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
4212 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
4214 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
4216 * support/cpp2/Makefile.in: fix bug #487815
4217 * configure: rebuilt from configure.in
4218 * Makefile.common.in: docdir changed, new path suffixes
4219 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4220 * sdcc_vc_in.h: reflect changes from sdccconf.h
4221 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
4222 * src/SDCCutil.h: remove BINDIR hack
4223 * doc/sdccman.lyx: update new path hierarchy
4225 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4227 * src/SDCCpeeph.c: added okToRemoveSLOC test
4229 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4231 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
4233 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4235 * src/SDCCpeeph.c: added labelIsReturnOnly test
4236 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
4238 2003-04-05 <johan AT balder>
4240 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
4241 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
4242 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
4243 * src/SDCCast.c: fixed a warning
4244 * src/SDCCast.h: fixed a warning
4245 * src/SDCCicode.c (operandFromAst): fixed a warning
4247 2003-04-04 <johan AT balder>
4249 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
4250 * src/SDCCast.c (decorateType): fixed bug #715076
4251 * src/SDCC.y: fixed bug #702907
4253 2003-04-03 <johan AT balder>
4255 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
4256 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
4257 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
4258 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
4259 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
4261 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
4263 * _decdptr.c: fix return values
4264 * _gptrget.c: fix return values
4265 * _gptrgetc.c: fix return values
4266 * _gptrput.c: fix return values
4267 * _mulint.c: fix return values
4268 * as/z80/Makefile: fix 'make -j' problem
4270 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
4272 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
4273 * configure.in: big cleanup, updated to autoconf 2.5x
4274 * configure: rebuilt from configure.in
4275 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4276 * sdcc_vc_in.h: reflect changes from sdccconf.h
4277 * doc/Makefile: fixed a flaw in "make install"
4279 2003-04-02 <johan AT balder>
4281 * src/ds390/gen.c (genCmp): no comments
4282 * src/mcs51/gen.c (genCmp): no comments
4283 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
4284 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
4286 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
4288 * support/regression/generate-cases.py: place generated file in given sub directory
4289 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
4290 * support/regression/Makefile: improvements for 'make -j';
4291 side effect: it's simpler and faster now
4293 2003-03-31 Borut Razem <borut.razem AT siol.net>
4295 * src/z80/main.c: link-{port} and as-{port} defined without path
4296 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
4298 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
4300 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
4302 2003-03-30 Borut Razem <borut.razem AT siol.net>
4304 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
4305 changed type of list parameter to set
4306 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
4307 * src/port.h: changed type of do_assemble() parameter to set
4308 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
4309 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
4310 definition of "cppoutfilename" macro with NULL value in preProcess()
4311 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
4312 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
4313 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
4314 replaced with set *binPathSet
4315 * shash_add() deallocates the item, if allready exsists, before adding the new one
4316 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
4318 2003-03-30 Scott Dattalo <scott AT dattalo.com>
4320 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
4321 a nested for loop bug in the PIC port
4322 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
4325 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4327 * support/Util/dbuf.h: remove C++ stuff to make it portable
4329 2003-03-28 Borut Razem <borut.razem AT siol.net>
4331 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
4332 literal strings in stringLiteral()
4333 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
4334 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
4337 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
4339 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
4341 2003-03-26 <johan AT balder>
4343 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
4344 * src/ds390/gen.c (saveRegisters): catched symbol abuse
4345 * src/SDCCast.c (decorateType): fixed " -v < 3"
4347 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4349 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
4350 Added Lenny Story's debug infrastructure changes:
4351 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
4352 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
4353 * src/cdbFile.c: added
4354 * src/SDCCdebug.c: added
4355 * src/SDCCdebug.h: added
4356 * src/SDCCast.c (createFunction)
4357 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
4358 * src/SDCCmain.c (parseCmdLine, main)
4359 * src/SDCCmem.c (redoStackOffsets)
4360 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
4363 * src/avr/gen.c (genAVRCode)
4364 * src/ds390/gen.c (gen390Code)
4365 * src/mcs51/gen.c (gen51Code)
4366 * src/pic/gen.c (genpic14Code)
4367 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
4368 * src/xa51/gen.c (genXA51Code)
4369 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
4371 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4373 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
4374 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
4376 2003-03-22 <johan AT balder>
4378 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
4380 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
4382 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
4383 * doc/cdbfileformat.lyx: added, written by Lenny Story
4384 * doc/Makefile: added cdbfileformat.lyx
4385 * doc/clean.mk: added cdbfileformat.lyx
4387 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
4389 * src/mcs51/peeph.def: fix bug #705773
4391 2003-03-20 <johan AT balder>
4393 An sfr/sbit can have an "at #" AND an initializer
4394 * src/SDCCsymt.c (checkSClass):
4395 * src/SDCCmem.c (allocGlobal):
4396 * src/SDCCmem.c (allocLocal):
4397 * src/SDCCast.c (createBlock):
4399 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
4401 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
4403 2003-03-16 <johan AT balder>
4405 Undid the hackup of const and volatile, the problem is much bigger
4407 * src/SDCCast.c:1.171
4408 * src/SDCCglue.c:1.138
4409 * src/SDCCicode.c:1.146
4410 * src/SDCCsymt.c:1.150
4411 * src/SDCCval.c:1.65
4413 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
4415 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
4416 * src/ds390/gen.c (genAddrOf): fixed bug #704087
4418 2003-03-13 <johan AT balder>
4420 Hackup const and volatile modifiers in type chains a bit:
4422 * src/SDCCast.c:1.169
4423 * src/SDCCglue.c:1.136
4424 * src/SDCCicode.c:1.143
4425 * src/SDCCsymt.c1.146
4426 * src/SDCCsymt.h1.59
4427 * src/SDCCval.c:1.63
4429 2003-03-12 <johan AT balder>
4431 * src/SDCCBBlock.h: more LRH debugging junk
4432 * src/SDCCcflow.h: more LRH debugging junk
4433 * src/SDCCloop.c: more LRH debugging junk
4434 * src/SDCC.y (struct_declaration): fixed bug #697590
4435 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
4436 * src/ds390/gen.c (aopForRemat): fixed bug #700031
4437 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
4439 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4440 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
4441 test function names must now match exactly).
4442 * src/SDCCcse.c: added special case in findCheaperOp to allow
4443 extending a short integer. Makes less awful code for bug 700121 test case.
4445 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4447 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
4448 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
4450 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4452 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
4453 actually called (operandsNotEqual() was called for all
4454 operandsNotEqualX tests).
4456 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
4458 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
4459 with shorter literals. Fixes bug 700121.
4461 2003-03-11 <johan AT balder>
4463 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
4465 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
4467 * src/SDCCloop.c (mergeRegions): an evil beast is dead
4468 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
4470 2003-03-10 Borut Razem <borut.razem AT siol.net>
4472 * src/SDCCmain.c: pipe preprocessor's output
4473 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
4474 * sdcc_vc_in.h: define pclose as _pclose for WIN32
4475 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
4476 which closes all pipes in pipeSet set
4477 * src/SDCCset.c: free deleted item in function deleteSetItem()
4478 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
4479 moved from z80 to src subproject
4480 * .version: increased version number to 2.3.4
4482 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4484 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
4485 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
4486 * support/regression/ports/xa51/spec.mk: fix typo
4488 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4490 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
4492 2003-03-09 Borut Razem <borut.razem AT siol.net>
4494 * src/SDCCmain.c: pipe preprocessor's output
4495 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
4496 * sdcc_vc_in.h: define pclose as _pclose for WIN32
4497 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
4498 which closes all pipes in pipeSet set
4499 * src/SDCCset.c: free deleted item in function deleteSetItem()
4500 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
4501 moved from z80 to src subproject
4503 2003-03-09 Borut Razem <borut.razem AT siol.net>
4505 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
4506 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
4507 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
4508 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
4509 * src/SDCCglobl.h: unification of WIN32 native definitions
4511 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4513 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
4515 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4517 * src/configure.in: check for endianess (even while cross-compiling)
4518 * src/configure: check for endianess (even while cross-compiling)
4519 * src/configure_in.h: check for endianess (even while cross-compiling)
4520 * src/avr/gen.c: remove old endianess stuff
4521 * src/mcs51/gen.c: remove old endianess stuff
4522 * src/ds390/gen.c: remove old endianess stuff
4523 * src/pic/gen.c: remove old endianess stuff
4524 * src/pic/genarith.c: remove old endianess stuff
4525 * src/pic/glue.c: fix endianess check
4526 * src/pic16/gen.c: remove old endianess stuff
4527 * src/pic16/genarith.c: remove old endianess stuff
4528 * src/pic16/glue.c: fix endianess check
4529 * src/xa51/gen.c: remove old endianess stuff
4530 * src/z80/gen.c: fix endianess check
4531 * src/SDCCglue.c: fix endianess check
4532 * src/ds390/peeph.def: fix bug 700036
4534 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4536 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
4537 * src/configure: find appropriate data-types on host for SDCC's int and long
4538 * src/configure.in: find appropriate data-types on host for SDCC's int and long
4539 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
4540 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
4542 2003-03-07 <johan AT balder>
4545 some minor cleanups before the big shot
4546 OP_DEFS and OP_USES now use Kevin's protection
4547 new option --nolabelopt
4558 * src/ds390/ralloc.c:
4559 * src/mcs51/ralloc.c:
4561 * src/xa51/ralloc.c:
4564 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4566 * src/pic/pcode.c (get_op): fix 64 bit warnings
4567 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
4568 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
4569 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
4570 * support/regression/tests/malloc.c: fix 64 bit warnings
4572 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
4574 * src/mcs51/gen.c (genMinus): fixed bug 696436
4576 2003-03-02 Borut Razem <borut.razem AT siol.net>
4578 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
4580 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4582 * configure.in: test for mkstemp
4583 * sdccconf_in.h: add HAVE_MKSTEMP
4585 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
4587 * device/include/ctype.h: removed warning while using --stack-auto
4588 * device/include/malloc.h: removed warning while using --stack-auto
4589 * device/include/string.h: removed warning while using --stack-auto
4591 2003-02-23 Borut Razem <borut.razem AT siol.net>
4593 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
4594 because NDEBUG is defined (see man assert)
4595 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
4597 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4599 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
4600 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
4602 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4604 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
4605 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
4607 2003-02-18 <johan AT balder>
4609 * as/mcs51/asmain.c (asmbl): module can start with a digit
4610 * as/z80/asmain.c (asmbl): module can start with a digit
4612 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4614 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
4615 * src/asm.c: fix pipe() for Mingw32
4617 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
4619 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
4620 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
4621 make -V work again; --c1mode reads now from stdin
4622 * doc/sdccman.lyx: added --c1mode
4623 * support/Util/SDCCerr.c: new messages for c1 mode
4624 * support/Util/SDCCerr.h: new messages for c1 mode
4625 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
4627 2003-02-15 <johan AT balder>
4629 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
4631 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
4633 * doc/sdccman.lyx: Environment variables, -o and other minor things
4635 2003-02-14 <johan AT balder>
4637 * src/xa51/main.c: before anyone really tries to use it :)
4639 * Install doc's in share/sdcc/doc
4640 * removed some obsolete files
4641 * Do a proper make distclean and uninstall
4642 M Makefile.common.in
4645 M device/include/Makefile.in
4646 M device/lib/Makefile.in
4649 M sim/ucsim/doc/Makefile.in
4652 R src/xa51/peeph.rul
4653 M support/cpp2/Makefile.in
4654 M support/makebin/Makefile
4657 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4659 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
4661 2003-02-10 Borut Razem <borut.razem AT siol.net>
4663 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
4664 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
4665 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
4666 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
4667 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
4668 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
4669 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
4670 src/z80/Makefile.bcc: Borland Makefile cleanup
4671 * as/z80/Makefile.bcc: Added Borland Makefile
4672 * support/cpp2/borland.h: Removed
4674 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
4676 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
4677 * src/SDCC.lex: new pragma NOIV
4678 * src/SDCCglobl.h: new pragma NOIV
4679 * src/SDCCmem.c: new pragma NOIV
4681 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4683 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
4685 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4687 * src/SDCCmain.c: signal handling is switched off by --debug
4688 * doc/Makefile: small fix for install; use clean.mk again
4689 * doc/clean.mk: clean *.pdf and *.html too
4691 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
4693 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
4694 * device/lib/printfl.c: fix a ds390 bug by making it portable
4695 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
4696 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
4697 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
4698 * debugger/mcs51/cmd.c: converted multi-line string literals
4699 * sim/ucsim/globals.cc: converted multi-line string literals
4700 * src/SDCCmain.c: introduced signal handler to remove temp files
4701 * doc/Makefile: small tweaks, implement clean
4702 * doc: removed generated files
4704 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4706 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
4707 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
4708 Address Record is not correctly generated for DS390."
4710 2003-02-02 Borut Razem <borut.razem AT siol.net>
4712 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
4713 * as/mcs51/asm.h: fixed compilation with Borland C
4714 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
4715 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
4716 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
4717 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
4718 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
4719 src/z80/Makefile.bcc: delete $(LIB) only if exist
4720 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
4722 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
4724 * device/include/malloc.h: introduced NULL
4725 * device/include/string.h: introduced NULL
4726 * device/include/stdlib.h: introduced NULL
4727 * device/lib/_memcpy.c: removed NULL
4728 * device/lib/_strcat.c: removed NULL
4729 * device/lib/_strchr.c: removed NULL
4730 * device/lib/_strcmp.c: removed NULL
4731 * device/lib/_strcpy.c: removed NULL
4732 * device/lib/_strcspn.c: removed NULL
4733 * device/lib/_strlen.c: removed NULL
4734 * device/lib/_strncat.c: removed NULL
4735 * device/lib/_strncmp.c: removed NULL
4736 * device/lib/_strncpy.c: removed NULL
4737 * device/lib/_strpbrk.c: removed NULL
4738 * device/lib/_strrchr.c: removed NULL
4739 * device/lib/_strspn.c: removed NULL
4740 * device/lib/_strstr.c: removed NULL
4741 * device/lib/_strtok.c: removed NULL
4742 * device/lib/malloc.c: removed NULL, include own header
4744 2003-02-02 <johan AT balder>
4746 * 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
4747 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
4748 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
4749 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
4750 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
4751 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
4753 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4755 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
4758 2003-02-01 <johan AT balder>
4760 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
4762 2003-01-31 <johan AT CP255758-A>
4764 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
4766 2003-01-30 <johan AT balder>
4768 * src/SDCCBBlock.c: automatic bug detection
4769 * src/SDCCicode.c: automatic bug detection
4771 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4773 * src/SDCCglobl.h: now --xram-size 0 works
4774 * src/SDCCmain.c: now --xram-size 0 works
4776 2003-01-29 <johan AT balder>
4778 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
4780 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4782 * as/mcs51/aslink.h: Added options --xram-size and --code-size
4783 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
4784 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
4785 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
4786 * src/SDCCglobl.h: Added options --xram-size and --code-size
4787 * src/SDCCmain.c: Added options --xram-size and --code-size
4789 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4791 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
4792 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
4794 2003-01-27 <johan AT balder>
4796 * src/SDCC.y: fixed bug #613764
4798 2003-01-26 <johan AT balder>
4800 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
4801 * src/SDCCsymt.h: fixed bug #673374
4802 * src/SDCCglue.c: fixed bug #661910
4803 * src/SDCCast.c: fixed bug #458099 and 673374
4805 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4807 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
4808 * as/mcs51/strcmpi.h: added
4809 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
4810 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
4811 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
4812 * as/mcs51/assym.c: strcmpi -> as_strcmpi
4813 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
4814 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
4815 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
4816 * as/mcs51/Makefile.aslink: new module strcmpi
4817 * as/mcs51/Makefile.asx8051: new module strcmpi
4818 * as/mcs51/Makefil.bcc: new module strcmpi
4819 * as/mcs51/Makefile.in: new module strcmpi
4820 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
4822 2003-01-26 <johan AT balder>
4824 * src/SDCCglue.c: reverted back to 1.124
4825 * src/SDCCast.c: reverted back to 1.156
4826 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
4828 2003-01-25 <johan AT balder>
4830 * src/SDCCglue.c: A better fix for bug #661910
4831 * src/SDCCast.c: A better fix for bug #661910
4832 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
4834 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4836 * src/Makefile.in: remove spawn.o
4837 * src/SDCCmain.c: remove spawn.h
4838 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
4839 * src/spawn.c: removed
4840 * src/spawn.h: removed
4841 * support/regression/ports/ds390/spec.mk: link with -r
4843 2003-01-24 <johan AT CP255758-A>
4845 * src/ds390/gen.c (aopOp): fixed bug #667458
4846 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
4847 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
4848 (createIvalCharPtr): an ival doesn't always have a storage class anymore
4850 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4852 * src/mcs51/peeph.def: better assembler identation by Frieder
4853 * src/mcs51/gen.c: better assembler identation by Frieder
4855 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4857 * as/z80/string.h: removed for gcc 3.2
4858 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
4859 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
4861 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4863 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
4864 * src/SDCCpeeph.c (replaceRule): fix bug #663503
4865 * support/regression/Makefile: separate temp files for ports
4866 * support/regression/generate-cases.py: separate temp files for ports
4867 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4868 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4870 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4872 * moved tinitalk to device/examples/ds390
4874 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
4876 * as/mcs51/lkmem.c: rflag is for DS390
4877 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
4878 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
4879 (linkEdit): move mem- and map-files the same way as ihx-files
4880 * src/z80/main.c (_setDefaultOptions): removed --generic
4881 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
4882 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
4883 * src/pic/glue.c (picglue): --c1mode works again
4884 * src/pic16/glue.c (pic16glue): --c1mode works again
4885 * src/asm.c (printCLine): fix #660034
4887 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4889 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
4890 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
4891 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
4892 * as/mcs51/lkmem (summary): better fix for sp problem
4893 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
4894 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
4895 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
4896 remove --stack-after-data
4898 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4900 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
4901 * src/SDCCutil.c (join): ugly bug: missing '\0'
4902 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
4904 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4906 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
4908 * src/pic/main.c (_asmCmd): gpasm supports -o
4909 * src/z80/main.c: more general macros
4910 * device/lib/Makefile.in: remove intermediate files
4912 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4914 * .version: Bumped version number to 2.3.3
4915 * src/SDCCBBlock.c: new option -o
4916 * src/SDCCglobl.h: new option -o
4917 * src/SDCCglue.c: new option -o
4918 * src/SDCCmain.c: new option -o
4919 * src/asm.c: new option -o
4920 * src/ds390/main.c: new option -o
4921 * src/pic/glue.c: new option -o
4922 * src/pic/pcode.c: new option -o
4923 * src/pic/ralloc.c: new option -o
4924 * src/pic16/glue.c: new option -o
4925 * src/pic16/pcode.c: new option -o
4926 * src/pic16/ralloc.c: new option -o
4927 * src/z80/main.c: new option -o
4928 * device/lib/Makefile.in: use -o
4929 * support/regression/ports/ds390/spec.mk: use -o
4930 * support/regression/ports/gbz80/spec.mk: use -o
4931 * support/regression/ports/mcs51/spec.mk: use -o
4932 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
4933 * support/regression/ports/z80/spec.mk: use -o
4934 * support/regression/ports/ucz80/spec.mk: use -o
4935 * support/regression/ports/xa51/spec.mk: use -o
4936 * support/regression/fwk/lib/timeout.c: fix usage string
4938 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
4939 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
4941 2003-01-07 <johan AT balder>
4943 * src/SDCCast.c (decorateType): fixed bug #600035
4945 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4946 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
4947 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
4948 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
4949 * src/pic/pcode.c: outcommented unused variable to remove warnings
4950 * src/pic/ralloc.c: outcommented unused variable to remove warnings
4952 2003-01-06 <karl AT turbobit.com>
4953 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
4956 2003-01-06 <johan AT balder>
4958 * src/SDCCicode.c: fixed array add
4960 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
4961 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
4962 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
4964 2003-01-04 <johan AT balder>
4966 * src/SDCCval.c (getNelements): fixed the initialized array of structures
4968 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4969 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
4971 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4972 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
4973 * support/regression/tests/bug-524697.c: fit mem usage into 8032
4975 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4976 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
4978 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
4979 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
4981 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4982 * src/mcs51/main.c: removed {bindir}{sep} from aslink
4984 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4986 * in \sdcc\as\mcs51\ changed these files in order to create an
4987 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
4988 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
4989 following files to include the previous two files: aslink.dsp,
4990 Makefile.aslink, Makefile.bcc, and Makefile.in.
4992 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
4993 .adb instead of .cdb
4995 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4997 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
4998 value from option --iram-size.
5000 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5002 * \sdcc\as\mcs51\lklist.c: added boundary check before using
5005 2002-09-18 <wiml AT hhhh.org>
5007 * SDCClrange.h: exposed setFromRange() and setToRange()
5008 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
5009 packRegsForAccUse() (bug 542397)
5010 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
5011 multiple times and emitting the fetch operations more than once
5012 added aopGetUsesAcc() function to allow binary operators to
5013 fetch their operands in the correct order; made genMinus() emit
5014 compact code for X = LITERAL - Y
5016 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5017 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
5018 sprintf() in line 1267.
5020 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5021 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
5024 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5025 Changes to aslink (All the changes are marked with 'JCF'):
5027 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
5030 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
5031 area BSEG. Also moves, if possible, the DATA area down into the internal
5032 ram so more space is available.
5034 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
5037 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
5038 not bytes. Function summary() which creates a memory usage summary
5039 file with extension .mem. Reports of overlaping stack and small stack
5040 size. If the space for the stack is less than 16 bytes aslink trows a
5043 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
5044 the 8051. Option 'y' for memory summary output file.
5046 Changes to sdcc (All the changes are marked with 'JCF'):
5048 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
5050 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
5051 overlaying area for it (uses RegBankUsed[4]).
5053 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
5054 bank zero as used by default. By default aslink locates the stack
5055 (equivalent to --stack-after-data). Pass option 'y' to aslink for
5056 the creation of the .mem file. Delegates the allocation of data area
5057 to aslink (it is not longer 0x30 by default). If --stack-loc passes
5058 the begining of the stack area to aslink.
5060 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
5061 glue() in SDCCglue.c creates an area for it.
5063 2002-09-03 Borut Razem <borut.razem AT siol.net>
5064 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
5065 sdcc/src/pic/glue.c:
5066 introduced atexit() handler for teporay files removal in case of
5067 errors, assertions, ...
5069 2002-08-29 Borut Razem <borut.razem AT siol.net>
5070 * sdcc/support/cpp2/auto-host_vc_in.h:
5071 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
5072 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
5073 Maybe there is a similar problem with BORLANDC? It should be checked!
5075 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
5076 corrected improper use of assert: the assignment to clr variable was done inside the assert.
5077 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
5078 was not executed, and the compiler (cl) launched a warning:
5079 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
5081 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
5082 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
5084 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
5085 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
5087 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5088 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
5089 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
5090 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5091 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
5092 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
5093 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
5094 - added Release configuration in VS projects
5095 - review of compiler an linker options
5096 - VC .exe files are generated in bin_vc directory, not to interfere
5097 with binaries generated from other projects (cygwin, mingw, bcc ...)
5099 * sdcc/src/yacc.dsp: added
5101 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
5102 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
5103 and insert the version number definitions from .version
5105 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
5107 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
5108 added - genarate auto-host.h using auto-host_vc_in.h as template
5111 removed from CVS, generated automatically
5113 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
5114 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
5116 2002-08-11 Borut Razem <borut.razem AT siol.net>
5117 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
5119 2002-08-10 Borut Razem <borut.razem AT siol.net>
5120 * src/SDCCmain.c (main):
5121 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
5122 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
5123 The consequence was that some temporary files were not removed.
5126 unification of code in functions tempfilename() and tempfile():
5127 function tempnam() is defined in Visual Studio 6.0 and .NET
5129 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
5131 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5132 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
5133 - removed compiler command line option /WX: Treats all warnings as errors
5134 - update a list of source files, included into the project
5136 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5137 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
5138 changed project type to Generic Project so that can be correcly converted to VS.NET project
5140 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
5142 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
5144 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
5146 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
5147 added return 0 statements after assert() to make compiler happy
5149 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
5150 added newline in the def file to keep MSC compiler satisfied
5152 * sdcc/src/z80/gen.c:
5153 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
5154 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
5155 - solved MSC error in function aopDump()
5157 * sdcc_vc.h: define PREFIX as "\\sdcc"
5159 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
5160 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
5162 2002-06-22 Scott Dattalo <scott AT dattalo.com>
5163 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
5164 - Rewrote the register banking algorithm.
5165 - Added pCode live-range analysis to registers (for now, only non-used and
5166 singly-used registers optimized away)
5168 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
5170 * 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.
5172 2002-05-10 Scott Dattalo <scott AT dattalo.com>
5173 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
5175 2002-04-22 Michael Hope <michaelh AT vroom>
5177 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
5179 * configure.in (DD_COPT): Added include support required for gbdk.
5181 * .version: Bumped version number just to increase it.
5183 * src/SDCCmain.c: Added -nostdinc to the default options.
5185 2002-04-15 Michael Hope <michaelh AT vroom>
5187 * device/lib/z80/printf.c (sprintf): Added.
5189 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
5191 * src/z80/peeph.def: Added transpose redundent load rule.
5193 * src/z80/main.c: Added force callee saves for jaune.
5195 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
5197 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
5199 2002-03-28 Johan Knol <johan AT balder>
5201 * src/SDCCval.c: fixed bug #532436
5203 2002-03-14 Scott Dattalo <scott AT dattalo.com>
5205 Added "char *Processor" field to the port structure.
5208 Added -p option. Allows port dependent processor to be specified.
5211 Initialized the new field char *Processor field to NULL in all ports
5214 Compiler generated registers for interrupt context saving
5215 were not getting allocated.
5217 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
5220 Fixed left shift. Will promote the left side of a left shift
5221 if a) left shifting more than size of operand or b) when assigned
5222 to something size > size of left side
5224 2002-03-14 Scott Dattalo <scott AT dattalo.com>
5226 tons of changes. Register allocation has been
5227 rewritten. Added customization for the various PICs. Flow
5228 analysis is restructured. ...
5234 Added. device.c is a PIC port hack to accomodate variations
5237 2002-03-13 Michael Hope <michaelh AT vroom>
5239 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
5241 2002-03-04 johanknol <johanknol AT manik>
5243 * /src/SDCCval.c: fixed
5245 const unsigned char arr[][2] = { { 0, 1 } };
5246 t18.c:1: error: Initializer element is not constant
5248 2002-03-04 bela <bela AT manik>
5250 * /device/include/mcs51reg.h:
5251 ds89c420 register definition update
5253 2002-03-03 <johan AT FRIJA>
5255 * support/Util/SDCCerr.c: did something, but don't no why anymore
5257 * support/regression/tests/bug-524691.c: made it a little less shy
5259 * src/SDCCast.c (decorateType): fixed bug #524697
5261 * src/SDCCast.c: made some lineno improvements
5263 * src/SDCCval.c (getNelements): changed warning to error
5265 * src/SDCCglue.c (printIvalArray): changed warning to error
5267 * src/SDCCicode.c: fixed a warning for mingw
5269 * src/SDCCast.c (decorateType): fixed the << promotion for ops
5271 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
5273 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
5275 * src/ds390/peeph.def:
5276 Added some more peephole rules
5278 * src/ds390/gen.c: Various fixes & enhancements
5280 * src/SDCClrange.c, src/SDCClrange.h:
5281 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
5283 * src/ds390/ralloc.c:
5284 various fixes & enhancements (ds390) specific
5286 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
5287 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
5290 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
5292 2002-03-02 <johan AT FRIJA>
5294 * src/SDCCast.c (decorateType): fixed bug #524708
5296 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
5298 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
5300 2002-03-01 Michael Hope <michaelh AT vroom>
5302 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
5304 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
5306 2002-03-01 <johan AT FRIJA>
5308 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
5310 * src/SDCCast.c (decorateType): fixed bug #524209
5312 * src/SDCCval.c (valNot): fixed bug #524195
5314 2002-02-26 <johan AT balder>
5316 * src/xa51/gen.c: fixed a warning
5318 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
5320 * src/SDCCast.c (decorateType): fixed bug #522534
5322 2002-02-23 <johan AT balder>
5324 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
5326 2002-02-22 <johan AT balder>
5328 * src/SDCCast.c: fixed bug #514865
5330 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
5332 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
5334 * sdcc/src/SDCCloop.c:
5335 Previous fix was not good. basic blocks that have "break" or "return" are
5336 not really partof a loop , but live ranges used in these blocks should
5337 be live thru the entire loop, so set partOfLoop but don't add them to
5340 2002-02-21 <johan AT FRIJA>
5342 * src/SDCCcse.c: fixed bug #514308
5344 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
5347 Fixed BUG #519583. If a conditional block ended in a return/break
5348 statement inside a loop, it was not being considered part of the loop.
5350 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
5352 2002-02-10 Karl Bongers <karl AT turbobit.com>
5355 Fixed up SDCDB debugger somewhat. Updated debugger/README
5356 with lots of comments and notes.
5358 * device/examples/test2.c:
5359 Fix bug, "red" variable not being initialized(compiler complained).
5361 * device/examples/Makefile, examples/test3.c:
5362 Add Makefile in device/examples folder, compiles test3.c
5363 for use as a multiple module SDCDB test case.
5365 * sim/ucsim/cmd.src/cmdset.cc:
5366 Took out debug printfs in ucsim "next" command.
5369 Karl and Johan start ucsim XA support. Most dissassembly working,
5370 about 75% emulation done(plenty of work remaining).
5372 * sim/ucsim/z80.src:
5373 Add Z80 support to ucsim, add test-ucz80 regression test,
5374 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
5375 Notice z80 compiler fails on examples/test3.c/crc code.
5377 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
5379 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
5380 Added support for --parms-in-bank1
5382 * src/ds390/peeph.def:
5383 added a few more peephole optimzations
5386 1) added __builtin_inp & __builtin_outp used to read in data of given length
5387 from a memory mapped port
5388 2) added __builtin_memcmp
5389 3) added __builtin_swapw swap bytes of a short
5391 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
5392 1) handle multiple send & receives from register bank1
5393 2) ralloc can now allocate DPTR1 to some liveRanges
5395 * src/SDCCsymt.c, src/SDCCsymt.h:
5396 changes to handle multiple sends & receives
5399 added some pointer arithmetic optimization
5402 added some pointer arithmetic optimizations but not stable yet so not
5403 called from anywhere (will get this working shortly)
5405 * src/SDCCopt.c: fixed for multiple sends & receives
5408 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
5409 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
5410 set preprocessor defines (depending on options)
5412 * src/SDCCicode.c, src/SDCCicode.h:
5413 changes made to handle multiple sends & receives
5416 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
5418 * src/SDCCcse.c, src/SDCCcse.h:
5419 added function findbackward def (to be used in upcoming optimization)
5421 * src/SDCCcflow.c, src/SDCCcflow.h:
5422 added function returnAtEnd - to determine if a basic block terminates with
5425 * src/SDCCast.c, src/SDCCast.h:
5426 added option parms-in-bank1
5428 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
5429 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
5430 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
5431 adjusted for --parms-in-bank1 option
5433 * device/include/string.h:
5434 donot redefine "reentrant" keyword
5436 * device/include/ds80c390.h: Added some more SFRs
5438 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5440 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
5442 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
5444 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
5446 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
5448 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
5450 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
5452 * Added --xram-movc option
5454 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5456 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
5458 2002-01-11 Johan Knol
5460 * Added math lib of Jesus Calvino-Fraga
5462 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
5464 * src/SDCCmain.c (processFile): fix processing of ../../src.c
5465 * support/regression/Makefile: new target test-mcs51-stack-auto
5466 * support/regression/ports/mcs51-stack-auto/spec.mk: added
5468 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
5470 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
5472 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
5474 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
5476 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
5478 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
5480 * src/SDCCglue.h: add definition for printIvalChar()
5482 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
5484 * src/SDCCast.c: fix #498138 by Johan
5486 * src/SDCCglue.c: fix #498138 by Johan
5488 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
5490 * support/regression/Makefile: fix clean
5492 * support/regression/ports/ds390/support.c: fix transmission of last character
5494 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
5496 * /sdcc/src/ds390/gen.c:
5497 a) improved computing address of stack variable
5498 b) took out some #if 0 code
5499 c) improved parmBytes adjustment
5500 d) improved genPlusIncr & genMinusIncr
5501 e) genCmp could generate bad code (when left assigned to DPTR)
5502 f) Fixed bug in hasInc
5504 * /sdcc/src/ds390/ralloc.c:
5505 a) packRegsForSupport could mess up live information (Fixed)
5506 b) packRegsDPTRuse could be incorrect for left & right shift
5508 * /sdcc/src/mcs51/ralloc.c:
5509 packRegsForSupport could mess up the live information (Fixed)
5511 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
5513 * /sdcc/src/SDCCast.c:
5514 can reverse a loop even if function call is present as long
5515 as the loop control variable is local & is not passed as parameter
5517 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5519 * /sdcc/ChangeLog: *** empty log message ***
5521 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
5522 More builtin function additions for TININative
5524 * /sdcc/src/ds390/ralloc.c:
5525 Had broken the regression testsuite
5527 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
5529 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
5530 Added funcattr hasStackParms will be set for reentrant functions when there
5531 are paramteres on the stack, this helps in minimizing frame pointer generation
5532 typeFromStr can handle function pointers now
5534 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
5535 *** empty log message ***
5537 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5539 * /src/ds390/gen.c, /src/ds390/main.c:
5540 More builtin function additions for TININative
5542 * /src/ds390/ralloc.c:
5543 Had broken the regression testsuite
5545 * /src/SDCCast.c: Fixed a bug in dumptree
5547 * /src/SDCCsymt.c, /src/SDCCsymt.h:
5548 Added funcattr hasStackParms will be set for reentrant functions when there
5549 are paramteres on the stack, this helps in minimizing frame pointer generation
5550 typeFromStr can handle function pointers now
5552 * /doc/builtins.txt, /doc/TININative.txt:
5553 *** empty log message ***
5556 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5558 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
5559 ALPHA version for -mTININative
5561 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
5562 updated to reflect changes in the port structure
5565 added function do_assemble (similar to do_link) if non-null this function
5566 will be called to do assembly (-mTININative) requires a multi command
5568 added function genAssemblerEnd will be called to generate assembler Epilogue
5571 added _JavaNative to debug info printing
5573 * /src/SDCCmain.c: added option --tini-libid
5574 added port->do_assemble function (-mTININative) has a multi command assemble
5576 * /src/SDCCglue.c: Disabled "constExpr" check
5577 added port->genAssemblerEnd function
5579 * /src/SDCCglobl.h: Added option --tini-libid value
5582 tookout optimizeCompare from the header (has no external references)
5584 * /src/SDCCast.c: made one more function "static"
5586 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
5588 * src/z80/mappings.i: Added z80asm support.
5590 * src/z80/main.c: Added z80asm support on --asm=z80asm
5592 * src/z80/gen.c: Fixed asm portability issues.
5594 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
5596 * src/SDCCglue.c (printExterns): Added global/extern split.
5598 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
5600 * support/regression/Makefile: added test for mcs51 model large
5602 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
5604 * support/regression/ports/gbz80/spec.mk: added -mgbz80
5606 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
5608 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
5610 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
5612 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
5614 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
5616 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
5618 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
5620 * support/regression/tests/simplefloat.c: Port to mcs51.
5622 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
5623 * support/regression/tests/bug-485362.c: Added.
5625 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
5627 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
5629 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
5631 * src/z80/gen.c (aopDump): Added a dump function.
5633 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
5634 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
5636 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
5638 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
5640 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
5642 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
5644 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
5646 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
5648 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
5650 * support/regression/ports/ds390/support.c: Use tinibios.
5652 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
5654 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
5656 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
5657 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
5659 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
5661 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
5663 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
5665 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
5667 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
5668 (packRegsForIYUse): Created and optimised.
5670 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
5672 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
5673 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5675 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
5677 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
5679 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
5681 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5683 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
5685 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
5687 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5689 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
5691 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
5693 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
5695 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
5697 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
5698 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
5699 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
5701 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
5703 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
5704 (genNotFloat): Added.
5705 (genUminusFloat): Added.
5707 * device/lib/z80/Makefile: Added floating pt stubs.
5709 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
5711 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
5713 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
5715 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5717 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
5719 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
5721 * sdcc/support/regression/Makefile: Add port ds390.
5723 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
5725 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
5727 * sdcc/support/regression/ports/ds390/spec.mk: Added.
5729 * sdcc/support/regression/ports/ds390/support.c: Added.
5731 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
5733 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
5735 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
5737 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5739 * device/include/malloc.h: Added z80 and gbz80 support.
5741 * device/lib/gbz80/heap.s: Added.
5743 * device/lib/z80/heap.s: Added.
5745 * device/lib/malloc.c: Added z80 and gbz80 support.
5747 * support/regression/tests/malloc.c (testMalloc): Added.
5749 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
5751 * support/regression/tests/bug-478094.c: Added.
5753 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
5755 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
5757 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
5759 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
5761 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
5763 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
5765 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
5767 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5769 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
5771 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
5773 * support/regression/tests/bug-477927.c: Added.
5775 * src/z80/peeph.def: Added minor rules.
5777 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
5779 * src/z80/peeph.def: Added jump optimisation modification.
5781 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
5783 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
5785 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
5787 * support/regression/tests/funptrs.c: Added.
5789 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
5791 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
5793 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
5795 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
5797 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
5799 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
5800 (movLeft2ResultLong): Created.
5802 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
5803 (joinPushes): Added. Joins two char pushes into a word push.
5805 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
5807 * support/cpp2/Makefile.in (install): Added creation of dest dir.
5809 * support/makebin/Makefile (install): Added creation of dest dir.
5811 2001-10-24 Karl Bongers <karl AT turbobit.com>
5813 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
5815 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
5817 * src/z80/ralloc.c: Turned off faulty pack for one use.
5819 * src/z80/peeph-gbz80.def: Removed redundent restart options.
5821 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
5823 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
5825 * support/regression/Makefile: Improved clean
5827 * support/regression/ports/gbz80/spec.mk: Added clean
5829 * support/regression/ports/host/spec.mk: Added clean
5831 * support/regression/ports/z80/spec.mk: Added clean
5833 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
5835 * support/regression/ports/mcs51/timeout.c: little improvements
5837 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
5839 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
5841 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
5843 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
5845 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
5847 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
5849 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
5851 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
5852 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
5854 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
5856 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
5858 * src/mcs51/main.c (_linkCmd): Added bin path to command.
5860 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
5862 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
5864 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
5866 * support/regression/tests/longor.c: Added.
5868 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
5870 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
5872 * as/mcs51/aslink.h: define PATH_MAX
5874 * as/mcs51/asm.h: define PATH_MAX
5876 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
5878 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
5880 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
5882 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
5884 * src/SDCCglobl.h: define PATH_MAX
5886 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
5888 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
5890 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
5892 * src/z80/gen.c (gencjneshort): Fixed
5894 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
5896 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
5898 * support/regression/tests/bug-469671.c: Added.
5900 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
5902 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
5904 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
5906 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
5908 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
5910 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
5912 * src/device/lib/_mulint.c : removed hint: nooverlay bug
5914 * src/device/lib/_mullong.c : removed hint: nooverlay bug
5916 * src/device/lib/_divuint.c : removed hint: nooverlay bug
5918 * src/device/lib/_divulong.c: removed hint: nooverlay bug
5920 * src/device/lib/_moduint.c : removed hint: nooverlay bug
5922 * src/device/lib/_modulong.c: removed hint: nooverlay bug
5924 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
5926 * 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.
5928 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
5930 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
5932 2001-10-07 <johan AT FRIJA>
5934 * device/lib/gets.c (gets): fixed the return value.
5936 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
5937 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
5939 * 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.
5941 * 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.
5943 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
5945 * src/pic/gen.c: Removed Safe_strdup.
5947 * configure.in: Added option to enable libgc support.
5949 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
5950 (bitVectUnion): Optimised.
5951 (bitVectIntersect): Optimised.
5952 (bitVectBitsInCommon): Optimised.
5953 (bitVectCplAnd): Optimised.
5955 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
5957 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5959 * src/SDCCmain.c: distinguish between assembler debug and plain options
5961 * src/avr/main.c: remove standard assembler options
5963 * src/ds390/main.c: remove standard assembler options
5965 * src/mcs51/main.c: remove standard assembler options
5967 * src/port.h: removed "PENDING" comment
5969 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5971 * src/device/lib/_mulint.c : new, with assember functions
5973 * src/device/lib/_mullong.c : new, with assember functions
5975 * src/device/lib/_divuint.c : with assember functions
5977 * src/device/lib/_divsint.c : with assember functions
5979 * src/device/lib/_divulong.c: with assember functions
5981 * src/device/lib/_divslong.c: with assember functions
5983 * src/device/lib/_moduint.c : with assember functions
5985 * src/device/lib/_modsint.c : with assember functions
5987 * src/device/lib/_modulong.c: with assember functions
5989 * src/device/lib/_modslong.c: with assember functions
5991 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
5993 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
5995 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
5996 replaced _mululong.c and _mulslong.c by _mullong.c
5998 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6000 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
6002 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6004 * src/SDCCglue.c: test, if win32api is available for MINGW
6006 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6008 * src/SDCCsymt.c: no more _modifier in printTypeChain()
6009 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
6010 * support/regression/ports/gbz80/spec.mk: removed GENERIC
6011 * support/regression/ports/host/spec.mk: removed GENERIC
6012 * support/regression/ports/mcs51/spec.mk: removed GENERIC
6013 * support/regression/ports/z80/spec.mk: removed GENERIC
6015 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
6017 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
6019 * support/regression/tests/bug-467035.c: Created.
6021 2001-10-01 <johan AT FRIJA>
6023 * src/SDCC.y: fixed bug #466586 part 1
6025 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
6027 * SDCCicode.c: z80 has no generic pointers
6028 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
6030 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
6032 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
6034 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
6036 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
6038 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
6040 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
6042 * configure.in: Fixed up so that ucsim is only configured once.
6044 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
6046 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
6047 (getPathDifference): As above.
6049 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
6051 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
6053 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
6054 * .version: Updated to 2.3.1
6056 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
6057 Added copyright header.
6059 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
6060 (assemble): Added support for macro based assembler commands.
6061 (linkEdit): Added support for macro based linker commands.
6062 (preProcess): Changed the pre-processor to use macros.
6063 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
6064 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
6066 * device/lib/z80/crt0.s: Added module name for debugging.
6068 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
6070 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6072 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
6074 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
6076 * src/Makefile.in: Added SDCCmacro and SDCCutil
6078 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
6080 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6082 2001-09-16 <johan AT FRIJA>
6084 * 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.
6086 2001-09-15 <johan AT FRIJA>
6088 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
6089 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
6091 2001-09-11 <johan AT FRIJA>
6093 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
6095 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
6097 * support/regression/tests/bug-460444.c: Added test case.
6099 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
6100 (genCast): Added justification for all of the asserts.
6102 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
6104 * support/regression/support.c: _xdata replaced by xdata
6106 * support/regression/spec.mk: removed _generic
6108 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
6110 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
6112 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
6113 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
6115 * src/z80/peeph.def: Added a rule to optimise shift then compare.
6117 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
6119 * support/regression/tests/bug-460010.c: Added test case.
6121 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
6123 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
6125 * support/regression/Makefile: inter-port-clean adjusted for mcs51
6127 * support/regression/testfwk.c: removed workaround for bug #436344
6129 * support/regression/tests/bp.c: use less memory with mcs51
6131 * support/regression/tests/bug-441448.c: use less memory
6133 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
6135 * support/regression/collate-results.py: typo
6137 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
6139 * support/regression/tests/fetchoverlap.c: Added new test case.
6141 * support/regression/tests/bp.c: Added new test case.
6143 * support/regression/tests/bug-448984.c: Added new test case.
6145 * support/regression/tests/pow2shifts.c: Added new test case.
6147 * src/z80/gen.c: Turned off the noise it normally generates for the release.
6148 (genlshTwo): Fixed right shift for count > 8.
6150 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
6152 2001-09-08 <johan AT FRIJA>
6154 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
6156 2001-09-07 <johan AT FRIJA>
6158 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
6160 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
6162 2001-09-06 <johan AT FRIJA>
6164 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
6165 * bernhard noted me at this: "() equals to (void)" (1.38)
6167 2001-09-05 <johan AT FRIJA>
6169 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
6171 2001-09-04 <johan AT FRIJA>
6173 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
6176 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
6178 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
6180 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
6182 * link/z80/aslink.h: Fixed path for PATH_MAX
6184 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
6186 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
6188 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
6190 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
6192 * 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.
6194 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
6196 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
6197 (genCmp): Fixed up genCmp for the GB with longs.
6199 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
6201 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
6203 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
6205 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
6207 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
6209 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
6211 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
6213 * 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.
6215 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
6217 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
6219 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
6221 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
6223 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6225 * sim/ucsim/configure: little improvement of Cygwin-detection
6226 * sim/ucsim/configure.in: little improvement of Cygwin-detection
6227 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
6228 * support/regression/tests/bug-221100.c: small changes for mcs51
6229 * support/regression/tests/bug-221168.c: small changes for mcs51
6230 * support/regression/tests/bug-227710.c: small changes for mcs51
6231 * support/regression/tests/staticinit.c: small changes for mcs51
6232 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
6233 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
6234 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601