1 2006-04-24 Raphael Neider <rneider AT web.de>
3 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
4 config word, "pic14_"-prefixed some extern functions
5 (pic14_emitConfigWord): emit __config directive(s) if assignment to
6 config word has been found
7 * src/pic/device.h: added prototypes
8 * src/pic/pcode.c: added "pic14_"-prefix where needed
9 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic fixup
10 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config words,
11 (pic14emitRegularMap): ignore config words,
12 (pic14createInterruptVect): moved generating __config directives away
13 (picglue): have __config directives emitted
15 2006-04-24 Borut Razem <borut.razem AT siol.net>
17 * doc/Makefile: sync with nightly build makefile
19 2006-04-24 Raphael Neider <rneider AT web.de>
21 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
22 registers that have not been assigned proper liveranges,
23 fixes #1469504 and #1474602,
24 (pCodeRegOptimizeRegUsage): fixed typo in comment
26 2006-04-24 Borut Razem <borut.razem AT siol.net>
28 * device/examples/main8051.c: deleted - it was removed from CVS
29 24.mar.2000 and after that modified 18.feb.2001, so it reappered
30 after the transition to Subversion
31 * src/SDCCalloc.h: deleted - it was removed from CVS
32 3.feb.2001 and after that modified 18.feb.2001, so it reappered
33 after the transition to Subversion
34 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
35 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
36 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
37 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
39 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
41 * as/asx8051.dsp: added mcs51/strcmpi.h
42 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
43 * as/hc08/aslink.h: updated lnksect prototype
45 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
47 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
48 (newdot): handle A_ABS
50 * as/mcs51/asout.c (outarea): output address
52 * as/mcs51/lkaomf51.c: disabled unused array UsageType
55 * as/z80/z80pst.c: "ABS" is not A_OVR
56 * as/hc08/lkarea.c (newarea): read a_addr,
57 (lnkarea): added codemap array, sort absolute areas to the front,
58 combine all GSINITx/GSFINAL,
59 (find_empty_space, allocate_space): new functions,
60 (lnksect): return next address, handle absolute sections
61 * as/mcs51/lkarea.c (newarea): read a_addr,
62 lnksect2 prototype changed,
63 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
64 (find_empty_space, allocate_space): new, factored out of lnksect2,
65 (lnksect2): return next address, handle absolute sections
67 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
68 * as/hc08/lklibr.c (addfile, fndsym),
69 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
70 index out of range and detect both '\' and '/'
71 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
72 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
73 regression tests (ds390 cannot return bool yet)
74 * doc/sdccman.lyx: changed version number, document changed --no-peep,
75 document critical interrupts on z80, document changed SDCC define
76 * src/asm.c (_asxxxx_mapping): fixed .org directive,
77 (_a390_mapping): added .org directive
78 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
79 (genMultOneByte): fixed warnings
80 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
82 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
83 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
84 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
85 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
86 * src/pic16/main.c: removed newReg prototype
88 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
90 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
93 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
95 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
96 from short to PIC_OPTYPE
97 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
98 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
99 optype from short to PIC_OPTYPE
100 * src/port.h: made int_size unsigned to fix warnings
101 * src/SDCC.y: fixed warning on MSVC
102 * src/SDCCicode.c (getArraySizePtr): return unsigned int
103 * src/SDCCopt.c (convertToFcall): fixed warnings
104 * src/SDCCsymt.h: removed double prototype for genSymName
105 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
106 offset int to fix warnings
108 2006-04-22 Borut Razem <borut.razem AT siol.net>
110 * doc/sdccman.lyx, */Makefile, */Makefile.in:
111 references to CVS replaced with Subversion
113 2006-04-21 Borut Razem <borut.razem AT siol.net>
115 * doc/sdccman.lyx, */Makefile, */Makefile.in:
116 references to CVS replaced with Subversion
118 2006-04-19 Borut Razem <borut.razem AT siol.net>
120 * src/version.awk: adapted for svn
121 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
122 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
123 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
124 /binutils-avr/etc/*.vi, *.jin: removed all properties
125 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
127 2006-04-19 Borut Razem <borut.razem AT siol.net>
129 * CVS to Subversion migration completed
131 2006-04-18 Borut Razem <borut.razem AT siol.net>
133 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
134 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
136 2006-04-17 Borut Razem <borut.razem AT siol.net>
138 * device/include/Makefile.in: added pic/*.inc to the installation
140 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
142 * support/regression/collate-results.py: fixed output in case of
144 * support/regression/generate-cases.py: fixed splitting of pathnames
146 * as/hc08/lklibr.c (addfile),
147 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
149 2006-04-11 Raphael Neider <rneider AT web.de>
151 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
152 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
153 * src/pic16/pcode.c (assignValnums): fixed #1460578
155 2006-04-11 Raphael Neider <rneider AT web.de>
157 * device/lib/pic/libdev/*.c,
158 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
159 fixes #1468739, enables compilation in --std-c99 mode
160 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
162 2006-04-11 Raphael Neider <rneider AT web.de>
164 * src/pic/device.c (find_device): removed debug output
165 (list_valid_pics): enabled verbose listing of supported devices
166 * device/include/stdbool.h: define bool as char for pic14/16 as well
168 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
170 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
172 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
174 * .version: bumped version to 2.5.6
175 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
177 2006-04-06 Raphael Neider <rneider AT web.de>
179 * .version: bumped version to 2.5.6 (pic14 ABI changed)
180 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
181 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
182 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
183 pic14_constructAbsMap
184 (pic14printPublics): declare absolute global symbols as global
185 (pic14createInterruptVect),
186 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
187 (newReg): assume new registers unused, use correct name in
188 hashtable (reg->name instead of name), more debugLog output
189 * src/pic/device.h (PIC_device): added fields for verbose output
190 * src/pic/device.c: moved device definition to pic14devices.txt,
191 added routines for runtime parsing of pic14devices.txt,
192 added support for second config word
193 * src/pic/main.c (_process_pragma): removed #pragma maxram,
194 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
195 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
196 (_pic14_parseOptions): moved pCodeInitRegisters here
197 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
198 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
199 (pCodeInitRegisters): rewrapped comments, perpared new approach to
200 handling the pseudo stack
201 * device/lib/Makefile.in: ignore failures in objects-pic16,
202 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
203 * device/lib/pic/NEWS: document new dependency on picXXX.lib
204 * device/lib/pic/Makefile.subdir,
205 * device/lib/pic16/Makefile.subdir: improved clean rules
206 * device/lib/pic/libdev/: NEW, pic14 device libraries
207 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
208 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
209 * device/include/Makefile.in: create subdir and install pic14 headers
210 * device/include/pic/p16f_common.inc: removed unused declarations
211 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
212 PICs from inc2h.pl v1.6,
213 replaced BIT_AT macros with struct declarations
214 * device/include/pic/pic14devices.txt: definition of supported devices,
215 all above improvements contributed by Zik Saleeba, thanks
216 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
217 * support/scripts/sdcc.nsi: also install pic14 device libraries and
220 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
222 * device/include/mcs51/c8051f410.h: added interrupt numbers,
223 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
224 thanks to Charles Olds
226 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
228 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
230 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
232 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
233 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
234 * support/regression/bug1464657.c: added, new test
236 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
238 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
241 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
243 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
244 --no-peep and --peep-file <file> are used don't use default rules but
247 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
249 * src/mcs51/gen.c (genCall): fixed bug 1457608
251 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
253 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
254 changes seem to cause (trigger?) problems with the build system.
256 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
258 * src/SDCCpeeph.c (operandsLiteral): new, added,
259 (callFuncByName): inserted operandsLiteral
260 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
262 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
264 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
265 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
267 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
269 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
270 implemented patch 1120823 Thanks to Willy De la Court (normal
271 interrupts need an interrupt number now if they are made critical),
272 and enabled nesting of critical functions though not for gbz80
273 (genCritical, genEndCritical): added functions
274 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
275 * src/z80/mappings.i: added "ei" to all mappings
277 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
279 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
280 submitted by the Debian SDCC maintainer Aurelien Jarno:
281 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
282 archive with gcc 4.1 on mips and wrote the patch"
284 2006-03-16 Raphael Neider <rneider AT web.de>
286 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
287 the left operand is shorter than the result (c* = lit-c* + int),
289 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
292 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
294 * src/.version: increased version number to 2.5.5
295 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
296 linking is done manually in pic16 port's _linkEdit,
297 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
298 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
299 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
300 allocate asmop as AOP_ACC,
301 (aopForRemat): added parameter 'bool result' in function declaration,
302 (pic16_aopGet): return AOP_ACC when accessing WREG,
303 (pic16_popGetTempReg): minor modification,
304 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
305 'pic16_allocWithIdx',
306 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
307 calling function in absolute addresses,
308 (genAssign): take into account AOP_ACC asmop,
309 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
310 * src/pic16/pcoderegs.c: some debug functions and lines added,
311 * src/pic16/ralloc.c (decodeRegType): added but commented out,
312 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
314 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
315 call to allocReg, not by manually allocating a new one,
316 (pic16_assignRegisters): now before going through the register
317 allocating functions mark all registers as free. This eliminates some
318 side effects resulting from peephole parser done earlier in the backbone
320 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
322 * src/SDCCicode.c (geniCodeLogic),
323 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
325 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
327 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
328 (genSend): bugfix, do not allocate and free twice,
329 (shiftRLong): handle partially overlapping aops
330 * support/regression/tests/bitopcse.c: fixed warning redefined idata
332 2006-03-08 Borut Razem <borut.razem AT siol.net>
334 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
337 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
339 * support/regression/tests/bug1409955.c: new, added
340 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
341 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
342 (aopForSym, aopOp): increment asmop.allocated if reused,
343 (freeAsmop): decrement asmop.allocated and check for zero instead of
345 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
346 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
347 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
348 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
349 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
350 genSignedRightShift, genRightShift, genDataPointerGet,
351 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
352 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
353 in reverse order from allocation,
354 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
355 added swappedLR to keep track
356 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
357 pdata & code for GCC, z80, gbz80 & hc08
358 * support/regression/tests/zeropad.c: moved defines to testfwk.h
360 2006-03-08 Raphael Neider <rneider AT web.de>
362 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
364 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
366 * device/include/mcs51/c8051f410.h: new SiLabs mcu
367 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
368 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
370 2006-03-06 Borut Razem <borut.razem AT siol.net>
372 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
373 made the linker quiet
375 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
377 * src/pic16/gen.c (genPcall): fixed bug #1443644
378 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
379 which dumps before the function entry point a data byte which represents
380 the number of the local variables used by the specified function, added
381 'xinst' for initial support for Extended Instruction Support,
382 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
383 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
384 port->fun_prefix anymore (may change later),
385 (genFunction, genEndFunction): do not store/restore local registers for
386 _main (this should take care the --main-return command line option in
388 (genOr): removed some legacy pic-port instructions,
389 * src/pic16/genarith.c (genAddLit): re-enabled old code because
390 performing operations with SFR's causes data to be written more than
391 once to each SFR. Perhaps SFRs should be handled in special cases...
392 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
394 * src/pic16/main.c (_process_pragma): stack bound checking did not take
395 into account for stack starting position,
396 (struct OPTIONS pic16_optionsTable): added command line argument
397 --extended or -y for Extended Instruction Support,
398 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
399 (deassignLRs): *** perhaps the most important change, old 'for' code
400 (commented out for reference), didn't account for some registers which
401 were left marked 'not free' after a pointer operation. The change
402 reduces register usage a lot in some cases
404 2006-03-04 Borut Razem <borut.razem AT siol.net>
406 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
408 * support/regression/tests/bug-524697.c: decreased array size for
409 mcs51 to fit into the internal RAM
410 * support/regression/Makefile.in: a little bit more verbose
412 2006-03-03 Borut Razem <borut.razem AT siol.net>
414 * support/regression/fwk/lib/testfwk.c,
415 support/regression/fwk/include/testfwk.h: introduced function
416 _prints(), nonrecursive _printn(), call _initEmu() from main()
417 * support/regression/ports/gbz80/support.asm,
418 support/regression/ports/ucz80/support.asm,
419 support/regression/ports/z80/support.asm,
420 support/regression/ports/ds390/support.c,
421 support/regression/ports/hc08/support.c,
422 support/regression/ports/host/support.c,
423 support/regression/ports/mcs51/support.c,
424 support/regression/ports/xa51/support.c: added empty _initEmu()
426 * support/regression/ports/pic16/gpsim.cmd,
427 support/regression/ports/pic16/spec.mk,
428 support/regression/ports/pic16/support.c,
429 support/regression/Makefile.in: added pic16 regression test
431 2006-03-01 Raphael Neider <rneider AT web.de>
433 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
434 genConstPointerGet): use safe way of generating MOVFF to cover
435 literals as well as registers, fixes bug #1440527
436 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
438 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
439 more correctly, fixes bug #1232186
440 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
441 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
442 gplink guess the correct processor in more cases, applied patch
443 from Till Riedel attached to and fixing bug #1436552
445 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
447 * support/regression/tests/array.c: added, contains check for #1434401
448 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
450 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
452 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
453 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
454 * device/include/mcs51/c8051f326.h,
455 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
456 * device/include/mcs51/c8051f000.h,
457 * device/include/mcs51/c8051f018.h,
458 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
459 PCON_IDLE,PCON_STOP and added sfr16 definitions
461 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
463 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
464 genGetWord): fixed bug 1409955
466 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
468 * device/include/hc08/mc68hc908gp32.h,
469 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
471 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
473 * src/SDCCast.c (constExprValue): return NULL if not a value
474 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
475 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
476 * support/regression/tests/bitfields.c: enabled signed bitfield for all
478 2006-02-13 Borut Razem <borut.razem AT siol.net>
480 * src/regression/ptrarg.c: added, fails due to bug #1430967
481 * src/regression/Makefile: ptrarg.c added, ...
483 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
485 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
486 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
488 2006-02-11 Borut Razem <borut.razem AT siol.net>
490 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
491 print "Processor: xxx" message to stdout only if --verbose
493 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
495 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
496 * support/regression/tests/bug1426356.c: added
497 * support/regression/tests/bitfields.c: removed 2 tests
499 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
501 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
502 * device/include/mcs51/c8051f330.h,
503 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
504 PCON_IDLE,PCON_STOP and added sfr16 definitions
505 * device/lib/_divsint.c,
506 * device/lib/_divuint.c,
507 * device/lib/_divulong.c,
508 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
509 register bank bug for small stackauto
511 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
513 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
515 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
517 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
518 * all.dsp: corrected several bin paths
519 * device/include/mcs51/c8051f120.h,
520 * device/include/mcs51/c8051f300.h,
521 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
522 to PCON_IDLE,PCON_STOP
523 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
524 * device/lib/printf_large.c (output_float): fixed bug 1388703
525 * support/regression/tests/bug1057979.c: added test for bug 1388703
527 2006-02-08 Raphael Neider <rneider AT web.de>
529 * src/pic/pcode.c (pciTRIS): fixed typo,
530 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
531 (LinkFlow): fixed handling of flows that end in a call,
532 (ReuseReg): perform safety check earlier
533 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
534 to work with flows at the beginning of a pBlock,
535 fixes #1426557 (Symbol not previously defined),
536 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
538 (RemoveUnusedRegisters): update register usage info
539 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
540 created, reuse existing ones instead
541 * src/pic/gen.c (genPcall): fixed #1424719
543 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
548 * link/z80/aslink.h: fixed build on current cygwin:
549 replaced getline() by lk_getline()
551 2006-02-01 Borut Razem <borut.razem AT siol.net>
553 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
554 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
555 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
556 src/regression/bool1.c, src/regression/bool2.c,
557 src/regression/bool3.c, src/regression/call1.c,
558 src/regression/compare.c, src/regression/compare10.c,
559 src/regression/compare2.c, src/regression/compare3.c,
560 src/regression/compare4.c, src/regression/compare5.c,
561 src/regression/compare6.c, src/regression/compare7.c,
562 src/regression/compare8.c, src/regression/compare9.c,
563 src/regression/configword.c, src/regression/for.c,
564 src/regression/inline.c, src/regression/mult1.c,
565 src/regression/nestfor.c, src/regression/or1.c,
566 src/regression/pointer1.c, src/regression/ptrfunc.c,
567 src/regression/rotate1.c, src/regression/rotate2.c,
568 src/regression/rotate3.c, src/regression/rotate4.c,
569 src/regression/rotate5.c, src/regression/rotate6.c,
570 src/regression/rotate7.c, src/regression/string1.c,
571 src/regression/struct1.c, src/regression/sub.c,
572 src/regression/sub2.c, src/regression/switch1.c,
573 src/regression/while.c, src/regression/xor.c,
574 src/regression/create_stc, src/regression/simulate,
575 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
577 * src/regression/gpsim_assert.h: added
579 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
581 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
582 ((void (code *) (void)) 0) ();
599 * as/z80/asmain.c: fixed build on current cygwin:
600 replaced getline() by as_getline()
602 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
604 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
605 declarator in the symbol chain
607 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
608 parameter list for function pointers
609 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
610 * support/regression/tests/bug-716242.c: added
612 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
614 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
616 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
618 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
620 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
621 inifinitely recurseable, added static
622 * support/regression/tests/bug-1408066.c: added
624 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
627 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
628 renamed, added possibility to create "postLoopLbl"-labels
629 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
630 newiTempLoopHeaderLabel
631 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
632 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
633 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
634 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
635 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
636 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
637 (basicInduction): fixed bug #136564, made static,
638 (loopInduction): changed parameter of basicInduction, made static,
639 (addPostLoopBlock): added
640 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
641 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
643 * support/regression/tests/bug-136564.c: added
644 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
645 --std-sdcc99 to LIBSDCCFLAGS
647 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
649 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
651 * support/regression/tests/bug-1406131.c: added
653 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
655 * src/SDCCast.c (decorateType): fix promotion of unary minus
656 * src/SDCCsymt.c (computeType): beautified
657 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
658 (valUnaryPM, valComplement): fix sign and promotion,
659 (valNot): ANSI: result type is int (SDCC: unsigned char)
660 * support/regression/tests/uminus.c: speedup by removing superflous
662 * support/regression/tests/onebyte.c: added promotion and signedness
663 tests for unary minus
664 * support/regressions/tests/bug-477927.c: disable warning about
665 uninitialized variables
666 * support/regression/tests/not.c: added
668 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
670 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
671 * src/mcs51/gen.c (gen51Code): show final register usage after
672 fillGaps in asm with --i-code-in-asm
673 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
674 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
675 incUsed, rliveClear, adjustIChain): made static,
676 (setFromRange): excluded because it's unused,
677 (findPrevUseSym, markWholeLoop): added,
678 (findPrevUse): rewritten; fixes bug 895992; now a complete search
679 through all branches of predecessors enables sdcc to emit the warning
680 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
681 (rlivePoint): made static, added parameter emitWarnings which is only
682 true during the first run out of two,
683 (findRecursiveSucc, findRecursivePred): removed,
684 (computeLiveRanges): made static, added parameter emitWarnings,
685 (dumpIcRlive): added for debugging only
686 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
687 removed prototype of setFromRange()
688 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
689 in call of computeLiveRanges()
690 * support/regression/tests/bug-895992.c: added
691 * support/regression/tests/bug-971834.c: added
692 * support/valdiag/tests/bug-895992.c: added
693 * support/valdiag/tests/bug-971834.c: added
695 2005-12-18 Raphael Neider <rneider AT web.de>
697 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
698 (genUnpackBits): improved code for direct operands,
699 (genPackBits): improved code for literal assignment to bitfields
700 and for direct destination operands (no FSR indirection),
701 prevented redundant AND, fixes #1362800,
702 (AccLsh): added parameter to disable masking of the result
703 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
704 skip instructions with side-effects (like incfsz),
705 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
706 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
707 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
710 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
712 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
713 volatile variables as spill location
715 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
717 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
719 * support/regression/tests/bug-1376320.c: added
721 2005-12-08 Raphael Neider <rneider AT web.de>
723 * src/pic/device.c: renamed is_shared to pic14_is_shared
724 * src/pic/gen.c (genIfx): re-enabled handling of sbits
725 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
726 (is_valid_identifier): added for above workaround
728 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
730 * device/lib/Makefile.in: fixed to enable port-specific-objects
731 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
732 char, thanks Hubert Sack
733 * doc/sdccman.lyx: documented --xstack-loc,
734 elaborated a bit more on interrupts and pitfalls,
735 removed "setjmp/longjmp unsupported",
736 documented some unsupported C99 features
737 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
738 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
739 if, thanks Hubert Sack
740 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
741 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
743 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
744 regression tests can report resource usage (rfe 700441)
745 * support/regression/collate-results.py: report resource usage
746 * support/regression/ports/ds390/spec.mk,
747 * support/regression/ports/hc08/spec.mk,
748 * support/regression/ports/mcs51/spec.mk,
749 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
750 * support/regression/ports/ds390/uCsim.cmd,
751 * support/regression/ports/hc08/uCsim.cmd,
752 * support/regression/ports/mcs51/uCsim.cmd,
753 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
754 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
755 library, use the default one
756 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
759 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
761 * config.dsp: added dependency on .version and configure_vc.awk
762 * device/include/setjmp.h: updated for --stack-auto and --xstack
763 * device/include/mcs51/at89c51snd1c.h: corrected line endings
764 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
765 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
766 * device/lib/libsdcc.lib: added _setjmp
767 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
768 (decorateType): fixed bug 1372851,
769 (optimizeGetHbit): fixed warning
770 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
772 * support/regression/tests/bug1057979.c: added test for bug 1358192
773 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
775 2005-12-03 Borut Razem <borut.razem AT siol.net>
777 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
778 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
780 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
782 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
783 createIval): implement symbol independant "flexible array member",
784 (createIvalCharPtr): implemented flexible array initialisation with a
786 * src/SDCCsymt.c (copyStruct): removed,
787 (getSize): fixed misleading comment,
788 (getAllocSize): removed, the additional allocation size is now in
789 sym->flexArrayLength,
790 (checkStructFlexArray): new, syntax checks for flexible array members,
791 (compStructSize): added syntax checks for "flexible array members"
792 (copyStruct): removed,
793 (copyLinkChain): removed inefficient fix for bug 770487
794 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
795 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
796 symbol->flexArrayLength
798 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
799 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
800 * support/regression/tests/structflexarray.c: added
801 * support/valdiag/tests/structflexiblearray.c: added
803 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
805 * src/SDCCast.c (decorateType): fixed bug 1368489
806 * support/Util/SDCCerr.c,
807 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
809 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
811 * device/include/mcs51/at89c51snd1c.h: added file submitted by
812 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
814 2005-11-27 Borut Razem <borut.razem AT siol.net>
816 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
817 support/cpp2/mkdeps.h: added command line option
818 -obj-ext=<extension> to SDCPP to define object file externion, used
819 for generation of make dependencies (-M)
820 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
822 2005-11-26 Borut Razem <borut.razem AT siol.net>
824 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
825 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
826 added pic and pic16 libraries
828 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
830 * device/include/float.h: Corrected typo in prototype of __fsgt
832 2005-11-25 Borut Razem <borut.razem AT siol.net>
834 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
835 added creation of model-mcs51-stack-auto libraries
837 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
839 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
841 * src/SDCCast.c (createIvalArray): removed obsolete comment
843 2005-11-24 Borut Razem <borut.razem AT siol.net>
845 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
846 added missing device/lib/mcs51/crt*.asm sources
848 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
850 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
852 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
854 * device/lib/_fs2schar.c,
855 * device/lib/_fs2sint.c,
856 * device/lib/_fs2slong.c: optimized inline asm
858 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
860 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
861 Better handling of floats between -1.0 and 0.0.
863 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
865 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
866 (the missing "if"s prohibited removal of redundant labels)
868 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
870 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
871 Properly convert floats between -1.0 and 0.0 to long, int, and char
872 types (max integer value of negative floats tends to zero).
873 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
874 Removed changes made so to work properly with floats between
875 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
878 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
880 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
881 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
882 (genCast) cosmetic change
883 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
884 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
886 * support/regression/tests/bitfields (testSignedBitfields): added
888 2005-11-18 Borut Razem <borut.razem AT siol.net>
890 * sdcc/device/lib/Makefile.in: remove all unnecessary files
891 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
892 introduced SILENT option to make building of pic16 libraries less
894 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
896 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
897 Now they work properly with floats between -1.0 and 0.0
898 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
900 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
902 * src/SDCCicode.c (printOperand): added missing else
904 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
906 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
907 reformatted for better readability
908 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
911 2005-11-17 Borut Razem <borut.razem AT siol.net>
913 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
914 introduced SILENT option to make building of pic16 libraries less
915 verbose - used for nightly snapshot build
916 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
917 available on Win32 platforms.
918 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
919 medium, large, pic and pic16
921 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
923 * device/lib/printf_large.c: Temporary patch for bug 1358192:
924 printf("%f"...) sets fraction to zero.
926 2005-11-16 Raphael Neider <rneider AT web.de>
928 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
930 * src/pic/gen.c (genIfx): implemented for CARRY bit
931 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
932 to generic pointers, fixes #1357332,
933 (pic16_movLit2f): NEW,
934 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
936 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
938 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
940 2005-11-11 Raphael Neider <rneider AT web.de>
942 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
943 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
944 compute pointer's type from operand,
945 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
946 improved single bit reads, fixes bug #1353379
948 2005-11-09 Borut Razem <borut.razem AT siol.net>
950 * support/scripts/sdcc.nsi: added lib/pic to the package
952 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
954 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
956 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
958 * support/regression/tests/bug1348008.c: added
959 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
960 * support/regression/tests/bug1337835.c: updated comment
962 2005-11-06 Borut Razem <borut.razem AT siol.net>
964 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
965 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
966 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
967 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
968 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
969 dynamic construction of cl_error_class and derivates - 2.nd try
971 2005-11-05 Borut Razem <borut.razem AT siol.net>
973 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
974 bug, which caused Bus Errors on sparc solaris
976 2005-11-04 Borut Razem <borut.razem AT siol.net>
978 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
979 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
980 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
981 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
982 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
983 and derivates to resolve the initialization problem on OSX
985 2005-11-02 Borut Razem <borut.razem AT siol.net>
987 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
988 corrected typo - #include <winsock2.h>
990 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
992 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
993 (_asxxxx_mapping): added org directive for future enhancements
995 2005-11-01 Borut Razem <borut.razem AT siol.net>
997 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
998 enabled sockets on WIN32
999 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1001 2005-10-31 Borut Razem <borut.razem AT siol.net>
1003 * support/regression/generate-cases.py: escape backslashes in {testcase}:
1004 WIN32 backslash path delimiters should be escaped when used in C strings
1005 * support/regression/tests/bitfields.c: exclude failing assertions for
1006 __CYGWIN32__ and __MINGW32__ hosts
1008 2005-10-30 Borut Razem <borut.razem AT siol.net>
1010 * src/SDCCutil.c: corrected double comparison typo
1012 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1014 * device/lib/medium/Makefile: added for new memory model medium
1015 * device/include/asm/mcs51/features.h: updated for medium/pdata
1016 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1017 added Multiply & Accumulate sbit's and MAC0_PAGE define
1018 * device/include/mcs51/c8051f300.h: added sfr16 definitions
1019 * device/include/mcs51/c8051f310.h: added sfr16 definitions
1020 * device/lib/_mullong.c: update for medium model
1021 * device/lib/incl.mk: added medium model
1022 * doc/sdccman.lyx: documented medium model
1023 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1024 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1025 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1026 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1027 (allocParms): set SCLS and OCLS to pdata for medium model
1028 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1030 (powof2): return <0 if not power of 2
1031 * src/avr/gen.c (genBitWise): use updated powof2
1032 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1033 (shiftR2Left2Result): small optimization in setup, save acc when storing,
1034 (shiftLLeftOrResult): use B if necessary
1035 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1036 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1037 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1038 * support/regression/Makefile.in: added test-mcs51-medium
1039 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1041 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1043 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1045 * device/lib/time.c (mktime): fixed bug 1334315
1047 2005-10-28 Raphael Neider <rneider AT web.de>
1049 * device/include/pic/p16f_common.inc: added common declarations
1050 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1052 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1054 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1055 (aopPutUsesAcc): added to predict accumulator use,
1056 (assignResultValue): save acc if necessary,
1057 (genMinusDec): store result if indirectly addressed,
1058 (genDivOneByte): save acc if necessary,
1059 (movLeft2Result): bugfix if left already in acc,
1060 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1061 attention to accumulator use (esp. pdata),
1062 (genReceive): receive pdata correctly
1063 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1064 * src/SDCCicode.h: added isOperandInPagedSpace prototype
1066 2005-10-27 Raphael Neider <rneider AT web.de>
1068 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1070 2005-10-27 Raphael Neider <rneider AT web.de>
1072 * .version: changed version to 2.5.4
1073 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1074 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1075 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1076 arithmetics support routines
1077 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1078 * device/lib/Makefile.in: also create installdir for pic
1080 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1082 * src/pic/device.c (dump_sfr): rewritten to delegate register
1083 placement to the linker (use `extern sym' rather than sym EQU addr),
1084 (validAddress): fixed to check last specified address
1085 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1086 (popGetLit): truncate literal value to 8 bit,
1087 (popGet): moved assert to more appropriate place
1088 (popGetExternal): create pCode operand from and mark the according
1089 symbol as being `extern'
1090 (popGetAddr): added sanity check on immediate's offset, provide
1091 GPOINTER tag on demand
1092 (aopPut): fixed for immediates,
1093 (mov2w_op): move operand's address or contents to WREG (depending on
1094 operand type), safer variant of mov2w,
1095 (movwf,call_libraryfunc): NEW, handy abbreviations,
1096 (get_argument_pcop,get_return_val_pcop,pass_argument,
1097 get_returnvalue): interface for accessing function parameters and
1099 (assignResultValuei,genRet): use new parameter/return value interface
1100 (pic14_getDataSize): back to old version handling generic pointers,
1101 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1102 provided implementation and/or fixed old one,
1103 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1104 calls, removed legacy 8051 reference code
1105 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1106 (loadSignToC): NEW, move the operands sign bit to CARRY,
1107 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1108 genRightShiftSigned, accepts negative shift counts,
1109 (setup_fsr): load FSR and adjust IRP (indirect memory access),
1110 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1111 generic pointers, __data pointers and __code pointers,
1112 (genUnpackBits,genPackBits): rewritten to work with generic pointers
1113 and signed bitfields, limit bitfields to 8 bit,
1114 (genDataPointerGet): fixed number of bytes read,
1115 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1116 (genPointerGet,genPointerSet): fixed handling of __code pointers,
1117 pointers to constant data are no longer assumed to point to __code
1118 space, removed invalid pointer types,
1119 (bitpatternFromVal): retrieve the PICs representation of an integer
1121 (genDataPointerSet): fixed assigning to po_immediate operands,
1122 (genGenPointerSet): implemented as library call,
1123 (genIfx): fixed incorrect condition,
1124 (genAddrOf): limit generic pointers' addresses to 2 bytes,
1125 provide GPOINTER tag according to destination's storage class,
1126 (genCast): added code to handle casting to generic pointers, added
1127 sign-/zero extension of the result
1128 (aop_isLitLike,op_isLitLike): fixed handling of immediates
1129 * src/pic/gen.h: added macros to access IRP bit in STATUS register
1130 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1132 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1133 address/register resides in the shared banks
1134 (emitSymbolToFile): improved to handle global and `pinned' symbols,
1135 put all variables into separate sections (have the linker arrange
1137 (picglue): put init code and interrupt handlers in separate sections
1138 * src/pic/main.c: added port specific options table, modified to PORT
1139 structure to make GPOINTERs 3 byte, added pic14_options
1140 (_pic14_do_link): private linking routine (update paths to libraries,
1141 add libsdcc.lib by default)
1142 * src/pic/main.h: declare pic14_options
1143 * src/pic/pcode.c: fixed instructions i/o relations,
1144 (RegCond): reverted to correct version,
1145 (newpCodeOpLit): truncate literals to 8 bit,
1146 (genericPrint): added debug output,
1147 (getRegFromInstruction): fixed for various operand types, simplified
1148 (BuildFlow): fixed broken handling of isntructions with labels
1149 (LinkFlow): start at last instruction in flow (skip trailing comments),
1150 pass the flow on to the next instruction after CALL
1151 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1152 (insertPCodeInstruction): fixed inserting after a skip instruction,
1153 (DoBankSelect): fixed for labeled instructions
1154 (OptimizepBlock): honor --nopeep switch
1155 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1156 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1157 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1158 (pCodeOptime2pCodes): allow disabling this optimization via
1159 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1160 but is still buggy), started implementation of a dataflow based
1161 pCode optimization (CSE + dead code elimination)
1162 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1163 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1164 names are independant of the stack location and therefore portable across
1167 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1169 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1170 (selectSpil): fixed bug 1337835 by not spilling bit variables
1171 * support/regression/tests/bug1337835.c: added test for this bug
1172 * src/mcs51/peeph.def: restart after rule 3.c,
1173 addded rules 263.x to optimize loading constants
1175 2005-10-26 Raphael Neider <rneider AT web.de>
1177 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1178 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1179 (genAssign): emit warning when casting literals to generic pointer
1180 type, also applies when taking the address of a fixed variable,
1181 (genCast): improved casting to generic pointers
1182 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1183 extern variables, added verbose error message
1184 * device/include/pic16/{string.h,errno.h}: added #pragma library c
1186 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1188 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1189 carry must be complemented too
1190 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1191 could be emitted by genMinus
1192 * src/SDCCval.c (constVal): fixed bug 1305065
1194 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1196 * src/SDCCast.c (addCast): added promotion for bit variables
1197 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1198 promotion casts + optimisation
1199 (optimizeGetWord): fix warning 'i' might be used uninitialized
1200 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1201 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1203 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1205 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1206 all chars are promoted to int; promotion should be handled in SDCCast.c
1208 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1210 * device/lib/_strcmp.c: Fixed bug 1326457
1212 2005-10-11 Raphael Neider <rneider AT web.de>
1214 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1215 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1217 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1219 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1220 * support/regression/tests/sfr16.c: added test for the sfr32 bug
1222 2005-10-04 Raphael Neider <rneider AT web.de>
1224 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1225 device/lib/pic16/pics.all: added pic18f1320
1226 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1228 2005-09-30 Raphael Neider <rneider AT web.de>
1230 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1231 * src/pic16/devices.inc: NEW, provides device descriptions
1232 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1234 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1236 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1239 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1241 * doc/sdccman.lyx: updated Highest Order Bit documentation,
1242 documented Any Order Bit, Higher Order Byte and Higher Order Word
1243 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1244 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1245 (optimizeGetAbit): new, to get any bit, not only the high bit,
1246 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1247 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1248 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1249 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1250 RIGHT_OP: also try GETBYTE, GETWORD optimization,
1251 GETABIT, GETBYTE, GETWORD: decorate them,
1252 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1253 (ast_print): added GETABIT, GETBYTE, GETWORD
1254 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1255 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1256 (geniCodeBinary): new generic binary icode,
1257 (ast2iCode): added GETABIT, GETBYTE, GETWORD
1258 * src/port.h: updated comment for PORT.hasExtBitOp
1259 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1260 (genGetByte): new, to get a single byte,
1261 (genGetWord): new, to get a word from a long,
1262 (gen51Code): added GETABIT, GETBYTE, GETWORD
1263 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1265 2005-09-23 Raphael Neider <rneider AT web.de>
1267 * configure.in, configure: have device/lib/pic configured
1268 * device/lib/Makefile.in: added model-pic14
1269 * device/lib/clean.mk: added pic/ to clean rule
1270 * device/lib/pic: added rudimentary pic14 library providing support
1271 functions for multiplication/division/generic pointer access
1272 * src/SDCCopt.c (convilong): mark support functions as extern
1273 for pic14 port as well
1274 * src/pic/gen.c (genMult): added assertions,
1275 (genpic14Code): emit warning on unhandled iCodes
1276 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1277 * src/pic/pcode.c (pCodeOpCopy),
1278 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1279 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1280 SFR_REGISTER}), made safe for future extensions
1281 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1282 instructions even if preceeded by SKIP instructions (also remove
1283 them); removed unused code
1284 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1285 prevents leaving parts of the structure uninitialized after copying
1287 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1289 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1291 * support/regression/tests/addsub.c: added test for the bug
1293 2005-09-21 Raphael Neider <rneider AT web.de>
1295 * device/include/pic16/pic18f1220.h,
1296 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1297 * device/lib/pic16/Makefile.rules: added missing opening paren
1298 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1299 are provided in genutils.c,
1300 (genUminusFloat,genUminus,genCmpEq): added asserts on different
1301 operand/result sizes,
1302 (genCmp): assert on NULL pointers first, then check deref'ed values
1303 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1306 2005-09-18 Raphael Neider <rneider AT web.de>
1308 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1309 as these are now unused,
1310 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1311 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1312 local, avoids uninitialized pointer dereference on r->name
1313 * src/pic16/ralloc.c (newReg): fixed indentation
1315 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1317 * src/SDCCval.c (constVal): fixed bug 730366
1318 * support/Util/SDCCerr.c,
1319 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1321 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1323 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1325 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1327 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1329 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1331 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1332 (hex2dec): made hex_digit unsigned char, removed ascii dependance
1333 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1334 (hex2dec): made hex_digit unsigned char, removed ascii dependance
1335 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1336 * packihx/packihx.c (hexDigit): made c unsigned char
1337 * as/mcs51/lklibr.c (fndsym),
1338 * link/z80/lkgb.c (gb),
1339 * link/z80/lklibr.c (fndsym),
1340 * link/z80/lkrloc.c (relr),
1341 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1342 * src/SDCC.lex (checkCurrFile, process_pragma),
1343 * src/SDCCglue.c (spacesToUnderscores),
1344 * src/SDCCmain.c (setParseWithComma, processFile),
1345 * src/asm.c (tvsprintf, printCLine),
1346 * src/avr/gen.c (emitcode, aopPut),
1347 * src/ds390/gen.c (emitcode),
1348 * src/hc08/gen.c (emitcode, emitinline),
1349 * src/mcs51/gen.c (emitcode, genInline),
1350 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1352 * src/pic/ralloc.c (debugLog),
1353 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1355 * src/pic16/ralloc.c (debugLog),
1356 * src/z80/main.c (_process_pragma):
1357 made all ctype.h function calls safe
1358 * src/SDCCopt.c: include math.h for fabs
1359 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1360 and used them throughout the code to make ctype.h function calls safe
1361 * src/ds390/main.c (asmLineNodeFromLineNode),
1362 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1363 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1365 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1366 (newpCodeAsmDir): made ctype.h function calls safe
1367 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1368 pic16_emitcode): made lbp unsigned char*
1369 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1370 (pic16_newpCodeAsmDir): made ctype.h function calls safe
1371 * src/xa51/gen.c (emitcode),
1372 * src/z80/gen.c (_emit2): made lbp unsigned char*
1373 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1376 2005-09-05 Raphael Neider <rneider AT web.de>
1378 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1379 access bank splitpoint
1381 2005-09-05 Raphael Neider <rneider AT web.de>
1383 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1385 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1387 * .version: changed to version 2.5.3
1388 * doc/sdccman.lyx: changed version to 2.5.3,
1389 documented --codeseg and --constseg and pragma codeseg and constseg,
1390 documented bit parameters (reentrant) and bit returning
1391 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1392 currFunc->recvSize, but is this ok for all ports?
1393 (ast2iCode): result of ~ on unsigned char must be cast to int for
1395 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1396 function pointers in bit space
1397 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1398 (processFuncArgs): call port.reg_parm() with reentrancy info
1406 * src/z80/main.c: port.reg_parm prototype extended with
1407 "bool reentrant" parameter
1408 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1409 options.stackAuto for allocating bit register parameters
1410 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1411 (genSend): set BitBankUsed if it is,
1412 (selectRegBank): factored out of genCall for use in genPcall,
1413 (genCall): removed redundant dtype assignmen, use selectRegBank,
1414 (genPcall): handle returning in Carry properly, save in F0 if needed,
1415 (genReceive): handle bit register parameters
1416 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1417 (mcs51_assignRegisters): enable bit registers for all reentrant
1418 functions and don't set BitBankUsed unconditionally
1419 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1420 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1421 * support/regression/tests/funptrs.c: added tests for BOOL and for return
1423 2005-08-27 Borut Razem <borut.razem AT siol.net>
1425 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1426 ppc-osx (Darwin) does not support -u option. It seems that it is
1427 supported only on Linux - GNU cp
1429 2005-08-25 Borut Razem <borut.razem AT siol.net>
1431 * sim/ucsim/gui.src/serio.src/Makefile.in,
1432 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1433 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1434 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1435 install and strip, since the strip at /usr/ccs/bin should be used
1438 2005-08-24 Borut Razem <borut.razem AT siol.net>
1440 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1442 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1444 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1447 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1449 * as/mcs51/aslink.h: completed lkrloc.c prototypes
1450 * as/mcs51/lkmain.c (link_main): fixed warning
1451 * device/include/stdbool.h: ds390 has no advanced bit support yet
1452 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1453 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1454 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1455 and updated their macros
1456 * src/SDCCval.c (constVal): updated comment for renamed b_long
1458 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1460 * as/mcs51/asdata.c: changed ctype['['] to BINOP
1461 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1462 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1463 (oprio): set priority for '['
1464 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1466 * as/mcs51/asm.h: added defines R_BIT and S_BIT
1467 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1468 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1469 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1470 added overlayable BIT_BANK area
1471 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1472 (summary2): explain 'T' in legenda
1473 * as/mcs51/lkrloc.c: replaced old K&R style,
1474 (relr): added R_BIT processing,
1475 (errmsg): added "Bit-addressable relocation error",
1476 (adb_bit): added for converting from byte- to bit-addressable space,
1477 (adb_24_bit): added for converting from byte- to bit-addressable space
1478 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1479 used in reentrant functions now even as return value
1480 * device/lib/_gptrput.c (_gptrput): removed obsolete code
1481 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1482 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1483 * src/SDCCglobl.h: added indicator BitBankUsed
1484 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1485 the bit registers b0-b7
1486 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1487 (geniCodeCast): fixed bug 1263853,
1488 (geniCodeLogicAndOr): put result in bool or char,
1489 (geniCodeReceive): added parameter func for accessing the return type,
1490 (geniCodeFunctionBody): pass func to geniCodeReceive
1491 * src/SDCCmain.c: added indicator BitBankUsed
1492 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1493 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1494 (checkSClass): don't put automatic bool/bit on stack,
1495 (checkFunction): removed check on function cannot return bit
1496 * src/SDCCsymt.h: added newBoolLink prototype
1497 * src/mcs51/gen.c (rb1regs): added bit registers,
1498 (movc): created for assigning to carry,
1499 (pushReg, popReg): created for pushing registers,
1500 (sameRegs): check both AOP_REG and AOP_CRY types,
1501 (aopOp): handle bit registers,
1502 (aopPut): optimization no self-assign,
1503 (saveRegisters): push reg->base (bits) only once for bit registers,
1505 (unsaveRegisters): pop reg->base only once and use popReg,
1506 (assignResultValue): added parameter func and return in carry for bits,
1507 (genIpush): optimization no reload in A if not changed,
1508 (genSend): bit parameters in reentrant functions are passed in bit
1509 registers by first assigning to bits in B, then save registers and
1511 (genCall): handle returning in Carry properly, save it in F0 if needed,
1512 (genPcall): updated assignResultValue call, this is not safe yet for bit
1513 returning function !!!
1514 (genFunction): don't generate equ's for bit registers and use pushReg,
1515 (genEndFunction): take care of bit returning functions and use popReg,
1516 (genRet): return bit in Carry,
1517 (genIfx): optimize bit registers and other directly addressable bits,
1518 (genReceive): updated assignResultValue call
1519 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1520 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1521 registers when using stack-auto
1522 * src/mcs51/ralloc.c (_G): added allBitregs,
1523 (regs8051): added the bit registers,
1524 (createStackSpil): use macro IS_BIT,
1525 (getRegBit): added to allocate a bit register, else spill,
1526 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1527 (updateRegUsage): factored out to ease stepping while debugging,
1528 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1529 also allocate bit registers,
1530 (fillGaps): handle bit registers,
1531 (findAllBitregs): added to create bit vector with all bit registers,
1532 (mcs51_allBitregs): returns this bit vector,
1533 (mcs51_assignRegisters): when using stack-auto use bit registers for
1534 passing parameters and creating local variables
1535 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1537 2005-08-22 Borut Razem <borut.razem AT siol.net>
1539 * device/lib/Makefile.in: replaced find option -or with -o
1540 to make it run on solaris
1542 2005-08-22 Raphael Neider <rneider AT web.de>
1544 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1545 fixes #1265442 (crash on Solaris)
1547 2005-08-20 Borut Razem <borut.razem AT siol.net>
1549 * configure, configure.in: added tests for libsocket and libnsl libraries,
1550 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1551 from support/regression/Makefile.in
1552 * support/regression/Makefile.in: added
1553 * device/lib/pic16/Makefile.common.in: force make to use bash shell
1554 * sim/ucsim/libtool: regenerated on sparc-solaris
1555 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1556 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1557 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1558 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1559 sparc-solaris, which doesn't use GNU ld linker
1560 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1561 * as/Makefile: find on sparc-solaris does not support -maxdepth option
1563 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1565 * src/mcs51/peeph.def: updated comments
1567 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1569 * device/lib/_gptrget.c,
1570 * device/lib/_gptrput.c: slightly shorter
1571 * doc/sdccman.lyx: incremented version
1572 * src/mcs51/peeph.def: moved peephole comments to the line of first
1573 change to better keep line correlation, reanimated 186.e
1574 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1576 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1578 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1579 David Saxton with quotes around file name.
1581 2005-08-15 Borut Razem <borut.razem AT siol.net>
1583 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1584 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1585 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1586 make tests run on x86_64 platform
1588 2005-08-13 Raphael Neider <rneider AT web.de>
1590 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1591 as it might be executed DURING a build (parallel make is wonderful)
1593 2005-08-13 Raphael Neider <rneider AT web.de>
1595 * device/lib/Makefile.in (port-specific-objects-pic16):
1596 revert to cp $(PORT)/bin/*.* $(PORTDIR)
1597 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1599 * device/lib/pic16/Makefile.rules: build subdirs before creating
1600 the library, removed builddir rule, create $(builddir) early in
1601 recurse rule, use empty recurse rule for leaf directories
1602 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1603 mkdir errors (race condition), removed duplicate suffix "hex"
1605 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1606 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1607 prevents mkdir -p from aborting on Alpha
1609 2005-08-12 Raphael Neider <rneider AT web.de>
1611 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1612 db-statements in order to allow for arrays of pointers in code
1613 sections to be placed without interspersed 0-padding, fixes
1615 * (emitStatistics): fixed division by zero for pic18f1220
1616 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1617 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1618 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1619 * (pic16_pCodeConstString): keep track of already emitted string
1620 literals to prevent "duplicate definitions of symbol _str_NR"
1621 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1623 * device/lib/Makefile.in: ignore failing PIC16 library builds
1624 * device/lib/pic16/Makefile: do not build if gputils are missing
1625 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1627 2005-08-10 Raphael Neider <rneider AT web.de>
1629 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1632 2005-08-10 Raphael Neider <rneider AT web.de>
1634 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1635 Rokas' patch to add the new fixed point type "__fixed16x16"
1636 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1637 functions for __fixed16x16 arithmetics
1638 * device/lib/pic16: reimplemented the build system to support
1639 a separate build directory, better handling of libio (create
1640 the library in a separate subdir for each architecture) and
1641 easier configuration (centralized in Makefile.common)
1643 2005-08-07 Raphael Neider <rneider AT web.de>
1645 * src/pic16/gen.c (genrshTwo): fixed sign extension
1646 * src/pic16/device.c: added pic18f2320, 4220 and 4320
1647 * device/include/pic16/pic18f2220.h: changed some bit definitions,
1649 * device/include/pic16/pic18f4220.h: NEW, header for
1650 pic18f4220 and pic18f4320
1651 * device/include/pic16/pic18fregs.h: added new devices,
1652 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1653 * device/include/pic16/signal.h: resolved name clashes
1654 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1655 to also allow testing for interrupt enable bits, added
1656 comments on how to use the macros
1657 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1658 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1659 register definitions for the devices
1660 * device/lib/pic16/pics.all: added new devices
1661 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1663 * device/lib/pic16/libc/stdlib/memfree: do not count
1664 the block header as free memory
1665 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1666 simplified and added missing end-of-blocklist-marker
1667 (reported by Peter Onion, fixes #1252814)
1668 * (_mergeHeapBlock): fixed loop condition
1669 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1670 len==0, restructured code
1671 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1672 up a bit, reduced bitfield accesses, prevent endless loops
1673 in case of heap corruption
1674 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1675 "unreferenced arguments/must return a value" warnings
1676 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1677 replaced BAUDREG with SPBRG
1678 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1679 device/lib/pic16/debug/gstack/gstack.c: replaced
1680 _naked, _asm, _endasm with __naked, __asm, __endasm
1682 2005-08-05 Raphael Neider <rneider AT web.de>
1684 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1685 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1687 2005-08-05 Borut Razem <borut.razem AT siol.net>
1689 * device/lib/Makefile.in: added missing ';'
1690 * configure: removed ^M characters
1692 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1694 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1695 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1698 2005-08-04 Borut Razem <borut.razem AT siol.net>
1700 * configure.in: pic16 libraries build 2nd try - enable running
1701 configure in device/lib/pic16
1702 * configure: regenerated from configure.in
1703 * device/lib/Makefile.in: create $(PORT)/bin directory
1705 2005-08-03 Raphael Neider <rneider AT web.de>
1707 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1708 to get/set values via pointers
1709 * (genUnpackBits,genPackBits): changed detection of
1710 ptr->bitfield vs. sym.bitfield, fixed access via generic
1711 pointers, removed dead (wrong) code for multibyte bitfields
1712 * (genNearPointerGet, genGenPointerGet): removed useless code,
1713 fixed bitfield detection, fixes #1250594
1714 * (genNearPointerSet): removed useless code
1715 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1716 and introduced macro pic16_emitpcode that conditionally emits
1717 the origin of the following pCode (useful for debugging SDCC)
1718 * src/pic16/pcode.c: changed (and disabled) some debug outputs
1719 * (createDefmap): fixed handling of LFSR for --optimize-df
1721 2005-08-02 Borut Razem <borut.razem AT siol.net>
1723 * device/lib/Makefile.in: pic16 libraries build enabled since
1724 gputils-0.13.2 are now localy installed at sourceforge's compile farm
1726 2005-08-02 Raphael Neider <rneider AT web.de>
1728 * src/pic16/gen.c (genPackBits): removed deprecated warning
1729 * (genGenPointerSet): fixed bitfield detection
1731 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1733 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1735 2005-07-31 Raphael Neider <rneider AT web.de>
1737 * device/lib/pic16/libdev/pic18f458.c,
1738 device/include/pic16/pic18f458.h: added missing T0CONbits
1740 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1742 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1744 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1746 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1748 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1750 * device/include/mcs51/at89c51ed2.h: added.
1752 2005-07-23 Raphael Neider <rneider AT web.de>
1754 * src/pic/gen.h: added emitpcode macro for debugging
1755 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1756 and replace by macro adding debug information on demand
1757 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1758 * (gencjne): tried to fix; replaced with correct (slower) code
1759 * (gen{Unp,P}ackBits): fixed single bit access
1760 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1761 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1762 previous instruction
1763 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1764 register has to be handled with care (forbidding movement
1765 of assignments/uses, removing assignments completely, ...)
1766 * (pCodeOptime2pCodes): make use of regIsSpecial
1767 * added lots of debugging output (commented out)
1768 * src/pic/rallloc.c (deassignLRs): prevent operand registers
1769 from being reused as result UNLESS it is known to work
1771 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1773 * support/Util/dbuf.h: include <stddef.h> for size_t
1774 * .version: changed to version 2.5.2
1776 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1778 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1780 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1782 * src/hc08/gen.c (genMinus): fixed bug #1241835,
1783 (genModOneByte): removed needless psha/pula
1785 2005-07-22 Raphael Neider <rneider AT web.de>
1787 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1788 have PIC14 handled like PIC16, fixes broken pic14 linker calls
1789 * src/pic/gen.c (resolveIfx): do not "invent" labels
1790 * (genSkipc): changed to positive logic
1791 * (genSkipCond): removed as no longer needed
1792 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1794 * (genLeftShift): check operands are in different registers
1795 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1796 INCF does not update CARRY...
1797 * src/pic/main.c: fixed _linkCmd
1798 * src/pic/pcode.c (unlinkpCode): added inactive code
1799 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1800 alive (do not assign result and operand overlapping registers)
1802 2005-07-22 Raphael Neider <rneider AT web.de>
1804 * src/pic/device.c (dump_sfr): replaced register declaration with
1805 call to emitSymbolToFile() to avoid duplicate symbols
1806 * (assignRelocatableRegisters): do not declare external symbols
1807 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1808 right (take size of type, not etype)
1809 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1810 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1811 * (packRegsForAccUse): disabled assignment of WREG as
1812 the result reg to prevent occurence of just fixed #1235003,
1814 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1815 symbols (avoids duplicate symbols in .asm file)
1816 * (pic14emitRegularMap): use emitSymbolToFile()
1817 * src/pic/gen.c (aopOp): fixed spillLocation handling
1818 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1819 * (genDataPointerSet): removed unneccessary variables/output
1821 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1823 * as/mcs51/lkarea.c: enlarged codemap for banked memory
1824 * device/lib/mcs51/crtbank.asm: added # to 0x0F
1826 2005-07-21 Raphael Neider <rneider AT web.de>
1828 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1829 architecture cannot handle them efficiently, fixes bug #1235003
1830 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1831 check for empty sets before using them (fixes bug #1232190)
1833 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1835 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1836 (lnksect2): generate warnings for memory overlap
1837 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1838 constseg to set the name of these segments so you can instruct the linker
1839 to place them in banks
1840 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1841 * src/SDCCglobl.h: added MODEL_HUGE to enum,
1842 added code_seg and const_seg to options
1843 * src/SDCCglue.c (emitMaps): use options.const_seg,
1844 (createInterruptVect): put interrupt vectors in segment HOME,
1845 (glue): put HOME before static segment and put the main glue in HOME,
1846 (glue): use options.code_seg
1847 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1848 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1849 these segments so you can instruct the linker to place them in banks
1850 (linkEdit): use code_loc for HOME segment which should be the first
1851 segment in code memory now
1852 * src/SDCCmem.c: fixed more stuff like bug 1238386
1853 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1854 (changePointer): don't change function pointers to code pointers for
1856 (compareType): added exceptional check for banked function pointers
1857 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1858 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1859 after static in code memory
1860 * src/mcs51/gen.c: added aopLiteralLong prototype,
1861 (aopForSym): use getSize for functions,
1862 (genCall): generate banked calls over one trampoline __sdcc_banked_call
1863 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1864 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1866 (genPcall): use call for literal function pointers and generate banked
1867 calls over the one trampoline so there's only one place for the user to
1868 modify according to his/hers hardware,
1869 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1870 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1871 * src/mcs51/main.c: added keyword banked,
1872 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1873 * support/Util/SDCCerr.c,
1874 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1875 needed for passing the bank and address to the trampoline
1876 * device/lib/mcs51/crtbank.asm: added for bankswitching
1877 * device/lib/mcs51/Makefile: added crtbank
1879 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1881 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1882 for fields at offset 0 of a struct or union as reported
1883 on 2005-07-07 in the developer mailing list.
1885 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1887 * src/SDCCmem.c: fixed bug 1238386
1889 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1891 * src/mcs51/peeph.def: added labelrefcounting for peepholes
1892 (patch #1144962), added peephole 300, enabled 259.x
1893 * doc/sdccman.lyx: removed screenshot and provided link instead
1895 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1897 * doc/sdccman.lyx: added section about debugging with ddd
1898 * doc/figures/ddd_example.eps: screenshot of debugging session
1900 2005-07-04 Raphael Neider <rneider AT web.de>
1902 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1903 like CODE pointers, fixes #1115683
1904 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1905 call, fixes bugs #1232211, #1228110,
1906 fixed wrong casts to pCodeFlow from pCodeInstructions
1908 2005-07-04 Raphael Neider <rneider AT web.de>
1910 * src/pic/gen.c (popGet): changed assert to allow for
1912 * (popGetAddr): changed signature to provide
1913 an additional index, patched all call sites
1914 * (genCmpEq): handle literal-like operands correctly
1915 * (genAddrOf): added sanity checks on __code/__data pointers
1916 * (genAssign): added handling of symbols from __code section
1917 * (gencjne): do not generate code for comparisons whose result
1918 is neither stored nor used, fixes bug #1171114
1919 * (AccLsh, AccRsh): operate on operand instead of WREG
1920 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1921 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1923 * rewrote complete shift-by-literal logic, commented unused
1925 * (genConstPointerGet): get multiple bytes (if result size > 1),
1926 fixed handling of non-immediate addresses
1927 * (genPointerGet): handle CODE pointers like CONST pointers
1928 * (genpic14Code): insert C-SRC lines as Cource-pCodes
1929 * ({aop,op}_isLitLike): NEW, single place to decide whether an
1930 operand is to be treated as a literal or not
1931 * (mov2w,genPcall,genCmpEq),
1932 src/pic/genarith.c: use aop_isLitLike() to decide between
1933 literal/register contents
1934 * (addSign): added missing offset
1935 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1936 only emit comment in debug-mode,
1937 use {aop,op}_isLitLike throughout the file
1938 * src/pic/glue.c: fix initializers for pointers (work in progress)
1939 * src/pic/pcode.c (get_op): honor index on _const symbols
1940 * ({reset,dump}pCodeStatistics): NEW, estimate code size
1941 * (dumppBlock): added pCode size estimation
1942 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1943 check for IS_SYMOP before OP_SYMBOL'ing
1944 * fixed indentation, compacted switch-statements
1945 * (allocReg): find free register and allocate it instead of
1946 allocating new registers all the time
1947 * (deassignLRs): prevent POINTER_GET's from being assigned the same
1948 registers as its operands (necessary only for multibyte GETs)
1950 2005-07-01 Raphael Neider <rneider AT web.de>
1952 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1953 debugging .asm-output macros FENTRY + FEXIT
1954 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1956 * (emitpComment): NEW, printf to pCode
1957 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1959 * (popGetAddr): NEW, variant of popGet to access an immediates
1960 high(er) bytes instead of the n'th byte of memory they reference,
1961 replaced popGet with popGetAddr where neccessary
1962 * (genDataPointerGet): reactivated and fixed implementation
1963 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1965 * (genDataPointerSet): fixed multibyte assignments
1966 * (genpic14Code): fixed --i-code-in-asm handling
1967 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1968 * (genPlus): fixed index-out-of-bounds error
1969 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1970 * src/pic/ralloc.c: added debugging output macro FENTRY2
1971 * (spillThis): fixed indentation, enbraced for-body for clarity
1972 * (rematStr): commented out as now unused
1973 * (regTypeNum): commented out special spill case (overwrites
1975 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1977 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1979 * doc/sdccman.lyx: documented sfr16/sfr32,
1980 added example for using storage class with function pointers
1981 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1983 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1985 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1986 * device/lib/_itoa.c,
1987 * device/lib/_ltoa.c: optimized codesize
1988 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1989 but don't know how to suppress the double warning.
1990 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1991 * support/Util/SDCCerr.c,
1992 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1994 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1996 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1997 fixed old K&R prototypes
1998 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1999 * device/lib/_gptrget.c,
2000 * device/lib/_gptrgetc.c,
2001 * device/lib/_gptrput.c: changed versions for new memory indicator values,
2002 also new versions for small generic pointers and banked generic pointers
2003 * src/port.h: added const_name
2004 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2005 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2006 * src/SDCCcse.c (findPrevIc): check all associative operators
2007 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2008 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2009 * src/SDCCmem.c: updated comments,
2010 set far-space to 0 for pdata, results in optimized code
2011 * src/SDCCmem.h: added macro CONST_NAME
2012 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2013 moving the info into the highest bits, see also gptrget/gptrput
2014 * src/src.dsp: added sdcc.ico to project files
2015 * src/avr/gen.c (genCast): fixed bug 0x%d
2016 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2017 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2018 relation between ptr_type and DCL_TYPE,
2019 (genCast): fixed bug 0x%d
2020 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2021 (CODE)" for const_name
2022 * src/hc08/gen.c (genCast): fixed bug 0x%d
2023 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2024 (hc08_port): added "CONST (CODE)" for const_name
2025 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2026 (aopForRemat, adjustArithmeticResult): disconnected direct relation
2027 between ptr_type and DCL_TYPE,
2028 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2029 operand* and took AOP() inside function so sfr-ness can be checked,
2030 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2032 (genFunction, genEndFunction): optimized stack setup,
2033 (genMinus): optimized for literals with ending zeroes (in bytes),
2034 (genCast): fixed bug 0x%d
2035 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2036 (mcs51_port): added "CONST (CODE)" for const_name
2037 * src/mcs51/peeph.def: made rule 226 more generic
2038 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2039 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2040 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2041 * src/z80/main.c (z80_port): added NULL for const_name,
2042 (gbz80_port): added NULL for const_name
2043 * support/regression/tests/bug663539.c,
2044 * support/regression/tests/sfr16.c: new tests
2046 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2048 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2050 2005-06-24 Raphael Neider <rneider AT web.de>
2052 * device/lib/pic16/libdev/pic18f[68][567]20.c:
2054 * device/include/pic16/signal.h: added USBIF
2057 2005-06-24 Raphael Neider <rneider AT web.de>
2059 * device/lib/pic16/libdev/pic18f2455.c,
2060 device/include/pic16/pic18f2455.h: NEW
2061 * device/include/pic16/pic18fregs.h,
2062 device/lib/pic16/pics.all,
2063 src/pic16/device.c: added 18f2455
2064 * device/lib/pic16/libdev/pic18f[68][567]20.c,
2065 device/include/pic16/{pic18f[68][567].h,usart.h}:
2066 replaced MULTIPLE_USARTS define with more relaible
2067 compatibility sfrs (for USART access)
2069 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2071 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2072 and the output asm file line is printed on two lines.
2074 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2076 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2077 BGT, BLE, BHI, and BLS instructions
2078 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2080 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2081 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2083 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2085 2005-06-15 Raphael Neider <rneider AT web.de>
2087 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2088 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2089 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2090 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2091 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2093 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2095 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2096 Marcel Telka in bug #1215704
2098 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2100 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2101 located in shared memory bank.
2103 2005-05-31 Raphael Neider <rneider AT web.de>
2105 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2106 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2107 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2109 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2111 * device/lib/_strncpy.c: fixed the fix
2113 2005-05-26 Raphael Neider <rneider AT web.de>
2115 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2116 initializers with \0, bug #1208187
2117 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2118 intializers with \0, bug #1208187
2120 2005-05-26 Raphael Neider <rneider AT web.de>
2122 * src/pic16/glue.c (pic16_printIvalChar): fixed string
2123 initializers with \0, bug #1208187
2124 * src/pic16/main.c (_process_pragma): added sanity checks
2125 for stack position and size, emit warnings when appropriate
2127 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2129 * device/lib/_strncpy.c: fixed not filling with \0
2131 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2133 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2135 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2136 compound_statement),
2138 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2140 2005-05-24 Raphael Neider <rneider AT web.de>
2142 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2144 2005-05-24 Raphael Neider <rneider AT web.de>
2146 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2147 TRISE definitions, closes bug #1162453
2149 2005-05-22 Raphael Neider <rneider AT web.de>
2151 * src/pic16/main.c (_process_pragma): check for missing
2152 arguments to pragmas code and udata
2153 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2154 consistency fixes to match other headers (thanks to Jim Paris)
2155 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2157 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2159 * src/SDCCicode.c (isOperandEqual): fixed missing ;
2161 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2163 * support/regression/tests/bug1198642.c: new test
2164 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2165 * src/SDCCcse.c (findPrevIc): added comment, please have a look
2166 * support/scripts/resource.h,
2167 * support/scripts/resource.rc,
2168 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2169 * support/scripts/sdcc.ico: added 32x32 icon
2171 2005-05-18 Raphael Neider <rneider AT web.de>
2173 * device/lib/pic16/libdev/pic18f*.c,
2174 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2175 keywords to "__sfr" and "__at (X)"
2176 * device/include/pic16/pic18fregs.h: added pic18f4520
2177 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2178 #1203088 (MPLAB compatibility)
2180 2005-05-17 Raphael Neider <rneider AT web.de>
2182 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2183 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2184 * device/lib/pic16/pics.all: added new devices
2185 * src/pic16/device.c: added support for pic18f4520
2187 2005-05-16 Raphael Neider <rneider AT web.de>
2188 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2189 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2190 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2191 convenience function for bit access
2193 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2195 * device/lib/printf_large.c: fixed bug 1193299
2196 * support/regression/tests/bug1057979.c: added test %3.3s
2198 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2200 * device/include/mcs51/8051.h,
2201 * device/include/mcs51/8052.h: made parseable with lint
2202 * device/include/mcs51/lint.h: added include file for (sp)lint
2203 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2204 * doc/cdbfileformat.lyx,
2205 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2207 2005-05-14 Raphael Neider <rneider AT web.de>
2209 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2210 * device/lib/pic16/libc/stdlib/itoa.c (new)
2211 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2212 * device/lib/pic16/libio/Makefile: exclude subdir according to
2213 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2214 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2215 * src/pic16/gen.c (genFunction): prevent annoying warning
2216 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2218 * support/cpp2/cppmain.c (cpp_output_string): new
2219 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2222 2005-05-13 Borut Razem <borut.razem AT siol.net>
2224 * src/SDCCmain.c (linkEdit): fixed bug 1195202
2226 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2228 * .version: changed to version 2.5.1; back to bleeding edge development
2230 2005-05-11 Borut Razem <borut.razem AT siol.net>
2232 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2233 generate PDF version 1.3 documents
2235 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2237 * .version: changed to version 2.5.0
2239 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2241 * doc/sdccman.lyx: updated weblinks, index and smaller updates
2243 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2245 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2246 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2247 well as many smaller updates.
2248 * .version: changed to version 2.5.0-pre1
2250 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2252 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2254 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2256 * support/regression/tests/bug1185672.c: added
2257 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2259 * src/mcs51/gen.c (genCall): added comments, made it look safer
2260 * src/mcs51/gen.c (genEndFunction): simplified
2262 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2264 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2266 2005-04-14 Borut Razem <borut.razem AT siol.net>
2268 * fixed bug 1045046 - SIGSEGV with really simple code?:
2269 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2270 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2272 2005-04-14 Borut Razem <borut.razem AT siol.net>
2274 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2275 src/pic16/device.h: temporarily disabled experimental #inline pragma
2278 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2280 * device/include/z80/stdio.h,
2281 * device/include/z80/string.h: removed these highly incomplete files so
2282 SDCC can use the default ones in device/include/
2284 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2286 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2288 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2291 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2293 * device/include/malloc.h: removed redundant __reentrant prototypes
2294 * device/lib/_mullong.c: added working xstack variant in asm (C version
2295 doesn't pass regression tests)
2296 * device/lib/bpx.c: used __data and made bpx char for mcs51
2297 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2298 (createFunction): fixed bug with xstackPtr
2299 * src/SDCCcse.c: corrected comments
2300 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2301 (killDeadCode, eBBlockFromiCode): removed unused code
2302 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2304 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2305 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2306 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2307 (genModOneByte): fixed warning in MSVC
2308 * src/mcs51/main.c (): added comments
2309 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2311 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2313 * src/SDCCmain.c (linkEdit): oops, changed one line too many
2315 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2317 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2319 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2321 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2322 characters arrays of larger size than the declared one.
2324 2005-04-10 Borut Razem <borut.razem AT siol.net>
2326 * src/pic/gen.c (genInline),
2327 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2328 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2329 (findNextInstruction), (findPrevInstruction),
2330 (findInstructionUsingLabel),
2331 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2332 * src/pic/pcode.c (findLabel): added missing '\n'
2333 * src/src.dsp: added SDCCdwarf2.c to the project
2335 2005-04-09 Borut Razem <borut.razem AT siol.net>
2337 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2339 2005-04-08 Raphael Neider <rneider AT web.de>
2341 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2342 into the chain after a given one) and mergeDefmapSymbols (combine
2343 defmap entries for each symbol per pcode)
2344 * (createDefmap): have defmap entries merged in the end
2345 * (defmapReplaceSymRef): split defmap entries covering two accesses to
2346 a symbol before replacing one access type's symbol, merge symbols in
2347 the end (replacement symbol might already have an entry)
2348 * (assignValnums): keep reference to written WREG intact
2350 2005-04-08 Raphael Neider <rneider AT web.de>
2352 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2355 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2357 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2360 2005-04-07 Raphael Neider <rneider AT web.de>
2362 * device/include/pic16/usart.h: added compatibility defines for
2363 devices with more than one USART
2364 * device/include/pic16/pic18f[68][567]20.h: activated above defines
2366 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2368 * device/lib/Makefile.in: updated for port specific include
2370 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2372 * support/regression/ports/mcs51/spec.mk: added mcs51 include
2374 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2376 * device/include/8051.h,
2377 * device/include/8052.h,
2378 * device/include/at89S8252.h,
2379 * device/include/at89c55.h,
2380 * device/include/at89x051.h,
2381 * device/include/at89x51.h,
2382 * device/include/at89x52.h,
2383 * device/include/mcs51reg.h,
2384 * device/include/reg51.h,
2385 * device/include/reg764.h,
2386 * device/include/regc515c.h,
2387 * device/include/sab80515.h: (re)moved these 12 files
2388 * device/include/mcs51/8051.h,
2389 * device/include/mcs51/8052.h,
2390 * device/include/mcs51/at89S8252.h,
2391 * device/include/mcs51/at89c55.h,
2392 * device/include/mcs51/at89x051.h,
2393 * device/include/mcs51/at89x51.h,
2394 * device/include/mcs51/at89x52.h,
2395 * device/include/mcs51/mcs51reg.h,
2396 * device/include/mcs51/reg51.h,
2397 * device/include/mcs51/reg764.h,
2398 * device/include/mcs51/regc515c.h,
2399 * device/include/mcs51/sab80515.h: and added them here
2401 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2403 * device/include/stdarg.h: changed SDCC specific keywords to double
2405 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2407 * device/include/hc08/mc68hc908gp32.h,
2408 * device/include/hc08/mc68hc908jb8.h,
2409 * device/include/hc08/mc68hc908jkjl.h,
2410 * device/include/hc08/mc68hc908qy.h: fixed comments
2411 * device/include/mcs51/README: updated
2412 * device/include/mcs51/c8051f120.h: added PINRSF
2413 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2414 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2415 amidst code. Also inline is not supported.
2417 2005-04-06 Raphael Neider <rneider AT web.de>
2419 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2420 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2421 callers stack/frame pointers
2423 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2425 * device/include/pic16/usart.h: added, missing in previous commit,
2426 * device/include/pic16/adc.h: fixed typo,
2427 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2429 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2431 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2432 uninitialized because a bug appears with gplink
2433 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2434 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2435 complains for unrecognised option
2437 2005-04-05 Raphael Neider <rneider AT web.de>
2439 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2440 structs as well (using memcpy)
2441 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2442 on ISRs (GOTO has no label)
2443 * src/pic16/device.h: added OF_OPTIMIZE_DF
2444 * src/pic16/main.c: added compiler switch --optimize-df to enable the
2445 new data flow analysis/optimization
2446 * src/pic16/pcode.c: added (prototypes for and implementation of)
2447 dataflow analysis functions, fixed pCodeInstructions' inCond and
2448 outCond values, made RCALL a branch instruction
2449 * (pic16_unlinkpCode): keep C line if possible
2450 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2451 C line moved if possible
2452 * (pic16_getRegFrompCodeOp): NEW, improved version of...
2453 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2454 to use new pic16_getRegFrompCodeOp (works for more SFRs)
2455 * (pic16_BuildFlow): fixed skip instructions with label (did not start
2457 * (pic16_getJumptabpCode): NEW, needed in...
2458 * (LinkFlow): fixed handling of jumptables, calls and conditional
2460 * (pic16_InsertCommentAfter): NEW
2461 * (pic16_pCodeReplace): made verbose and flow preserving
2462 * (AnalyzeFlow): added call to data flow analysis
2463 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2464 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2465 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2467 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2469 * src/SDCCast.c (decorateType): fixed bug #1105626
2471 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2473 * device/include/asm/pic16/features.h,
2474 * pic18f*.h headers,
2475 * device/include/pic16/adc.h,
2476 * device/include/pic16/delay.h,
2477 * device/include/pic16/i2c.h,
2478 * device/include/pic16/malloc.h,
2479 * device/include/pic16/stdio.h,
2480 * device/include/pic16/stdlib.h,
2481 * device/include/pic16/string.h,
2482 * device/lib/pic16/libc/stdio/printf_tiny.c,
2483 * device/lib/pic16/libc/stdio/printf_small.c,
2484 * device/lib/pic16/libc/stdio/strmgpsim.c,
2485 * device/lib/pic16/libc/stdio/strmmssp.c,
2486 * device/lib/pic16/libc/stdio/strmusart.c,
2487 * device/lib/pic16/libc/stdio/vfprintf.c,
2488 * device/lib/pic16/libc/stdlib/ltoa.c,
2489 * device/lib/pic16/libc/stdlib/putchar.c,
2490 * device/lib/pic16/libc/stdlib/x_ftoa.c,
2491 * device/lib/pic16/libc/stdlib/memchrpgm.c,
2492 * device/lib/pic16/libc/stdlib/memchrram.c,
2493 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2494 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2495 * device/lib/pic16/libio/adc/adcbusy.c,
2496 * device/lib/pic16/libio/adc/adcread.c,
2497 * device/lib/pic16/libio/adc/adcsetch.c,
2498 * device/lib/pic16/libio/usart/ubaud.c,
2499 * device/lib/pic16/libio/usart/ubusy.c,
2500 * device/lib/pic16/libio/usart/udrdy.c,
2501 * device/lib/pic16/libio/usart/uopen.c,
2502 * device/lib/pic16/libio/usart/uputc.c,
2503 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2504 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2505 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2506 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2507 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2508 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2509 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2510 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2511 specific keywords to double underlined form,
2512 * device/lib/pic16/libc/Makefile.rules,
2513 * device/lib/pic16/libsdcc/Makefile.rules,
2514 * device/lib/pic16/libm/Makefile,
2515 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2516 to compile with C standard set in Makefile.common
2517 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2518 rand.c and crc.c in compilation process,
2519 * device/lib/pic16/libsdcc/int/divuint.c,
2520 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2521 `c' from signed to unsigned,
2522 * device/lib/pic16/startup/crt0.c,
2523 * device/lib/pic16/startup/crt0i.c,
2524 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2525 keywords to double underlined form, bug fixes in _do_cinit function
2526 which prevented the correct initialization of the .idata segment,
2527 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2528 core to enter a infinite loop
2529 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2531 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2533 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2535 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2537 * device/include/Makefile.in: add support for hc08 subdirectory
2538 * device/include/hc08/: new subdirectory
2539 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2540 Lucas Loizaga, thanks!
2541 * device/include/hc08/mc68hc908qy.h,
2542 * device/include/hc08/mc68hc908gp32.h,
2543 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2544 their own directory. Changed internal macro names to use the compiler
2545 reserved namespace. Changed SDCC specific keywords to double
2547 * device/include/math.h,
2548 * device/include/malloc.h,
2549 * device/include/stdarg.h,
2550 * device/include/stdbool.h
2551 * device/include/string.h,
2552 * device/include/tinibios.h,
2553 * device/include/ds400rom.h,
2554 * device/include/8051.h,
2555 * device/include/8052.h,
2556 * device/include/80c51xa.h,
2557 * device/include/at89c55.h,
2558 * device/include/at89S8252.h,
2559 * device/include/at89x51.h,
2560 * device/include/at89x52.h,
2561 * device/include/ds80c390.h,
2562 * device/include/reg764.h,
2563 * device/include/regc515c.h,
2564 * device/include/sab80515.h,
2565 * device/include/mcs51/c8051f000.h,
2566 * device/include/mcs51/c8051f018.h,
2567 * device/include/mcs51/c8051f020.h,
2568 * device/include/mcs51/c8051f040.h,
2569 * device/include/mcs51/c8051f060.h,
2570 * device/include/mcs51/c8051f120.h,
2571 * device/include/mcs51/c8051f300.h,
2572 * device/include/mcs51/c8051f310.h,
2573 * device/include/mcs51/c8051f320.h,
2574 * device/include/mcs51/c8051f330.h,
2575 * device/include/mcs51/c8051f350.h,
2576 * device/include/z180.h: Changed SDCC specific keywords to double
2579 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2581 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2583 * (pic16_assignConfigWordValue): disable testing of configuration
2584 register value with config mask,
2585 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2586 function with port->fun_prefix,
2587 * (genFunction): when generating a naked interrupt function never
2588 create an absolute segment placed in interrupt vector address, place
2589 the actual interrupt function at IVA instead, when an interrupt
2590 function is generated with unspecified interrupt then do not create
2591 the absolute section,
2592 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2593 code for generating a call to generic pointer get/put function with
2594 a call to function pic16_callGenericPointer(),
2595 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2596 the call to the generic pointer get/put functions with prefixing the
2597 function name with port->fun_prefix,
2598 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2599 * src/pic16/main.c (_process_pragma): prefix function with
2601 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2602 calling assembler, old 18Fxxxx macro is deprecated,
2603 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2604 PC_ASMDIR in while condition,
2605 * (findInstruction): add PC_ASMDIR in while condition,
2606 * (buildCallTree): prefix main with port->fun_prefix,
2607 * (pic16_pCode2str): fixed bug that didn't emit the memory access
2608 identifier for variable with banked access in instructions BTFSS,
2609 BTFSC, BCF, BSF, BTG
2610 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2611 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2612 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2613 perform optimization when enviroment variable NO_REG_OPT is set,
2614 * (insideLRBlock): NEW, return 1 if register is inside an
2615 INF_LOCALREGS block,
2616 * (RemoveRegFromLRBlock): remove a register that is completely
2617 eliminated by register optimization, but it is still left in local
2618 register store/restore in/from stack block,
2619 * (Remove2pcodes): after removing register, check to see if it
2620 should be removed from local register store/restore in/from stack
2622 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2623 DUMMY_READ_VOLATILE,
2625 * device/include/pic16/adc.h: minor prototype modifications and
2627 * device/include/pic16/malloc.h: added GPL notice various
2629 * device/include/pic16/stdint.h: NEW, standard header for ints
2630 * device/include/pic16/delay.h: NEW, header for delay functions,
2631 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2633 * device/include/pic16/signal.h: NEW, header providing helper macros
2634 for implementing signal handlers,
2635 * device/include/pic16/stdio.h: added prototypes for functions,
2636 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2637 prototypes for stdin and stdout, added macro PUTCHAR to
2638 automatically implement putchar function prototype,
2639 * device/include/pic16/usart.h: modified and updated USART library,
2640 * device/lib/pic16/libio/adc/,
2641 * device/lib/pic16/libio/i2c: some modifications to improve library
2643 * device/lib/pic16/libc/stdio/: modifications for the new printf*
2644 family of functions,
2645 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2646 family of functions and other sources,
2647 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2648 of the PIC18Fxx[28] devices,
2649 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2650 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2651 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2652 _do_cinit function, because the previous failed when local variables
2653 where not placed in the same memory bank,
2654 * device/lib/pic16/libsdcc/char/: various modifications to improve
2655 library performance,
2656 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2657 information on the new functions of the c library and more...
2659 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2661 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2663 2005-03-26 Raphael Neider <rneider AT web.de>
2665 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2666 if condition == CARRY)
2667 * (genCmp): adapted to new genSkipc semantics
2668 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2669 on rIfx (genCmp was broken)
2671 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2673 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2674 * src/z80/main.c (_keywords[]),
2675 * src/SDCCglobal.h (struct options),
2677 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2678 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2679 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2680 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2681 always available in leading double underscore form. The C99 support is
2682 mostly missing, but it's a start.
2683 * support/regression/tests/bug-227710.c: fixed nonconforming use of
2684 reserved identifier "__data".
2686 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2688 * src/mcs51/peeph.def: fixed bug 1170013
2690 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2692 * device/include/mcs51reg.h: fixed bug 842007
2694 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2696 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2699 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2701 * src/port.h (struct PORT),
2702 * src/avr/ralloc.c (avr_assignRegisters),
2704 * src/ds390/ralloc.c (ds390_assignRegisters),
2706 * src/hc08/ralloc.c (hc08_assignRegisters),
2708 * src/mcs51/ralloc.c (mcs51_assignRegisters),
2710 * src/pic/ralloc.c (pic14_assignRegisters),
2712 * src/pic16/ralloc.c (pic16_assignRegisters),
2714 * src/xa51/ralloc.c (xa51_assignRegisters),
2716 * src/z80/ralloc.c (z80_assignRegisters),
2718 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2719 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2721 * src/SDCCdflow.c (computeDataFlow),
2723 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2725 * src/SDCCcflow.c (*),
2727 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2728 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2729 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2730 immedDom() returning wrong block; probably fixes bug #1160833)
2732 2005-03-20 Borut Razem <borut.razem AT siol.net>
2734 * support/scripts/inc2h.pl: WIN32 port
2736 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2738 * device/lib/makefile.in: added abs.c and labs.c
2740 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2742 * device/include/stdint.h: added
2743 * device/lib/abs.c: added
2744 * device/lib/labs.c: added
2745 * device/include/stdlib.h: added abs() and labs() prototypes
2746 * device/lib/libsdcc.lib: added abs and labs
2747 * device/include/float.h,
2748 * device/lib/_fsmul.c,
2749 * device/lib/printf_fast.c,
2750 * device/lib/printf_tiny.c: updated comments
2752 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2754 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2757 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2759 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2760 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2762 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2764 * device/lib/printf_large.c: removed inline assembly for portability and
2765 readability. Use printf_fast if speed or size are more important.
2766 * src/pic16/gen.c: removed conditions around use of DEBUGpc
2767 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2769 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2771 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2772 prevent compiler warning
2774 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2776 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2777 moved to level 0 and declared as static. Also they are explicit
2778 placed in access bank. This was necessery because some times they
2779 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2780 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2781 optimizations. Currently only compare to unsigned char is implemented,
2782 * src/pic16/gen.c: added fReturnIdx array,
2783 * (struct resolvedIfx) is moved to gen.h and made public,
2784 * (struct _G): added sregsAlloc and sregsAllocSet fields,
2785 * (aopForSym): added an optimization to directly store in stack of
2786 the operand of a SEND iCode,
2787 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2788 but as registers instead (AOP_REG) using the fReturnIdx array,
2789 * (pic16_freeAsmop): remove the freed register from the
2790 _G.sregsAlloc field,
2791 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2792 a compare of 'WREG',
2793 * (pic16_popGetTempRegCond): changed function prototype, now
2794 function takes also a bitVector argument v which holds the current
2795 set of registers that are allocated for stack access by aopForSym,
2796 registers allocated in aopForSym for accessing stack symbols are not
2797 any more part of the functions usedRegs field,
2798 * (genCall): some times aopOp is called for a stack variable to be
2799 send, aopForSym might perform the push, if this is true make sure
2800 that genCall doesn't push the variable twice by testing _G.resDirect,
2801 * (genFunction): changed testing for unspecified interrupt number
2802 from 256 to INTNO_UNSPEC,
2803 * modified selection scheme of frame pointer generation. Previously
2804 if function did use local registers a frame pointer was generated,
2805 now a frame pointer is generated only if function has arguments
2806 (that need PLUSW2 register access), or has stack arguments, or the
2807 compiler is not instructed to omit the frame pointer,
2808 * (genEndFunction): before restoring local registers that were saved
2809 in the function preamble, also restore the registers that *might*
2810 have been allocated for stack access,
2811 * (genRet): removed some old comments,
2812 * (genCmp, the active (RN's) version): added a call to the
2813 pic16_genCmp_special function to perform the compare with a more
2814 robust and optimized way,
2815 * (genInline): a feature has been added in inline code generation,
2816 which allows a wildcard variable substitution when writing inline
2817 assembly. Code is incomplete and experimental therefore undocumented,
2818 * (genCast): changed order of aopOp for result and right to allow
2819 aopForSym to directly load the result if possible,
2820 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2821 perform an optimized compare on some selected special occasions,
2822 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2823 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2824 generate an IVT any more,
2825 * src/pic16/main.c (pic16_optionsTable): added command line option
2827 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2828 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2830 * src/pic16/NOTES: Raphael Neider added in list of active developers
2831 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2832 jumptable_end to prevent bug #,
2833 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2834 inCond and outCond fields,
2835 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2836 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2837 turn off register spilling,
2838 * (packRegsForOneUse): synced with other ports' versions although it
2839 is not used currently,
2840 * (pic16_packRegisters): added an optimization while reading
2841 structure bitfields, some registers may be saved (malloc code is
2842 decreased by 80 bytes)
2844 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2846 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2847 left is a bitfield, if yes, then don't optimize assignment. Perhaps
2848 this can be optimized more?
2850 2005-03-10 Raphael Neider <rneider AT web.de>
2852 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2853 genNearPointerGet): (hopefully) fixed access to bitfields via
2854 pointers (p->bitN = x; and x = p->bitN; failed)
2856 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2858 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2860 2005-03-09 Raphael Neider <rneider AT web.de>
2862 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2864 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2866 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2867 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2868 (regTypeNum): set REG_BIT type if necessary
2869 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2870 * support/regression/tests/critical.c: check bug 1144613
2872 2005-03-02 Raphael Neider <rneider AT web.de>
2874 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2876 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2878 * src/avr/ralloc.c (serialRegAssign),
2879 * src/ds390/ralloc.c (serialRegAssign),
2880 * src/hc08/ralloc.c (serialRegAssign),
2881 * src/mcs51/ralloc.c (serialRegAssign),
2882 * src/pic/ralloc.c (serialRegAssign),
2883 * src/pic16/ralloc.c (serialRegAssign),
2884 * src/xa51/ralloc.c (serialRegAssign),
2885 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2887 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2889 * src/SDCCast.c (decorateType): fixed bug 1124787
2891 2005-02-20 Hubert Sack <sack AT digiplan.de>
2892 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2894 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2897 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2899 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2900 to keep the correct label reference count when adding/removing references
2901 to labels. A peephole file using this is appended to patch #1144962.
2903 2005-02-14 Raphael Neider <rneider AT web.de>
2905 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2906 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2907 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2908 retrievals of result operand's value on assignment
2910 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2912 * device/include/pic16/string.h: modified prototype for memccpy()
2913 to memccpy(void *, void *, char, size_t)
2914 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2915 check whether to omit frame pointer or not,
2916 * (genInline): convert all occurences of "\n" to LF in inline
2917 assembler blocks, this helps formatting the inline text,
2918 * (pic16_loadFSR0): modified prototype,
2919 * (genNearPointerGet, genNearPointerSet): reorganization of code,
2920 removed some 8051 legacy code,
2921 * (genPackBits): enabled handling bitfields exceeding one byte in size,
2922 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2923 before allocating temporary registers in functions,
2925 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2927 * support/regression/tests/bitvars.c: corrected the "fix"
2929 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2931 * support/regression/tests/bitvars.c,
2932 * support/regression/tests/bitwise.c,
2933 * support/regression/tests/rotate.c: "fixed" problems on Alpha
2935 2005-02-10 Raphael Neider <rneider AT web.de>
2937 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2938 different size for Alpha
2939 * src/pic16/gen.c (genCmpEq) : improved compare with 0
2941 2005-02-09 Raphael Neider <rneider AT web.de>
2943 * src/SDCC.lex(doPragma) : save and restore warning options as well
2944 (also added new stack plus clone- and copyAndFreeSDCCERRG())
2945 * have #pragma less_pedantic set the errorlevel to WARNING
2947 * (cloneOptimize) : fixed wrong malloc's size
2948 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2949 facilitate correct handling of #pragma (save|restore)
2951 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2953 * src/mcs51/gen.c: removed non-standard C nameless struct/union
2955 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2957 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2959 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2961 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2963 2005-02-02 Raphael Neider <rneider AT web.de>
2965 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2966 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2967 * (pic16_storeForReturn): fixed to allow returning function pointers
2968 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2969 * device/include/pic16/{stddef.h,stdbool.h}: added
2971 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2973 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2975 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2977 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2978 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2979 appeared to be required
2981 2005-01-31 Borut Razem <borut.razem AT siol.net>
2983 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2984 include/mcs51 and include/z80 directories to the package
2986 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2988 * src/hc08/gen.c (genFunction): fixed bug #1112752
2990 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2992 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2994 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2996 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2998 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3000 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3002 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3004 * device/include/c8051fxxx.h: removed these 6 files
3005 * device/include/mcs51/c8051fxxx.h: added these 11 new files
3007 2005-01-26 Raphael Neider <rneider AT web.de>
3009 * src/pic16/gen.c (genAssign): fixed assignment from longs
3010 in codespace (were cut to three bytes)
3011 * (genDummyRead): implemented (except for CODESPACE...),
3013 * src/pic16/glue.c (emitStatistics): beautified
3014 * device/lib/pic16/libm/Makefile: added include path
3016 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3018 * src/z80/gen.c (aopPut): fixed bug #1103902
3020 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3022 * device/lib/expf.c: fixed bug #1095792
3024 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3026 * device/lib/pic16/libm: added Math library sources
3028 2005-01-24 Raphael Neider <rneider AT web.de>
3030 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3031 to enable upcast to pCodeOpReg2 (there is no type tag to
3032 differenciate the two and pic16_popGet2p cast into PCOR2)
3033 * src/pic16/main.c (_process_pragma): fixed another malloc bug
3034 (sizeof(sectNames) changed to sizeof(sectName))
3035 Both patches fix segfaults under MinGW.
3037 2005-01-23 Raphael Neider <rneider AT web.de>
3039 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3040 Safe_[mc]?alloc()'ed variables
3041 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3042 of (byte sized) temporaries (assign them to WREG for now)
3043 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3044 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3045 this might fix SIGSEGVs on MinGW...
3046 * src/SDCCopt.c (killDeadCode): restored original behaviour
3047 (volatile operands might get thrown away though)
3049 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3051 * src/pic16/gen.c: fixed bug #1106975,
3052 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3053 pointer update, INTCON is saved, global interrupts are disabled and
3054 restored after updateing TOS.
3055 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3056 * added function attribute 'shadowregs' to take advantage of shadow
3058 * added function attribute 'wparam' as an alternative to the wparam
3060 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3061 user declares a non-ISR function as 'shadowregs',
3062 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3064 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3066 * .version: bumped version number to 2.4.8
3067 * device/lib/pic16/pics.all: list of PIC18F devices supported by
3069 * device/lib/pic16/libio/i2c/: I2C module support library,
3070 * device/include/pic16/i2c.h: I2C support library header,
3071 * device/lib/pic16/libc/stdio/: standard IO support sources,
3072 * (printf_small.c): printf_small() source, supports float print,
3073 * (printf_tiny.c): printf_tiny() source, does not support floats,
3074 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3075 enable global optimizations for entire library source, other
3076 Makefiles in the source tree are also modified to reflect this,
3077 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3079 * doc/sdccman.lyx: updated to reflect new changes,
3080 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3081 sym->onStack if-case,
3082 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3083 sbit, idata, _idata, xdata, _xdata,
3084 * added pragma library, to link an external library, (see doc),
3085 * removed command line options, --pomit-config-words, --pomit-ivt,
3086 --pleave-reset-vector,
3087 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3088 when calling assembler to reflect memory model used, also define
3089 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3090 reflect stack model used,
3091 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3092 on stack return NULL,
3094 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3096 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3097 of the operands is volatile. Fixes #1020220
3099 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3101 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3102 * (OptimizeRegUsage): make sure that there is really no other flow where
3103 the first pCode is used
3105 2005-01-22 Raphael Neider <rneider AT web.de>
3107 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3108 to fix #1106967 (pCode->seq are not set up correctly)
3110 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3112 * src/SDCCglue.c (glue): make sure code area is declared before the
3113 static initialization area.
3115 2005-01-21 Raphael Neider <rneider AT web.de>
3117 * device/lib/Makefile.in: fixed test for pic16 install dir
3118 * device/lib/pic16/*/Makefile*: modified compile flags to enable
3120 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3121 added --optimize-goto compiler switch and pragma wparam documentation
3122 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3123 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3124 and PRODH closing bug #1071770 (peephole optimizer)
3126 2005-01-19 Raphael Neider <rneider AT web.de>
3128 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3129 cmdLine buffers (used when calling sdcpp...) are large enough
3130 (MAX_PATH=256 truncates arguments leading to system halts when
3132 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3133 * (genUminus): rewritten to for efficiency
3134 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3135 used uninitialized in some cases)
3136 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3137 copy the third byte from the int -- now assumes 0x80 (data memory)
3138 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3139 operands (genAddLit expects the iCode's operands to swapped as
3140 well), fixed leftover bytes (crashed for short left operands)
3141 * (pic16_genMinusDec): performance improvements, removed false
3143 * (pic16_genMinus): fixed to cope with differently sized operands
3144 * src/pic16/glue.c (pic16_glue): added new banksel optimization
3146 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3147 * src/pic16/graph.[ch]: implementation of directed graphs, used by
3148 new banksel optimization
3149 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3150 analysis for temporary registers (segfaults...)
3151 * src/pic16/peeph.def: added rule
3153 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3155 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3156 which converts a float number to its ASCII representation
3157 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3158 functions to convert the fractional and integer part of a float to ASCII,
3159 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3160 realloc.c): added _MALLOC_SPEC to explicit place variables in data
3162 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3164 * device/include/pic16/adc.h: added GPL info,
3165 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3166 a pCodeOp as tested operand,
3167 * (genNearPointerGet): optimized bit testing, does not use
3168 intermediate register for bit value, test directly instead with
3169 BTFSS, BTFSC, works only for single bits,
3170 * (genpic16Code): dump the name of the iCode in the asm,
3171 * src/pic16/ralloc.c (decodeOp): removed static declaration and
3172 renamed to pic16_decodeOp,
3173 * (serialRegAssign): do not allocate a temporary register for iCode
3174 sequences that test a single bit for 1/0
3176 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3178 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3179 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3180 access stack and frame pointers. They are initially assigned to
3181 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3182 accessing SFRs. Updated all occurences of modification of stack or
3183 frame pointer in gen.c and pcode.c,
3184 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3185 assigning of a literal value to pointers,
3186 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3187 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3190 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3192 * doc/sdccman.lyx: update documentation about stack pragma, added
3193 some info for stack memory models
3195 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3197 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3199 2005-01-08 Raphael Neider <rneider AT web.de>
3201 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3202 udata sections to fix bug #1097823
3204 2005-01-05 Raphael Neider <rneider AT web.de>
3206 * src/pic16/gen.c (genGenericShift): added handling of differently
3207 sized left operand and result
3209 2005-01-04 Raphael Neider <rneider AT web.de>
3211 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3212 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3213 to hold the condition bit)
3214 * added new version of genCmp (old code available via #define)
3215 * added new version of genShiftLeft/genShiftRight in a generic
3216 way, now supports shifting by negative values
3217 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3218 shiftCount (expected by genGenericShift)
3219 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3220 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3222 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3223 is an invalid literal too...)
3225 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3227 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3228 from Raphael Neider,
3229 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3230 for 8-bit literals. This fixes some literal operands which are sign
3231 extended to 16-bits ints when instruction needs only 8-bits.
3233 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3235 * device/lib/logf.c: added mcs51 assembly version
3236 * device/lib/expf.c: added mcs51 assembly version
3237 * device/lib/_logexpf.c: new shared asm code for expf and logf
3238 * device/include/math.h: add defines for assembly math library
3239 * device/lib/Makefile.in: build new _logexpf.c
3240 * device/lib/libfloat.lib: use new _logexpf.c
3242 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3245 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3246 device types which have less than 0x7f registers.
3248 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3250 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3252 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3254 * device/lib/printf_fast.c: only build on supported arch.
3255 * device/lib/printf_tiny.c: only build on supported arch.
3256 * device/lib/printf_fast_f.c: only build if asm float lib
3257 * device/lib/_fsget1arg.c: only build if asm float lib
3258 * device/lib/_fsget2args.c: only build if asm float lib
3259 * device/lib/_fsnormalize.c: only build if asm float lib
3260 * device/lib/_fsreturnval.c: only build if asm float lib
3261 * device/lib/_fsrshift.c: only build if asm float lib
3262 * device/lib/_fsswapargs.c: only build if asm float lib
3263 * device/include/stdio.h: don't provide print_fast,
3264 print_fast_f, print_tiny prototypes if --xstack used
3266 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3268 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3269 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3272 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3274 * device/lib/printf_fast_f.c: same as printf_fast, but
3275 with floating point enabled
3276 * device/lib/printf_fast.c: minor tweaks
3277 * device/include/stdio.h: add printf_fast_f
3279 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3281 * src/SDCCmain.c: make --float-reent default for mcs51
3282 * device/lib/_fsadd.c: added mcs51 assembly version
3283 * device/lib/_fssub.c: added mcs51 assembly version
3284 * device/lib/_fsmul.c: added mcs51 assembly version
3285 * device/lib/_fsdiv.c: added mcs51 assembly version
3286 * device/lib/_fseq.c: added mcs51 assembly version
3287 * device/lib/_fsneq.c: added mcs51 assembly version
3288 * device/lib/_fsgt.c: added mcs51 assembly version
3289 * device/lib/_fslt.c: added mcs51 assembly version
3290 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3291 * device/lib/Makefile.in: add _fscmp to build
3292 * device/lib/libfloat.lib: add _fscmp to build
3294 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3296 * device/lib/_fs2slong.c: added mcs51 assembly version
3297 * device/lib/_fs2sint.c: added mcs51 assembly version
3298 * device/lib/_fs2schar.c: added mcs51 assembly version
3299 * device/lib/_fs2ulong.c: added mcs51 assembly version
3300 * device/lib/_fs2uint.c: added mcs51 assembly version
3301 * device/lib/_fs2uchar.c: added mcs51 assembly version
3302 * device/lib/_slong2fs.c: added mcs51 assembly version
3303 * device/lib/_sint2fs.c: added mcs51 assembly version
3304 * device/lib/_schar2fs.c: added mcs51 assembly version
3305 * device/lib/_ulong2fs.c: added mcs51 assembly version
3306 * device/lib/_uint2fs.c: added mcs51 assembly version
3307 * device/lib/_uchar2fs.c: added mcs51 assembly version
3308 * device/include/float.h: added #define to select asm vs c
3310 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3312 * device/lib/printf_fast.c: improvements to float output
3313 * device/include/float.h: add defines for assembly float library
3314 * device/lib/_fsget1arg.c: receive 1 float arg
3315 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3316 * device/lib/_fsnormalize.c: normalize a float
3317 * device/lib/_fsreturnval.c: return float, various helper routines
3318 * device/lib/_fsrshift.c: right shift a float's mantissa
3319 * device/lib/_fsswapargs.c: swap 2 floats
3320 * device/lib/Makefile.in: build these 6 new files for mcs51
3321 * device/lib/libfloat.lib: add these 6 files to the library
3323 2004-12-26 Borut Razem <borut.razem AT siol.net>
3325 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3328 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3330 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3331 and fully reentrant and register bank neutral.
3332 * device/lib/printf_fast.c: added float (not enabled by default),
3333 added compact/slower integer (also not enabled by default),
3334 improved size/speed of fast integer code, other minor changes
3335 * device/include/stdio.h, device/lib/Makefile.in,
3336 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3338 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3340 * src/pic16/pcode.c: declaring variables other than at the start of a
3341 block is not supported in C by VC6.
3343 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3345 * applied a previous patch from Raphael Neider that wasn't included
3346 in the previous commits, which fixes infinite loops within jumptable
3348 * made some fixes that previous patches introduced
3350 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3352 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3353 that fixes an issue with AOP_PCODE asmop's offset,
3354 * (pic16_popCopyReg): update instance field too,
3355 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3356 function of pic port,
3357 * (genCmp, genAnd, genAssign),
3358 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3360 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3362 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3363 variables initial values to idata section,
3364 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3365 variables in some functions. This utilizes parmBytes field of iCode
3366 structure to hold the offset of the variable in stack. (might be
3367 able to use the stack field too?)
3368 * applied patch from Raphael Neider # ### , # ###
3369 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3370 variable initial values in idata section,
3371 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3372 for static variables with initial value
3373 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3374 applied fix in while loop from Raphael Neider.
3376 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3378 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3379 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3380 * src/ds390/ralloc.c (serialRegAssign): spill bits
3381 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3382 * support/Util/SDCCerr.c,
3383 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3384 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3385 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3387 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3389 * device/include/sdcc-lib.h: inserted LGPL, added includes
3390 asm/ds390/features.h and asm/mcs51/features.h
3391 * device/include/asm/default/features.h,
3392 * device/include/asm/gbz80/features.h,
3393 * device/include/asm/z80/features.h: added empty _AUTOMEM
3395 * device/include/asm/ds390/features.h,
3396 * device/include/asm/mcs51/features.h: added files with defines for
3397 _AUTOMEM and _STATMEM indicating automatic and static storage class
3398 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3399 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3400 * src/SDCCicode.c (geniCodeCast),
3401 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3402 * src/SDCCloop.c (loopInduction): removed unused variable lr
3403 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3404 to convertToFcall to include char modulo (RFE 1065037), added check
3405 if left operand is unsigned and use abs of literal value
3406 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3407 as it doesn't work after conversion from peephole.def to peephole.rul
3408 * src/mcs51/gen.c (toBoolean): added check for size,
3409 (genModOneByte): optimized code for signed char modulo a literal
3410 power of 2 (thanks to Hubert Sack),
3411 (genRRC): removed unnecessary "clr c",
3412 (genRLC): replaced "add a,acc" with cheaper "rlc a"
3413 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3415 swapped rules 256.c and 256.d,
3416 extended 256.d by using new multiple checks (thanks Erik),
3417 added rules 256.e and 256.f,
3418 updated rule 261.a and 261.b to new generated code
3419 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3421 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3423 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3424 induction related bugs, including first part of bug #1074377
3426 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3428 * applied patch from bug-report #1076292,
3429 * applied patches for genAnd and Goto-optimizations for Raphael
3431 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3432 dump a less iCode information,
3433 * src/pic16/device.h (pic16_options_t): added field debgen,
3434 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3435 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3436 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3438 * (various functions): added macros FENTRY and FENTRY2 to functions,
3439 to emit function prologue,
3440 * (various functions): fixed indentation,
3441 * (genNearPointerGet): fixed loading of FSR0,
3442 * (genPackBits): applied patch from Raphael Neider to fix updating
3443 of FSR0 and touching only the modified bits,
3444 * src/pic16/genarith.c (various functions): added macros FENTRY to
3445 emit function prologue in comments,
3446 * src/pic16/pcode.h: added functions debugf2, debugf3,
3447 * src/pic16/ralloc.c: partial fix for packForPush caused
3450 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3452 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3453 <stsp AT users.sourceforge.net> with reversed byte order
3454 * support/regression/tests/rotate.c: added (ds390 skips some tests)
3456 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3458 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3460 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3461 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3463 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3465 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3467 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3469 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3471 (setFromConditionArgs): friendly operand parser for peephole rules,
3472 (operandBaseName, operandsNotRelated): new peephole condition
3473 "operandsNotRelated" -- similar to "operandsNotSame", but takes
3474 architecture specific register naming into account, handles n-way
3475 comparisons, and supports quoted literals
3476 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3478 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3480 * src/mcs51/peeph.def: fixed bug #1076940
3482 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3484 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3486 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3488 Adding support for replacing ljmps with sjmps in jumptables
3489 generated for switch statements. For now you need to set the
3490 environment variable SDCC_SJMP_JUMPTABLE to enable this.
3491 Now 4 algorithms for mcs51 jumptable generation are used:
3492 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3493 addresses loaded pc-relative for up to 112 cases and stack-pushing
3494 target addresses loaded with offset from dptr for up to 256 cases.
3496 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3497 * src/mcs51/main.c: adapted constants for switch table generation
3498 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3500 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3502 * device/lib/printf_large.c (_print_format): fixed bug 1073386
3503 * support/regression/tests/bug1057979.c: added test for bug 1073386
3505 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3507 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3510 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3512 * src/pic16/device.h,
3513 * src/pic16/genarith.c,
3516 * src/pic16/pcode.c: applied patches #1068154 and #1070213
3518 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3520 Large cummulative patch for pic16 port.
3521 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3522 to call when a stack overflow occurs,
3523 * (malloc.h): added CVS Id tag,
3524 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3526 * added libc directory. The current version of LibC contains string
3527 functions, ctype functions and macros and some functions of the
3528 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3529 be extensively tested in the future. Standard disclaimer here.
3530 Library is not automatically build yet. But one can build it by
3531 invoking 'make' inside the libc directory.
3532 * added ADC library under libio. Preliminary version yet.
3534 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3535 * src/pic16/gen.c (aopForRemat): asmop size is filled by
3536 aopForRemat() now and not by pic16_aopOp(),
3537 * (pic16_popGetTempReg): removed warning messgae when allocating
3538 temporary registers, its a buggy feature and will be removed,
3539 * (pic16_popGet): set register instance field in AOP_CRY,
3540 * (pic16_outBitC): fixed for results in size greater than 1,
3541 * (genUminusFloat): fixed for pic16, ported code from mcs51,
3542 * (pic16_storeForReturn): optimized return of 0,
3543 * (genCmp): experimental code for new genCmp which uses PIC18's
3544 special compare&skip instructions. Initial tests fail some times
3545 with variables grater than 1 byte in size, so new code is disabled,
3546 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3548 * (genCast): began a fix to optimize the casting of a bit to another
3549 bit, now assigning a bitfield to another bitfield will fail, sorry,
3550 * src/pic16/main.c: disabled the use of lr-support feature,
3551 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3552 * added some function prototypes, added function _debugf prototype,
3553 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3554 bits with offset (case PO_GPR_BIT),
3555 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3557 * (isBankInstruction): modified to return 0 for no banking instruction,
3558 and 1 for banking instruction,
3559 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3560 caused stop processing pCodes after a inline assembly block,
3561 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3562 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3563 registers when it shouldn't,
3564 * src/pic16/ralloc.c (allocReg): add preliminary support for
3565 supporting a limited set of temporary registers,
3567 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3569 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3570 genDataPointerSet): ensure assignments always copy in MSB to LSB
3572 (loadRegFromAop): recognize CLRH optimization,
3573 (genFunction): optimize RECEIVE iCodes in reentrant functions
3575 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3577 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3578 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3580 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3581 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3582 contiguous with data
3584 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3586 * device/lib/_gptrget.c (_gptrget),
3587 * device/lib/_gptrgetc.c (_gptrgetc),
3588 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3589 instead of sjmp to ret
3590 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3591 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3593 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3595 * .version: bumped version to 2.4.7
3596 * device/lib/_gptrget.c (_gptrget): is now _naked
3597 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3598 * device/lib/_gptrput.c (_gptrput): is now _naked
3599 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3600 (createFunction): fixed xstack
3601 * src/SDCCglue.c (emitMaps): set allocation required for bit area
3602 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3604 (geniCodeCritical): store original interrupt state in an iTemp bit
3605 var unless stack-auto
3606 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3607 * src/SDCCmain.c (setIncludePath): added include/target to search path
3608 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3609 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3611 (processFuncArgs): put bit vars in bit area
3612 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3613 unsaveRBank): fixed xstack,
3614 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3615 (genFunction, genEndFunction): fixed xstack,
3616 (genAssign): optimization don't walk backwards through mem
3617 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3618 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3619 * support/regression/Makefile: also make library (for stack-auto) when
3620 making "all" and added "test-mcs51-xstack-auto"
3621 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3622 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3623 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3624 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3625 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3626 make-library by MAKE_LIBRARY
3627 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3628 regression tests for xstack
3629 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3630 * support/regression/tests/critical.c: test for critical on mcs51
3632 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3634 * support/regression/ports/ucz80/spec.mk: use include and lib files from
3635 built version of sdcc instead of installed version
3637 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3639 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3640 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3642 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3643 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3644 WARNING: remove device/lib/build/z80/printf.o by hand when
3645 updating from previous build!
3646 * device/lib/z80/printf.c: updated comment
3647 * support/regression/tests/bug1057979.c: test all ports now
3648 * support/regression/tests/bug1065458.c: file added
3650 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3652 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3653 *_start and *_end symbols for static functions
3655 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3657 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3658 and search crt0.o in all library paths,
3659 (setIncludePath): proper handling of --nostdinc,
3660 (setLibPath): proper handling of --nostdlib
3661 * support/regression/Makefile,
3662 * support/regression/ports/ds390/spec.mk,
3663 * support/regression/ports/gbz80/spec.mk,
3664 * support/regression/ports/hc08/spec.mk,
3665 * support/regression/ports/mcs51/spec.mk,
3666 * support/regression/ports/mcs51-large/spec.mk,
3667 * support/regression/ports/mcs51-stack-auto/spec.mk,
3668 * support/regression/ports/z80/spec.mk: use include and lib files from
3669 built version of sdcc instead of installed version
3670 * doc/sdccman.lyx: fixed typo in --nostdinc
3672 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3677 * src/pic/gen.c : added support to generate code for struct bit fields.
3679 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3681 * as/xa51/xa_version.h,
3682 * device/include/errno.h,
3683 * device/include/regc515c.h,
3684 * device/lib/_itoa.c,
3685 * device/lib/_ltoa.c,
3686 * device/lib/ser_ir_cts_rts.c,
3687 * sim/ucsim/xa.src/glob.cc,
3688 * sim/ucsim/xa.src/inst_gen.cc,
3689 * sim/ucsim/xa.src/xa_bit.cc,
3690 * sim/ucsim/xa.src/xa_sfr.cc,
3691 * sim/ucsim/z80.src/inst_dd.cc,
3692 * sim/ucsim/z80.src/inst_fdcb.cc,
3693 * support/scripts/keil2sdcc.pl,
3694 * src/pic16/pic16.dsp,
3695 * src/pic16/pic16a.dsp: corrected cvs line endings
3696 * device/lib/printf_large.c: fixed bug 1057979
3697 * src/pic16/gen.c: fixed non-C standard code
3698 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3699 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3700 * support/regression/ports/mcs51/support.c: reload T1 asap
3701 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3702 pdata use and clear idata startup behaviour
3703 * support/regression/tests/bug1057979.c: added
3705 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3707 * device/examples/ds390/ow390/ad26.h,
3708 * device/examples/ds390/ow390/cnt1d.h,
3709 * device/examples/ds390/ow390/crcutil.c,
3710 * device/examples/ds390/ow390/ownet.h,
3711 * device/examples/ds390/ow390/owsesu.c,
3712 * device/examples/ds390/ow390/swt12.h,
3713 * device/examples/ds390/ow390/swtoper.c,
3714 * device/examples/ds390/ow390/temp10.h,
3715 * device/examples/ds390/ow390/thermodl.c,
3716 * device/examples/ds390/tinitalk/tinitalk.dsp,
3717 * device/examples/ds390/tinitalk/tinitalk.dsw,
3718 * device/examples/mcs51/clock/hw.h,
3719 * device/examples/mcs51/simple2/go.bat,
3720 * device/examples/serialcomm/windows/serial.h,
3721 * device/examples/xa51/dummy.c,
3722 * device/examples/xa51/hello.c,
3723 * device/include/80c51xa.h,
3724 * device/include/at89x051.h: corrected cvs line endings
3726 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3728 * src/pic16/main.c (options): added command line --gstack, to trace
3729 stack over/under flows,
3730 * added pragma 'wparam' to allow passing first byte of function
3731 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3732 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3733 call to __gstack_test function and sets up the symbol as extern,
3734 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3735 * popaop): added call to pic16_testStackOverflow,
3736 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3738 * (genCall, genPcall): now all parameters are passed via stack
3739 except in functions that are pass to wparam pragma in which WREG is
3741 * (genPcall): REENTRANT flag is checked to see if variable prototype
3742 contains reentrant keyword, don't call a non-reentrant function, via
3743 a reentrant function pointer or vice versa, functions are never
3745 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3747 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3748 SIGSEGV when accessing a NULL register stucture,
3749 * (pic16_printGPointerType): modified to handle UPPER modifier for
3750 function initializers, changed prototype of function to simpler one,
3751 * (pic16_printIvalFuncPtr): check to see if function is already
3752 added in externs list,
3753 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3754 optimized a move from W to SFR with a move to the same register
3756 * device/lib/pic16/debug: NEW directory, contains debug features
3757 which are enabled when linking with libdebug.lib, currently command
3758 line option --gstack enables stack pointer tracing for over/under
3759 flow, corresponding sources are in debug/gstack
3761 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3763 * doc/sdccman.lyx: updated SDCC version,
3764 * (PIC16 port): update list of command line options,
3765 * src/pic16/device.h (structure pic16_options_t): added field gstack
3766 to enable stack overflow tracing on push/pops,
3767 * src/pic16/device.c (statistics structure): added statistics
3769 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3770 pic16_dump_int_registers): increase statistics counters for each
3771 * variable which is encountered
3772 * (pic16_dump_usection): emit each .udata variable to its own udata
3774 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3775 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3776 parameters via stack, otherwise use old scheme,
3777 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3778 assembler output file,
3779 * src/pic16/main.c: added command line options --gstack to enable
3780 push/pop tracing for stack overflow,
3781 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3782 instructions): added size of each instruction,
3783 * (pic16_countInstruction): estimate size of instructions in
3784 the_pFile list, inline assembly blocks are not counted,
3785 * (pic16_FixRegisterBanking): trace previous register usage, when
3786 banksel optimizations is greater than 0, don't emit a redudant
3789 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3791 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3792 * src/pic16/ralloc.c : applied same fix for pic16.
3793 * src/pic/gen.c : tidied it up a little.
3795 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3797 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3798 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3800 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3802 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3804 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3806 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3807 non-reentrant function __modsint in the interrupt function (thus
3808 corrupting math operations during serial I/O)
3809 * device/lib/ser_ir.c: as above, changed buffersize
3810 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3812 * doc/Makefile: added option -t for rsync
3814 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3816 * src/SDCCast.h (struct ast),
3817 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3819 2004-10-20 Borut Razem <borut.razem AT siol.net>
3821 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3824 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3826 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3828 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3829 support functions to replace long sequences of MOVFF's from access
3830 bank registers to stack and vice versa,
3831 * src/pic16/device.h: added new field opt_flags, where optimization
3832 flags can be set to enable certain features,
3833 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3834 * pBlock, (genFunction, genEndFunction): surroung loop for
3835 saving/loading used registers in stack with PC_INFO pCodes,
3836 INF_LREGS. Code in between can then be optimized by pCode optimizer
3837 to support function calls,
3838 * (genDataPointerSet): fixed bug which loaded float fields in
3839 structures with corrupt data,
3840 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3841 in a standard way debug info on stderr. Feature used for developing
3843 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3844 obsolete chunks of code,
3845 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3846 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3847 * pic16/src/pcode.c (pic16_newpCodeInfo,
3848 * (pic16_newpCodeOpLocalRegs),
3849 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3851 * (pic16_pCodeConstString): printing of the initial value of a
3852 symbol as a comment is inhibited since parsing was already done by
3853 copyStr and output is corrupt,
3854 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3856 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3858 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3860 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3862 * as/mcs51/lkarea.c: removed old K&R style,
3863 (lnksect): changed check on boundary error,
3864 (lnksect2): changed check on boundary error,
3865 (lnksect2): extend XSTK to end of page if size = 1
3866 * as/mcs51/lkmain.c: removed old K&R style,
3867 (Areas51): create l_IRAM symbol
3868 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3869 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3870 model-mcs51-stack-auto, added model-mcs51-xstack-auto
3871 * device/lib/_mullong.c: added version to be compiled with xstack
3872 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3873 * device/lib/mcs51/crtxclear.asm: clear pdata as well
3874 * device/lib/mcs51/crtxstack.asm: fixed comment
3875 * src/SDCCglue.c: maxInterrupts defaults to 0,
3876 (emitMaps): added pdata,
3877 (createInterruptVect): (re)moved default,
3878 (glue): added pdata,
3879 (glue): moved __start__xstack to XSTK with default size 1
3880 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3881 and options.float_rent when options.stackAuto is set,
3882 (linkEdit): only write XDATA_NAME if provided on command line
3884 * src/SDCCmem.c: added pdata
3885 * src/port.h: added pdata_name to PORT
3886 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3887 (saveRegisters, unsaveRegisters): removed usage of B,
3888 (genMinus): fixed accumulator clash,
3889 (genJumpTab): added comment, this needs another look
3890 * src/mcs51/gen.c: added check for "B in use" paranoia,
3891 added pushB() and popB()
3892 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3901 * src/z80/main.c: (reset_regparms) made void parameter explicit and
3902 added PSEG (PAG,XDATA) or NULL to port specifier
3903 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3904 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3905 (_mcs51_genInitStartup): removed __start__xstack equ,
3906 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3907 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3908 * src/z80/gen.c (_rleAppend): fixed warnings
3909 * support/regression/tests/zeropad.c: added pdata test
3910 * .version: bumped to 2.4.6
3912 2004-10-17 Borut Razem <borut.razem AT siol.net>
3914 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3915 as a part of nightly build
3917 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3919 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3920 WREG holds the first byte function parameters,
3921 * (aopForSym): take special case for symbols which are in FARSPACE
3922 but in CODESPACE too,
3923 * (assignResultValue): modified to take into account _G.useWreg,
3924 * (genCall): don't use wreg for parameter passing when function is
3925 declared as reentrant, too, added optimization INCF to stack
3926 pointer when stack parameter count is 1,
3927 * (genFunction, genEndFunction): refurnished and fixed to not using
3928 wreg for passing parameters when function has varargs or is
3929 reentrant, fixed bug with symbol name compare for generating
3930 functions in absolute address,
3931 * (pic16_storeForReturn): refurnished,
3932 * (genCmp): began writing a new version of the function, not ready
3933 yet, therefore it is disabled,
3934 * (genAssign): do not read code memory when assigning a function to
3936 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3937 array of characters, not pointer,
3938 * (pic16initialComments): in debug mode emit an .ident directive for
3940 * (_process_pragma): emit a new warning type (internal to pic16)
3941 when setting stack to default length, emit a similar warning when
3942 placing a function at absolute address and address is not word aligned
3943 * (_pic16_parseOptions): added 'return TRUE' statement,
3944 * (_pic16_linkEdit): if compiling a source, then add the source's
3945 file object, first in the list of objects to link,
3947 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3949 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3950 * src/pic/main.c : removed VC warning.
3951 * src/pic/gen.c : changed comment.
3953 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3955 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3956 reference to a deprecated symbol _GPTRREG was causing failure to
3957 link. Thanks G. M. Gallant for the info.
3959 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3961 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3962 comments for Bugs item #954788.
3964 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3966 * src/pic16/device.c (pic16_dump_gsection,
3967 * pic16_groupRegistersInSection): handle symbols declared to be in
3968 access bank differently,
3969 * src/pic16/gen.c (struct _G): added field resDirect,
3970 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3971 send values read from stack directly to result and don't allocate
3973 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3975 * (pic16_sameRegsOfs): NEW,
3976 * (freeAsmop): if _G.resDirect is set then do not mark registers as
3977 free because they were not allocated from temporary pool,
3978 * pic16_popRegFromString): workaround to fix a problem with
3979 allocating variables twice or never,
3980 * (genGenPointerGet): using PRODL instead of FSR0H,
3981 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3983 * (genAssign): take advantage of the _G.resDirect flag,
3984 * (genCast): around line 11844, use mov2f instead of directly
3985 MOVFF'ing between operands to account for literal values,
3986 * src/pic16/genutils.c: some new debug functions for gpsim have been
3988 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3989 float with integer part only,
3990 * src/pic16/main.c (_process_pragma): handle pragma udata access to
3991 place variables in access bank
3992 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3993 updated sources to reflect recent changes in gen.c
3995 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3997 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3998 sources that searched for headers in installation path, now the
3999 device/include/pic16 is used,
4000 * src/pic16/glue.c (pic16glue),
4001 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4002 .line directives if not in debug mode, this suppresses assembler's
4003 warnings for ignored directives
4005 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4007 * src/port.h: made reset_regparms prototype void parameter explicit.
4008 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4009 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4010 * doc/sdccman.lyx: documented warning disabling and how to use
4011 printf_large to make it print floats.
4012 * device/include/stdbool.h: NEW
4013 * device/lib/_atof.c,
4014 * device/lib/_divuint.c,
4015 * device/lib/_divulong.c,
4016 * device/lib/expf.c,
4017 * device/lib/printf_large.c,
4018 * device/lib/sincosf.c,
4019 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4020 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4021 a completely reentrant lib.
4023 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4025 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4026 * device/include/pic16/stdio.h: fixed bug with colon
4028 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4030 * device/include/pic16/stdio.h,
4031 * device/include/pic16/stdlib.h,
4032 * device/include/pic16/math.h: NEW
4033 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4034 declared as _naked to reduce overhead
4035 * device/lib/Makefile.in (target port-specific-objects-pic16):
4036 changed * to *.* so to ignore the CVS directory,
4037 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4038 stacked variables back in stack,
4039 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4042 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4044 * .version: bumped version number to 2.4.5
4045 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4046 * support/Util/SDCCerr.c (messages structure): added entry for
4049 Large cumulative patch for pic16 port and libraries.
4050 * device/include/pic16/sdcc-lib.h,
4051 * device/include/pic16/stdarg.h,
4052 * device/include/asm/pic16/features.h,
4053 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4054 * device/include/pic16/float.h: changes reentrant keyword with
4055 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4056 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4057 updated target build-libraries to include objects from gptr,
4058 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4059 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4060 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4061 all function headings,
4062 * src/SDCCmain.c: added global parameter userIncDirsSet,
4063 * (parseCmdLine): when option -I is encountered add directory to
4065 * src/version.awk: added space between control and long,
4066 * src/pic16/NOTES: added some notes for the port,
4067 * src/pic16/gen.c: added prototype for mov2fp function,
4068 * (fReturnpic16[]): properly named return value registers,
4069 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4070 * (aopForSym): added code to handle symbols with onStack flag set,
4071 symbols onStack are allocated PTRSIZE bytes,
4072 * (aopFreeAsmop): handles special case where asmops are stack objects,
4073 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4074 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4075 added argument lock to trace flaws in allocating temporary registers
4076 when developing port,
4077 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4078 * (pic16_popRegFromString): reenabled allocating a direct register
4080 * (assignResultValue): various beautifications,
4081 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4082 referenced function argument,
4083 * (genIpush): reenabled to allow stacked arguments, handles only
4084 ic->parmPush iCodes,
4085 * (genCall, genPcall): major changes to allow for variable argument
4086 functions, fixed a bug with falsely restoring stack pointer after
4087 returning from call,
4088 * (genFunction): pending code for critical function,
4089 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4090 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4091 * (genNearPointerGet): fixed bug with indirect reading, was always
4093 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4095 * (genAddrOf): rewrote code to take address of a stacked function parameter
4096 * (genCast): fixed casting to generic pointer type,
4097 * src/pic16/gen.h: added AOP_STA,
4098 * (struct asmop): added field stk,
4099 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4100 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4101 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4102 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4103 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4104 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4106 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4108 * (pic16_port structure): generic pointer size is set to 3,
4109 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4110 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4112 * src/pic16/ralloc.c (allocReg): prevent allocating register when
4113 operand is an iTemp,
4115 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4117 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4118 * debugger/mcs51/simi.c: addapt new syntax of s51
4120 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4122 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4123 * src/pic16/pcode.c: commented out some calls to free() in order to
4126 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4129 * src/SDCCicode.c (isiCodeInFunctionCall),
4130 * src/avr/ralloc.c (selectSpil),
4131 * src/pic/ralloc.c (selectSpil),
4132 * src/pic16/ralloc.c (selectSpil),
4133 * src/ds390/ralloc.c (selectSpil),
4134 * src/hc08/ralloc.c (selectSpil),
4135 * src/xa51/ralloc.c (selectSpil),
4136 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4137 stack in the middle of a function call sequence (fixes bug #1020268)
4138 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4139 costs associated with the minimum switch case.
4141 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4143 * src/SDCC.lex: fixed bug #1030549
4145 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4147 * src/SDCCcse.h (struct cseDef),
4148 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4149 over a function call if the CSE is derived from a symbol whose
4150 address has been taken (fixes bug #1029883)
4151 * support/regression/tests/bug-1029883: a new regression test for
4154 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4156 * src/hc08/gen.c (emitinline): fixed bug #1029778
4157 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4158 to a cast object is no longer a syntax error ("fixes" bug #1030006,
4159 and starts toward RFE #905167)
4161 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4163 * src/pic16/gen.c (mov2f): New function to move an operand to
4164 another without considering if it is a literal or a register,
4165 * (pic16_sameRegs): don't check if they are both AOP_REG,
4166 * (AccRsh): removed andmask=0 lines,
4167 * (genLeftShift): duplicated to be improved in future versions,
4168 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4169 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4170 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4171 * (pic16initMnemonics): added initialization for POC_INFSNZW,
4172 * (insertBankSwitch): fixed inserting banksel directives algorithm
4173 for instructions that follow a skip instruction, this fixes a report
4174 for broken subtraction code generation,
4175 * src/pic16/ralloc.c (deassignLRs): do not free register if current
4176 iCode is a left op, just in case result and right share the same
4179 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4182 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4184 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4185 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4186 on 2004-09-12; it was buggy
4188 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4190 * src/SDCCsymt.h: removed RESULT_CHECK
4195 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4197 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4199 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4200 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4201 configuration values no more rejected by compiler, they are assigned
4202 to configuration registers with a warning message instead,
4203 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4204 the for-loop so last conf register is emitted too,
4205 * (_pic16_initPaths): link library libsdcc.lib by default,
4206 * (_hasNativeMulFor): modified test for multiplication according to
4207 Raphael Neider's remarks. Integer multiplication is also done with
4209 * device/include/pic16/pic18fregs.h: corrected type error in while
4210 testing and including 18f6720 header file
4212 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4214 * src/pic16/device.h (pic16_options): removed field use_crt,
4215 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4216 until an optimization to handle single bits is added,
4217 * (pic16_loadFSR0): moved before genUnpackBits,
4218 * (genAnd): some white lines removed,
4219 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4220 leave_reset flags in pic16_options when using crt modules,
4222 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4224 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4225 for bugs 898889 & 979599. Also used some safer print instructions.
4227 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4229 * src/pic16/device.h (pic16_options_t): added field use_crt,
4231 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4232 catch a probable future bug,
4233 * src/pic16/gen.c: aopIdx function commented out,
4234 * (genAssign): commented out old code which used aopIdx,
4235 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4236 code, added if conditionals to take into account the --use-crt
4237 command line options,
4238 * src/pic16/main.c (pic16_optionsTable): added new command line
4239 options, --use-crt= and --no-crt,
4240 * (_pic16_linkEdit): now the proper crt object is added in the
4241 linker command line except than when --no-crt is specified,
4242 * src/pic16/pcode.c,
4243 * src/pic16/pcode.h: added some structures and functions for a new
4244 optimization scheme to compansate for instruction overhead between
4245 same iCodes, this scheme is currently under development and is not
4247 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4249 * device/lib/pic16/startup/crt0i.c,
4250 * device/lib/pic16/startup/crt0iz.c: added global char variable
4251 __uflags to force the generation of an idata section
4253 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4256 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4257 * doc/sdccman.lyx: updated sdcc version to 2.4.4
4259 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4261 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4262 Frieder) and clarified the default code optimization mode
4264 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4266 * src/SDCC.lex (doPragma, process_pragma),
4267 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4268 "opt_code_size", and "opt_code_balanced"
4269 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4270 regrouped options by category, added support for category headers
4271 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4272 and "--opt-code-size"
4273 * doc/sdccman.lyx: documented these new options and pragmas
4274 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4275 preference into account
4277 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4279 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4280 geniCodePreDec): Fixed bug 904237 by generating a warning
4282 * src/SDCCerr.c: added warning W_SIZEOF_VOID
4284 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4286 * src/pic/device.c : When no max ram set validate full memory range.
4288 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4290 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4292 * device/lib/_gptrget.c,
4293 * device/lib/_gptrput.c: updated comment
4294 * device/lib/calloc.c,
4295 * device/lib/free.c,
4296 * device/lib/malloc.c,
4297 * device/lib/realloc.c: added LGPL, made them reentrant-safe
4298 * src/SDCCcse.c (cseBBlock),
4299 * src/SDCCicode.c (printOperand, geniCodeArray),
4300 * src/SDCCicode.h (struct operand): fixed bug 868103
4301 * support/regression/tests/bug-868103.c: added
4302 * src/SDCCast.c (searchLitOp),
4303 * src/SDCCcse.h (struct cseDef),
4304 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4305 * src/SDCCicode.h (struct operand),
4306 * src/SDCCsymt.h (struct sym_link),
4307 * src/avr/gen.c (hasInc),
4308 * src/ds390/gen.c (hasInc),
4309 * src/hc08/gen.c (genPlusIncr, hasInc),
4310 * src/mcs51/gen.c (hasInc),
4311 * src/pic16/glue.c (pic16_printIvalChar),
4312 * src/pic16/ralloc.c (regWithIdx),
4313 * src/xa51/gen.c (hasInc) : removed warnings
4314 * src/SDCCast.c (createBlock): added comment ???
4315 * src/hc08/ralloc.c: updated comments
4317 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4319 * doc/sdccman.lyx: updated section on switch statements, added
4320 section about semaphore locking
4321 * doc/Makefile: added option -info for latex2html
4322 * device/lib/_gptrget.c,
4323 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4325 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4329 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4330 maxram is less than 0x100.
4332 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4334 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4336 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4347 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4348 a jump table is the best form for a switch statement, including
4349 automatic insertion of missing cases to make the case range
4350 continuous. Developed in collaboration with Frieder Ferlemann.
4352 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4354 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4355 accumulator result if it needs sign extension
4357 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4359 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4361 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4363 * device/lib/gbz80/printf.c,
4364 * device/lib/z80/printf.c: removed define for NULL
4366 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4368 * as/xa51/xa_link.c,
4369 * device/examples/ds390/ow390/ad26.c,
4370 * device/examples/ds390/ow390/cnt1d.c,
4371 * device/examples/ds390/ow390/counter.c,
4372 * device/examples/ds390/ow390/ds2480.h,
4373 * device/examples/ds390/ow390/ds2480ut.c,
4374 * device/examples/ds390/ow390/findtype.c,
4375 * device/examples/ds390/ow390/gethumd.c,
4376 * device/examples/ds390/ow390/owllu.c,
4377 * device/examples/ds390/ow390/ownetu.c,
4378 * device/examples/ds390/ow390/swt12.c,
4379 * device/examples/ds390/ow390/swtloop.c,
4380 * device/examples/ds390/ow390/temp.c,
4381 * device/examples/ds390/ow390/temp10.c,
4382 * device/examples/ds390/ow390/thermo21.c,
4383 * device/examples/ds390/ow390/tinilnk.c,
4384 * device/examples/ds390/ow390/tstfind.c,
4385 * device/examples/serialcomm/windows/serial.cpp,
4386 * device/examples/serialcomm/windows/test_serialcomm.cpp,
4387 * device/include/reg51.h: fixed line endings for cvs
4389 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4391 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4392 packRegsForAccUse, packRegisters): new accumulator register
4394 * support/regression/ports/hc08/support.c (_putchar): suppress
4395 warning of unused variable
4396 * src/SDCCicode.c: added SWAP entry to codeTable
4398 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4400 * device/lib/sprintf.c: forgot to add this file before previous commit
4402 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4404 * src/pic16/gen.c (genPackBits): added operand right in function
4405 parameters, load result directly if p_type is POINTER (that is
4406 called by genNearPointerSet)
4407 * (genUnPackBits): added operand left in function parameters,
4408 * (genNearPointerGet, genNearPointerSet): prevent the loading of
4409 FSR0 if accessing bitfields,
4411 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4413 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4414 _print_format; updated printf, sprintf, vsprintf
4415 * device/include/asm/default/features.h: corrected comment/define
4416 * device/lib/Makefile.in: added sprintf.c
4417 * device/lib/libsdcc.lib: added sprintf module
4418 * device/lib/printf_large.c,
4419 * device/lib/vprintf.c,
4420 * device/lib/sprintf.c: totally refactored printf_large and vprintf
4422 * support/regression/Makefile: changed ALL_PORTS into a usefull default
4423 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4424 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4426 * support/regression/tests/zeropad.c: define idata as data for hc08
4428 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4430 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4431 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4432 labels are referenced at least once (even if a reference is not found)
4433 * src/hc08/gen.c (emitcode): set isComment flag for comments
4434 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4435 loads), rules 6a..6b (optimize jumps to return)
4437 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4439 * device/lib/acosf.c (acosf),
4440 * device/lib/asinf.c (asinf),
4441 * device/lib/atanf.c (atanf),
4442 * device/lib/ceilf.c (ceilf),
4443 * device/lib/cosf.c (cosf),
4444 * device/lib/coshf.c (coshf),
4445 * device/lib/cotf.c (cotf),
4446 * device/lib/fabsf.c (fabsf),
4447 * device/lib/floorf.c (floorf),
4448 * device/lib/log10f.c (log10f),
4449 * device/lib/logf.c (logf),
4450 * device/lib/sinf.c (sinf),
4451 * device/lib/sinhf.c (sinhf),
4452 * device/lib/sqrtf.c (sqrtf),
4453 * device/lib/tanf.c (tanf),
4454 * device/lib/tanhf.c (tanhf),
4455 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4456 replaced all instances of "reentrant" in the library functions
4457 defined in math.h with this macro.
4458 * support/regression/tests/float_trans.c: reenabled test for hc08
4460 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4462 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4465 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4467 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4468 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4469 multi-byte volatile operands are used
4470 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4471 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4472 initialization to area GSINIT0 so that it would always precede
4473 any static initializers in GSINIT
4474 * support/regression/tests/zeropad.c: fixed idata define for hc08
4475 * support/regression/tests/bug-927659.c,
4476 * support/regression/tests/float_trans.c: disabled tests for hc08
4477 pending missing library routines
4478 * .version: increased version number to 2.4.4 - hc08 port now passes
4482 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4484 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4485 * Makefile.common.in,
4487 * as/hc08/Makefile.in,
4488 * as/mcs51/Makefile.in,
4489 * as/z80/Makefile.in,
4490 * debugger/mcs51/Makefile.in,
4491 * device/include/Makefile.in,
4492 * device/lib/Makefile.in,
4495 * link/z80/Makefile.in,
4496 * packihx/Makefile.in,
4497 * sim/ucsim/main_in.mk,
4498 * sim/ucsim/avr.src/Makefile.in,
4499 * sim/ucsim/doc/Makefile.in,
4500 * sim/ucsim/gui.src/serio.src/Makefile.in,
4501 * sim/ucsim/hc08.src/Makefile.in,
4502 * sim/ucsim/s51.src/Makefile.in,
4503 * sim/ucsim/xa.src/Makefile.in,
4504 * sim/ucsim/z80.src/Makefile.in,
4506 * support/cpp2/Makefile.in,
4507 * support/librarian/Makefile,
4508 * support/makebin/Makefile: added DESTDIR to the install path proposed
4509 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4510 * doc/sdccman.lyx: added DESTDIR documentation
4512 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4514 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4515 instruction for interrupt handlers, use fast returns when returning
4516 from high priority interrupts
4518 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4520 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4522 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4523 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4524 bugs, ported much of Bernhard's code from mcs51
4525 * src/mcs51/gen.c (genSend),
4526 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4527 than one when calling a reentrant function
4528 * device/lib/_mullong.c: defined an alternate struct layout for big
4531 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4533 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4536 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4538 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4539 are sane and complete before asking the port its prefered parameter
4540 passing method (fixes bug #1017633)
4541 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4544 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4546 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4547 problem in bitfields >= 8 bits.
4549 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4551 * src/SDCCsymt.c: undid changes that were not meant to be committed
4553 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4555 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4557 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4559 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4560 copied and wrong bit got inverted
4562 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4564 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4565 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4566 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4567 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4568 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4569 assignments to bitfields at known addresses
4570 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4571 reads from bitfields at known addresses
4572 * src/hc08/ralloc.c (packRegisters),
4573 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4574 genhc08Code): optimize pointer get values used as conditionals
4575 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4578 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4580 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4581 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4582 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4585 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4587 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4589 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4591 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4594 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4596 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4598 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4600 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4603 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4605 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4607 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4609 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4610 cases use more compact code.
4612 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4614 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4616 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4618 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4620 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4623 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4624 parameter of changePointer() from symbol* to sym_link*
4625 * src/SDCCast.c (decorateType): call changePointer() for CAST op
4626 * src/SDCCsymt.c (compareType): void* type is castable to other
4627 pointers, but not necesarily an exact match.
4628 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4629 is no longer blindly treated as an exact match.
4630 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4632 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4634 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4636 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4641 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4643 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4647 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4649 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4651 * src/mcs51/gen.c (emitcode): fixed bug #992819
4653 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4655 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4656 there's no need to make it worse
4658 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4660 * src/mcs51/ralloc.c (deassignLR),
4661 * src/ds390/ralloc.c (deassignLR),
4662 * src/hc08/ralloc.c (deassignLR),
4663 * src/z80/ralloc.c (deassignLR),
4664 * src/pic/ralloc.c (deassignLR),
4665 * src/pic16/ralloc.c (deassignLR),
4666 * src/avr/ralloc.c (deassignLR),
4667 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4668 rlivePoint): fixed another part of bug #971834
4670 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4672 * src/z80/main.c: enabled "critical" keyword
4673 * src/z80/mappings.i,
4674 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4675 functions (fixes bug #979646)
4676 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4678 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4680 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4683 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4685 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4686 doesn't disable too much optimizations
4688 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4690 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4692 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4694 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4696 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4698 * src/pic/gen.c tidied up tabs
4699 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4700 * src/pic/main.c tidied up tabs
4701 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4702 * src/pic/pcoderegs.c tidied up tabs
4703 * src/pic/ralloc.c tidied up tabs
4705 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4707 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4708 to S_FIXED for pic16 port and when symbol is not in level 0,
4709 allocate for S_REGISTER storage class and pic16 port, too,
4710 * src/pic16/device.h: prototype for checkSym,
4711 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4712 * (pic16_assignConfigWordValue): test the value and the mask to
4713 validate that the value is suitable for the configuration word,
4714 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4715 collect extern declared symbols, don't emit symbol twice, check
4716 first if symbol is in publics set first,
4717 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4718 * added command line '--fstack' which enables an experimental
4719 feature for stack access, too buggy to be used yet...
4720 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4721 * (pic16_allocDirReg): when register has storage class S_REGISTER
4722 allocate in pic16_dynAccessRegs,
4723 * device/include/pic16/pic18f????.h: modified configuration word
4724 naming convention, words started as CONFIG0H but should be CONFIG1H
4726 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4728 * device/include/mcs51reg.h: fixed bug 970993
4730 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4732 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4733 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4734 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4735 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4736 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4737 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4738 error/warning numbers,
4739 added function setWarningDisabled()
4740 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4741 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4742 _memcmp.c _memmove.c calloc.c realloc.c free.c
4743 * support/regression/tests/malloc.c: added tests for new functionality
4744 * support/regression/tests/zeropad.c: added tests for truncated initializers
4745 and initialized char arrays starting with '\x0'
4746 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4748 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4750 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4752 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4754 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4755 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4756 peephole 177.e. Thanks to anonymous
4758 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4760 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4761 function isn't used in the source but referenced as a
4762 variable initializer then declare it as extern in .asm file
4764 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4766 * .version: increased version number to 2.4.3
4768 Adding version extension according to ChangeLog CVS revision
4769 * src/Makefile.in (target all): added dependency 'version.h'
4770 * (rule version.h): added rule to create version.h from ChangeLog,
4771 * (rule dep): added dependency version.h,
4772 * src/version.awk: AWK script to create version.h
4773 * src/SDCCdwarf2.c (dwWriteModule),
4774 * src/SDCCglue.c (initialComments),
4775 * src/SDCCmain.c (printVersionInfo): modified to write after
4776 version string the version extension number,
4777 * src/SDCCutil.c: included "version.h"
4778 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4780 * src/SDCCutil.h: added prototype for getBuildNumber
4782 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4783 includeDirsSet, too,
4784 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4785 const char [] is found in function prototype...
4787 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4788 moving to WREG with source is already in WREG,
4789 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4790 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4791 * (aopForSym): stack'ed symbols are partially supported, added
4792 if-clause to support symbols in FARSPACE,
4793 * (sameRegs): added test for AOP_ACC to see if registers are same,
4794 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4795 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4796 * (pic16_popRegFromString): will not allocate a new register if it
4797 doesn't find one by name, bug may have introduced...
4798 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4799 * (genIpush): revived to use pic16 port's stack,
4800 * (genAddrOf): added incomplete case for stack'ed operand,
4801 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4802 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4803 can handle multibyte operands,
4804 * src/pic16/glue.c (pic16_printIval*): some debug info added,
4805 * (pic16initialComments): added message for MPLAB compatibility
4807 * src/pic16/main.h: prototype for pic16_mplab_comp,
4808 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4809 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4810 * (_pic16_linkEdit): NEW, handles link stage, transferred here
4811 because of increased complexity of procedure,
4812 * (_process_pragma): stack pragma changed to format 'stack pos len',
4813 emit symbol '_stack_end' to conform with gplink,
4814 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4815 to search for register,
4816 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4818 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4819 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4820 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4821 case for PO_GPR_REGISTER,
4822 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4823 dies, the new era is ahead !...
4824 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4825 pic16_dynInternalRegs,
4826 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4827 * (pic16_allocDirReg): minor optimizations and bug fixes,
4828 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4830 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4831 load stack and frame pointer with address of 'stack_end' symbol
4833 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4835 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4836 without source code but only variable initializers
4838 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4840 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4841 external are not declared as extern to reduce overhead while linking
4843 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4845 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4847 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4849 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4850 Yee Keat for the patch
4851 * src/SDCCast.c (decorateType): fixed bug #979599
4852 * src/ds390/gen.h: removed local fReturnSizeDS390
4853 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4854 * src/ds390/gen.c (genAnd, genOr, genXor),
4855 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4857 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4859 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4860 add relFilesSet to $3, manipulate $2 to handle linking of object
4861 files without source files in command line,
4862 * device/include/pic16 (all headers): added ID location macros,
4863 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4864 entries for ID location bytes,
4865 * (pic16_assignIdByteValue): NEW,
4866 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4867 added field dumpcalltree to pic16_options_t,
4868 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4869 is used instead of pic16_Gstack_base_addr, check if (ifx) before
4870 emitting rFalseIfx label after check_carry label,
4871 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4872 pic16_emitDIRegs), NEW
4873 * (pic16glue): dump .calltree file when option --calltree found,
4874 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4875 * (_pic16_genAssemblerPreamble): emit ID locations after
4876 configuration registers,
4877 * (pic16_linkCmd): modifications of the link command,
4878 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4879 * (pic16_pCodeInitRegisters): don't init stack registers,
4880 * (pic16_findPrevInstruction): fixed bug,
4881 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4882 bug with immediate registers,
4883 * (buildCallTree): traces stack push and pop,
4884 * (pct2): dump also stack usage for each function,
4885 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4886 * (pic16_allocDirReg): various modifications,
4887 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4890 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4892 * src/pic16/pcode.c: removed buggy double colon
4894 2004-07-01 Borut Razem <borut.razem AT siol.net>
4896 * support/scripts/sdcc.nsi: added include/pic16 to setup
4898 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4900 * device/lib/Makefile.in: fixed bug in target objects-pic16,
4901 * device/lib/pic16/Makefile: prefixed with dash (-) command under
4903 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4904 specific command line arguments. Also added sample lkr script
4905 for placing a variable at a specific memory bank.
4906 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4907 at a specific memory bank,
4908 * (pic16_dump_isection): fixed bug which caused string literals to
4909 be omitted when dumping idata section,
4910 * (pic16_groupRegistersInSection): added code to handle registers
4911 in specific memory banks,
4912 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4913 public, all references are renamed too,
4914 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4916 * (pic16_storeForReturn): added case to handle when dest is WREG,
4917 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4918 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4919 pic16_rel_udata, check to see if that register is marked as being
4920 a member of a specific memory bank,
4921 * (pic16_printIvalCharPtr): added code to add string literals either
4922 to code or the idata sections,
4923 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4924 also accept the 'udata' pragma,
4925 * src/pic16/main.h: new structure types sectName and sectSym
4926 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4927 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4928 * (pic16_findPrevInstruction): fixed, it returned nothing,
4929 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4930 instruction combinations,
4931 * (pic16_FixRegisterBanking): heavily reorganised,
4932 * (pic16_AnalyzeBanking): if generating banksel directives is
4933 disabled, then don't call FixRegisterBanking at all,
4934 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4936 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4938 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4940 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4941 Phuah Yee Keat <yk.phuah AT nestac.com>
4943 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4945 * src/pic16/glue.c (pic16createInterruptVect): function now emits
4946 correctly the IVT even if it is relocated to some other location
4948 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4950 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4951 * device/include/pic16/pic18f2220.h: NEW,
4952 * device/lib/pic16/libdev/pic18f2220.c: NEW,
4953 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4954 * src/pic16/device.c (struct Pics16): added info for 18f2220,
4955 * src/pic16/device.h (struct pic16_options): added ivt_loc and
4956 nodefaultlibs, ivt_loc is the location of the interrupt vector
4957 table, and nodefaultlibs signs that default libraries should not be
4958 linked in link stage,
4959 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4960 according to --ivt-loc argument,
4961 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4962 when pragma stack is found,
4964 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4966 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4967 256 (range check), 257 (do while), 258.a-f (bit banging
4968 f.e. on 3-wire SPI bus)
4970 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4972 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4973 variables used exclusively within a loop
4975 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4977 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4979 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4981 * src/SDCClrange.c (computeClash): fixed bug #971834
4983 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4985 * src/mcs51/gen.c (genCmp): fixed bug #975903
4986 * src/hc08/gen.c (operandsEqu),
4987 * src/ds390/gen.c (operandsEqu),
4988 * src/z80/gen.c (operandsEqu),
4989 * src/pic/gen.c (operandsEqu),
4990 * src/pic16/gen.c (operandsEqu),
4991 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4992 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4994 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4996 * src/SDCCcse.c (cseBBlock): fixed bug #966963
4998 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5000 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5001 default case in switch statement,
5002 * glue.c (pic16_initPointer): expr is initialised via decoarteType
5003 to eliminate problem with initialisation of pointers, but problem
5005 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5006 * (emitStaticSegment): removed various lines emitting debug info,
5007 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5008 added processor registers for utilizing EEPROM,
5009 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5010 configurable and set 8
5012 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5014 * .version: increased version number to 2.4.2,
5016 Cumulative patch for pic16 port
5017 * src/pic16/device.c: changed scheme to dump initial values for
5018 variables in idata segment, all print_idata* functions were removed,
5019 now the pic16_printIval* will be called,
5020 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5021 * _pic16_printPointerType, pic16_printPointerType,
5022 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5023 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5024 NEW, similar to the respective functions in SDCCglue.c,
5025 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5026 way, emitting hex bytes,
5027 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5029 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5031 * src/avr/ralloc.c (serialRegAssign),
5032 * src/xa51/ralloc.c (serialRegAssign),
5033 * src/pic/ralloc.c (serialRegAssign),
5034 * src/pic16/ralloc.c (serialRegAssign),
5035 * src/hc08/ralloc.c (serialRegAssign),
5036 * src/z80/ralloc.c (serialRegAssign),
5037 * src/ds390/ralloc.c (serialRegAssign),
5038 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5040 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5042 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5043 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5045 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5047 Cumulative patch for pic16 port:
5048 * src/pic16/device.h (typedef PIC16_device) modified fields for
5049 defining microcontrollers,
5050 * src/pic16/device.c: added new info for all devices in Pics16 array,
5051 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5052 to be optimised out by the pCode optimiser,
5053 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5054 specially, bug reported by G.M. Gallant,
5055 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5056 as force'd so that cannot be optimised out by pCode optimiser,
5057 * src/pic16/pcode.c,
5058 * src/pic16/pcodepeeph.c,
5059 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5060 they are disabled by default, but can be enabled explicit with
5061 command argument --denable-peeps, for testing,
5062 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5063 --pomit-ivt in COMPILE_FLAGS
5065 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5067 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5070 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5072 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5074 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5076 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5077 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5079 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5081 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5082 would only assign 0x300001 register.
5084 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5086 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5087 in COMPILE_FLAGS. Thanks to G. Gallant for report.
5089 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5091 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5093 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5094 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5095 added peephole 254 (left shift), 255 (jump table)
5097 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5099 * device/lib/Makefile.in: removed comment line with model-pic16,
5100 * (target port-specific-objects-pic16): the libraries and objects
5101 are copied to the build directory form the device/lib/pic16/bin
5104 Cumulative patch concerning pic16 port:
5105 * library directory has been re-organized,
5106 * added support for PIC18F1220,
5107 * added headers and library sources for chips 18f1220,18f6520,
5108 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5110 * configuration registers setting has changed, now each supported
5111 device has a complete description of the registers it uses,
5112 * all initialisations are moved to idata sections, these section
5113 can be absolute or relocatable,
5114 * fixed initialisation of codespace variables,
5115 * fixed warning about PCLATU and gpsim,
5116 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5117 * (genAssign): use table reads when assigning from variables in codespace,
5118 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5119 char/int variables placed in codespace,
5120 * (pic16_emitConfigRegs): NEW, emits a list with configuration
5121 registers set in .asm file, no need for --pomit-config-words anymore,
5122 * (pic16glue): some 8051 legacy segments are commented out
5123 (to be removed completely),
5124 * added support for alternative assembler and linker with --asm=
5125 and --link= command line arguments,
5126 * peepholes are disabled automatically in the port, no need to
5127 specify on command line,
5128 * port supports natively char/int/long multiplication, but converts
5129 all divisions to support functions,
5130 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5131 to the file set in variable $2,
5132 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5133 strings in ASCII format and not in hex,
5134 * ralloc.c (serialRegAssign): added a triplet of conditional calls
5135 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5136 allocate proper register if iCodes aren't temporary,
5138 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5140 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5142 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5144 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5147 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5149 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5150 computed address is reused
5151 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5152 multi-byte bitfields
5154 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5156 * src/z80/gen.c: (genArrayInit): must check for pointers too
5158 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5160 * support/regression/tests/zeropad.c: never meant to commit the
5161 nestedstruct test: removed, added check for GCC version
5163 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5165 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5166 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5167 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5168 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5169 bugs 928906 and 954082 half-empty initializers
5171 * src/SDCCsymt.c (getAllocSize): added for above fix
5172 * src/z80/gen.c (genArrayInit): fixed bug 741044
5173 * support/regression/tests/zeropad.c: added tests
5175 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5177 * src/pic16/device.c (pic16_dump_section): corrected bug which
5178 caused some symbols of the libraries to be misplaced
5180 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5183 * src/pic16/ralloc.h,
5184 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5185 to fix conflict with pic port
5187 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5189 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5190 externs configuration variables,
5191 * src/pic16/ralloc.h,
5192 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5193 prototype in header, commented out some debug messages
5195 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5199 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5200 for gpasm COFF object generation. Thanks to D. Hawkins for
5203 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5206 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5207 Brock for spotting this)
5208 * src/ds390/gen.c (genEndFunction),
5209 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5210 interrupt handler and critical. Disable push/pop optimizations when
5211 peephole optimizations disabled.
5213 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5215 Updated pic16 library sources and headers.
5216 * device/lib/pic16/pic18f*/ ,
5217 * device/include/pic16/*.h: modified to handle structured SFR
5220 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5222 * src/port.h (PORT structure): added hook initPaths, now each
5223 port can declare its own default search paths,
5224 which can been seen with the --print-search-dirs option,
5225 see pic16 port for example,
5226 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5227 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5228 * (doPrintSearchDirs): NEW, replaces in a central manner the
5229 printing of search dirs which was split in set*Paths functions,
5230 * (main): added call to port->initPaths and doPrintSearchDirs,
5235 * src/izt/tlcs900h.c,
5238 * src/pic16/main.c: modified port structures to reflect addition of
5241 * src/pic16/device.c (regCompare): registers are finally sorted by name,
5242 * (pic16_dump_section): for registers in same address reserve memory once,
5243 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5245 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5246 result is greater in size than right or left,
5247 * (pic16_genUMult8X8_8): there are some cases where the result can
5248 be 16 bits size, so handle these,
5249 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5250 * (pic16_outBitC): modified to emit pcodes,
5251 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5253 * (genDivOneByte): implemented algorithm to divide 8-bits,
5254 * (genCmp): uncommented goto, but issues still exist,
5255 * (genAnd): fixed a bug with variables >8bits,
5256 * (genPackBits): optimization added that uses BCF/BSF to change a
5258 * (genAssign): fixed bug when assigning floating point literals,
5259 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5260 __sdcc_gsinit_startup label,
5261 * src/pic16/main.c (_pic16_init): removed search directory
5263 * (_pic16_initPaths): NEW, used to initialise search directories,
5264 * (_hasNativeMulFor): support functions for all except char/int
5265 multiplication, and char division,
5266 * (PIC16_port struct): modified entry for native mul support,
5267 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5269 * (buildCallTree): call to register_usage is ifdef'ed out,
5271 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5273 * device/include/string.h: applied Stas Sergeev's patch to make this
5274 header file compatible with the preprocessor -Wundef option
5275 * src/SDCCmain.c (main): abort compilation if preprocessor reports
5276 failure (fixes bug #941458)
5278 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5280 * src/SDCCopt.c (killDeadCode): fixed bug #907733
5281 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5282 that the variable, not the function, should be static
5283 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5284 to be consistent with non-literal case
5286 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5288 * src/SDCCast.c (isConformingBody): fixed bug #949967
5289 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5290 convilong): fixed bug #952086
5292 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5294 * src/SDCCmem.c (allocVariables): fixed bug #955321
5296 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5298 * src/hc08/main.c (_hc08_genAssemblerEnd),
5299 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5300 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5301 completely eliminated the use of a temporary file
5302 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5303 when more than one file linked
5304 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5306 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5308 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5309 which fixes bug #543481
5310 * support/regression/tests/bug-751703.c: fixed comments left from a
5312 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5313 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5314 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5316 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5317 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5318 are now changed to underscores in moduleName
5320 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5322 * as/mcs51/lkmem.c: better fix for bug #954173
5324 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5325 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5327 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5328 * device/include/c8051f000.h,
5329 * device/include/c8051f120.h,
5330 * device/include/c8051f300.h,
5331 * device/include/c8051f310.h,
5332 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5335 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5337 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5338 and mailing lists, doc'ed --no-peep-comments, removed reference
5339 to knoppix (newest version has no LyX/LaTeX), other minor changes
5340 * src/SDCCglue.c (glue): save 2 bytes stack space with
5341 option --main-return. The ljmp could probably be avoided too
5343 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5345 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5347 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5349 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5350 * src/SDCCopt.c (isLocalWithoutDef),
5351 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5352 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5353 (credit to Maarten Brock for patch #949363, on which this is based)
5354 * support/regression/tests/bug-751703.c: some test cases of extern used
5355 within inner scopes.
5357 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5359 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5361 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5363 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5364 dwWriteLabel): fix to create valid debugger symbols even when
5365 the module name has non-alphanumeric symbols in it
5366 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5367 when a variable's allocation has been optimized away
5370 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5372 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5374 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5376 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5378 * src/z80/gen.c (z80_emitDebuggerSymbol),
5380 * src/pic/gen.c (pic14_emitDebuggerSymbol),
5382 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5384 * src/avr/gen.c (avr_emitDebuggerSymbol),
5386 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5388 * src/SDCCdebug.c (emitDebuggerSymbol),
5390 * src/port.h: added a debugger struct to the port struct. Added a
5391 callback for defining debugger symbols
5393 * src/SDCCast.c (createLabel),
5394 * src/SDCC.y (labeled_statement): mark all compiler generated labels
5397 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5398 iCode back to the ast for the function
5400 * src/hc08/ralloc.c (hc08_assignRegisters),
5401 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5402 unneeded fields from the regs struct.
5403 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5404 pushReg() & pullReg() functions instead of emitcode()
5406 * src/hc08/gen.c (genLabel, genhc08Code),
5407 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5409 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5412 * src/hc08/gen.c (genEndFunction, genhc08Code),
5414 * src/mcs51/gen.c (genEndFunction, gen51Code),
5416 * src/ds390/gen.c (genEndFunction, gen390Code),
5418 * src/z80/gen.c (genEndFunction, genZ80Code),
5421 * src/pic/gen.c (genEndFunction, genpic14Code),
5423 * src/pic16/gen.c (genEndFunction, genpic16Code),
5425 * src/avr/gen.c (genEndFunction, genAVRCode),
5427 * src/xa51/gen.c (genEndFunction, genXA51Code),
5429 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5430 specific code to cdbFile.c and out of the backend code generators
5432 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5433 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5434 starting address is now 0
5438 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5439 assembler directive for DWARF support
5440 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5444 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5446 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5448 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5449 and inappropriate peephole optimization in jump tables
5451 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5454 * src/SDCCglue.c: sdccopt works for the hc08 port now
5456 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5458 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5460 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5462 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5464 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5466 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5470 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5471 comments from the peephole optimizer replacement rules
5472 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5474 * src/SDCCcse.c (updateSpillLocation),
5475 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5477 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5478 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5479 objects far pointers
5481 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5483 * src/SDCCsymt.h: a missing part of my last change
5484 * src/pic/ralloc.c (regTypeNum),
5485 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5487 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5490 * src/SDCCicode.c (aggrToPtrDclType),
5492 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5493 ptrPseudoSymConvert),
5494 * src/pic/ralloc.c (regTypeNum),
5495 * src/pic16/ralloc.c (regTypeNum),
5496 * src/hc08/ralloc.c (regTypeNum),
5497 * src/ds390/ralloc.c (regTypeNum),
5498 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5499 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5501 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5503 * link/z80/lkmain.c (afile),
5504 * as/hc08/lkmain.c (afile),
5505 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5506 prevent a pointer problem when a filename has no directory and
5507 no extension specified.
5509 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5511 * link/z80/lkmain.c (afile): allow periods in directory names
5512 * link/z80/lkmain.c (afile),
5513 * as/mcs51/lkmain.c (afile),
5514 * as/hc08/lkmain.c (afile): allow linker script file to have an
5515 extension other than ".lnk"
5516 * link/z80/lklex.c (getfid),
5517 * link/z80/lkmain.c (parse),
5518 * as/mcs51/lklex.c (getfid),
5519 * as/mcs51/lkmain.c (parse),
5520 * as/hc08/lklex.c (getfid),
5521 * as/hc08/lkmain.c (parse): Support comments in the linker script
5522 file on lines by themselves and after filenames
5524 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5526 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5528 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5530 * src/z80/peeph-z80.def: removed some peephole rules that don't
5531 work with multibyte arithmetic (fixed bug #937126)
5532 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5533 to registers and not global variables
5534 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5535 geniCodePreInc, geniCodePostDec, geniCodePreDec,
5536 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5537 checking for assignments not internally generated (fixed bug #931895)
5538 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5539 structure member (fixed bug #930072)
5541 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5543 * src/SDCCmain.c (linkEdit),
5544 * src/hc08/main.c (_hc08_parseOptions),
5545 * as/hc08/Makefile.in,
5549 * as/hc08/lkrloc.c (relr, rele),
5550 * as/hc08/lkarea.c (lnkarea)
5551 * as/hc08/lkmain.c (afile, parse),
5552 * as/hc08/lkelf.c: support for ELF output
5553 * as/hc08/lks19.c (s19),
5554 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5556 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5558 * as/mcs51/lkihx.c: Fixed bug #899105.
5560 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5562 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5563 .dsp files from Unix to DOS.
5565 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5567 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5568 function pointers; we have been compliant for several months now.
5569 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5570 change that was accidently commented out
5571 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5572 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5575 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5577 * src/hc08/gen.c: output of all of the internal debugging information
5578 is now controlled by the D() macro; it is disabled by default
5580 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5582 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5583 harder to keep the same registers during a CAST iCode
5584 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5585 long via int can be done in a single cast, if the signedness is
5587 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5588 putchar() in tinibios.c in ds390's library
5590 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5592 * src/SDCCast.c (decorateType): fixed bug #898889,
5593 cast result of a literal complement too
5594 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5595 fixed check for bitfields
5597 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5599 * src/SDCCicode.c (geniCodeLogic): made it static,
5600 (geniCodeLogicAndOr): added in order to fix bug #905492,
5601 (ast2iCode): fixed bug #905492
5602 * support/regression/tests/bug-905492.c: added
5603 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5604 (processParms): fixed bug #927659: don't copy parms, this will clear
5606 * support/regression/tests/bug-927659.c: added
5608 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5610 * src/SDCCast.c (addCast): don't cast float to char
5611 * device/lib/libsdcc.lib: added _memmove
5613 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5615 * device/lib/large/Makefile: fixed parallel execution by
5616 replacing `make` by `$(MAKE)`
5618 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5620 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5621 offsets (fixes bug #923936)
5623 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5625 * device/lib/small/Makefile: fixed parallel execution by
5626 replacing `make` by `$(MAKE)`
5628 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5630 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5632 2004-03-23 Scott Dattalo <scott AT dattalo.com>
5634 * src/pic/gen.c (genCpl): multi-byte complements were not working.
5635 * src/regression/Makefile: Regression test was not running.
5637 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5639 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5640 complement if possible
5641 * src/SDCCval.c (valComplement),
5642 * src/SDCCicode.c (operandOperation): fixed complement of literal
5643 * support/regression/tests/onebyte.c (testComplement): added
5645 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5647 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5648 return an optimized tree; actually replace actParm with the new tree
5649 * src/SDCCast.h: added some parantheses to remove side effects
5650 * support/regression/tests/bug-920866.c
5652 2004-03-21 Scott Dattalo <scott AT dattalo.com>
5653 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5654 Bit operands were not being handled properly in the pic14 port.
5655 (now src/regression/add.c passes again).
5657 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5659 * src/SDCC.y (labeled_statement): case and default no longer require
5660 a following statement (RFE #893037)
5662 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5664 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5665 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5666 disabled (fixes bug #916294)
5667 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5668 "mov a,acc"; patch provided by Lenny Story
5669 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5671 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5673 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5675 * src/ds390/gen.c (genFunction, genEndFunction),
5676 * src/ds390/ralloc.c (ds390_assignRegisters),
5677 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5678 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5679 pushed if there are parameters passed on the stack. Also, a cleaner
5680 way to decide if r0/r1 should be pushed/popped. (Together they fix
5683 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5686 * device/lib/mcs51/crtpagesfr.asm,
5687 * device/lib/mcs51/crtxinit.asm,
5688 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5689 to avoid confusion with Si Lab's SFRPAGE register.
5691 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5693 * src/SDCCglue.c (emitMaps): allow public sfr variables
5694 * src/SDCCglue.c (initialComments): include compiler build date
5695 with compiler version and put the timestamp of the generated
5696 assembly file on a serperate line to be less confusing.
5697 * src/port.h: added genInitStartup hook
5704 * src/z80/main.c: genInitStartup initialize as NULL (default to
5705 historical behaviour)
5706 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5707 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5708 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5709 library instead of hard coding it into the compiler.
5710 * support/regression/ports/mcs51-stack-auto/spec.mk,
5711 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5712 * device/lib/mcs51/Makefile,
5713 * device/lib/small/Makefile,
5714 * device/lib/large/Makefile,
5715 * device/lib/mcs51/crtpagesfr.asm,
5716 * device/lib/mcs51/crtstart.asm,
5717 * device/lib/mcs51/crtxclear.asm,
5718 * device/lib/mcs51/crtxinit.asm,
5719 * device/lib/mcs51/crtclear.asm,
5720 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5721 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5722 and into user configurable files.
5723 * device/lib/clean.mk: clean mcs51 directory too
5724 * support/regression/tests/longlit.c: added static to T1 declaration
5725 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5726 accesses in the initialization code
5728 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5730 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5731 OSCTRIMVAL as noted in bug #916008
5733 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5735 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5736 in loops with multiple exits (reported as incorrect registers
5737 used by Martin Helmling in Sdcc-user list)
5739 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5741 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5742 made ds390 register extensions look less like error messages
5744 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5746 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5747 reported by Adam Wozniak in Sdcc-user list
5749 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5751 * src/SDCCast.c (decorateType): fixed with bug and promotion in
5752 arithmetic optimizations, added debug output
5754 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5756 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5757 * sdcc.spec: updated and split sdcc into 3 rpms
5758 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5759 needed for literals of LEFT_OP and '+'
5760 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5761 introduced RESULT_TYPE_NOPROM
5762 (geniCodeMultiply): fixed logic for decision if mul is optimized to
5764 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5765 limited promotion to int only for '*'
5766 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5768 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5770 * src/pic16/gen.c (genSkip),
5771 (genc16bit2lit), (gencjneshort): commented out
5772 (is_LitOp): new helper function, checks operand type
5773 (genCmpEq): rewritten
5775 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5777 * support/regression/tests/bug-908454.c: added
5779 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5781 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5782 * src/SDCCicode.c (usualBinaryConversions): op needs int type
5783 (geniCodeCast): cosmetic, don't preserve bit storage class
5784 (geniCodeLeftShift): added promotion
5785 (geniCodeLogic): fixed regression
5786 * src/SDCCsymt.c (computeTypeOr): accept bits too
5787 (compareType): 2nd part of fix for bug #908454, needed for bitfields
5789 2004-03-07 Borut Razem <borut.razem AT siol.net>
5791 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5793 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5795 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5796 version of pic16_genPackRegisters which does not check if ic is a
5798 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5799 function cause string1.c regression test fails
5801 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5803 * sim/ucsim/configure.in,
5804 * sim/ucsim/configure,
5805 * sim/ucsim/doc/Makefile.in: use docdir
5806 * src/SDCC.y: fixed sbit atrributes
5807 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5808 * src/SDCCast.c (decorateType): |^& need special promotion handling
5810 * src/SDCCsymt.h: moved definition of RESULT_TYPE
5811 * src/SDCCsymt.h (computeType),
5812 * src/SDCCicode.c: computeType() needs op
5813 * src/SDCCsymt.c (checkTypeSanity),
5814 * doc/sddman.lyx: "plain" bitfields are unsigned
5815 * src/SDCCsymt.c (computeTypeOr): added
5816 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5818 * src/SDCCval.c (val*): computeType() needs op
5819 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5820 * support/regression/tests/onebyte.c: added tests for |^&
5822 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5824 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5825 for writing icode into asm output.
5827 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5829 * src/pic16/device.c: added some debug lines enabled
5830 with macro DEBUG_CHECK,
5831 * src/pic16/genarith.c: more debug in genPlus,
5832 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5833 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5834 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5835 * (aopForSym): onStack symbols are re-placed in data memspace,
5836 and onStack flag is cleared,
5837 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5838 copy temporary pcodeop,
5839 * (genPcall): added warning for not updating PCLATU,
5840 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5841 always true for pic16 port,
5842 * (genMultOneWord): NEW, supports integer multiplication,
5843 * (genMult): modified to call genMultOneWord,
5844 * (ifxForOp): added warning when return NULL,
5845 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5846 flag is set before call to operandFromSymbol for implicit
5848 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5849 options.intlong_rent are set by default,
5850 * (_hasNativeMulFor): modified to allow port generation of integer
5852 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5853 set regtype to REG_SFR for all registers, restricting seting the
5854 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5856 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5858 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5859 more than 500 times in the regression tests
5861 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5863 * support/Util/SDCCerr.h,
5864 * support/Util/SDCCerr.c,
5865 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5867 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5868 for symbol conflicts.
5869 * support/valdiags/tests/enum.c,
5870 * support/valdiags/tests/tentdecl.c,
5871 * support/valdiags/tests/struct.c: expect possible error messages
5872 referring to original symbol definitions.
5873 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5875 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5877 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5879 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5881 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5883 * src/pic16/ralloc.c (newReg): fixed bug #908929
5885 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5887 * src/ds390/gen.c: added missing #include "main.h"
5889 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5891 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5892 checking if symbol is already in set,
5893 * src/pic16/device.h: prototype for checkAddSym,
5894 * src/pic16/gen.c: (_G): added entry interruptvector,
5895 * (assignResultValue): removed some commented out lines,
5896 * (genFunction): check for ISR via sym->type, absolute section for
5897 interrupt code is created via a new pBlock, the goto instruction is
5898 placed now correctly at the interrupt vector position, changed all
5899 references from ivec to _G.interruptvector,
5900 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5901 is the interrupt is a high priority one, same for return from ISR,
5902 * src/pic16/glue.c: changed all calls of addSetHead for publics and
5903 externs to calls of checkAddSym,
5904 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5905 pic16_pcode_verbose flag is set,
5906 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5907 * src/pic16/pcoderegs.c: message about how many registers are saved
5908 will only be emitted if pic16_pcode_verbose flag is set,
5910 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5912 * src/ds390/ralloc.h,
5913 * src/ds390/ralloc.c (ds390_regWithIdx),
5914 * src/ds390/gen.c (emitcode),
5916 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5917 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5918 ds390operandCompare, getRegsRead, getRegsWritten,
5919 initializeAsmLineNode): customized instruction size calculation for
5920 ds390, started basis for some register optimizations
5921 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5922 corresponding assembly output
5923 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5924 missing push/pop of r0/r1. Optimized push/pops
5926 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5928 * src/mcs51/main.c (instructionSize): fixed ACALL size
5929 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5931 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5933 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5934 the sorting of rlist with NULL elements
5935 * (print_idataType, print_idata): NEW to create idata sections
5936 * src/pic16/device.h: idataSymSet new variable
5937 * src/pic16/gen.c (genFunction): fixed some bugs in string
5938 comparing, improved the absolute section creation for ISRs,
5939 added FSR0L/FSR0H in registers that are saved in an ISR,
5940 * (genInline): fixed the processing of inline snippets,
5941 now they undergo no process by the peephole optimizer
5942 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5943 are placed in idataSymSet,
5944 * (pic16emitStaticSeg): extern symbols are added in externs,
5945 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5946 switching when aboslute variables are placed in access bank memory
5947 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5948 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5949 commented out with #if,
5950 * (pic16_packRegisters): reintroduce the check for CAST because some
5951 symbols are not correctly handled,
5952 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5953 pCodeInstruction instead of pCode,
5954 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5955 pCodeAsmDir definition,
5956 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5957 directive, then the argument directive is emitted without the leading
5958 tab, hack for inline labels which must be in the first column,
5959 * (compareLabel,pic16_findNextInstruction),
5960 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5961 * (insertBankSwitch): modified for the new pCodeAsmDir,
5963 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5964 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5966 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5968 * (pushSide): commented out with #if,
5969 * (assignResultValue): fixed some typos in saving
5971 * (genPcall): FIXED and sync'ed with genCall,
5972 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5973 * (genNearPointerGet): fixed to handle some more cases,
5974 implementation scheme via table reads,
5975 * (genConstPointerGet): modified to access code memory correct,
5976 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5977 and improved to handle some cases
5978 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5979 instead of "RETLW" for init data
5980 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5981 not IN_DIRSPACE, work around to reduce bank switching when aboslute
5982 variables are placed in access bank memory (<0x80 and >=0xf80),
5983 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5984 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5985 TBLWT_POSTDEC,TBLWT_PREINC
5986 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5987 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5989 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5990 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5991 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5992 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5994 2004-02-29 Borut Razem <borut.razem AT siol.net>
5996 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5997 support/Util/findme.h, support/Util/system.h: enhance binary relative
5998 search for lib and include by using findProgramPath()
6000 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6003 * src/SDCCpeeph.c (pcDistance),
6005 * src/mcs51/ralloc.h,
6006 * src/mcs51/ralloc.c (mcs51_regWithIdx),
6008 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6009 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6010 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6011 size calculation port specific, started basis for some register
6013 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6014 missing push/pop of r0/r1. Optimized push/pops
6015 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6016 * device/lib/_modsint.c (_modsint),
6017 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6018 and stack version so regression tests pass
6020 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6022 * src/Makefile.in (dep): include SLIBOBJS in dependency check
6023 * src/SDCCast.c (decorateType): catch another small optimization
6025 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6026 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6027 modified to finally use computeType() all over SDCC,
6028 see Feature Request #877103
6029 * src/SDCCval.h: cosmetic
6030 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6031 valCompare(); regression tested in muldiv.c
6032 * support/regression/tests/muldiv.c (testMod): mod sign follows
6035 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6037 * src/SDCCast.c (decorateType): fixed bug #902362
6038 * doc/INSTALL.txt: fixed install instructions for win32
6040 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6042 * device/include/Makefile.in (install): fixed by replacing spaces
6045 * doc/INSTALL.txt: updated for release
6046 * doc/sdccman.lyx: added warning for --xstack being buggy
6048 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6050 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
6051 to eliminate build warnings.
6052 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6054 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6055 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6057 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6058 removed -penable-stack, added comment for stack pragma, added
6059 warning for not initializing the stack/frame registers, removed
6060 comment at interrupts section
6062 Stack is made permanent, there is no ability to disable stack usage.
6063 * src/pic16/device.h,
6064 * src/pic16/device.c: removed all references to USE_STACK macro,
6065 * src/pic16/device.c (pic16_dump_section): when no elements in
6066 rlist, free rlist before return,
6067 * (pic16_dump_int_registers): NEW, internal registers are a new set
6068 of general purpose registers reused by each function,
6069 * (checkAddReg): returns 1 if registers is added to set,
6070 * (pic16_groupRegistersInSection): when a registers is of type
6071 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6072 * src/pic16/device.h: memRange and Assigned Memory are deleted,
6073 SRCASECMP macro is moved here from device.c
6074 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6075 PO_PCLATU, PO_PRODL, PO_PRODH,
6076 * (pic16_pCodeOpType, genMinus,
6077 changed compares to "a" register, with AOP_ACC,
6078 * (pic16_genPlus): fixed some bugs and indented properly,
6079 * (pic16_addSign): changed size to size+offset in the MOVWF
6081 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6082 multiply 8-bit operand by literal, result is 8-bit,
6083 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6084 multiply 2 8-bit operand, result is 8-bit,
6085 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6087 * src/pic16/gen.c: changed accUse to contain WREG only,
6088 * (pic16_emitcomment): renamed to pic16_emitpcomment,
6089 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6090 true, do not use immediate addressing any more unless sym is a
6091 pointer in codespace,
6092 * (aopForRemat): do not use immediate addressing when symbol not in
6093 codespace and when symbol's address is requested,
6094 * (aopOp): for-loop in if(sym->accUse) is modified for the new
6096 * (aopGet): added case for AOP_ACC and don't return "accumulator
6097 bug" but WREG instead,
6098 * (popGetTempReg): pushes contents of temporary register in stack,
6099 * (popReleaseTempReg): pops contents of temporary register from
6100 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6101 * (pic16_popGet): separated case AOP_ACC to return register WREG
6102 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6103 or PO_IMMEDIATE and initializes their instance/offset appropriately,
6104 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6105 the use of immediate pointers to certain cases only.
6107 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6108 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6109 * (assignResultValue, genCall, genRet): modified to use the new
6110 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6111 genPcall is still broken,
6112 * (genFunction): added code to create 'A' type pBlocks when
6113 interrupt functions are generated, code not extensively tested yet,
6114 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6115 * (genEndFunction): modified so ISRs pop stored registers from stack,
6116 * (genMultOneByte): cleanup,
6117 * (AccRsh): added flag andmask, to and result with appropriate mask,
6118 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6119 * (genDataPointerGet): fixed and reenabled its use,
6120 * (genNearDataPointerGet): bugs fixed,
6121 * (genDataPointerSet): bugs fixed,
6122 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6123 pic16_DumpSymbol, pic16_DumpOp,
6124 * src/pic16/genutils.h: function prototypes for the above functions,
6125 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6127 * (pic16emitRegularMap): many many many improvements, but needs a
6129 * src/pic16/main.c: enable_stack in pic16_options is removed,
6130 * (_pic16_parseOptions): removed command line options -penable-stack,
6131 * (_process_pragma): emit stack symbol only when stack pragma is
6133 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6134 redirected to FSR0L/FSR0H pair,
6135 * (pic16_get_op, pic16_get_op2): modifications and improvements,
6136 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6137 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6139 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6140 * (dumpPicOptype): NEW,
6141 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6142 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6143 with movff instruction,
6144 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6145 added pic16_int_regs, some packRegsFor* functions are commented out,
6146 because produce errors,
6147 * src/pic16/NOTES: minor modifications
6149 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6151 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6152 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6154 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6155 * as/mcs51/lkaomf51.c: fixed bug #895763
6157 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6159 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6161 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6163 * doc/sdccman.lyx: added details about the HC08 storage classes and
6164 interrupts, fixed the register usage info for z80 & gbz80
6166 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6168 * doc/sdccman.lyx: added more pic16 port documentation
6169 * device/include/pic16/: added header pic18fregs.h
6171 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6173 * doc/sdccman.lyx: added Vangelis' contribution
6175 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6177 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6178 extend to the next CALL or PCALL, not just to the next CALL.
6180 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6182 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6184 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6186 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6187 bug #895752 and a better fix for bug #716790
6189 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6191 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6193 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6195 * doc/sdccman.lyx: minor changes, minor changed
6197 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6199 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6200 which can't handle SDCC_NEWONEBYTEOPS,
6201 (geniCodeMultiply): removed conversion from mult to shift for pic14
6204 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6207 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6208 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6209 thus fixing bug #895406
6211 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6213 * device/lib/_modsint.c,
6214 * device/lib/_modslong.c: sign follows divisor only
6215 * src/hc08/gen.c (genMultOneByte): if result size is 1,
6216 signs or signedness can be ignored
6217 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6218 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6219 added optimization for IFX,
6220 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6222 reenabled optimization for IFX, which was removed on 2004-01-11
6223 * src/SDCCast.h: added return type IFX
6224 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6225 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6226 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6227 SDCC_OLDONEBYTEOPS selects the old behaviour
6228 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6229 changed again and commented promotion rule
6230 * src/SDCCval.c (valDiv): promotion no longer necessary
6231 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6232 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6234 * support/regression/tests/onebyte.c: added
6236 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6238 * gen.c (genInline): reverted to old code for assemnling inline
6239 code because of bug reported James Chadd
6241 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6243 * ralloc.h: missing declarations from previous patch,
6244 seems that patch for ralloc.h was never applied, fixed
6246 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6247 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6251 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6252 indirect addressing. Marked FSR0 as deprecated
6253 * gen.c (pointerCode): commented out, not needed now
6254 (pic16_popGet2p): new MOVFF helper function
6256 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6257 (shiftRLong): removed duplicate debugging info
6259 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6261 * src/ds390/gen.c (genNearPointerGet),
6262 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6263 optimization with bits, but not bitfields.
6264 * src/ds390/ralloc.c (packRegisters),
6265 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6267 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6269 * src/SDCCcse.c (algebraicOpts): copy operands before modification
6271 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6274 * src/SDCCicode.c (operandFromSymbol),
6275 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6276 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6277 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6278 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6279 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6280 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6282 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6283 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6284 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6285 * src/SDCCsymt.c (newSymbol),
6286 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6289 * src/SDCCval.c (newiList): fixed bug #885705
6291 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6293 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6294 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6296 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6298 * device/include/c8051f120.h,
6299 * device/include/c8051f300.h,
6300 * device/include/c8051f310.h: added/updated header files for Silicon
6301 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6302 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6303 in new section Submitting patches
6305 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6307 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6308 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6309 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6311 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6312 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6313 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6315 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6316 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6317 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6319 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6320 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6321 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6322 genGenPointerSet): fixed bug #892400
6323 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6324 to eliminate build warnings.
6325 * src/SDCCast.c (processParms),
6326 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6328 * support/valdiag/valdiag.py: added GCC to the list of defines active
6329 when compiling with gcc
6331 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6333 * support/Util/SDCCerr.h,
6334 * support/Util/SDCCerr.c,
6335 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6336 with an incomplete type (fixed bug #883734)
6337 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6339 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6341 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6343 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6345 * src/SDCCast.c (decorateType),
6346 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6347 function pointer implementation
6348 * support/regression/tests/funptrs.c: added tests to verify both forms
6349 of function pointers work correctly. Added tests to verify parameters
6350 are passed in the correct order.
6352 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
6354 * device.c (regCompare): registers are sorted by ascending
6355 address and increasing size,
6356 * main.c (_pic16_finaliseOptions): removed the declaration
6357 of compiler macro MCU. Now a macro of the format pic18fxxxx
6358 will be defined from the command line
6360 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6361 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6363 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6364 PCOP_RLCF was overwritten!
6365 * gen.c (genSkip): commented out calls to pic16_emitcode,
6366 * (genCmpEQ): fixed "long" compares, only high word did get compared,
6368 * (genRRC): added debugging info,
6369 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6370 overwritten while shifting,
6371 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6372 overwritten while shifting,
6375 * (shiftLLeftOrResult),
6376 * (shiftRLeftOrResult),
6378 * (shiftLLong): Implemented with pic16_emitpcode
6379 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6380 * (genLeftShift): Fixed bug, operand for shift by variable always
6381 was "and"ed with 0x0f,
6382 * (genLeftShiftLiteral),
6384 * (genRightShiftLiteral): added debugging info,
6385 * (genrshFour): added comment,
6386 * (genRightShift): determined signedness from operand "left"
6389 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6391 * src/SDCCicode.c (geniCodeParms),
6392 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6393 function pointers, fixed function pointer bugs #861242 and #861896
6395 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6397 * device/include/c8051f000.h,
6398 * device/include/c8051f120.h,
6399 * device/include/c8051f300.h: added header files for Silicon
6400 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6402 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6404 * src/SDCCast.c (processParams): added new type flow and restructured
6405 (gatherAutoInit): added new type flow
6406 (addCast): cosmetic changes
6407 (getLeftResultType): added new type flow for array indices, patch
6408 provided by Stas, see FR #877103
6409 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6410 array index patch by Stas
6411 * src/SDCCast.h: added prototype getResultTypeFromType()
6413 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6414 * src/pic/glue.c (pic14emitStaticSeg),
6415 * src/pic16/glue.c (pic16emitStaticSeg),
6416 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6417 for initialization of symbols
6418 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6419 * support/Util/SDCCerr.h:
6420 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6421 * .version: bumped version number to 2.3.8
6422 * device/include/Makefile.in (install),
6423 * doc/Makefile (install): changed to 'rm `find ...`' construct to
6426 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6428 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6429 Slade Rich fixed an optimization bug
6430 * src/pic/pcodepeep.c,
6431 * src/pic/pcoderegs.c
6432 * doc/Makefile (install): added test for directory
6434 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6436 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6437 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6438 * src/pic/ralloc.c (getRegPtr, getRegGpr),
6439 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6440 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6441 * as/mcs51/asexpr.c (term),
6442 * as/hc08/asexpr.c (term): fixed bug #887146
6444 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6446 * src/z80/gen.c (genMult): handle single byte result product
6447 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6448 DUMMY_READ_VOLATILE (fixed bug #886367)
6450 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6452 * support/regression/tests/libmullong.c: fixed logic, on little endian
6453 hosts we ended without a mullong_wrapper()
6455 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6457 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6458 virus/worm forged address usage.
6460 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6462 Fixed promotion, it should be done on AST level:
6463 * src/SDCCast.c (addCast): added promotion to int
6464 (decorateType): updated call to upCast()
6465 * src/SDCCicode.c (geniCodeLeftShift): removed call to
6466 usualUnaryConversions()
6468 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
6470 * support/regression/tests/literalop.c (mulWrapper): Added a
6471 wrapper to remove integer overflow warnings.
6473 * support/regression/tests/float_trans.c: Made work on host.
6475 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6478 * support/regression/generate-cases.py (main): Changed from inline
6481 * doc/Makefile (install): Changed to depth first to get rid of
6482 missing directory install warning.
6484 * as/Makefile (install-doc): Made work on Mac.
6486 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6488 * src/SDCCast.c: added an additional type flow in decorateType() of
6489 opposite direction, see feature request #860006; it's enabled at runtime
6490 by setting the environment variable SDCC_NEWTYPEFLOW
6491 * src/SDCCast.h: changed prototype of decorateType()
6492 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6493 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6494 'char' to 'int' can be omitted, if both operands are 'unsigned char';
6495 see feature request #877103
6496 * src/SDCCval.c: updated call of decorateType()
6497 (valBitwise): fixed bug #882876
6498 (valMinus): added promotion
6499 (valLogicAndOr): result is unsigned
6500 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6501 * src/SDCCsymt.c (computeType),
6502 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6503 must not cause an unsigned operation
6504 * src/pic/glue (pic14emitRegularMap),
6505 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6507 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6509 * src/pic/pcode.c (PCodeID): commented out left over debug code
6511 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6513 * support/valdiag/tests/overflow.c: added shift tests
6521 * src/pic/pcodepeep.c,
6522 * src/pic/pcoderegs.c,
6524 * src/pic/ralloc.h: applied patch from Slade Rich;
6525 added support for multiple code pages and multiple RAM banks on the
6526 PIC 14 port. The ASM files now no longer simply assume all the
6527 code / RAM are in the same page / bank. This means the linker can
6528 safely allocate code/RAM of separate ASM files to different pages/banks.
6529 * doc/sdccman.lyx: added Slade's tips
6530 * src/mcs51/peeph.def: fixed bug #880768
6532 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6534 * src/hc08/ralloc.c (rematStr): fixed bug #879282
6535 * src/SDCCast.c (decorateType): fixed bug #880197
6537 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
6539 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6542 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6543 strtof is not part of C89 and isn't included with Mac OS X.
6545 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6547 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6548 shiftL2Left2Result): fixed bug #879326
6549 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6550 (genMultOneByte): fixed bug in signed vs unsigned multiplication
6551 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6552 address fetch for clr instruction
6553 * device/lib/hc08/_mulint.c: created optimized assembly version
6554 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6556 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6558 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6559 proposed in FR #877103
6561 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6563 * src/SDCCval.c (cheapestVal): added missing checks
6564 * src/SDCCicode.c (usualBinaryConversions): fixed condition
6565 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6567 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6569 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6572 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6574 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6575 loaded with the linker search paths (-L arguments) and the libraries
6576 to be linked with the current source (-l arguments). Changes
6577 currently will affect only the pic16 port.
6578 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6579 include path the port specific paths and port specific libraries,
6580 * gplink command now contains the $3 argument,
6581 * src/pic16/device.h,
6582 * src/pic16/device.c,: structure PIC_device is made public and
6583 renamed to PIC16_device, the same for variable Pics which is renamed
6584 to Pics16. Updated all references to them.
6585 * src/pic16/glue.c (pic16glue): corrected bug with code
6586 initialization which bypassed the variable initializations block.
6588 * device/lib/pic16/Makefile.rules: removed --penable-stack from
6589 COMPILE_FLAGS and added the --nostdinc option
6591 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6593 * device/include/mc68hc908jb8.h: Register defs for another member
6594 of the hc08 family. Contributed by Bjorn Bringert - thanks!
6596 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6598 Documenting changes from previous commits.
6599 * configure.in (version 1.56),
6600 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6601 when generating output files to configure the pic16 library,
6602 but now I've commented it out, since gputils aren't installed in the
6603 SF compile farm, so library won't compile
6605 * device/lib/Makefile.in (version 1.56): initially I've added in
6606 target 'all' the prerequestive 'model-pic16' so it compiled the
6607 pic16 library, but now I've commented it out for the same reasons
6609 * added targets 'model-pic16' and 'objects-pic16' to compile the
6611 * added target 'port-specific-objects-pic16' to handle the
6612 generated libraries and copy them into the build/ directory
6613 * added target 'clean-intermediate-pic16' to clean intermediate
6614 files into pic16 directory
6615 * in target 'installdirs' added line to create directory pic16 in
6616 the installation path
6618 * device/include/Makefile.in (version 1.11): in target 'install'
6619 added lines to copy all header files to installation path,
6620 * in target 'installdirs' added line create directory for pic16
6621 headers in the installation path
6623 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6625 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6628 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6631 * device/lib/configure.in,
6632 * device/lib/configure: fixed for autoconf 2.57
6634 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6636 * src/z80/main.c (_parseOptions): fixed the portmode= command line
6637 option so that it actually works. Made it specific to the z80, since
6638 the gbz80 doesn't have these kinds of I/O ports.
6640 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6642 * device/include/z180.h,
6643 * device/lib/_memcpy.c,
6644 * device/lib/_memmove.c,
6645 * device/lib/_mulint.c,
6646 * device/lib/ser_ir.c,
6647 * device/lib/ser_ir_cts_rts.c,
6648 * device/lib/_strcmp.c,
6649 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6650 * src/z80/main.c (_process_pragma): add support for pragmas bank and
6651 portmode; added deprecation warning for bank= and protmode= forms.
6652 Also, guard against buffer overflow.
6653 * src/z80/gen.c (aopGet): generate better code for sfr banked read
6655 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6657 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6658 changed interrupt vector table generation to only emit declared vectors.
6659 * device/include/Makefile.in: added missing backslash
6660 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6662 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6664 Mainly changes to support compilation of the device libraries
6665 * src/pic16/device.c: stack is allocated via symbol and not
6666 via literal number. The symbol is placed in the corresponding
6667 position of the data ram
6668 * (pic16_dump_section): relocatable and absolute uninitialized
6669 data are now emitted in sorted order to reduce section naming,
6670 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6671 weren't marked as being in the access bank,
6673 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6675 Added portion of GNU PIC Library under the directory
6676 device/include/pic16 and device/lib/pic16. These files
6677 contain the declarations of SFRs for the PIC18Fxx2 devices.
6678 The directory is initialized via configure from toplevel.
6680 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6682 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6683 the spilllocations to be compared correctly
6685 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6687 * src/SDCCast.c (decorateType): fixed bug introduced today
6689 2004-01-12 Borut Razem <borut.razem AT siol.net>
6691 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6692 doc/sdccman.lyx: upper case pragmas are deprecated
6694 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6696 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
6697 in simpler and even better code
6699 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6701 * src/SDCCicode.c (operandOperation): fixed bug #874819
6702 * src/SDCCast.c (decorateType): fixed
6703 char foo (unsigned long ul) { return ul > 0; }
6705 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6707 * doc/sdccman.lyx: Moved and added some sections, small changes
6708 all over. Telling LaTeX to be less strict with word spacing
6709 to better keep the right margin. Changed some notes about
6710 maintainance of the ports in section 3.2.1 - is it OK like this?
6712 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6714 SDCC source changes:
6715 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6716 convilong): modified to inform the pic16 port that builtin functions
6719 PIC16 PORT specific changes:
6720 * src/pic16/device.c pic16_dump_equates() added,
6721 processor registers declared internally by the port are emitted in
6722 the translation as equates,
6723 * src/pic16/gen.c: inline code is passed unprocessed to the
6725 * (pic16_popGetLit2): fnuction modified to take second operand as
6726 pCodeOp pointer and not as literal,
6727 * (popRegFromIdx): prefixed with pic16_,
6728 * (pic16_popCombine2): modified to receive already allocated pCode
6730 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6731 * (genFunction): initializes local stack frame and pushes on stack
6732 all the registers used by this function,
6733 * (genEndFunction): restores all registers from stack and restores
6735 * src/pic16/glue.c (pic16emitRegularMap): various changes and
6737 * (pic16glue): changed the program startup sequence,
6738 * added new dbName code 'A' for functions placed in absolute section
6739 * src/pic16/main.c: added function attribute _naked,
6740 * added pragma 'code' to place a fnuction at an absolute address,
6741 * added command line arguments --debug-ralloc and --pcode-verbose,
6742 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6743 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6744 * (pic16_newpCodeOpLit2): modified to take the second operand as
6746 * (pic16_printpBlock): modified to emit each function in a separate
6748 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6749 UPPER for immediate operands,
6750 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6752 * src/pic16/peeph.def: all peepholes with movff are commented out,
6753 because there is a problem in the pcode peep optimizer,
6754 * src/pic16/ralloc.c: the register allocator can now reuse local
6755 function symbols for another function. This saves register usage.
6756 * src/pic16/ralloc.h: added flag isLocal in structure regs,
6758 Added file src/pic16/NOTES with information about program writing on
6759 the current port version.
6761 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6763 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6764 and peephole 252 (array access)
6766 2004-01-09 Borut Razem <borut.razem AT siol.net>
6768 * src/SDCCmain.c : fixed #872250: -l command line defined library
6769 files are scanned before standard library files
6771 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6773 * src/SDCCast.c (decorateType): fixed bug #874046
6775 2004-01-09 Borut Razem <borut.razem AT siol.net>
6777 * support/scripts/sdcc.nsi: remove previous installation
6779 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6781 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6782 bytes for last interrupt vector (mcs51)
6783 * sdcc.spec: fixed typo
6785 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6787 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6788 gen51Code): more efficient parameter receive for --model-large
6791 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6794 * src/z80/main.c: added missed needLinkerScript flags (more than
6795 one port structure defined in these file)
6796 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6799 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6801 * src/SDCCmain.c: removed various references to DEFAULT_PORT
6802 * src/port.h: added flag needLinkerScript in port->linker
6803 structure to inform whether to create a .lnk file or not,
6811 * src/z80/main.c: changed appropriately to configure
6812 needLinkerScript flag
6814 * src/pic16/gen.c (genAddrOf): fixed bug #863624
6815 * src/pic/glue.c: added variable udata_section_name to
6816 override default uninitialized data segment definition for
6817 devices only with SHAREBANK memory (reported from Erik Epetrich)
6818 * (pic14emitOverlay): modified to emit a commented overlay segment
6819 directive when no overlay data exist
6820 * (picglue): modified to emit uninitialized data segment
6821 according to udata_section_name
6822 * src/pic/main.c (_pic14_parseOptions): added command line
6823 options --udata-section-name=[name] to override default
6824 udata definition name
6825 * modified _linkCmd and _asmCmd to include compiler passed
6826 arguments via -W option
6827 * src/pic16/main.c: added $l in _asmCmd, changed extension for
6828 object file from '.rel' to '.o' in port->linker structure,
6829 changed size of fptr from 2 to 3 in port structure
6831 2004-01-07 Borut Razem <borut.razem AT siol.net>
6833 * support/scripts/sdcc.nsi: update PATH
6834 * support/scripts/sdcc.ico: craeted
6836 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6838 * device/include/Makefile.in: fix install
6839 * doc/Makefile: fix install
6841 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6843 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6845 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6846 how the function variable allocation summary is displayed; also
6847 include information about variables allocated to the overlay
6850 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6852 * as/mcs51/lkmain.c: Help about -Y option
6853 * as/mcs51/lkarea.c: Fixed gcc warnings
6855 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6857 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6859 * support/valdiag/tests/overflow.c: added
6860 * src/SDCCast.c (decorateType),
6861 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6862 LEFT_OP (left shift)
6864 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6866 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6867 (default behaviour).
6869 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6871 A python script to validate compiler diagnostic messages. It can be
6872 used to verify that sdcc complains about bad c source code and
6873 gives a good location of the error.
6874 * support/valdiag/Makefile,
6875 * support/valdiag/valdiag.py,
6876 * support/valdiag/tests/*
6878 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6880 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6881 * src/SDCCsymt.c (newEnumType),
6883 * support/Util/SDCCerr.c,
6884 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6886 * support/regression/tests/enum.c: added test for enum values that
6887 require at least 2 bytes of storage.
6889 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6891 * src/common.h: added ifndef/define/endif macros
6892 around the header file.
6893 Bug reported from Jesus Calvino-Fraga
6895 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6897 * sdcc.spec: updated
6898 * device/include/Makefile.in: don't install CVS directories
6899 * device/lib/Makefile.in: added removal of CVS directories after install
6900 * doc/Makefile: fixed install, added local_icons
6901 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6902 * src/mcs51/gen.c (genRightShift): fixed bug #870788
6903 * src/ds390/gen.c (genRightShift): fixed bug #870788
6904 * src/SDCCast.c (decorateType): fixed bug #870781
6906 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6908 PIC16 port related changes:
6909 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6910 added variable stackPos,
6912 * gen.c: genCall, assignResultValue: added support for
6913 pushing/retrieving function parameters to/from stack,
6914 genFunction,genEndFunction: setup stack frame for the
6916 genAddrOf: will be changed according to bug 863624
6918 * added files genutils.c and genutils.h which contain gen*
6919 debugged and optimised functions extracted from gen.c
6921 * glue.c: added variable 'externs' which holds extern symbols,
6922 pic16emitRegularMap: is modified to properly handle relocatable
6923 symbols under the new scheme,
6924 pic16createInterruptVect: is modified
6925 pic16printPublics: is modified to emit 'global' assembler directives,
6926 added pic16_printExterns to print extern symbols,
6927 pic16glue: initializes stack/frame pointer in the beginning of
6928 the assembly output. Temporary hack, will be corrected later,
6929 because gplink yet does not support stack and SDCC does not
6930 yet support a type of crt0.o object to create the final binary.
6932 * Removed many lines that contain 8051 legacy code.
6933 * The code is finally placed under a 'code' directive.
6934 * Added port specific options.
6936 * _process_pragma: simplified since now we do not need *special*
6937 include file to define SFR registers. But a separate header
6938 will be needed. This will be developed later.
6939 * _pic16_parseOptions: added, parses port specific options:
6940 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6941 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6942 --preplace-udata-with=
6944 * _pic16_setDefaultOptions: modified to initialize section names,
6945 but hack is temporarly out of order since it needs improvement.
6946 * _pic16_genAssemblerPreamble: configuration words are emitted by
6947 their address instead of their name. This part is incomplete and
6948 supports only the 18Fxx2 devices. Other devices will emit an error
6949 during assembly since they do not contain the same set of config
6951 * _pic16_genIVT: is modified,
6953 * pcode.c: added definitions for some hardware registers that are needed
6955 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6956 All PCI entries are updated. Now LFSR is supported.
6957 * Removed pic16_pciTRIS is mentioned by mdubuc in source
6958 * added pic16_newpCodeOpLit2 to support instructions with
6959 two literal arguments
6960 * pic16_pCode2str: corrected code that emits assembler instructions
6961 with two literal operands and those that have an access bit modifier
6962 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6963 this fixes a bug which caused some labels to be lost, when an
6964 assembler directive was added, i.e. banksel,
6965 * pic16_FixRegisterBanking: improved logic that causes the insertion
6967 * InlineFunction: functions that are called once, are not any more
6968 inlined. This can be a port option in the future,
6970 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6972 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6973 hold the corresponding uninitialized symbols,
6974 * pic16_allocProcessorRegister: registers have explicit marked the
6976 * pic16_allocInternalRegister: registers are explicit marked as
6978 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6979 processing list, so bit registers were lost,
6982 * ralloc.h: added field 'accessBank' and original symbol operand
6983 in register definition,
6984 * removed the field isMapped from register definition,
6986 ** Several functions have been removed from various sources:
6987 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6988 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6989 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6990 pic16_assignRelocatableRegisters
6992 ** others have been introduced:
6993 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6994 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6996 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6998 * support/scripts/inc2h.pl: changed definition of BIT_AT
6999 to emit 'sbit at' instead of 'bit at'. This was a request.
7001 PIC16 port related preliminary changes:
7002 * gen.c: prefixed function popRegFromString with
7003 pic16_ and all references to it corrected
7004 * pcode.c: all pic16_pc_* hardware registers prefixed
7005 with underscore (_),
7006 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7007 * ralloc.c: newReg(): when register is REG_SFR then
7008 set address to rIdx,
7009 pic16_allocProcessorRegister(): marks register wasUsed=0
7010 pic16_writeUsedRegs(): added a call to assign processor
7011 registers via pic16_assignFixedRegisters
7013 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7015 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7016 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7017 variables in unused register banks. Also the SSEG is placed
7018 wherever there is enough space for it, and IDATA can be anywhere
7019 in internal RAM. For now compile using -Wl-Y[stack_size].
7020 The mem file is different for this option as well, since it
7021 makes no sense of talking about DSEG lenght.
7023 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7025 * src/SDCClrange.c: fixed bug 869095 that caused segfault
7026 in certain cases, e.g. when ROM assignment, patch provided
7027 from Albert den Haan.
7029 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7031 Many signedness and type propagation fixes:
7032 * src/SDCCicode.c: made geniCodeCast() static
7033 replaced SPEC_ by IS_ (cosmetic)
7034 (operandOperation): fixed div and mod operation
7035 (usualBinaryConversions): added support for promotion of char
7036 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7037 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7038 (geniCodeAdd): an array index will stay unsigned, even if promoted
7040 (geniCodeArray): ditto
7041 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7042 * src/SDCCsymt.c (computeType): added more support for char;
7043 promotion of char is selectable by promoteCharToInt, fixed signedness
7045 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7046 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7047 * src/SDCCval (val*): replaced signedness calculation by
7049 rearranged if-branches (cosmetic)
7050 (valShift): added warning W_SHIFT_CHANGED
7051 (valCompare): fixed problem with different types
7052 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7053 * support/regression/tests/literalop.c: added many cases
7054 * support/regression/tests/ast_constant_folding.c: changed finally to
7056 * .version: new year, new version: 2.3.7
7057 * src/SDCCmain.c (main): applied patch #866468
7058 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7059 provided by Scott Bronson
7060 * doc/sdccman.lyx: updated documentation for sdcdb
7061 updated and added chapter tips
7063 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7065 * src/SDCCsymt.h: missing from yesterday's commits
7067 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7069 * src/SDCC.y (struct_or_union_specifier),
7070 * support/Util/SDCCerr.c,
7071 * support/Util/SDCCerr.h: verify that struct & union tags are used
7074 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7076 * src/SDCCglobl.h: missing from yesterday's commits
7078 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7080 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7081 sft_attributes, struct_declaration, parameter_declaration,
7082 type_name, start_block, declaration_list),
7083 * src/SDCC.lex (check_type): support redefinition of typedef names
7085 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7087 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7088 aligned xdata arrays. Erik helped me with the if clause.
7090 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7092 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7095 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7098 * src/SDCCast.c (newAst_),
7100 * src/SDCCicode.c (ast2iCode, newiCode),
7102 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7103 expr, statement, expression_statement, selection_statement,
7104 iteration_statement, expr_opt, jump_statement): foundation for tracking
7106 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7109 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7111 * support/Util/SDCCerr.c,
7113 * src/SDCCast.c (createCase, createDefault, decorateType),
7114 * src/SDCClabel.c (labelUnreach),
7115 * src/SDCC.y (labeled_statement, jump_statement): More improvements
7117 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7118 (with thanks to Stas Sergeev)
7119 * device/include/time.h,
7120 * device/lib/time.c (CheckTime): suppress unreachable code warning
7122 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7124 * src/SDCCast.c (createIvalCharPtr),
7125 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7127 * support/regression/tests/nullstring.c: tests for these two bugs
7129 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7131 * support/Util/SDCCerr.h,
7132 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7133 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7134 about storage class and 'at' used inside struct or union
7135 * src/SDCCBBlock.c (iCodeFromeBBlock),
7136 * src/SDCCcse.c (ifxOptimize),
7137 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7138 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7139 printIval, emitStaticSeg, emitOverlay),
7140 * src/SDCClabel.c (deleteIfx),
7141 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7142 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7143 gatherAutoInit, processParms),
7144 * support/Util/SDCCerr.h,
7145 * support/Util/SDCCerr.c (werrorfl): Support for better error location
7146 reporting for post-parse errors.
7148 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7150 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7151 implicit casts via union; they don't work on big endian systems
7152 (possible fix for bug #861138)
7154 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7156 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7157 * src/mcs51/main.c: fixed the fix for bug #737001
7159 2003-12-15 Borut Razem <borut.razem AT siol.net>
7161 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7163 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7165 * support/makebin/makebin.c: put output in binary mode
7167 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7169 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7170 xdata and data memory on startup. Set the environment variable
7171 SDCC_NOGENRAMCLEAR to disable this.
7172 * src/mcs51/peephole.def,
7173 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7174 (allows non-interrupt and interrupt code to safely compete for a resource
7175 without the non-interrupt code having to disable interrupts)
7177 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7179 * src/SDCCicode.c (geniCodeAdd),
7180 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7181 with valFromType if type might be a pointer and host is big endian).
7182 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7183 types, not just integer types.
7184 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7185 multiply defined with mismatching "at" address.
7187 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7189 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7190 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7191 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7192 with embedded nulls (fixed bug #753752)
7194 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7196 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7197 Apparently this did not see much testing (endless loop)
7199 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7201 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7203 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7205 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7206 gracefully handle NULL memmap pointers
7208 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7210 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7211 instead of deleting the iCode when an operand is volatile
7212 * src/z80/gen.c (genDummyRead),
7213 * src/mcs51/gen.c (genDummyRead),
7214 * src/ds390/gen.c (genDummyRead),
7215 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7217 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7218 * src/SDCC.y: fixed bug #850420
7220 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7222 Applied z80 i/o port patch from Peter Townson and fixed some operators
7223 to better handle operands in A register.
7224 * device/include/z180.h
7230 * src/z80/peeph-z80.def
7234 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7236 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7238 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7240 * device/lib/hc08/_mullong.c: Removed extra #endif
7242 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7244 * sim/ucsim/hc08.src/inst.cc,
7245 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7247 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7248 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7249 * device/include/stdarg.h: fixed varargs for hc08
7250 * device/lib/Makefile.in,
7251 * device/lib/hc08/Makefile,
7252 * device/lib/hc08/_mulint.c,
7253 * device/lib/hc08/_mullong.c: fixed some endian problems
7255 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7257 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7258 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7259 * device/lib/_gptrget.c,
7260 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7262 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7264 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7265 * src/SDCCast.c (astErrors): fixed bug #846007
7266 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7268 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7270 * src/SDCCast.c (decorateType): disabled a transformation I added in
7271 revision 1.188 (access to fields of a structure at an absolute address);
7272 it breaks with bitfields, extern declarations, and gcse analysis.
7273 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7274 could be assigned through a pointer, so don't complain.
7275 * src/SDCCast.c (astErrors),
7277 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7279 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7281 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7282 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7283 output of __config directives, since gpasm now supports them
7284 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7285 pre-processor macro, i.e. -DMCU=p18f452
7286 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7287 and modified to handle 'cast' icode similarly to '=' icode
7288 * src/pic16/device.h (typedef struct PIC_device): added field
7289 'extMIface' to indicate that chip has external memory interface
7290 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7291 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7294 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7296 * src/SDCC.y (pointer): fixed bug #846006
7297 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7298 * src/SDCCast.c (decorateType): fixed bug #846009
7299 * src/ds390/peeph.def,
7300 * src/ds390/gen.c (genAnd, genOr),
7301 * src/mcs51/peeph.def,
7302 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7304 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7306 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7313 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7317 * src/SDCCbitv.c: added function to free a bitvector
7319 * src/SDCClrange.c: added function to recompute the liveranges
7321 * src/ds390/ralloc.c,
7322 * src/hc08/ralloc.c,
7323 * src/mcs51/ralloc.c,
7325 * src/pic16/ralloc.c,
7326 * src/xa51/ralloc.c,
7327 * src/z80/ralloc.c: recompute the liveranges after register packing
7329 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7331 * src/SDCCloop.c (newInduction): fixed bug #845630
7333 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7335 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7336 inadvertantly left behind from my 2003-11-12 change
7338 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7340 Updated headers I neglected to commit yesterday.
7344 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7346 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7347 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7348 * src/SDCCopt.c (eBBlockFromiCode),
7349 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7350 the creation of the key hash table from the sequencing so it can be used
7351 earlier (for some GCSE bug fixes still pending)
7353 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7355 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7356 * support/regression/tests/addsub.c: testing genPlus shortcut
7358 2003-11-15 Borut Razem <borut.razem AT siol.net>
7360 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7362 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7364 * src/SDCCcse.c (cseBBlock): fixed bug #527779
7365 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7366 ordering is immaterial.
7367 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7369 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7371 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7372 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7373 (SIGSEV) of bug #840381
7374 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7375 unlink new file before rename if new and old filenames are the same)
7377 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7379 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7380 uninitialized variables) for the mcs51. Set environment variable
7381 SDCC_GENRAMCLEAR to test.
7382 xdata initialization slightly shorter
7384 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7387 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7388 #838241 & 780691 (basicly the same bug)
7389 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7390 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7392 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7394 * src/SDCCmain.c (linkEdit): "fix" #834252
7396 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7398 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7400 * src/SDCC.y: fixed bug #819403
7402 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7404 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7405 the reentrant attribute.
7406 * src/hc08/gen.c (genPackBits): added missing stack readjustment
7407 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7409 * src/SDCCast.c (decorateType): fixed bug with storage class not being
7410 updated during pointer dereference; f.e. ~(((char *)1)*) was being
7411 erroneously reduced to a literal.
7412 * src/hc08/ralloc.c (packRegisters, rematStr),
7413 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7416 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7418 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7419 * doc/sdccman.lyx: changed from 'article' to 'book'
7420 * doc/Makefile: readded test_suite_spec and cdbfileformat
7422 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7424 * device/include/stdlib.h: include malloc.h to comply with ANSI
7425 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7427 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7429 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7430 * doc/clean.mk: also remove *.out files
7431 * doc/sdccman.lyx: some additions, larger top/bottom margins
7433 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435 * src/SDCC.y: fixed bug #837365
7436 * support/regression/tests/bitopcse.c
7437 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7438 a symbol (might be valop instead)
7439 * device/lib/Makefile.in: added errno.c to HC08SOURCES
7440 * device/lib/clean.mk: added hc08 to the cleaning list
7442 2003-11-04 Borut Razem <borut.razem AT siol.net>
7444 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7446 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7447 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7448 malloc is declared in standard stdlib.h
7450 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7452 * device/lib/hc08/Makefile: need to clean .rel not .o files
7453 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7455 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7465 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7466 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7467 tests (which uses the port's oclsExpense function)
7473 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7475 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7477 * src/SDCCcse.c (ifxOptimize),
7478 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7479 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7480 deleting the IFX iCode.
7481 * src/hc08/ralloc.c: reduced unneeded slocs
7482 * src/hc08/gen.c: fixed bug in asmopToBoolean
7484 2003-11-04 Borut Razem <borut.razem AT siol.net>
7486 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7487 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7488 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7489 transferred to configure
7491 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7493 Use headers defined in the C[++] standards:
7494 * sim/ucsim/gui.src/serio.src/fileio.cc
7495 * sim/ucsim/gui.src/serio.src/frontend.cc
7496 * sim/ucsim/gui.src/serio.src/main.cc
7497 * sim/ucsim/gui.src/serio.src/posix_signal.cc
7498 * support/Util/NewAlloc.c
7504 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7506 * Added MSVC projects for hc08 assembler and linker:
7507 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7508 /as/hc08/link_hc08.dsp
7510 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7512 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7514 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7516 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7518 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7520 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7522 2003-10-31 Borut Razem <borut.razem AT siol.net>
7524 * support/cpp2/cpplib.h,
7525 support/cpp2/cpplib.c,
7526 support/cpp2/cpplex.c,
7527 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7528 to switch _asm block preprocessing on / off. Default is
7529 #pragma preproc_asm +
7531 2003-10-31 Borut Razem <borut.razem AT siol.net>
7533 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7534 when outputting comment blocks (when executed with -C option) and
7535 _asm (SDCPP specific) blocks
7537 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7539 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7541 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7543 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7545 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7547 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7548 * src/SDCCast.c (decorateType): fixed bug #832664
7550 2003-10-31 Borut Razem <borut.razem AT siol.net>
7552 * support\cpp2\cpplex.c: fixed for SDCPP:
7553 comments(when executed with -C option) and _asm blocks
7554 were included even if they where in skipped #if block.
7555 Applied solution from GCC cpp 3.3.2
7557 2003-10-31 Borut Razem <borut.razem AT siol.net>
7559 * src/SDCC.lex: sdcc now understands both formats:
7560 '# <line_number> <file_name>' and
7561 '#line <line_number> <file_name>'
7562 * support/cpp2/cppmain.c: sdcpp now generates the standard
7563 '# <line_number> <file_name>' instead of former
7564 '#line <line_number> <file_name>'
7566 2003-10-30 Borut Razem <borut.razem AT siol.net>
7568 * support/cpp2/cpphash.h,
7569 * support/cpp2/cpplib.h
7570 * support/cpp2/cpplex.c,
7571 * support/cpp2/cppmain.c,
7572 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7574 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7576 Fixed a number of problems revealed by bug #827883.
7577 * src/SDCCloop.c (loopInvariants): Spill location of the
7578 result operand should be recomputed if extracted from
7579 a loop. Also, don't extract assignments of an iTemp
7581 * src/SDCCast.c (isConformingBody): loop reversal should
7582 not occur if the control variable is involved with a
7583 relational operator.
7585 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7587 * .version: bumped to 2.3.6 to reflect the big improvements
7588 made by Erik and Klaus. Thanks!
7590 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7592 Replaced the livrange code.
7593 * src/SDCClrange.c: added new LR code
7595 * src/SDCCBBlock.h: removed remainig parts from old LR code
7596 * src/ds390/ralloc.c,
7597 * src/ds390/gen.c: minor fixes to make it work with new code
7599 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7604 * src/hc08/ralloc.c: Fix various warnings related to the hc08
7605 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7606 (tweaked fix for bug #818696)
7608 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7610 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7612 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7615 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7616 * src/mcs51/gen.c (gencjneshort),
7617 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7618 more efficient (per Scott Bronson's suggestion)
7620 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7622 Extended the semantics of the critical keyword to include
7623 individual statements. See RFE #827755 and #799831
7628 * support/Util/SDCCerr.c
7629 * support/Util/SDCCerr.h
7634 2003-10-19 Borut Razem <borut.razem AT siol.net>
7636 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7638 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7640 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7642 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7643 and predecrement operand is displayed
7645 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7647 * src/SDCCval.c (valMinus): fixed bug #826041
7649 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7651 Some hc08 related updates that I missed earlier
7652 * sim/ucsim/stypes.h
7653 * support/regression/ports/hc08/spec.mk
7655 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7657 New target "hc08" for the Motorola 68hc08 family of micros
7665 * sim/ucsim/hc08.src/*
7666 * sim/ucsim/configure.in
7667 * src/ucsim/configure
7668 * sim/ucsim/packages_in.mk
7671 * device/include/mc68hc908qy.h
7673 * device/lib/Makefile.in
7674 * support/regression/ports/hc08/*
7675 * support/regression/Makefile
7677 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7679 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7681 * src/ds390/gen.c (genCast): fixed bug #821957
7683 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7685 * device/lib/logf.c: "fixed" overlay bug
7686 * support/regression/ports/host/spec.mk: added m library
7687 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7688 * support/regression/tests/float_trans: added (for Eric)
7690 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7692 * src/mcs51/gen.c (genCpl): fixed bug
7693 http://sf.net/mailarchive/message.php?msg_id=6263915
7695 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7697 * src/SDCCast.c (decorateType): added extended constant folding
7698 * src/SDCCsymt.c (computeType): cleanup
7699 * src/SDCCval.c (valShift): minor optimization
7700 * support/regression/tests/ast_constant_folding.c: added
7702 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7704 * src/SDCCmain.c: removed some unintended changes
7706 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7708 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7709 * src/z80/gen.c: fixed part of bug #817589
7710 * src/SDCCsymt.c (checkFunction): fixed bug #817895
7712 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7714 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7725 * src/ds390/ralloc.c
7727 * src/mcs51/ralloc.c
7729 * src/pic16/ralloc.c
7732 * src/z80/gen.c: removed unused label "release:"
7734 2003-10-06 Borut Razem <borut.razem AT siol.net>
7736 * src/SDCC.lex: removed definition of unused variables
7737 save_optimize and save_options
7739 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7741 * clean.mk: removed '=' in "-maxdepth=1"
7742 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7743 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7745 2003-10-06 Borut Razem <borut.razem AT siol.net>
7747 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7748 my_unput() replaced by unput()
7750 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7752 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7753 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7754 type-punned pointer will break strict-aliasing rules"
7755 Old LR behaviour is again default; Klaus' LR can be choosen by
7756 defining the environment variable LRKLAUS
7760 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7761 * clean.mk: fixed removal of files in bin/CVS/
7762 * device/lib/clean.mk: fixed removal of directories small and large
7763 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7765 * src/SDCCval.c: removed superflous test for pedantic
7767 2003-10-05 Borut Razem <borut.razem AT siol.net>
7769 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7770 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7771 message "unmatched #pragma SAVE and #pragma RESTORE"
7773 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7775 * doc/sdccman.lyx: various additions and updates (interrupts, inline
7776 assembly, critical functions, atomic, nojtbound)
7778 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7780 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7786 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7789 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7791 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7793 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7794 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7795 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7797 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7799 * src/z80/gen.c (genRet): fixed bug #524753
7800 * src/z80/gen.c (genCast): fixed internal error on cast from
7802 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7803 fix for bug #477835 to the z80
7804 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7805 for tracking iCodes in the peephole optimizer for z80
7807 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7809 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7810 the other part of bug #814548
7811 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7813 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
7815 * src/SDCCcse.c: fixed part of bug #814548
7817 2003-09-28 Borut Razem <borut.razem AT siol.net>
7819 * src/asm.c: rewrite of printILine() to use temporary file instead
7821 * src/xa51/main.c: commented out declaration of int rewinds
7823 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7827 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7829 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7830 * src/asm.c (printILine): Fixed bug #811015
7832 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7834 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7837 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7839 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7840 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7841 to correctly handle general case of AOP_PAIRPTR
7842 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7844 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7846 * src/mcs51/ralloc.c (fillGaps),
7847 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7848 register positioning bug)
7850 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
7852 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7854 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7856 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7857 genCodePointerGet, genGenPointerGet, genFarPointerSet,
7858 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7859 (ralloc doesn't intentionally do this now, but perhaps later)
7860 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7861 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7862 register positioning bugs (Fixed bug #762602 and #795325)
7863 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7865 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7866 lines that --i-code-in-asm generates
7868 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7870 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7871 trying to fclose a FILE* that was already closed.
7873 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7875 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7876 of const struct should be treated as if const themselves)
7878 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
7880 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7882 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7884 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7885 Unix (/n) and DOS (/r/n) line terminations.
7887 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7889 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7892 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7894 * src/mcs51/gen.c (genFunction, genEndFunction),
7895 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7896 and restore of EA so that stack offsets to parameters are
7897 correct when using both critical and reentrant/stack-auto.
7898 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7899 size (can be triggered in error if sloc is shared between
7900 different sized objects)
7901 * device/include/float.h: fixed macros to explicitly use
7902 unsigned long where needed
7904 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7906 Feature req. 799831: added code to allow nesting of critical functions
7907 * src/mcs51/gen.c (genFunction, genEndFunction)
7908 * src/ds390/gen.c (genFunction, genEndFunction)
7910 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7912 * src/SDCCsymt.c (sclsFromPtr),
7914 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7915 support for standard C idiom of memory mapped variables; for
7916 example, *((xdata int*)0x1234) = 1 is now internally equivalent
7917 to xdata int at 0x1234 tempvar = 1.
7918 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7919 provided by Akiya ISHIDA
7921 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
7923 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7924 * src/SDCCval.c (constVal): added reduction from int to char
7925 * src/SDCCval.c (valMult, valDiv): fixed sign handling
7926 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7927 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7929 * support/regression/tests/shifts.c: fixed
7931 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7933 * src/z80/gen.c (genXor): Fixed bug #805445
7935 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7937 Fixed bug #621531 (const & volatile confusion in the type chain).
7938 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7939 refer to the const or volatile state of the pointer itself.
7951 * src/pic16/ralloc.c
7952 * support/regression/tests/const.c
7954 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7956 When checking for duplicated modules, use absolute paths
7957 instead of relative paths. Files changed:
7962 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7964 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7966 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7968 * device/include/string.h: added size_t typedef, changed
7969 prototypes to use size_t, eliminated separate reentrant and
7970 non-reentrant declarations, added _memmove declaration
7971 * device/lib/_memcpy.c: changed to use size_t instead of int,
7972 changed /4 to >>2 to avoid division library call
7973 * device/lib/_memcmp.c,
7974 * device/lib/_memset.c,
7975 * device/lib/_strncat.c,
7976 * device/lib/_strncpy.c,
7977 * device/lib/_strncmp.c: changed to use size_t instead of int
7978 * device/lib/_memmove.c: new file (fixed bug #772294)
7979 * device/lib/Makefile.in: added _memmove.c
7980 * device/lib/z80/asm_strings.s: fixed bug #772290
7981 * support/regression/tests/bitfields.c: attempt to fix host assertion
7982 failure on amd64-unknown-linux2.2
7984 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7986 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7987 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7988 * as/z80/asmain.c (main): fixed bug #801766
7990 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
7992 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7995 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7997 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7998 reported in bug #800609
8000 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
8002 * Top header beautifications in src/pic16 directory:
8003 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8004 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8005 pcoderegs.h, ralloc.c, ralloc.h
8006 * main.c: added top header and GPL license notice
8007 * pcode.c: fixed the if-conditional warning
8009 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
8011 * device/lib/_mullong.c: replaced int by short for gcc
8013 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8015 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8016 and JUMPTABLE iCodes properly now (worked by accident before)
8017 * src/mcs51/gen.c (leftRightUseAcc),
8018 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8019 iCode properly now. Use getSize instead of nRegs since a & b
8020 aren't part of the nRegs tally.
8022 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
8024 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8025 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8026 before instructions that use the _STATUS register
8028 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
8030 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8031 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8032 fetching of the pointer
8033 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8034 copied from genNearPointerSet()
8035 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8036 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8037 If they pop r0/r1 they must be called in the opposite order than aopOp().
8038 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8039 (resp. --stack-auto), prepared for --xstack
8041 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8043 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8045 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
8047 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8048 these ports have their own __sdcc_external_start()
8050 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
8052 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8053 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8054 type for bits was changed. It resulted in bit variables becoming
8055 global, which is not permitted in PIC 14 assembly output.
8057 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8059 * doc/sdccman.lyx: various additions and updates. Rearranged sections
8061 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8063 Z80 and MCS51 linkers complaint if a public symbol is defined
8064 in more than one library module:
8068 * as/mcs51/Makefile.in
8070 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8072 A few small changes that speed up the peephole optimizer.
8076 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078 Try to make the peephole optimizer smarter by maintaining
8079 an association between the assembly source code and the
8080 iCodes that originated them. Put this information to use
8081 with a new peephole rule condition "notVolatile" so that
8082 the rules can be aggressive yet still safe.
8087 * src/mcs51/peeph.def
8089 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8093 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8094 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8095 if the left or right operand symbols have the accuse flag set.
8097 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8099 Changed the type of the result of the ! (NOT) operator to char;
8100 previously it returned the same type as the source. This allows
8101 us to eliminate all the genFloatNot functions (all of its target
8102 implementations were very buggy) since !float can use the same
8105 * src/SDCCicode.c (ast2iCode): ! returns char
8106 * src/mcs51/gen.c (genNot, genNotFloat),
8107 * src/ds390/gen.c (genNot, genNotFloat),
8108 * src/z80/gen.c (genNot, genNotFloat),
8109 * src/pic/gen.c (genNot, genNotFloat),
8110 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8112 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
8114 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8115 1. Interrupt would not compile properly. Ensure PCLATH register is saved
8116 during interrupts. Ensure WSAVE is located at a shared bank address.
8117 2. Fixed page selection in some places
8118 3. Fixed BTFSS/C to where necessary use registers directly and not simply
8119 the registers name strings.
8120 4. Fixed "signed / unsigned compare" compiler warnings.
8121 5. The PIC port manages its own allocation of the general purpose
8122 registers, but makes no attempt to reuse them. As a result when
8123 compiling it soon runs out of general purpose registers. Some
8124 additional code was added to the files pcode.c and device.c to walk
8125 through the function call tree and rename the registers so that they
8135 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8136 genPlus() & genMinus() when the result is the same as left or right
8138 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8140 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8142 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8144 Made bitfield a distinct type from bit so that bitfields
8145 convert as per ANSI C and bits retain their traditional
8146 boolean style behaviour. Implemented bitfield support in
8154 * src/ds390/gen.c: bit v bitfield split
8155 * src/z80/gen.c: New support for bitfields
8156 * support/regression/tests/bitfields.c: reenabled z80,
8159 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8161 Rules 246.x, 247.x relate to bitfields, the others speed up
8162 access to xdata mapped I/O devices.
8164 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8166 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8168 Cleaned up genPackBits and genUnpackBits and added two helper
8169 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8170 for literal assignments in genPackBits (thanks to Frieder for
8176 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8178 Fixed bug #748310 (pointer to function type mishandled when the
8179 function name is omitted). Also fixed a SIGSEGV when a function
8180 attribute (reentrant, etc) is used on a non-function or on a
8181 function but misplaced before the parameter list.
8183 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8185 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8186 * support/Util/SDCCerr.h,
8187 * support/Util/SDCCerr.c: Added func attr misuse error msg
8189 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
8191 Fixed bug #787649 by anonymous
8192 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8193 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8195 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8197 Fixed numerous bitfield problems.
8199 * src/SDCC.y: More bitfield related error checking
8201 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8202 * support/Util/SDCCerr.h,
8203 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8204 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8205 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8206 * support/regression/tests/bitfields.c: tests added
8208 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8210 Made the constant following the "interrupt" keyword optional. If
8211 omitted, the function will not automatically be given an entry
8212 in the interrupt vector table (similar to #pragma NOIV, but
8213 less syntacticly kludgy). The interrupt number is also now
8214 range checked. Also fixed a bug in the high order bit example
8221 * support/Util/SDCCerr.c
8222 * support/Util/SDCCerr.h
8225 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
8227 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8228 * src/SDCCicode.c (operandOperation): rewritten some ops
8229 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8230 * src/SDCCsymt.c (computeType): literals are handled the same way as any
8232 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8233 be re-activated by defining REDUCE_LITERALS)
8234 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8235 unsigned, but are signed by default
8236 * src/SDCCval.c (constVal): rearranged
8237 * src/SDCCval.c (valMod): preliminary fix
8238 * src/SDCCval.c (valCastLiteral): use TYPE_* types
8239 * support/regression/literalop.c: added, work in progress
8241 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8243 Generate warnings for useless declarations like "char data;"
8244 that don't do what new users expect.
8247 * support/Util/SDCCerr.h
8248 * support/Util/SDCCerr.c
8250 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
8252 * src/SDCCval.c (valMult): fix overflow detection of negative int
8254 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8256 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8258 Changes to support big endian targets:
8271 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
8273 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8274 * device/lib/time.c: fixed warning "integer overflow in expression"
8276 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
8278 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8279 * src/SDCCval.c (constVal): changed default to signed; hex and octal
8280 constants are unsigned; added recognition of "u" flag for unsigned
8281 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8282 * src/SDCCval.c (valDiv, valMod): fixed signdness
8283 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8284 signedness of modulo, left and right shift
8285 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8286 * support/Util/SDCCerr.h: added warning W_INT_OVL
8287 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8288 * src/SDCCast.c (ast_print): improved output of constants
8290 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8292 Fixed some warnings when building with MSVC:
8305 * support\cpp2\cpplib.c
8309 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
8311 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8313 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8315 * support\librarian\clean.mk: Do not remove Makefile.
8316 * support\librarian\Makefile: added.
8318 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8320 Added librarian to MSVC build:
8323 * support\librarian\librarian.dsp
8325 'configure' not needed for librarian, removed:
8326 * support\librarian\configure
8327 * support\librarian\configure.in
8328 * support\librarian\config_in.h
8329 * support\librarian\Makefile.in
8331 Hopefully these ones built the librarian and the rest of sdcc properly:
8333 * Makefile.common.in
8335 Messed up 'configure', so revert to previous version:
8339 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
8341 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8342 there, while the mantissa of a double is "only" 53 bits wide.
8344 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8346 Adding sdcclib to the build. MSVC project coming soon.
8347 Files added/changed:
8349 * support\librarian\clean.mk
8350 * support\librarian\configure
8351 * support\librarian\configure.in
8352 * support\librarian\config_in.h
8353 * support\librarian\Makefile.bcc
8354 * support\librarian\Makefile.in
8355 * support\librarian\sdcclib.c
8358 * Makefile.common.in
8362 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8364 Linker now complaints if linked modules have conflicting options, for
8365 example, one compiled using --model-large and another one compiled with
8366 --model-small. The following files were modified:
8388 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8390 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8391 as/mcs51/lklibr.c: Generate a warning when a library is not found.
8393 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
8395 * src/z80/mappings.i: fix _mul[us][int,long] entries
8397 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8399 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8401 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
8403 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8404 * support/regression/tests/bitopcse.c: added
8412 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8414 added support for new library format to z80, gbz80 linkers:
8420 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
8422 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8423 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8425 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
8427 added DUMMY_READ_VOLATILE:
8436 * src/SDCCcse.c (algebraicOpts): many improvements
8437 * src/SDCCcse.h: removed algebraicOpts()
8438 * src/SDCCicode.c (picDummyRead): added
8440 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8442 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8443 "Insufficient space in data memory".
8445 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447 * src/mcs51/gen.c: fixed bug #771358
8448 * src/z80/gen.c: fixed bug #759087
8450 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
8452 * src/pic16/glue.c: minor cleanup by Vangelis
8454 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8456 * device/include/regc515c.h: fixed #758477
8457 * device/lib/_gptrget.c: saving some cycles in generic pointer get
8458 * device/lib/_gptrput.c: saved a few bytes
8459 * my tab spacing is 8, yours too?)
8460 * device/lib/_ser.c: process RX bytes earlier than TX bytes
8461 * device/lib/serial.c: process RX bytes earlier than TX bytes
8462 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8464 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8466 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8468 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8470 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8472 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
8474 * device/lib/Makefile.in: bad fix, reverted to 1.43
8476 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
8478 * device/lib/Makefile.in: added missing z80 object files
8480 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
8482 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8483 pic16 progress by Vangelis:
8498 * pic16/pcodepeep.c:
8501 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8503 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8505 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8507 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8508 added gbz80 build to MSVC project.
8509 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8510 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8511 from 8051 stuff and setup so it links using a .lnk file.
8513 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8515 * support/librarian/sdcclib.c: sdcc librarian.
8516 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8519 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8521 * as/mcs51/lkmain.c: properly handle extensions in function afile.
8523 2003-07-02 Borut Razem <borut.razem AT siol.net>
8525 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8526 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8527 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8528 src/xa51/main.c, src/z80/main.c:
8529 virtualization of glue() function: each port has it's own glue function,
8530 which is accessed by do_glue function pointer in PORT.general structure
8532 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8534 * DS800C400 fun, improved ROM interface and tinibios.
8536 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8538 * More support for DS80C400. Now includes beginning of interface to ROM.
8540 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
8542 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8544 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8546 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8548 2003-06-19 Borut Razem <borut.razem AT siol.net>
8550 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8552 2003-06-19 Borut Razem <borut.razem AT siol.net>
8554 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8555 fixed Z80 port - crt0.o: cannot open.
8557 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
8559 * support/Util/MySystem.c (merge_command): revert bad fix
8561 2003-06-18 Borut Razem <borut.razem AT siol.net>
8563 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8565 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8567 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8568 option --use-stdout sends errors to stdout instead of stderr.
8570 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
8572 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8574 2003-06-15 Borut Razem <borut.razem AT siol.net>
8576 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8577 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8578 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8579 fixed width array of pointers replaced with sets;
8580 multiple include and lib paths ared transferred to preprocessor and linker
8581 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8582 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8583 fixed width array of pointers
8584 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8585 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8586 fixupPath(), getPathDifference()
8587 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
8588 fixed width array of pointers
8590 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
8592 * src/pic16/ralloc.c: fix warnings
8593 * src/pic16/pcode.c: fix warning
8595 2003-06-10 Scott Dattalo <scott AT dattalo.com>
8597 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8598 know all the details, but essentially this set of changes enable
8599 the pic16 port to generate movff instructions and generate assembler
8604 * src/pic16/pcode.c:
8605 * src/pic16/device.c:
8607 * src/pic16/pcode.h:
8608 * src/pic16/pcoderegs.c:
8609 * src/pic16/ralloc.c:
8610 * src/pic16/ralloc.h:
8612 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8614 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8615 added option --vc, so sdcc errors and warnings are compatible with
8616 Microsoft Visual Studio.
8618 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8620 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8621 device/lib/libfloat.lib: added atof function.
8623 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
8625 * doc/sdccman.lyx: updated to Lyx 1.3
8626 * doc/cdbfileformat.lyx: updated to Lyx 1.3
8627 * doc/test_suite_spec.lyx: updated to Lyx 1.3
8628 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8630 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
8632 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8634 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8636 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8637 additions to the "related tools/documentation" section
8639 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
8641 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8643 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
8645 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8646 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8648 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
8650 * doc/sdccman.lyx: fix double dash and other minor things
8651 * doc/Makefile: fix double dash
8653 2003-05-28 Karl Bongers(patches from Martin Helmling)
8654 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8655 condition and ignore commands.
8657 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8659 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8660 is in parts still quite out of date, I did changes as far as I felt makes sense
8661 for a non-native english speaker.
8662 Please feel free to add to the manual or to correct my changes.
8663 * doc/Makefile: undid touching the date of intermediate tex files.
8665 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8667 * doc/sdccman.lyx: Manual has an index now
8669 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
8671 Finalize muluint/mulsint and mululong/mulslong merging:
8672 * device/lib/_mulint.c
8673 * device/lib/_mullong.c
8674 * device/lib/gbz80/mul.s
8675 * device/lib/gbz80/stubs.s
8676 * device/lib/z80/mul.s
8677 * device/lib/z80/stubs.s
8678 * src/SDCCsymt.c (initCSupport)
8680 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8682 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8683 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8684 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8685 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8688 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8690 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8691 the regression tests I'm not brave enough to enable 245.b, 245.c
8692 * doc/sdccman.lyx: added latex preamble for hyperref package.
8693 Using pdflatex this will give you a hyperlinked pdf file with
8694 bookmarks. (prepend '%' before /usepackage if this breaks something)
8696 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8698 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8700 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
8702 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8704 2003-05-21 <johan AT balder>
8706 * src/SDCCglue.c (printIval): fixed bug #739934
8708 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8710 Applied patch from bug 737905 (renamed yylineo to mylineno):
8717 * src/pic16/pcode.c: Cleaned warnings
8718 * src/pic16/pcodeflow.c: Cleaned warnings
8719 * src/pic16/pcoderegs.c: Cleaned warnings
8721 2003-05-19 Scott Dattalo <scott AT dattalo.com>
8723 * src/pic16/pcode.c: Cleaned warnings
8724 * src/pic16/pcodepeep.c: Cleaned warnings
8725 * src/pic16/ralloc.c: Cleaned warnings
8727 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8729 * doc/sdccman.lyx: fixed bug 739745
8730 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8732 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
8734 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8735 it can be defined with CFLAGS when running configure
8736 * src/SDCCmain.c: fixed compiling + linking with object files
8738 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
8740 * configure.in: configure for pic16 port,
8741 added --disable-pic16-port
8742 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8743 * src/SDCCmain.c: linkOptions is changed to set *,
8744 added if/endif conditional macros to remove options help
8745 messages from optionsTable when a port is not configured, added
8746 support for the PIc16 port in the ports table, when executing
8747 the compiler with no port specified on command line, a default
8748 port is selected with the new macro DEFAULT_PORT which is
8749 defined in port.h, in setDefaultOptions() linkOptions is removed
8750 from initialization assignment, since now it is a set,
8751 parseCmdLine uses setParseWithComma for linkOptions, in
8752 linkEdit() linkOptions are accessed with new function indexSet()
8753 which returns the i'th item of a set variable. See SDCCset.c, in
8754 linkEdit() when calling buildCmdLine(), added linkOptions as
8755 last argument. Now users can pass arguments to gplink via the
8756 -Wl option, main() uses pic16glue() to glue up pic16 programs
8757 * src/SDCCpeeph.c: various changes to support pic16
8758 * src/SDCCset.c: added function void *indexSet(set *, int) to
8759 return the i'th item of the set
8760 * src/SDCCset.h: added function prototype for indexSet()
8761 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8762 * src/clean.mk: added pic16 in CLEANALLPORTS variable
8763 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8764 added macro DEFAULT_PORT
8765 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8766 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8768 * src/pic16/glue.c: commented out some error producing lines
8769 * src/pic16/main.c: __config directives are commented out to stop
8770 gpasm complaining and test the linkage with gplink, _linkCmd and
8771 _asmCmd changed to be more gplink and gpasm friendly
8772 * src/pic16/peeph.def: peep rule 3 is commented out, since it
8773 produced an error when parsed, peep rule 12 is added to utilize
8774 movff, but it is commented out since the pCode does not support
8775 yet a command with 2 address arguments
8777 2003-05-18 <johan AT balder>
8779 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8780 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8781 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
8783 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8784 Added feature to script commands from file.
8786 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
8788 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8789 * src/SDCCutil.c: include ctype.h for win32
8791 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
8793 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8795 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
8797 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8798 Fixed so you can set breakpoints prior to run, run does not stop
8799 on entry now. Add tbreak. Other enhancements and fixes for use
8802 2003-05-12 Borut Razem <borut.razem AT siol.net>
8804 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8806 2003-05-11 Borut Razem <borut.razem AT siol.net>
8808 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8809 the path of bin directory, so that PATH is the only env. variable, which has to be set
8810 in case of standard installation.
8811 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8812 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8813 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8815 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8817 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8818 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8819 temp files are in the port dir; clean the gen/test directory when
8820 generating new test.c
8821 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8822 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8823 * support/regression/tests/zeropad.c: added
8825 2003-05-09 <johan AT balder>
8827 * src/SDCCglue.c: fixed bug #597940
8829 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
8831 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8832 cache sfr, optimize next,step, fix off by one sourceline,
8833 support ddd list function.
8834 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8836 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8838 * support/regression/HTMLgen.py: added compare_s2f()
8839 * support/regression/Makefile: redo 1.27
8840 * support/regression/generate-cases.py: redo 1.5
8842 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
8844 * support/regression/tests/float.c: workaround 33 bit hex constant
8845 * support/regression/tests/simplefloat.c: fix division for host
8847 2003-04-29 Scott Dattalo <scott AT dattalo.com>
8849 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8850 that tame's the PIC's over-aggressive optimizer.
8852 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8854 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8857 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
8859 Initial support for DS80C400. "Hello world" runs on TINIm400
8862 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
8864 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8865 * Some notes on ddd usage added in debugger/README
8866 Martin Helmling adding more features and fixes for ddd GUI debugger.
8867 Code added for nexti, stepi, up, down, and other adjustments.
8869 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
8871 * src/pic/pCodepeep.c non-wildcard asmops are now handled
8872 * src/pic/peeph.def Added two rules to optimize carry manipulation
8873 * src/pic/* removed debug printfs
8875 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
8877 * debugger/mcs51/cmd.c: added header newalloc.h
8879 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
8881 * as/Makefile: new EXEEXT
8882 * as/z80/Makefile: remove trailing slash of BUILDIR
8883 * as/z80/clean.mk: new EXEEXT
8884 * Makefile.common.in: add to CFLAGS (and others), don't replace it
8885 * support/cpp2/Makefile.in: new EXEEXT
8886 * src/pic/glue.c (pic14emitRegularMap): fixed warning
8888 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
8890 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8891 EXEEXT was introduced to fix all related problems with targets
8892 "clean", "install" and "uninstall"; a couple of further flaws
8893 especially with "clean" have been fixed too
8894 * as/mcs51/Makefile.in
8899 * debugger/mcs51/Makefile.in
8900 * debugger/mcs51/clean.mk
8902 * link/z80/Makefile.in
8905 * packihx/Makefile.in
8907 * sim/ucsim/Makefile
8908 * sim/ucsim/clean.mk
8909 * sim/ucsim/avr.src/Makefile.in
8910 * sim/ucsim/avr.src/clean.mk
8911 * sim/ucsim/s51.src/Makefile.in
8912 * sim/ucsim/s51.src/clean.mk
8913 * sim/ucsim/xa.src/Makefile.in
8914 * sim/ucsim/xa.src/clean.mk
8915 * sim/ucsim/z80.src/Makefile.in
8916 * sim/ucsim/z80.src/clean.mk
8917 * sim/ucsim/main_in.mk
8918 * sim/ucsim/packages_in.mk
8919 * sim/ucsim/gui.src/Makefile.in
8920 * sim/ucsim/gui.src/serio.src/Makefile.in
8921 * sim/ucsim/gui.src/serio.src/clean.mk
8924 * support/cpp2/Makefile.in
8925 * support/cpp2/clean.mk
8926 * support/makebin/Makefile
8927 * support/makebin/clean.mk
8928 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8929 * doc/sdccman.lyx: --program-suffix no longer needed
8931 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
8933 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8934 Martin Helmling added support for ddd GUI debugger.
8935 Code added to display assembly, set variables, and other commands
8936 to interface to ddd.
8938 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
8940 * as/Makefile: fix target clean
8941 * as/clean.mk: fix target clean
8942 * as/z80/clean.mk: fix target clean
8944 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
8946 * Makefile.common.in: added AT EXEEXT AT
8947 * configure.in: removed all mingw32 stuff
8948 * configure: rebuilt from configure.in
8949 * doc/sdccman.lyx: updated section "installation"
8950 * support/scripts/sdcc_mingw32: adapted to configure
8951 * support/scripts/sdcc_cygwin_mingw32: added
8953 2003-04-22 Scott Dattalo <scott AT dattalo.com>
8955 * src/pic Added object file support for the PIC port
8956 * src/pic Applied patch from Craig Franklin (this started the object file support)
8957 * src/regression Updated the PIC regression tests for object files
8959 2003-04-20 Borut Razem <borut.razem AT siol.net>
8961 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8962 lklex.c: In function `getfid':
8963 lklex.c:203: warning: array subscript has type `char'
8964 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8965 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8966 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8967 stack handling macros
8969 2003-04-19 Borut Razem <borut.razem AT siol.net>
8971 * "handling space characters in file path" task:
8972 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8973 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8974 * support/Util/MySystem.h: make it self-sufficient
8975 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8976 src/z80/main.c, sdcc/as/mcs51/lklex.c:
8977 handling space characters in file path
8978 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8979 (it will be used by assemblers, which have their own includes, e.g. gpasm)
8980 * support/Util/MySystem.c: handling space characters in executable's path
8982 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
8984 * as/z80/Makefile: fix permanent rebuild of z80
8985 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8986 * support/regression/tests/bitfields.c: added Johan's bitfields.c
8988 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
8990 * src/SDCCopt.c: add special case optimization to replace modulo by
8991 a power of two with a bitwise AND.
8993 2003-04-18 <johan AT balder>
8995 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8997 2003-04-17 <johan AT balder>
8999 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9000 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9002 2003-04-13 Borut Razem <borut.razem AT siol.net>
9004 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9005 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9006 fixed mingw problem in adl_NORMALIZE_PATH
9008 2003-04-12 Borut Razem <borut.razem AT siol.net>
9010 * fixed "#pragma SAVE/RESTORE can not be nested":
9011 * src/SDCC.lex: reworked pragma handling functions
9012 * sdcc/src/SDCCglobl.h: reworked stack handling macros
9013 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9015 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9017 * src/SDCCutil.c (pathEquivalent): defined but not used
9018 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9019 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9020 * configure: rebuilt from configure.in
9021 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9022 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9023 * device/include/Makefile.in: replace sdcc_datadir
9024 * device/lib/Makefile.in: replace sdcc_datadir
9025 * Makefile.common.in: add LDFLAGS from configure
9026 * packihx/Makefile.in: use LDFLAGS
9027 * src/Makefile.in: use LDFLAGS
9028 * support/cpp2/Makefile.in: add LDFLAGS from configure
9029 * support/makebin/Makefile: use LDFLAGS
9030 * .version: bumped version number to 2.3.5
9032 2003-04-12 Borut Razem <borut.razem AT siol.net>
9034 * completed "different paths" task:
9035 * src/SDCCmacro.c: fixed bug in handling quotes
9036 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9037 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9039 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9041 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9043 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9045 * ds390/gen.c ds390/peeph.def: fix bug 706781
9047 2003-04-11 Borut Razem <borut.razem AT siol.net>
9049 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9051 2003-04-10 Scott Dattalo <scott AT dattalo.com>
9053 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9054 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9055 set - this bit used to not be set...).
9056 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9057 bad code in PIC Port
9058 * src/regression/and2.c added to test bug 609268
9059 * src/regression/Makefile added and2.c to regression test
9062 2003-04-08 <johan AT CP255758-A>
9064 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9065 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9066 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9068 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
9070 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9072 * support/cpp2/Makefile.in: fix bug #487815
9073 * configure: rebuilt from configure.in
9074 * Makefile.common.in: docdir changed, new path suffixes
9075 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9076 * sdcc_vc_in.h: reflect changes from sdccconf.h
9077 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9078 * src/SDCCutil.h: remove BINDIR hack
9079 * doc/sdccman.lyx: update new path hierarchy
9081 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9083 * src/SDCCpeeph.c: added okToRemoveSLOC test
9085 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9087 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9089 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9091 * src/SDCCpeeph.c: added labelIsReturnOnly test
9092 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9094 2003-04-05 <johan AT balder>
9096 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9097 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9098 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9099 * src/SDCCast.c: fixed a warning
9100 * src/SDCCast.h: fixed a warning
9101 * src/SDCCicode.c (operandFromAst): fixed a warning
9103 2003-04-04 <johan AT balder>
9105 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9106 * src/SDCCast.c (decorateType): fixed bug #715076
9107 * src/SDCC.y: fixed bug #702907
9109 2003-04-03 <johan AT balder>
9111 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9112 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9113 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9114 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9115 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9117 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
9119 * _decdptr.c: fix return values
9120 * _gptrget.c: fix return values
9121 * _gptrgetc.c: fix return values
9122 * _gptrput.c: fix return values
9123 * _mulint.c: fix return values
9124 * as/z80/Makefile: fix 'make -j' problem
9126 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
9128 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9129 * configure.in: big cleanup, updated to autoconf 2.5x
9130 * configure: rebuilt from configure.in
9131 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9132 * sdcc_vc_in.h: reflect changes from sdccconf.h
9133 * doc/Makefile: fixed a flaw in "make install"
9135 2003-04-02 <johan AT balder>
9137 * src/ds390/gen.c (genCmp): no comments
9138 * src/mcs51/gen.c (genCmp): no comments
9139 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9140 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9142 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
9144 * support/regression/generate-cases.py: place generated file in given sub directory
9145 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9146 * support/regression/Makefile: improvements for 'make -j';
9147 side effect: it's simpler and faster now
9149 2003-03-31 Borut Razem <borut.razem AT siol.net>
9151 * src/z80/main.c: link-{port} and as-{port} defined without path
9152 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9154 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
9156 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9158 2003-03-30 Borut Razem <borut.razem AT siol.net>
9160 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9161 changed type of list parameter to set
9162 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9163 * src/port.h: changed type of do_assemble() parameter to set
9164 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9165 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9166 definition of "cppoutfilename" macro with NULL value in preProcess()
9167 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9168 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9169 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9170 replaced with set *binPathSet
9171 * shash_add() deallocates the item, if allready exsists, before adding the new one
9172 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9174 2003-03-30 Scott Dattalo <scott AT dattalo.com>
9176 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9177 a nested for loop bug in the PIC port
9178 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9181 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9183 * support/Util/dbuf.h: remove C++ stuff to make it portable
9185 2003-03-28 Borut Razem <borut.razem AT siol.net>
9187 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9188 literal strings in stringLiteral()
9189 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9190 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9193 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
9195 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9197 2003-03-26 <johan AT balder>
9199 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9200 * src/ds390/gen.c (saveRegisters): catched symbol abuse
9201 * src/SDCCast.c (decorateType): fixed " -v < 3"
9203 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9205 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9206 Added Lenny Story's debug infrastructure changes:
9207 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
9208 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9209 * src/cdbFile.c: added
9210 * src/SDCCdebug.c: added
9211 * src/SDCCdebug.h: added
9212 * src/SDCCast.c (createFunction)
9213 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9214 * src/SDCCmain.c (parseCmdLine, main)
9215 * src/SDCCmem.c (redoStackOffsets)
9216 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9219 * src/avr/gen.c (genAVRCode)
9220 * src/ds390/gen.c (gen390Code)
9221 * src/mcs51/gen.c (gen51Code)
9222 * src/pic/gen.c (genpic14Code)
9223 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9224 * src/xa51/gen.c (genXA51Code)
9225 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9227 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9229 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9230 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9232 2003-03-22 <johan AT balder>
9234 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9236 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
9238 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9239 * doc/cdbfileformat.lyx: added, written by Lenny Story
9240 * doc/Makefile: added cdbfileformat.lyx
9241 * doc/clean.mk: added cdbfileformat.lyx
9243 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
9245 * src/mcs51/peeph.def: fix bug #705773
9247 2003-03-20 <johan AT balder>
9249 An sfr/sbit can have an "at #" AND an initializer
9250 * src/SDCCsymt.c (checkSClass):
9251 * src/SDCCmem.c (allocGlobal):
9252 * src/SDCCmem.c (allocLocal):
9253 * src/SDCCast.c (createBlock):
9255 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
9257 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9259 2003-03-16 <johan AT balder>
9261 Undid the hackup of const and volatile, the problem is much bigger
9263 * src/SDCCast.c:1.171
9264 * src/SDCCglue.c:1.138
9265 * src/SDCCicode.c:1.146
9266 * src/SDCCsymt.c:1.150
9267 * src/SDCCval.c:1.65
9269 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
9271 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9272 * src/ds390/gen.c (genAddrOf): fixed bug #704087
9274 2003-03-13 <johan AT balder>
9276 Hackup const and volatile modifiers in type chains a bit:
9278 * src/SDCCast.c:1.169
9279 * src/SDCCglue.c:1.136
9280 * src/SDCCicode.c:1.143
9281 * src/SDCCsymt.c1.146
9282 * src/SDCCsymt.h1.59
9283 * src/SDCCval.c:1.63
9285 2003-03-12 <johan AT balder>
9287 * src/SDCCBBlock.h: more LRH debugging junk
9288 * src/SDCCcflow.h: more LRH debugging junk
9289 * src/SDCCloop.c: more LRH debugging junk
9290 * src/SDCC.y (struct_declaration): fixed bug #697590
9291 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9292 * src/ds390/gen.c (aopForRemat): fixed bug #700031
9293 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9295 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9296 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9297 test function names must now match exactly).
9298 * src/SDCCcse.c: added special case in findCheaperOp to allow
9299 extending a short integer. Makes less awful code for bug 700121 test case.
9301 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9303 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9304 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9306 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9308 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9309 actually called (operandsNotEqual() was called for all
9310 operandsNotEqualX tests).
9312 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9314 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9315 with shorter literals. Fixes bug 700121.
9317 2003-03-11 <johan AT balder>
9319 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9321 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
9323 * src/SDCCloop.c (mergeRegions): an evil beast is dead
9324 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9326 2003-03-10 Borut Razem <borut.razem AT siol.net>
9328 * src/SDCCmain.c: pipe preprocessor's output
9329 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9330 * sdcc_vc_in.h: define pclose as _pclose for WIN32
9331 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9332 which closes all pipes in pipeSet set
9333 * src/SDCCset.c: free deleted item in function deleteSetItem()
9334 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9335 moved from z80 to src subproject
9336 * .version: increased version number to 2.3.4
9338 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9340 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9341 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9342 * support/regression/ports/xa51/spec.mk: fix typo
9344 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9346 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9348 2003-03-09 Borut Razem <borut.razem AT siol.net>
9350 * src/SDCCmain.c: pipe preprocessor's output
9351 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9352 * sdcc_vc_in.h: define pclose as _pclose for WIN32
9353 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9354 which closes all pipes in pipeSet set
9355 * src/SDCCset.c: free deleted item in function deleteSetItem()
9356 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9357 moved from z80 to src subproject
9359 2003-03-09 Borut Razem <borut.razem AT siol.net>
9361 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9362 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9363 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9364 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9365 * src/SDCCglobl.h: unification of WIN32 native definitions
9367 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9369 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9371 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9373 * src/configure.in: check for endianess (even while cross-compiling)
9374 * src/configure: check for endianess (even while cross-compiling)
9375 * src/configure_in.h: check for endianess (even while cross-compiling)
9376 * src/avr/gen.c: remove old endianess stuff
9377 * src/mcs51/gen.c: remove old endianess stuff
9378 * src/ds390/gen.c: remove old endianess stuff
9379 * src/pic/gen.c: remove old endianess stuff
9380 * src/pic/genarith.c: remove old endianess stuff
9381 * src/pic/glue.c: fix endianess check
9382 * src/pic16/gen.c: remove old endianess stuff
9383 * src/pic16/genarith.c: remove old endianess stuff
9384 * src/pic16/glue.c: fix endianess check
9385 * src/xa51/gen.c: remove old endianess stuff
9386 * src/z80/gen.c: fix endianess check
9387 * src/SDCCglue.c: fix endianess check
9388 * src/ds390/peeph.def: fix bug 700036
9390 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9392 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9393 * src/configure: find appropriate data-types on host for SDCC's int and long
9394 * src/configure.in: find appropriate data-types on host for SDCC's int and long
9395 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9396 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9398 2003-03-07 <johan AT balder>
9401 some minor cleanups before the big shot
9402 OP_DEFS and OP_USES now use Kevin's protection
9403 new option --nolabelopt
9414 * src/ds390/ralloc.c:
9415 * src/mcs51/ralloc.c:
9417 * src/xa51/ralloc.c:
9420 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9422 * src/pic/pcode.c (get_op): fix 64 bit warnings
9423 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9424 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9425 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9426 * support/regression/tests/malloc.c: fix 64 bit warnings
9428 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
9430 * src/mcs51/gen.c (genMinus): fixed bug 696436
9432 2003-03-02 Borut Razem <borut.razem AT siol.net>
9434 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9436 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9438 * configure.in: test for mkstemp
9439 * sdccconf_in.h: add HAVE_MKSTEMP
9441 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
9443 * device/include/ctype.h: removed warning while using --stack-auto
9444 * device/include/malloc.h: removed warning while using --stack-auto
9445 * device/include/string.h: removed warning while using --stack-auto
9447 2003-02-23 Borut Razem <borut.razem AT siol.net>
9449 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9450 because NDEBUG is defined (see man assert)
9451 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9453 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9455 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9456 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9458 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9460 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9461 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9463 2003-02-18 <johan AT balder>
9465 * as/mcs51/asmain.c (asmbl): module can start with a digit
9466 * as/z80/asmain.c (asmbl): module can start with a digit
9468 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9470 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9471 * src/asm.c: fix pipe() for Mingw32
9473 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
9475 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9476 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9477 make -V work again; --c1mode reads now from stdin
9478 * doc/sdccman.lyx: added --c1mode
9479 * support/Util/SDCCerr.c: new messages for c1 mode
9480 * support/Util/SDCCerr.h: new messages for c1 mode
9481 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9483 2003-02-15 <johan AT balder>
9485 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9487 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
9489 * doc/sdccman.lyx: Environment variables, -o and other minor things
9491 2003-02-14 <johan AT balder>
9493 * src/xa51/main.c: before anyone really tries to use it :)
9495 * Install doc's in share/sdcc/doc
9496 * removed some obsolete files
9497 * Do a proper make distclean and uninstall
9498 M Makefile.common.in
9501 M device/include/Makefile.in
9502 M device/lib/Makefile.in
9505 M sim/ucsim/doc/Makefile.in
9508 R src/xa51/peeph.rul
9509 M support/cpp2/Makefile.in
9510 M support/makebin/Makefile
9513 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9515 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9517 2003-02-10 Borut Razem <borut.razem AT siol.net>
9519 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9520 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9521 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9522 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9523 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9524 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9525 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9526 src/z80/Makefile.bcc: Borland Makefile cleanup
9527 * as/z80/Makefile.bcc: Added Borland Makefile
9528 * support/cpp2/borland.h: Removed
9530 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
9532 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9533 * src/SDCC.lex: new pragma NOIV
9534 * src/SDCCglobl.h: new pragma NOIV
9535 * src/SDCCmem.c: new pragma NOIV
9537 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9539 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9541 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9543 * src/SDCCmain.c: signal handling is switched off by --debug
9544 * doc/Makefile: small fix for install; use clean.mk again
9545 * doc/clean.mk: clean *.pdf and *.html too
9547 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
9549 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9550 * device/lib/printfl.c: fix a ds390 bug by making it portable
9551 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9552 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9553 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9554 * debugger/mcs51/cmd.c: converted multi-line string literals
9555 * sim/ucsim/globals.cc: converted multi-line string literals
9556 * src/SDCCmain.c: introduced signal handler to remove temp files
9557 * doc/Makefile: small tweaks, implement clean
9558 * doc: removed generated files
9560 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9562 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
9563 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9564 Address Record is not correctly generated for DS390."
9566 2003-02-02 Borut Razem <borut.razem AT siol.net>
9568 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9569 * as/mcs51/asm.h: fixed compilation with Borland C
9570 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9571 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9572 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9573 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9574 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9575 src/z80/Makefile.bcc: delete $(LIB) only if exist
9576 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
9578 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
9580 * device/include/malloc.h: introduced NULL
9581 * device/include/string.h: introduced NULL
9582 * device/include/stdlib.h: introduced NULL
9583 * device/lib/_memcpy.c: removed NULL
9584 * device/lib/_strcat.c: removed NULL
9585 * device/lib/_strchr.c: removed NULL
9586 * device/lib/_strcmp.c: removed NULL
9587 * device/lib/_strcpy.c: removed NULL
9588 * device/lib/_strcspn.c: removed NULL
9589 * device/lib/_strlen.c: removed NULL
9590 * device/lib/_strncat.c: removed NULL
9591 * device/lib/_strncmp.c: removed NULL
9592 * device/lib/_strncpy.c: removed NULL
9593 * device/lib/_strpbrk.c: removed NULL
9594 * device/lib/_strrchr.c: removed NULL
9595 * device/lib/_strspn.c: removed NULL
9596 * device/lib/_strstr.c: removed NULL
9597 * device/lib/_strtok.c: removed NULL
9598 * device/lib/malloc.c: removed NULL, include own header
9600 2003-02-02 <johan AT balder>
9602 * 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
9603 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9604 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9605 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9606 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9607 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9609 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9611 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9614 2003-02-01 <johan AT balder>
9616 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9618 2003-01-31 <johan AT CP255758-A>
9620 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9622 2003-01-30 <johan AT balder>
9624 * src/SDCCBBlock.c: automatic bug detection
9625 * src/SDCCicode.c: automatic bug detection
9627 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9629 * src/SDCCglobl.h: now --xram-size 0 works
9630 * src/SDCCmain.c: now --xram-size 0 works
9632 2003-01-29 <johan AT balder>
9634 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9636 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9638 * as/mcs51/aslink.h: Added options --xram-size and --code-size
9639 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9640 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9641 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
9642 * src/SDCCglobl.h: Added options --xram-size and --code-size
9643 * src/SDCCmain.c: Added options --xram-size and --code-size
9645 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9647 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9648 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9650 2003-01-27 <johan AT balder>
9652 * src/SDCC.y: fixed bug #613764
9654 2003-01-26 <johan AT balder>
9656 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
9657 * src/SDCCsymt.h: fixed bug #673374
9658 * src/SDCCglue.c: fixed bug #661910
9659 * src/SDCCast.c: fixed bug #458099 and 673374
9661 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9663 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9664 * as/mcs51/strcmpi.h: added
9665 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9666 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9667 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9668 * as/mcs51/assym.c: strcmpi -> as_strcmpi
9669 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9670 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9671 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9672 * as/mcs51/Makefile.aslink: new module strcmpi
9673 * as/mcs51/Makefile.asx8051: new module strcmpi
9674 * as/mcs51/Makefil.bcc: new module strcmpi
9675 * as/mcs51/Makefile.in: new module strcmpi
9676 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9678 2003-01-26 <johan AT balder>
9680 * src/SDCCglue.c: reverted back to 1.124
9681 * src/SDCCast.c: reverted back to 1.156
9682 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9684 2003-01-25 <johan AT balder>
9686 * src/SDCCglue.c: A better fix for bug #661910
9687 * src/SDCCast.c: A better fix for bug #661910
9688 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9690 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9692 * src/Makefile.in: remove spawn.o
9693 * src/SDCCmain.c: remove spawn.h
9694 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9695 * src/spawn.c: removed
9696 * src/spawn.h: removed
9697 * support/regression/ports/ds390/spec.mk: link with -r
9699 2003-01-24 <johan AT CP255758-A>
9701 * src/ds390/gen.c (aopOp): fixed bug #667458
9702 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9703 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9704 (createIvalCharPtr): an ival doesn't always have a storage class anymore
9706 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9708 * src/mcs51/peeph.def: better assembler identation by Frieder
9709 * src/mcs51/gen.c: better assembler identation by Frieder
9711 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9713 * as/z80/string.h: removed for gcc 3.2
9714 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9715 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9717 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9719 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9720 * src/SDCCpeeph.c (replaceRule): fix bug #663503
9721 * support/regression/Makefile: separate temp files for ports
9722 * support/regression/generate-cases.py: separate temp files for ports
9723 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9724 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9726 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9728 * moved tinitalk to device/examples/ds390
9730 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
9732 * as/mcs51/lkmem.c: rflag is for DS390
9733 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9734 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9735 (linkEdit): move mem- and map-files the same way as ihx-files
9736 * src/z80/main.c (_setDefaultOptions): removed --generic
9737 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9738 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9739 * src/pic/glue.c (picglue): --c1mode works again
9740 * src/pic16/glue.c (pic16glue): --c1mode works again
9741 * src/asm.c (printCLine): fix #660034
9743 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9745 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9746 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9747 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9748 * as/mcs51/lkmem (summary): better fix for sp problem
9749 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9750 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9751 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9752 remove --stack-after-data
9754 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9756 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9757 * src/SDCCutil.c (join): ugly bug: missing '\0'
9758 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9760 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9762 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9764 * src/pic/main.c (_asmCmd): gpasm supports -o
9765 * src/z80/main.c: more general macros
9766 * device/lib/Makefile.in: remove intermediate files
9768 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9770 * .version: Bumped version number to 2.3.3
9771 * src/SDCCBBlock.c: new option -o
9772 * src/SDCCglobl.h: new option -o
9773 * src/SDCCglue.c: new option -o
9774 * src/SDCCmain.c: new option -o
9775 * src/asm.c: new option -o
9776 * src/ds390/main.c: new option -o
9777 * src/pic/glue.c: new option -o
9778 * src/pic/pcode.c: new option -o
9779 * src/pic/ralloc.c: new option -o
9780 * src/pic16/glue.c: new option -o
9781 * src/pic16/pcode.c: new option -o
9782 * src/pic16/ralloc.c: new option -o
9783 * src/z80/main.c: new option -o
9784 * device/lib/Makefile.in: use -o
9785 * support/regression/ports/ds390/spec.mk: use -o
9786 * support/regression/ports/gbz80/spec.mk: use -o
9787 * support/regression/ports/mcs51/spec.mk: use -o
9788 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9789 * support/regression/ports/z80/spec.mk: use -o
9790 * support/regression/ports/ucz80/spec.mk: use -o
9791 * support/regression/ports/xa51/spec.mk: use -o
9792 * support/regression/fwk/lib/timeout.c: fix usage string
9794 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
9795 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9797 2003-01-07 <johan AT balder>
9799 * src/SDCCast.c (decorateType): fixed bug #600035
9801 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9802 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9803 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9804 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9805 * src/pic/pcode.c: outcommented unused variable to remove warnings
9806 * src/pic/ralloc.c: outcommented unused variable to remove warnings
9808 2003-01-06 <karl AT turbobit.com>
9809 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9812 2003-01-06 <johan AT balder>
9814 * src/SDCCicode.c: fixed array add
9816 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
9817 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9818 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9820 2003-01-04 <johan AT balder>
9822 * src/SDCCval.c (getNelements): fixed the initialized array of structures
9824 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9825 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9827 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9828 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9829 * support/regression/tests/bug-524697.c: fit mem usage into 8032
9831 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9832 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9834 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
9835 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9837 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
9838 * src/mcs51/main.c: removed {bindir}{sep} from aslink
9840 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9842 * in \sdcc\as\mcs51\ changed these files in order to create an
9843 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9844 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
9845 following files to include the previous two files: aslink.dsp,
9846 Makefile.aslink, Makefile.bcc, and Makefile.in.
9848 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9849 .adb instead of .cdb
9851 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9853 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9854 value from option --iram-size.
9856 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9858 * \sdcc\as\mcs51\lklist.c: added boundary check before using
9861 2002-09-18 <wiml AT hhhh.org>
9863 * SDCClrange.h: exposed setFromRange() and setToRange()
9864 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9865 packRegsForAccUse() (bug 542397)
9866 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9867 multiple times and emitting the fetch operations more than once
9868 added aopGetUsesAcc() function to allow binary operators to
9869 fetch their operands in the correct order; made genMinus() emit
9870 compact code for X = LITERAL - Y
9872 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9873 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9874 sprintf() in line 1267.
9876 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9877 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9880 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9881 Changes to aslink (All the changes are marked with 'JCF'):
9883 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9886 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9887 area BSEG. Also moves, if possible, the DATA area down into the internal
9888 ram so more space is available.
9890 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9893 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9894 not bytes. Function summary() which creates a memory usage summary
9895 file with extension .mem. Reports of overlaping stack and small stack
9896 size. If the space for the stack is less than 16 bytes aslink trows a
9899 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9900 the 8051. Option 'y' for memory summary output file.
9902 Changes to sdcc (All the changes are marked with 'JCF'):
9904 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9906 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
9907 overlaying area for it (uses RegBankUsed[4]).
9909 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9910 bank zero as used by default. By default aslink locates the stack
9911 (equivalent to --stack-after-data). Pass option 'y' to aslink for
9912 the creation of the .mem file. Delegates the allocation of data area
9913 to aslink (it is not longer 0x30 by default). If --stack-loc passes
9914 the begining of the stack area to aslink.
9916 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
9917 glue() in SDCCglue.c creates an area for it.
9919 2002-09-03 Borut Razem <borut.razem AT siol.net>
9920 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9921 sdcc/src/pic/glue.c:
9922 introduced atexit() handler for teporay files removal in case of
9923 errors, assertions, ...
9925 2002-08-29 Borut Razem <borut.razem AT siol.net>
9926 * sdcc/support/cpp2/auto-host_vc_in.h:
9927 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9928 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9929 Maybe there is a similar problem with BORLANDC? It should be checked!
9931 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9932 corrected improper use of assert: the assignment to clr variable was done inside the assert.
9933 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9934 was not executed, and the compiler (cl) launched a warning:
9935 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9937 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
9938 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9940 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9941 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9943 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9944 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9945 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9946 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9947 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9948 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9949 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9950 - added Release configuration in VS projects
9951 - review of compiler an linker options
9952 - VC .exe files are generated in bin_vc directory, not to interfere
9953 with binaries generated from other projects (cygwin, mingw, bcc ...)
9955 * sdcc/src/yacc.dsp: added
9957 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9958 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9959 and insert the version number definitions from .version
9961 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9963 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9964 added - genarate auto-host.h using auto-host_vc_in.h as template
9967 removed from CVS, generated automatically
9969 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
9970 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9972 2002-08-11 Borut Razem <borut.razem AT siol.net>
9973 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9975 2002-08-10 Borut Razem <borut.razem AT siol.net>
9976 * src/SDCCmain.c (main):
9977 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9978 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9979 The consequence was that some temporary files were not removed.
9982 unification of code in functions tempfilename() and tempfile():
9983 function tempnam() is defined in Visual Studio 6.0 and .NET
9985 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9987 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9988 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9989 - removed compiler command line option /WX: Treats all warnings as errors
9990 - update a list of source files, included into the project
9992 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9993 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9994 changed project type to Generic Project so that can be correcly converted to VS.NET project
9996 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9998 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10000 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10002 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10003 added return 0 statements after assert() to make compiler happy
10005 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10006 added newline in the def file to keep MSC compiler satisfied
10008 * sdcc/src/z80/gen.c:
10009 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10010 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10011 - solved MSC error in function aopDump()
10013 * sdcc_vc.h: define PREFIX as "\\sdcc"
10015 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
10016 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10018 2002-06-22 Scott Dattalo <scott AT dattalo.com>
10019 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10020 - Rewrote the register banking algorithm.
10021 - Added pCode live-range analysis to registers (for now, only non-used and
10022 singly-used registers optimized away)
10024 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10026 * 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.
10028 2002-05-10 Scott Dattalo <scott AT dattalo.com>
10029 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10031 2002-04-22 Michael Hope <michaelh AT vroom>
10033 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10035 * configure.in (DD_COPT): Added include support required for gbdk.
10037 * .version: Bumped version number just to increase it.
10039 * src/SDCCmain.c: Added -nostdinc to the default options.
10041 2002-04-15 Michael Hope <michaelh AT vroom>
10043 * device/lib/z80/printf.c (sprintf): Added.
10045 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10047 * src/z80/peeph.def: Added transpose redundent load rule.
10049 * src/z80/main.c: Added force callee saves for jaune.
10051 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10053 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10055 2002-03-28 Johan Knol <johan AT balder>
10057 * src/SDCCval.c: fixed bug #532436
10059 2002-03-14 Scott Dattalo <scott AT dattalo.com>
10061 Added "char *Processor" field to the port structure.
10064 Added -p option. Allows port dependent processor to be specified.
10067 Initialized the new field char *Processor field to NULL in all ports
10070 Compiler generated registers for interrupt context saving
10071 were not getting allocated.
10073 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
10076 Fixed left shift. Will promote the left side of a left shift
10077 if a) left shifting more than size of operand or b) when assigned
10078 to something size > size of left side
10080 2002-03-14 Scott Dattalo <scott AT dattalo.com>
10082 tons of changes. Register allocation has been
10083 rewritten. Added customization for the various PICs. Flow
10084 analysis is restructured. ...
10086 * src/pic/device.h:
10089 * src/pic/device.c:
10090 Added. device.c is a PIC port hack to accomodate variations
10093 2002-03-13 Michael Hope <michaelh AT vroom>
10095 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
10097 2002-03-04 johanknol <johanknol AT manik>
10099 * /src/SDCCval.c: fixed
10101 const unsigned char arr[][2] = { { 0, 1 } };
10102 t18.c:1: error: Initializer element is not constant
10104 2002-03-04 bela <bela AT manik>
10106 * /device/include/mcs51reg.h:
10107 ds89c420 register definition update
10109 2002-03-03 <johan AT FRIJA>
10111 * support/Util/SDCCerr.c: did something, but don't no why anymore
10113 * support/regression/tests/bug-524691.c: made it a little less shy
10115 * src/SDCCast.c (decorateType): fixed bug #524697
10117 * src/SDCCast.c: made some lineno improvements
10119 * src/SDCCval.c (getNelements): changed warning to error
10121 * src/SDCCglue.c (printIvalArray): changed warning to error
10123 * src/SDCCicode.c: fixed a warning for mingw
10125 * src/SDCCast.c (decorateType): fixed the << promotion for ops
10127 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10129 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
10131 * src/ds390/peeph.def:
10132 Added some more peephole rules
10134 * src/ds390/gen.c: Various fixes & enhancements
10136 * src/SDCClrange.c, src/SDCClrange.h:
10137 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10139 * src/ds390/ralloc.c:
10140 various fixes & enhancements (ds390) specific
10142 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10143 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10146 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10148 2002-03-02 <johan AT FRIJA>
10150 * src/SDCCast.c (decorateType): fixed bug #524708
10152 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10154 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10156 2002-03-01 Michael Hope <michaelh AT vroom>
10158 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10160 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10162 2002-03-01 <johan AT FRIJA>
10164 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10166 * src/SDCCast.c (decorateType): fixed bug #524209
10168 * src/SDCCval.c (valNot): fixed bug #524195
10170 2002-02-26 <johan AT balder>
10172 * src/xa51/gen.c: fixed a warning
10174 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10176 * src/SDCCast.c (decorateType): fixed bug #522534
10178 2002-02-23 <johan AT balder>
10180 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10182 2002-02-22 <johan AT balder>
10184 * src/SDCCast.c: fixed bug #514865
10186 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10188 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
10190 * sdcc/src/SDCCloop.c:
10191 Previous fix was not good. basic blocks that have "break" or "return" are
10192 not really partof a loop , but live ranges used in these blocks should
10193 be live thru the entire loop, so set partOfLoop but don't add them to
10196 2002-02-21 <johan AT FRIJA>
10198 * src/SDCCcse.c: fixed bug #514308
10200 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
10203 Fixed BUG #519583. If a conditional block ended in a return/break
10204 statement inside a loop, it was not being considered part of the loop.
10206 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10208 2002-02-10 Karl Bongers <karl AT turbobit.com>
10211 Fixed up SDCDB debugger somewhat. Updated debugger/README
10212 with lots of comments and notes.
10214 * device/examples/test2.c:
10215 Fix bug, "red" variable not being initialized(compiler complained).
10217 * device/examples/Makefile, examples/test3.c:
10218 Add Makefile in device/examples folder, compiles test3.c
10219 for use as a multiple module SDCDB test case.
10221 * sim/ucsim/cmd.src/cmdset.cc:
10222 Took out debug printfs in ucsim "next" command.
10224 * sim/ucsim/xa.src:
10225 Karl and Johan start ucsim XA support. Most dissassembly working,
10226 about 75% emulation done(plenty of work remaining).
10228 * sim/ucsim/z80.src:
10229 Add Z80 support to ucsim, add test-ucz80 regression test,
10230 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10231 Notice z80 compiler fails on examples/test3.c/crc code.
10233 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
10235 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10236 Added support for --parms-in-bank1
10238 * src/ds390/peeph.def:
10239 added a few more peephole optimzations
10241 * src/ds390/main.c:
10242 1) added __builtin_inp & __builtin_outp used to read in data of given length
10243 from a memory mapped port
10244 2) added __builtin_memcmp
10245 3) added __builtin_swapw swap bytes of a short
10247 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10248 1) handle multiple send & receives from register bank1
10249 2) ralloc can now allocate DPTR1 to some liveRanges
10251 * src/SDCCsymt.c, src/SDCCsymt.h:
10252 changes to handle multiple sends & receives
10254 * src/SDCCptropt.h:
10255 added some pointer arithmetic optimization
10257 * src/SDCCptropt.c:
10258 added some pointer arithmetic optimizations but not stable yet so not
10259 called from anywhere (will get this working shortly)
10261 * src/SDCCopt.c: fixed for multiple sends & receives
10264 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10265 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10266 set preprocessor defines (depending on options)
10268 * src/SDCCicode.c, src/SDCCicode.h:
10269 changes made to handle multiple sends & receives
10272 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10274 * src/SDCCcse.c, src/SDCCcse.h:
10275 added function findbackward def (to be used in upcoming optimization)
10277 * src/SDCCcflow.c, src/SDCCcflow.h:
10278 added function returnAtEnd - to determine if a basic block terminates with
10281 * src/SDCCast.c, src/SDCCast.h:
10282 added option parms-in-bank1
10284 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10285 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10286 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10287 adjusted for --parms-in-bank1 option
10289 * device/include/string.h:
10290 donot redefine "reentrant" keyword
10292 * device/include/ds80c390.h: Added some more SFRs
10294 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
10296 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10298 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
10300 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10302 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
10304 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10306 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
10308 * Added --xram-movc option
10310 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10312 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10314 2002-01-11 Johan Knol
10316 * Added math lib of Jesus Calvino-Fraga
10318 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
10320 * src/SDCCmain.c (processFile): fix processing of ../../src.c
10321 * support/regression/Makefile: new target test-mcs51-stack-auto
10322 * support/regression/ports/mcs51-stack-auto/spec.mk: added
10324 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
10326 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10328 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
10330 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10332 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
10334 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10336 * src/SDCCglue.h: add definition for printIvalChar()
10338 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
10340 * src/SDCCast.c: fix #498138 by Johan
10342 * src/SDCCglue.c: fix #498138 by Johan
10344 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
10346 * support/regression/Makefile: fix clean
10348 * support/regression/ports/ds390/support.c: fix transmission of last character
10350 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
10352 * /sdcc/src/ds390/gen.c:
10353 a) improved computing address of stack variable
10354 b) took out some #if 0 code
10355 c) improved parmBytes adjustment
10356 d) improved genPlusIncr & genMinusIncr
10357 e) genCmp could generate bad code (when left assigned to DPTR)
10358 f) Fixed bug in hasInc
10360 * /sdcc/src/ds390/ralloc.c:
10361 a) packRegsForSupport could mess up live information (Fixed)
10362 b) packRegsDPTRuse could be incorrect for left & right shift
10364 * /sdcc/src/mcs51/ralloc.c:
10365 packRegsForSupport could mess up the live information (Fixed)
10367 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10369 * /sdcc/src/SDCCast.c:
10370 can reverse a loop even if function call is present as long
10371 as the loop control variable is local & is not passed as parameter
10373 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10375 * /sdcc/ChangeLog: *** empty log message ***
10377 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10378 More builtin function additions for TININative
10380 * /sdcc/src/ds390/ralloc.c:
10381 Had broken the regression testsuite
10383 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10385 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10386 Added funcattr hasStackParms will be set for reentrant functions when there
10387 are paramteres on the stack, this helps in minimizing frame pointer generation
10388 typeFromStr can handle function pointers now
10390 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10391 *** empty log message ***
10393 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10395 * /src/ds390/gen.c, /src/ds390/main.c:
10396 More builtin function additions for TININative
10398 * /src/ds390/ralloc.c:
10399 Had broken the regression testsuite
10401 * /src/SDCCast.c: Fixed a bug in dumptree
10403 * /src/SDCCsymt.c, /src/SDCCsymt.h:
10404 Added funcattr hasStackParms will be set for reentrant functions when there
10405 are paramteres on the stack, this helps in minimizing frame pointer generation
10406 typeFromStr can handle function pointers now
10408 * /doc/builtins.txt, /doc/TININative.txt:
10409 *** empty log message ***
10412 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10414 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10415 ALPHA version for -mTININative
10417 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10418 updated to reflect changes in the port structure
10421 added function do_assemble (similar to do_link) if non-null this function
10422 will be called to do assembly (-mTININative) requires a multi command
10424 added function genAssemblerEnd will be called to generate assembler Epilogue
10427 added _JavaNative to debug info printing
10429 * /src/SDCCmain.c: added option --tini-libid
10430 added port->do_assemble function (-mTININative) has a multi command assemble
10432 * /src/SDCCglue.c: Disabled "constExpr" check
10433 added port->genAssemblerEnd function
10435 * /src/SDCCglobl.h: Added option --tini-libid value
10438 tookout optimizeCompare from the header (has no external references)
10440 * /src/SDCCast.c: made one more function "static"
10442 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
10444 * src/z80/mappings.i: Added z80asm support.
10446 * src/z80/main.c: Added z80asm support on --asm=z80asm
10448 * src/z80/gen.c: Fixed asm portability issues.
10450 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
10452 * src/SDCCglue.c (printExterns): Added global/extern split.
10454 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
10456 * support/regression/Makefile: added test for mcs51 model large
10458 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10460 * support/regression/ports/gbz80/spec.mk: added -mgbz80
10462 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
10464 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
10466 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
10468 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10470 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10472 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
10474 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10476 * support/regression/tests/simplefloat.c: Port to mcs51.
10478 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
10479 * support/regression/tests/bug-485362.c: Added.
10481 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10483 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10485 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10487 * src/z80/gen.c (aopDump): Added a dump function.
10489 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
10490 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10492 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10494 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10496 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10498 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10500 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10502 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10504 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10506 * support/regression/ports/ds390/support.c: Use tinibios.
10508 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10510 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10512 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10513 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10515 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10517 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10519 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
10521 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10523 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10524 (packRegsForIYUse): Created and optimised.
10526 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10528 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10529 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
10531 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10533 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10535 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10537 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10539 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10541 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10543 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10545 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10547 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10549 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10551 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10553 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10554 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10555 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10557 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10559 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10560 (genNotFloat): Added.
10561 (genUminusFloat): Added.
10563 * device/lib/z80/Makefile: Added floating pt stubs.
10565 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10567 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10569 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10571 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10573 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10575 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10577 * sdcc/support/regression/Makefile: Add port ds390.
10579 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10581 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10583 * sdcc/support/regression/ports/ds390/spec.mk: Added.
10585 * sdcc/support/regression/ports/ds390/support.c: Added.
10587 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10589 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10591 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10593 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10595 * device/include/malloc.h: Added z80 and gbz80 support.
10597 * device/lib/gbz80/heap.s: Added.
10599 * device/lib/z80/heap.s: Added.
10601 * device/lib/malloc.c: Added z80 and gbz80 support.
10603 * support/regression/tests/malloc.c (testMalloc): Added.
10605 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10607 * support/regression/tests/bug-478094.c: Added.
10609 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10611 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
10613 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10615 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10617 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10619 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10621 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10623 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10625 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10627 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
10629 * support/regression/tests/bug-477927.c: Added.
10631 * src/z80/peeph.def: Added minor rules.
10633 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10635 * src/z80/peeph.def: Added jump optimisation modification.
10637 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
10639 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10641 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
10643 * support/regression/tests/funptrs.c: Added.
10645 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
10647 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10649 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
10651 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10653 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10655 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10656 (movLeft2ResultLong): Created.
10658 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10659 (joinPushes): Added. Joins two char pushes into a word push.
10661 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
10663 * support/cpp2/Makefile.in (install): Added creation of dest dir.
10665 * support/makebin/Makefile (install): Added creation of dest dir.
10667 2001-10-24 Karl Bongers <karl AT turbobit.com>
10669 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10671 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
10673 * src/z80/ralloc.c: Turned off faulty pack for one use.
10675 * src/z80/peeph-gbz80.def: Removed redundent restart options.
10677 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10679 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
10681 * support/regression/Makefile: Improved clean
10683 * support/regression/ports/gbz80/spec.mk: Added clean
10685 * support/regression/ports/host/spec.mk: Added clean
10687 * support/regression/ports/z80/spec.mk: Added clean
10689 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10691 * support/regression/ports/mcs51/timeout.c: little improvements
10693 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
10695 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10697 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10699 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10701 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
10703 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10705 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10707 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
10708 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10710 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10712 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10714 * src/mcs51/main.c (_linkCmd): Added bin path to command.
10716 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10718 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10720 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10722 * support/regression/tests/longor.c: Added.
10724 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
10726 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10728 * as/mcs51/aslink.h: define PATH_MAX
10730 * as/mcs51/asm.h: define PATH_MAX
10732 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10734 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10736 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10738 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10740 * src/SDCCglobl.h: define PATH_MAX
10742 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10744 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10746 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
10748 * src/z80/gen.c (gencjneshort): Fixed
10750 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10752 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
10754 * support/regression/tests/bug-469671.c: Added.
10756 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10758 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
10760 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10762 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
10764 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
10766 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10768 * src/device/lib/_mulint.c : removed hint: nooverlay bug
10770 * src/device/lib/_mullong.c : removed hint: nooverlay bug
10772 * src/device/lib/_divuint.c : removed hint: nooverlay bug
10774 * src/device/lib/_divulong.c: removed hint: nooverlay bug
10776 * src/device/lib/_moduint.c : removed hint: nooverlay bug
10778 * src/device/lib/_modulong.c: removed hint: nooverlay bug
10780 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
10782 * 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.
10784 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
10786 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10788 2001-10-07 <johan AT FRIJA>
10790 * device/lib/gets.c (gets): fixed the return value.
10792 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
10793 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10795 * 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.
10797 * 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.
10799 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10801 * src/pic/gen.c: Removed Safe_strdup.
10803 * configure.in: Added option to enable libgc support.
10805 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10806 (bitVectUnion): Optimised.
10807 (bitVectIntersect): Optimised.
10808 (bitVectBitsInCommon): Optimised.
10809 (bitVectCplAnd): Optimised.
10811 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
10813 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10815 * src/SDCCmain.c: distinguish between assembler debug and plain options
10817 * src/avr/main.c: remove standard assembler options
10819 * src/ds390/main.c: remove standard assembler options
10821 * src/mcs51/main.c: remove standard assembler options
10823 * src/port.h: removed "PENDING" comment
10825 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10827 * src/device/lib/_mulint.c : new, with assember functions
10829 * src/device/lib/_mullong.c : new, with assember functions
10831 * src/device/lib/_divuint.c : with assember functions
10833 * src/device/lib/_divsint.c : with assember functions
10835 * src/device/lib/_divulong.c: with assember functions
10837 * src/device/lib/_divslong.c: with assember functions
10839 * src/device/lib/_moduint.c : with assember functions
10841 * src/device/lib/_modsint.c : with assember functions
10843 * src/device/lib/_modulong.c: with assember functions
10845 * src/device/lib/_modslong.c: with assember functions
10847 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
10849 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10851 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
10852 replaced _mululong.c and _mulslong.c by _mullong.c
10854 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10856 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10858 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10860 * src/SDCCglue.c: test, if win32api is available for MINGW
10862 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10864 * src/SDCCsymt.c: no more _modifier in printTypeChain()
10865 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10866 * support/regression/ports/gbz80/spec.mk: removed GENERIC
10867 * support/regression/ports/host/spec.mk: removed GENERIC
10868 * support/regression/ports/mcs51/spec.mk: removed GENERIC
10869 * support/regression/ports/z80/spec.mk: removed GENERIC
10871 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
10873 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10875 * support/regression/tests/bug-467035.c: Created.
10877 2001-10-01 <johan AT FRIJA>
10879 * src/SDCC.y: fixed bug #466586 part 1
10881 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
10883 * SDCCicode.c: z80 has no generic pointers
10884 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10886 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
10888 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10890 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
10892 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10894 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10896 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
10898 * configure.in: Fixed up so that ucsim is only configured once.
10900 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10902 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10903 (getPathDifference): As above.
10905 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
10907 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10909 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
10910 * .version: Updated to 2.3.1
10912 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10913 Added copyright header.
10915 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10916 (assemble): Added support for macro based assembler commands.
10917 (linkEdit): Added support for macro based linker commands.
10918 (preProcess): Changed the pre-processor to use macros.
10919 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10920 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10922 * device/lib/z80/crt0.s: Added module name for debugging.
10924 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
10926 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10928 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10930 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10932 * src/Makefile.in: Added SDCCmacro and SDCCutil
10934 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
10936 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10938 2001-09-16 <johan AT FRIJA>
10940 * 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.
10942 2001-09-15 <johan AT FRIJA>
10944 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10945 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10947 2001-09-11 <johan AT FRIJA>
10949 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10951 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
10953 * support/regression/tests/bug-460444.c: Added test case.
10955 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10956 (genCast): Added justification for all of the asserts.
10958 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
10960 * support/regression/support.c: _xdata replaced by xdata
10962 * support/regression/spec.mk: removed _generic
10964 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
10966 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10968 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10969 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10971 * src/z80/peeph.def: Added a rule to optimise shift then compare.
10973 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10975 * support/regression/tests/bug-460010.c: Added test case.
10977 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10979 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
10981 * support/regression/Makefile: inter-port-clean adjusted for mcs51
10983 * support/regression/testfwk.c: removed workaround for bug #436344
10985 * support/regression/tests/bp.c: use less memory with mcs51
10987 * support/regression/tests/bug-441448.c: use less memory
10989 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10991 * support/regression/collate-results.py: typo
10993 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
10995 * support/regression/tests/fetchoverlap.c: Added new test case.
10997 * support/regression/tests/bp.c: Added new test case.
10999 * support/regression/tests/bug-448984.c: Added new test case.
11001 * support/regression/tests/pow2shifts.c: Added new test case.
11003 * src/z80/gen.c: Turned off the noise it normally generates for the release.
11004 (genlshTwo): Fixed right shift for count > 8.
11006 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11008 2001-09-08 <johan AT FRIJA>
11010 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11012 2001-09-07 <johan AT FRIJA>
11014 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11016 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11018 2001-09-06 <johan AT FRIJA>
11020 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11021 * bernhard noted me at this: "() equals to (void)" (1.38)
11023 2001-09-05 <johan AT FRIJA>
11025 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11027 2001-09-04 <johan AT FRIJA>
11029 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11032 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
11034 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
11036 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
11038 * link/z80/aslink.h: Fixed path for PATH_MAX
11040 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
11042 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11044 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11046 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11048 * 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.
11050 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
11052 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11053 (genCmp): Fixed up genCmp for the GB with longs.
11055 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11057 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11059 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11061 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11063 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
11065 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
11067 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
11069 * 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.
11071 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11073 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
11075 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
11077 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11079 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11081 * sim/ucsim/configure: little improvement of Cygwin-detection
11082 * sim/ucsim/configure.in: little improvement of Cygwin-detection
11083 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11084 * support/regression/tests/bug-221100.c: small changes for mcs51
11085 * support/regression/tests/bug-221168.c: small changes for mcs51
11086 * support/regression/tests/bug-227710.c: small changes for mcs51
11087 * support/regression/tests/staticinit.c: small changes for mcs51
11088 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11089 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
11090 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601