1 2005-07-04 Raphael Neider <rneider AT web.de>
3 * src/pic/gen.c (popGet): changed assert to allow for
5 * (popGetAddr): changed signature to provide
6 an additional index, patched all call sites
7 * (genCmpEq): handle literal-like operands correctly
8 * (genAddrOf): added sanity checks on __code/__data pointers
9 * (genAssign): added handling of symbols from __code section
10 * (gencjne): do not generate code for comparisons whose result
11 is neither stored nor used, fixes bug #1171114
12 * (AccLsh, AccRsh): operate on operand instead of WREG
13 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
14 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
16 * rewrote complete shift-by-literal logic, commented unused
18 * (genConstPointerGet): get multiple bytes (if result size > 1),
19 fixed handling of non-immediate addresses
20 * (genPointerGet): handle CODE pointers like CONST pointers
21 * (genpic14Code): insert C-SRC lines as Cource-pCodes
22 * ({aop,op}_isLitLike): NEW, single place to decide whether an
23 operand is to be treated as a literal or not
24 * (mov2w,genPcall,genCmpEq),
25 src/pic/genarith.c: use aop_isLitLike() to decide between
26 literal/register contents
27 * (addSign): added missing offset
28 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
29 only emit comment in debug-mode,
30 use {aop,op}_isLitLike throughout the file
31 * src/pic/glue.c: fix initializers for pointers (work in progress)
32 * src/pic/pcode.c (get_op): honor index on _const symbols
33 * ({reset,dump}pCodeStatistics): NEW, estimate code size
34 * (dumppBlock): added pCode size estimation
35 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
36 check for IS_SYMOP before OP_SYMBOL'ing
37 * fixed indentation, compacted switch-statements
38 * (allocReg): find free register and allocate it instead of
39 allocating new registers all the time
40 * (deassignLRs): prevent POINTER_GET's from being assigned the same
41 registers as its operands (necessary only for multibyte GETs)
43 2005-07-01 Raphael Neider <rneider AT web.de>
45 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
46 debugging .asm-output macros FENTRY + FEXIT
47 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
49 * (emitpComment): NEW, printf to pCode
50 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
52 * (popGetAddr): NEW, variant of popGet to access an immediates
53 high(er) bytes instead of the n'th byte of memory they reference,
54 replaced popGet with popGetAddr where neccessary
55 * (genDataPointerGet): reactivated and fixed implementation
56 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
58 * (genDataPointerSet): fixed multibyte assignments
59 * (genpic14Code): fixed --i-code-in-asm handling
60 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
61 * (genPlus): fixed index-out-of-bounds error
62 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
63 * src/pic/ralloc.c: added debugging output macro FENTRY2
64 * (spillThis): fixed indentation, enbraced for-body for clarity
65 * (rematStr): commented out as now unused
66 * (regTypeNum): commented out special spill case (overwrites
68 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
70 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
72 * doc/sdccman.lyx: documented sfr16/sfr32,
73 added example for using storage class with function pointers
74 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
76 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
78 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
80 * device/lib/_ltoa.c: optimized codesize
81 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
82 but don't know how to suppress the double warning.
83 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
84 * support/Util/SDCCerr.c,
85 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
87 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
89 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
90 fixed old K&R prototypes
91 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
92 * device/lib/_gptrget.c,
93 * device/lib/_gptrgetc.c,
94 * device/lib/_gptrput.c: changed versions for new memory indicator values,
95 also new versions for small generic pointers and banked generic pointers
96 * src/port.h: added const_name
97 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
98 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
99 * src/SDCCcse.c (findPrevIc): check all associative operators
100 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
101 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
102 * src/SDCCmem.c: updated comments,
103 set far-space to 0 for pdata, results in optimized code
104 * src/SDCCmem.h: added macro CONST_NAME
105 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
106 moving the info into the highest bits, see also gptrget/gptrput
107 * src/src.dsp: added sdcc.ico to project files
108 * src/avr/gen.c (genCast): fixed bug 0x%d
109 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
110 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
111 relation between ptr_type and DCL_TYPE,
112 (genCast): fixed bug 0x%d
113 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
114 (CODE)" for const_name
115 * src/hc08/gen.c (genCast): fixed bug 0x%d
116 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
117 (hc08_port): added "CONST (CODE)" for const_name
118 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
119 (aopForRemat, adjustArithmeticResult): disconnected direct relation
120 between ptr_type and DCL_TYPE,
121 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
122 operand* and took AOP() inside function so sfr-ness can be checked,
123 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
125 (genFunction, genEndFunction): optimized stack setup,
126 (genMinus): optimized for literals with ending zeroes (in bytes),
127 (genCast): fixed bug 0x%d
128 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
129 (mcs51_port): added "CONST (CODE)" for const_name
130 * src/mcs51/peeph.def: made rule 226 more generic
131 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
132 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
133 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
134 * src/z80/main.c (z80_port): added NULL for const_name,
135 (gbz80_port): added NULL for const_name
136 * support/regression/tests/bug663539.c,
137 * support/regression/tests/sfr16.c: new tests
139 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
141 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
143 2005-06-24 Raphael Neider <rneider AT web.de>
145 * device/lib/pic16/libdev/pic18f[68][567]20.c:
147 * device/include/pic16/signal.h: added USBIF
150 2005-06-24 Raphael Neider <rneider AT web.de>
152 * device/lib/pic16/libdev/pic18f2455.c,
153 device/include/pic16/pic18f2455.h: NEW
154 * device/include/pic16/pic18fregs.h,
155 device/lib/pic16/pics.all,
156 src/pic16/device.c: added 18f2455
157 * device/lib/pic16/libdev/pic18f[68][567]20.c,
158 device/include/pic16/{pic18f[68][567].h,usart.h}:
159 replaced MULTIPLE_USARTS define with more relaible
160 compatibility sfrs (for USART access)
162 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
164 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
165 and the output asm file line is printed on two lines.
167 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
169 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
170 BGT, BLE, BHI, and BLS instructions
171 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
173 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
174 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
176 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
178 2005-06-15 Raphael Neider <rneider AT web.de>
180 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
181 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
182 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
183 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
184 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
186 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
188 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
189 Marcel Telka in bug #1215704
191 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
193 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
194 located in shared memory bank.
196 2005-05-31 Raphael Neider <rneider AT web.de>
198 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
199 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
200 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
202 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
204 * device/lib/_strncpy.c: fixed the fix
206 2005-05-26 Raphael Neider <rneider AT web.de>
208 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
209 initializers with \0, bug #1208187
210 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
211 intializers with \0, bug #1208187
213 2005-05-26 Raphael Neider <rneider AT web.de>
215 * src/pic16/glue.c (pic16_printIvalChar): fixed string
216 initializers with \0, bug #1208187
217 * src/pic16/main.c (_process_pragma): added sanity checks
218 for stack position and size, emit warnings when appropriate
220 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
222 * device/lib/_strncpy.c: fixed not filling with \0
224 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
226 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
228 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
231 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
233 2005-05-24 Raphael Neider <rneider AT web.de>
235 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
237 2005-05-24 Raphael Neider <rneider AT web.de>
239 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
240 TRISE definitions, closes bug #1162453
242 2005-05-22 Raphael Neider <rneider AT web.de>
244 * src/pic16/main.c (_process_pragma): check for missing
245 arguments to pragmas code and udata
246 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
247 consistency fixes to match other headers (thanks to Jim Paris)
248 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
250 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
252 * src/SDCCicode.c (isOperandEqual): fixed missing ;
254 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
256 * support/regression/tests/bug1198642.c: new test
257 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
258 * src/SDCCcse.c (findPrevIc): added comment, please have a look
259 * support/scripts/resource.h,
260 * support/scripts/resource.rc,
261 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
262 * support/scripts/sdcc.ico: added 32x32 icon
264 2005-05-18 Raphael Neider <rneider AT web.de>
266 * device/lib/pic16/libdev/pic18f*.c,
267 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
268 keywords to "__sfr" and "__at (X)"
269 * device/include/pic16/pic18fregs.h: added pic18f4520
270 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
271 #1203088 (MPLAB compatibility)
273 2005-05-17 Raphael Neider <rneider AT web.de>
275 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
276 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
277 * device/lib/pic16/pics.all: added new devices
278 * src/pic16/device.c: added support for pic18f4520
280 2005-05-16 Raphael Neider <rneider AT web.de>
281 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
282 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
283 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
284 convenience function for bit access
286 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
288 * device/lib/printf_large.c: fixed bug 1193299
289 * support/regression/tests/bug1057979.c: added test %3.3s
291 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
293 * device/include/mcs51/8051.h,
294 * device/include/mcs51/8052.h: made parseable with lint
295 * device/include/mcs51/lint.h: added include file for (sp)lint
296 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
297 * doc/cdbfileformat.lyx,
298 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
300 2005-05-14 Raphael Neider <rneider AT web.de>
302 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
303 * device/lib/pic16/libc/stdlib/itoa.c (new)
304 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
305 * device/lib/pic16/libio/Makefile: exclude subdir according to
306 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
307 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
308 * src/pic16/gen.c (genFunction): prevent annoying warning
309 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
311 * support/cpp2/cppmain.c (cpp_output_string): new
312 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
315 2005-05-13 Borut Razem <borut.razem AT siol.net>
317 * src/SDCCmain.c (linkEdit): fixed bug 1195202
319 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
321 * .version: changed to version 2.5.1; back to bleeding edge development
323 2005-05-11 Borut Razem <borut.razem AT siol.net>
325 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
326 generate PDF version 1.3 documents
328 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
330 * .version: changed to version 2.5.0
332 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
334 * doc/sdccman.lyx: updated weblinks, index and smaller updates
336 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
338 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
339 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
340 well as many smaller updates.
341 * .version: changed to version 2.5.0-pre1
343 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
345 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
347 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
349 * support/regression/tests/bug1185672.c: added
350 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
352 * src/mcs51/gen.c (genCall): added comments, made it look safer
353 * src/mcs51/gen.c (genEndFunction): simplified
355 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
357 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
359 2005-04-14 Borut Razem <borut.razem AT siol.net>
361 * fixed bug 1045046 - SIGSEGV with really simple code?:
362 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
363 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
365 2005-04-14 Borut Razem <borut.razem AT siol.net>
367 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
368 src/pic16/device.h: temporarily disabled experimental #inline pragma
371 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
373 * device/include/z80/stdio.h,
374 * device/include/z80/string.h: removed these highly incomplete files so
375 SDCC can use the default ones in device/include/
377 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
379 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
381 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
384 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
386 * device/include/malloc.h: removed redundant __reentrant prototypes
387 * device/lib/_mullong.c: added working xstack variant in asm (C version
388 doesn't pass regression tests)
389 * device/lib/bpx.c: used __data and made bpx char for mcs51
390 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
391 (createFunction): fixed bug with xstackPtr
392 * src/SDCCcse.c: corrected comments
393 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
394 (killDeadCode, eBBlockFromiCode): removed unused code
395 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
397 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
398 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
399 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
400 (genModOneByte): fixed warning in MSVC
401 * src/mcs51/main.c (): added comments
402 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
404 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
406 * src/SDCCmain.c (linkEdit): oops, changed one line too many
408 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
410 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
412 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
414 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
415 characters arrays of larger size than the declared one.
417 2005-04-10 Borut Razem <borut.razem AT siol.net>
419 * src/pic/gen.c (genInline),
420 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
421 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
422 (findNextInstruction), (findPrevInstruction),
423 (findInstructionUsingLabel),
424 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
425 * src/pic/pcode.c (findLabel): added missing '\n'
426 * src/src.dsp: added SDCCdwarf2.c to the project
428 2005-04-09 Borut Razem <borut.razem AT siol.net>
430 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
432 2005-04-08 Raphael Neider <rneider AT web.de>
434 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
435 into the chain after a given one) and mergeDefmapSymbols (combine
436 defmap entries for each symbol per pcode)
437 * (createDefmap): have defmap entries merged in the end
438 * (defmapReplaceSymRef): split defmap entries covering two accesses to
439 a symbol before replacing one access type's symbol, merge symbols in
440 the end (replacement symbol might already have an entry)
441 * (assignValnums): keep reference to written WREG intact
443 2005-04-08 Raphael Neider <rneider AT web.de>
445 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
448 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
450 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
453 2005-04-07 Raphael Neider <rneider AT web.de>
455 * device/include/pic16/usart.h: added compatibility defines for
456 devices with more than one USART
457 * device/include/pic16/pic18f[68][567]20.h: activated above defines
459 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
461 * device/lib/Makefile.in: updated for port specific include
463 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
465 * support/regression/ports/mcs51/spec.mk: added mcs51 include
467 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
469 * device/include/8051.h,
470 * device/include/8052.h,
471 * device/include/at89S8252.h,
472 * device/include/at89c55.h,
473 * device/include/at89x051.h,
474 * device/include/at89x51.h,
475 * device/include/at89x52.h,
476 * device/include/mcs51reg.h,
477 * device/include/reg51.h,
478 * device/include/reg764.h,
479 * device/include/regc515c.h,
480 * device/include/sab80515.h: (re)moved these 12 files
481 * device/include/mcs51/8051.h,
482 * device/include/mcs51/8052.h,
483 * device/include/mcs51/at89S8252.h,
484 * device/include/mcs51/at89c55.h,
485 * device/include/mcs51/at89x051.h,
486 * device/include/mcs51/at89x51.h,
487 * device/include/mcs51/at89x52.h,
488 * device/include/mcs51/mcs51reg.h,
489 * device/include/mcs51/reg51.h,
490 * device/include/mcs51/reg764.h,
491 * device/include/mcs51/regc515c.h,
492 * device/include/mcs51/sab80515.h: and added them here
494 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
496 * device/include/stdarg.h: changed SDCC specific keywords to double
498 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
500 * device/include/hc08/mc68hc908gp32.h,
501 * device/include/hc08/mc68hc908jb8.h,
502 * device/include/hc08/mc68hc908jkjl.h,
503 * device/include/hc08/mc68hc908qy.h: fixed comments
504 * device/include/mcs51/README: updated
505 * device/include/mcs51/c8051f120.h: added PINRSF
506 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
507 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
508 amidst code. Also inline is not supported.
510 2005-04-06 Raphael Neider <rneider AT web.de>
512 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
513 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
514 callers stack/frame pointers
516 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
518 * device/include/pic16/usart.h: added, missing in previous commit,
519 * device/include/pic16/adc.h: fixed typo,
520 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
522 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
524 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
525 uninitialized because a bug appears with gplink
526 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
527 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
528 complains for unrecognised option
530 2005-04-05 Raphael Neider <rneider AT web.de>
532 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
533 structs as well (using memcpy)
534 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
535 on ISRs (GOTO has no label)
536 * src/pic16/device.h: added OF_OPTIMIZE_DF
537 * src/pic16/main.c: added compiler switch --optimize-df to enable the
538 new data flow analysis/optimization
539 * src/pic16/pcode.c: added (prototypes for and implementation of)
540 dataflow analysis functions, fixed pCodeInstructions' inCond and
541 outCond values, made RCALL a branch instruction
542 * (pic16_unlinkpCode): keep C line if possible
543 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
544 C line moved if possible
545 * (pic16_getRegFrompCodeOp): NEW, improved version of...
546 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
547 to use new pic16_getRegFrompCodeOp (works for more SFRs)
548 * (pic16_BuildFlow): fixed skip instructions with label (did not start
550 * (pic16_getJumptabpCode): NEW, needed in...
551 * (LinkFlow): fixed handling of jumptables, calls and conditional
553 * (pic16_InsertCommentAfter): NEW
554 * (pic16_pCodeReplace): made verbose and flow preserving
555 * (AnalyzeFlow): added call to data flow analysis
556 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
557 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
558 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
560 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
562 * src/SDCCast.c (decorateType): fixed bug #1105626
564 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
566 * device/include/asm/pic16/features.h,
568 * device/include/pic16/adc.h,
569 * device/include/pic16/delay.h,
570 * device/include/pic16/i2c.h,
571 * device/include/pic16/malloc.h,
572 * device/include/pic16/stdio.h,
573 * device/include/pic16/stdlib.h,
574 * device/include/pic16/string.h,
575 * device/lib/pic16/libc/stdio/printf_tiny.c,
576 * device/lib/pic16/libc/stdio/printf_small.c,
577 * device/lib/pic16/libc/stdio/strmgpsim.c,
578 * device/lib/pic16/libc/stdio/strmmssp.c,
579 * device/lib/pic16/libc/stdio/strmusart.c,
580 * device/lib/pic16/libc/stdio/vfprintf.c,
581 * device/lib/pic16/libc/stdlib/ltoa.c,
582 * device/lib/pic16/libc/stdlib/putchar.c,
583 * device/lib/pic16/libc/stdlib/x_ftoa.c,
584 * device/lib/pic16/libc/stdlib/memchrpgm.c,
585 * device/lib/pic16/libc/stdlib/memchrram.c,
586 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
587 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
588 * device/lib/pic16/libio/adc/adcbusy.c,
589 * device/lib/pic16/libio/adc/adcread.c,
590 * device/lib/pic16/libio/adc/adcsetch.c,
591 * device/lib/pic16/libio/usart/ubaud.c,
592 * device/lib/pic16/libio/usart/ubusy.c,
593 * device/lib/pic16/libio/usart/udrdy.c,
594 * device/lib/pic16/libio/usart/uopen.c,
595 * device/lib/pic16/libio/usart/uputc.c,
596 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
597 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
598 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
599 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
600 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
601 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
602 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
603 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
604 specific keywords to double underlined form,
605 * device/lib/pic16/libc/Makefile.rules,
606 * device/lib/pic16/libsdcc/Makefile.rules,
607 * device/lib/pic16/libm/Makefile,
608 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
609 to compile with C standard set in Makefile.common
610 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
611 rand.c and crc.c in compilation process,
612 * device/lib/pic16/libsdcc/int/divuint.c,
613 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
614 `c' from signed to unsigned,
615 * device/lib/pic16/startup/crt0.c,
616 * device/lib/pic16/startup/crt0i.c,
617 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
618 keywords to double underlined form, bug fixes in _do_cinit function
619 which prevented the correct initialization of the .idata segment,
620 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
621 core to enter a infinite loop
622 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
624 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
626 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
628 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
630 * device/include/Makefile.in: add support for hc08 subdirectory
631 * device/include/hc08/: new subdirectory
632 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
633 Lucas Loizaga, thanks!
634 * device/include/hc08/mc68hc908qy.h,
635 * device/include/hc08/mc68hc908gp32.h,
636 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
637 their own directory. Changed internal macro names to use the compiler
638 reserved namespace. Changed SDCC specific keywords to double
640 * device/include/math.h,
641 * device/include/malloc.h,
642 * device/include/stdarg.h,
643 * device/include/stdbool.h
644 * device/include/string.h,
645 * device/include/tinibios.h,
646 * device/include/ds400rom.h,
647 * device/include/8051.h,
648 * device/include/8052.h,
649 * device/include/80c51xa.h,
650 * device/include/at89c55.h,
651 * device/include/at89S8252.h,
652 * device/include/at89x51.h,
653 * device/include/at89x52.h,
654 * device/include/ds80c390.h,
655 * device/include/reg764.h,
656 * device/include/regc515c.h,
657 * device/include/sab80515.h,
658 * device/include/mcs51/c8051f000.h,
659 * device/include/mcs51/c8051f018.h,
660 * device/include/mcs51/c8051f020.h,
661 * device/include/mcs51/c8051f040.h,
662 * device/include/mcs51/c8051f060.h,
663 * device/include/mcs51/c8051f120.h,
664 * device/include/mcs51/c8051f300.h,
665 * device/include/mcs51/c8051f310.h,
666 * device/include/mcs51/c8051f320.h,
667 * device/include/mcs51/c8051f330.h,
668 * device/include/mcs51/c8051f350.h,
669 * device/include/z180.h: Changed SDCC specific keywords to double
672 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
674 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
676 * (pic16_assignConfigWordValue): disable testing of configuration
677 register value with config mask,
678 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
679 function with port->fun_prefix,
680 * (genFunction): when generating a naked interrupt function never
681 create an absolute segment placed in interrupt vector address, place
682 the actual interrupt function at IVA instead, when an interrupt
683 function is generated with unspecified interrupt then do not create
684 the absolute section,
685 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
686 code for generating a call to generic pointer get/put function with
687 a call to function pic16_callGenericPointer(),
688 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
689 the call to the generic pointer get/put functions with prefixing the
690 function name with port->fun_prefix,
691 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
692 * src/pic16/main.c (_process_pragma): prefix function with
694 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
695 calling assembler, old 18Fxxxx macro is deprecated,
696 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
697 PC_ASMDIR in while condition,
698 * (findInstruction): add PC_ASMDIR in while condition,
699 * (buildCallTree): prefix main with port->fun_prefix,
700 * (pic16_pCode2str): fixed bug that didn't emit the memory access
701 identifier for variable with banked access in instructions BTFSS,
703 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
704 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
705 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
706 perform optimization when enviroment variable NO_REG_OPT is set,
707 * (insideLRBlock): NEW, return 1 if register is inside an
709 * (RemoveRegFromLRBlock): remove a register that is completely
710 eliminated by register optimization, but it is still left in local
711 register store/restore in/from stack block,
712 * (Remove2pcodes): after removing register, check to see if it
713 should be removed from local register store/restore in/from stack
715 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
718 * device/include/pic16/adc.h: minor prototype modifications and
720 * device/include/pic16/malloc.h: added GPL notice various
722 * device/include/pic16/stdint.h: NEW, standard header for ints
723 * device/include/pic16/delay.h: NEW, header for delay functions,
724 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
726 * device/include/pic16/signal.h: NEW, header providing helper macros
727 for implementing signal handlers,
728 * device/include/pic16/stdio.h: added prototypes for functions,
729 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
730 prototypes for stdin and stdout, added macro PUTCHAR to
731 automatically implement putchar function prototype,
732 * device/include/pic16/usart.h: modified and updated USART library,
733 * device/lib/pic16/libio/adc/,
734 * device/lib/pic16/libio/i2c: some modifications to improve library
736 * device/lib/pic16/libc/stdio/: modifications for the new printf*
738 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
739 family of functions and other sources,
740 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
741 of the PIC18Fxx[28] devices,
742 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
743 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
744 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
745 _do_cinit function, because the previous failed when local variables
746 where not placed in the same memory bank,
747 * device/lib/pic16/libsdcc/char/: various modifications to improve
749 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
750 information on the new functions of the c library and more...
752 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
754 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
756 2005-03-26 Raphael Neider <rneider AT web.de>
758 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
759 if condition == CARRY)
760 * (genCmp): adapted to new genSkipc semantics
761 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
762 on rIfx (genCmp was broken)
764 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
766 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
767 * src/z80/main.c (_keywords[]),
768 * src/SDCCglobal.h (struct options),
770 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
771 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
772 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
773 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
774 always available in leading double underscore form. The C99 support is
775 mostly missing, but it's a start.
776 * support/regression/tests/bug-227710.c: fixed nonconforming use of
777 reserved identifier "__data".
779 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
781 * src/mcs51/peeph.def: fixed bug 1170013
783 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
785 * device/include/mcs51reg.h: fixed bug 842007
787 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
789 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
792 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
794 * src/port.h (struct PORT),
795 * src/avr/ralloc.c (avr_assignRegisters),
797 * src/ds390/ralloc.c (ds390_assignRegisters),
799 * src/hc08/ralloc.c (hc08_assignRegisters),
801 * src/mcs51/ralloc.c (mcs51_assignRegisters),
803 * src/pic/ralloc.c (pic14_assignRegisters),
805 * src/pic16/ralloc.c (pic16_assignRegisters),
807 * src/xa51/ralloc.c (xa51_assignRegisters),
809 * src/z80/ralloc.c (z80_assignRegisters),
811 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
812 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
814 * src/SDCCdflow.c (computeDataFlow),
816 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
818 * src/SDCCcflow.c (*),
820 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
821 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
822 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
823 immedDom() returning wrong block; probably fixes bug #1160833)
825 2005-03-20 Borut Razem <borut.razem AT siol.net>
827 * support/scripts/inc2h.pl: WIN32 port
829 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
831 * device/lib/makefile.in: added abs.c and labs.c
833 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
835 * device/include/stdint.h: added
836 * device/lib/abs.c: added
837 * device/lib/labs.c: added
838 * device/include/stdlib.h: added abs() and labs() prototypes
839 * device/lib/libsdcc.lib: added abs and labs
840 * device/include/float.h,
841 * device/lib/_fsmul.c,
842 * device/lib/printf_fast.c,
843 * device/lib/printf_tiny.c: updated comments
845 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
847 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
850 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
852 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
853 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
855 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
857 * device/lib/printf_large.c: removed inline assembly for portability and
858 readability. Use printf_fast if speed or size are more important.
859 * src/pic16/gen.c: removed conditions around use of DEBUGpc
860 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
862 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
864 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
865 prevent compiler warning
867 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
869 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
870 moved to level 0 and declared as static. Also they are explicit
871 placed in access bank. This was necessery because some times they
872 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
873 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
874 optimizations. Currently only compare to unsigned char is implemented,
875 * src/pic16/gen.c: added fReturnIdx array,
876 * (struct resolvedIfx) is moved to gen.h and made public,
877 * (struct _G): added sregsAlloc and sregsAllocSet fields,
878 * (aopForSym): added an optimization to directly store in stack of
879 the operand of a SEND iCode,
880 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
881 but as registers instead (AOP_REG) using the fReturnIdx array,
882 * (pic16_freeAsmop): remove the freed register from the
884 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
886 * (pic16_popGetTempRegCond): changed function prototype, now
887 function takes also a bitVector argument v which holds the current
888 set of registers that are allocated for stack access by aopForSym,
889 registers allocated in aopForSym for accessing stack symbols are not
890 any more part of the functions usedRegs field,
891 * (genCall): some times aopOp is called for a stack variable to be
892 send, aopForSym might perform the push, if this is true make sure
893 that genCall doesn't push the variable twice by testing _G.resDirect,
894 * (genFunction): changed testing for unspecified interrupt number
895 from 256 to INTNO_UNSPEC,
896 * modified selection scheme of frame pointer generation. Previously
897 if function did use local registers a frame pointer was generated,
898 now a frame pointer is generated only if function has arguments
899 (that need PLUSW2 register access), or has stack arguments, or the
900 compiler is not instructed to omit the frame pointer,
901 * (genEndFunction): before restoring local registers that were saved
902 in the function preamble, also restore the registers that *might*
903 have been allocated for stack access,
904 * (genRet): removed some old comments,
905 * (genCmp, the active (RN's) version): added a call to the
906 pic16_genCmp_special function to perform the compare with a more
907 robust and optimized way,
908 * (genInline): a feature has been added in inline code generation,
909 which allows a wildcard variable substitution when writing inline
910 assembly. Code is incomplete and experimental therefore undocumented,
911 * (genCast): changed order of aopOp for result and right to allow
912 aopForSym to directly load the result if possible,
913 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
914 perform an optimized compare on some selected special occasions,
915 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
916 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
917 generate an IVT any more,
918 * src/pic16/main.c (pic16_optionsTable): added command line option
920 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
921 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
923 * src/pic16/NOTES: Raphael Neider added in list of active developers
924 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
925 jumptable_end to prevent bug #,
926 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
927 inCond and outCond fields,
928 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
929 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
930 turn off register spilling,
931 * (packRegsForOneUse): synced with other ports' versions although it
932 is not used currently,
933 * (pic16_packRegisters): added an optimization while reading
934 structure bitfields, some registers may be saved (malloc code is
935 decreased by 80 bytes)
937 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
939 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
940 left is a bitfield, if yes, then don't optimize assignment. Perhaps
941 this can be optimized more?
943 2005-03-10 Raphael Neider <rneider AT web.de>
945 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
946 genNearPointerGet): (hopefully) fixed access to bitfields via
947 pointers (p->bitN = x; and x = p->bitN; failed)
949 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
951 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
953 2005-03-09 Raphael Neider <rneider AT web.de>
955 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
957 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
959 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
960 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
961 (regTypeNum): set REG_BIT type if necessary
962 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
963 * support/regression/tests/critical.c: check bug 1144613
965 2005-03-02 Raphael Neider <rneider AT web.de>
967 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
969 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
971 * src/avr/ralloc.c (serialRegAssign),
972 * src/ds390/ralloc.c (serialRegAssign),
973 * src/hc08/ralloc.c (serialRegAssign),
974 * src/mcs51/ralloc.c (serialRegAssign),
975 * src/pic/ralloc.c (serialRegAssign),
976 * src/pic16/ralloc.c (serialRegAssign),
977 * src/xa51/ralloc.c (serialRegAssign),
978 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
980 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
982 * src/SDCCast.c (decorateType): fixed bug 1124787
984 2005-02-20 Hubert Sack <sack AT digiplan.de>
985 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
987 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
990 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
992 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
993 to keep the correct label reference count when adding/removing references
994 to labels. A peephole file using this is appended to patch #1144962.
996 2005-02-14 Raphael Neider <rneider AT web.de>
998 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
999 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1000 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1001 retrievals of result operand's value on assignment
1003 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1005 * device/include/pic16/string.h: modified prototype for memccpy()
1006 to memccpy(void *, void *, char, size_t)
1007 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1008 check whether to omit frame pointer or not,
1009 * (genInline): convert all occurences of "\n" to LF in inline
1010 assembler blocks, this helps formatting the inline text,
1011 * (pic16_loadFSR0): modified prototype,
1012 * (genNearPointerGet, genNearPointerSet): reorganization of code,
1013 removed some 8051 legacy code,
1014 * (genPackBits): enabled handling bitfields exceeding one byte in size,
1015 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1016 before allocating temporary registers in functions,
1018 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1020 * support/regression/tests/bitvars.c: corrected the "fix"
1022 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1024 * support/regression/tests/bitvars.c,
1025 * support/regression/tests/bitwise.c,
1026 * support/regression/tests/rotate.c: "fixed" problems on Alpha
1028 2005-02-10 Raphael Neider <rneider AT web.de>
1030 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1031 different size for Alpha
1032 * src/pic16/gen.c (genCmpEq) : improved compare with 0
1034 2005-02-09 Raphael Neider <rneider AT web.de>
1036 * src/SDCC.lex(doPragma) : save and restore warning options as well
1037 (also added new stack plus clone- and copyAndFreeSDCCERRG())
1038 * have #pragma less_pedantic set the errorlevel to WARNING
1040 * (cloneOptimize) : fixed wrong malloc's size
1041 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1042 facilitate correct handling of #pragma (save|restore)
1044 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1046 * src/mcs51/gen.c: removed non-standard C nameless struct/union
1048 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1050 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1052 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1054 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1056 2005-02-02 Raphael Neider <rneider AT web.de>
1058 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1059 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1060 * (pic16_storeForReturn): fixed to allow returning function pointers
1061 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1062 * device/include/pic16/{stddef.h,stdbool.h}: added
1064 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1066 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1068 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1070 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1071 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1072 appeared to be required
1074 2005-01-31 Borut Razem <borut.razem AT siol.net>
1076 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1077 include/mcs51 and include/z80 directories to the package
1079 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1081 * src/hc08/gen.c (genFunction): fixed bug #1112752
1083 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1085 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1087 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1089 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1091 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1093 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1095 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1097 * device/include/c8051fxxx.h: removed these 6 files
1098 * device/include/mcs51/c8051fxxx.h: added these 11 new files
1100 2005-01-26 Raphael Neider <rneider AT web.de>
1102 * src/pic16/gen.c (genAssign): fixed assignment from longs
1103 in codespace (were cut to three bytes)
1104 * (genDummyRead): implemented (except for CODESPACE...),
1106 * src/pic16/glue.c (emitStatistics): beautified
1107 * device/lib/pic16/libm/Makefile: added include path
1109 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1111 * src/z80/gen.c (aopPut): fixed bug #1103902
1113 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1115 * device/lib/expf.c: fixed bug #1095792
1117 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1119 * device/lib/pic16/libm: added Math library sources
1121 2005-01-24 Raphael Neider <rneider AT web.de>
1123 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1124 to enable upcast to pCodeOpReg2 (there is no type tag to
1125 differenciate the two and pic16_popGet2p cast into PCOR2)
1126 * src/pic16/main.c (_process_pragma): fixed another malloc bug
1127 (sizeof(sectNames) changed to sizeof(sectName))
1128 Both patches fix segfaults under MinGW.
1130 2005-01-23 Raphael Neider <rneider AT web.de>
1132 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1133 Safe_[mc]?alloc()'ed variables
1134 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1135 of (byte sized) temporaries (assign them to WREG for now)
1136 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1137 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1138 this might fix SIGSEGVs on MinGW...
1139 * src/SDCCopt.c (killDeadCode): restored original behaviour
1140 (volatile operands might get thrown away though)
1142 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1144 * src/pic16/gen.c: fixed bug #1106975,
1145 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
1146 pointer update, INTCON is saved, global interrupts are disabled and
1147 restored after updateing TOS.
1148 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
1149 * added function attribute 'shadowregs' to take advantage of shadow
1151 * added function attribute 'wparam' as an alternative to the wparam
1153 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
1154 user declares a non-ISR function as 'shadowregs',
1155 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
1157 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
1159 * .version: bumped version number to 2.4.8
1160 * device/lib/pic16/pics.all: list of PIC18F devices supported by
1162 * device/lib/pic16/libio/i2c/: I2C module support library,
1163 * device/include/pic16/i2c.h: I2C support library header,
1164 * device/lib/pic16/libc/stdio/: standard IO support sources,
1165 * (printf_small.c): printf_small() source, supports float print,
1166 * (printf_tiny.c): printf_tiny() source, does not support floats,
1167 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
1168 enable global optimizations for entire library source, other
1169 Makefiles in the source tree are also modified to reflect this,
1170 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
1172 * doc/sdccman.lyx: updated to reflect new changes,
1173 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
1174 sym->onStack if-case,
1175 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
1176 sbit, idata, _idata, xdata, _xdata,
1177 * added pragma library, to link an external library, (see doc),
1178 * removed command line options, --pomit-config-words, --pomit-ivt,
1179 --pleave-reset-vector,
1180 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
1181 when calling assembler to reflect memory model used, also define
1182 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
1183 reflect stack model used,
1184 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
1185 on stack return NULL,
1187 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1189 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
1190 of the operands is volatile. Fixes #1020220
1192 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1194 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
1195 * (OptimizeRegUsage): make sure that there is really no other flow where
1196 the first pCode is used
1198 2005-01-22 Raphael Neider <rneider AT web.de>
1200 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
1201 to fix #1106967 (pCode->seq are not set up correctly)
1203 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1205 * src/SDCCglue.c (glue): make sure code area is declared before the
1206 static initialization area.
1208 2005-01-21 Raphael Neider <rneider AT web.de>
1210 * device/lib/Makefile.in: fixed test for pic16 install dir
1211 * device/lib/pic16/*/Makefile*: modified compile flags to enable
1213 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
1214 added --optimize-goto compiler switch and pragma wparam documentation
1215 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
1216 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
1217 and PRODH closing bug #1071770 (peephole optimizer)
1219 2005-01-19 Raphael Neider <rneider AT web.de>
1221 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
1222 cmdLine buffers (used when calling sdcpp...) are large enough
1223 (MAX_PATH=256 truncates arguments leading to system halts when
1225 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
1226 * (genUminus): rewritten to for efficiency
1227 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
1228 used uninitialized in some cases)
1229 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
1230 copy the third byte from the int -- now assumes 0x80 (data memory)
1231 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
1232 operands (genAddLit expects the iCode's operands to swapped as
1233 well), fixed leftover bytes (crashed for short left operands)
1234 * (pic16_genMinusDec): performance improvements, removed false
1236 * (pic16_genMinus): fixed to cope with differently sized operands
1237 * src/pic16/glue.c (pic16_glue): added new banksel optimization
1239 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
1240 * src/pic16/graph.[ch]: implementation of directed graphs, used by
1241 new banksel optimization
1242 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
1243 analysis for temporary registers (segfaults...)
1244 * src/pic16/peeph.def: added rule
1246 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
1248 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
1249 which converts a float number to its ASCII representation
1250 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
1251 functions to convert the fractional and integer part of a float to ASCII,
1252 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
1253 realloc.c): added _MALLOC_SPEC to explicit place variables in data
1255 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
1257 * device/include/pic16/adc.h: added GPL info,
1258 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
1259 a pCodeOp as tested operand,
1260 * (genNearPointerGet): optimized bit testing, does not use
1261 intermediate register for bit value, test directly instead with
1262 BTFSS, BTFSC, works only for single bits,
1263 * (genpic16Code): dump the name of the iCode in the asm,
1264 * src/pic16/ralloc.c (decodeOp): removed static declaration and
1265 renamed to pic16_decodeOp,
1266 * (serialRegAssign): do not allocate a temporary register for iCode
1267 sequences that test a single bit for 1/0
1269 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
1271 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
1272 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
1273 access stack and frame pointers. They are initially assigned to
1274 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
1275 accessing SFRs. Updated all occurences of modification of stack or
1276 frame pointer in gen.c and pcode.c,
1277 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
1278 assigning of a literal value to pointers,
1279 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
1280 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
1283 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1285 * doc/sdccman.lyx: update documentation about stack pragma, added
1286 some info for stack memory models
1288 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1290 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
1292 2005-01-08 Raphael Neider <rneider AT web.de>
1294 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
1295 udata sections to fix bug #1097823
1297 2005-01-05 Raphael Neider <rneider AT web.de>
1299 * src/pic16/gen.c (genGenericShift): added handling of differently
1300 sized left operand and result
1302 2005-01-04 Raphael Neider <rneider AT web.de>
1304 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
1305 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
1306 to hold the condition bit)
1307 * added new version of genCmp (old code available via #define)
1308 * added new version of genShiftLeft/genShiftRight in a generic
1309 way, now supports shifting by negative values
1310 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
1311 shiftCount (expected by genGenericShift)
1312 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
1313 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
1315 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
1316 is an invalid literal too...)
1318 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
1320 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
1321 from Raphael Neider,
1322 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
1323 for 8-bit literals. This fixes some literal operands which are sign
1324 extended to 16-bits ints when instruction needs only 8-bits.
1326 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
1328 * device/lib/logf.c: added mcs51 assembly version
1329 * device/lib/expf.c: added mcs51 assembly version
1330 * device/lib/_logexpf.c: new shared asm code for expf and logf
1331 * device/include/math.h: add defines for assembly math library
1332 * device/lib/Makefile.in: build new _logexpf.c
1333 * device/lib/libfloat.lib: use new _logexpf.c
1335 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1338 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
1339 device types which have less than 0x7f registers.
1341 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1343 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
1345 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1347 * device/lib/printf_fast.c: only build on supported arch.
1348 * device/lib/printf_tiny.c: only build on supported arch.
1349 * device/lib/printf_fast_f.c: only build if asm float lib
1350 * device/lib/_fsget1arg.c: only build if asm float lib
1351 * device/lib/_fsget2args.c: only build if asm float lib
1352 * device/lib/_fsnormalize.c: only build if asm float lib
1353 * device/lib/_fsreturnval.c: only build if asm float lib
1354 * device/lib/_fsrshift.c: only build if asm float lib
1355 * device/lib/_fsswapargs.c: only build if asm float lib
1356 * device/include/stdio.h: don't provide print_fast,
1357 print_fast_f, print_tiny prototypes if --xstack used
1359 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
1361 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
1362 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
1365 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1367 * device/lib/printf_fast_f.c: same as printf_fast, but
1368 with floating point enabled
1369 * device/lib/printf_fast.c: minor tweaks
1370 * device/include/stdio.h: add printf_fast_f
1372 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1374 * src/SDCCmain.c: make --float-reent default for mcs51
1375 * device/lib/_fsadd.c: added mcs51 assembly version
1376 * device/lib/_fssub.c: added mcs51 assembly version
1377 * device/lib/_fsmul.c: added mcs51 assembly version
1378 * device/lib/_fsdiv.c: added mcs51 assembly version
1379 * device/lib/_fseq.c: added mcs51 assembly version
1380 * device/lib/_fsneq.c: added mcs51 assembly version
1381 * device/lib/_fsgt.c: added mcs51 assembly version
1382 * device/lib/_fslt.c: added mcs51 assembly version
1383 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
1384 * device/lib/Makefile.in: add _fscmp to build
1385 * device/lib/libfloat.lib: add _fscmp to build
1387 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1389 * device/lib/_fs2slong.c: added mcs51 assembly version
1390 * device/lib/_fs2sint.c: added mcs51 assembly version
1391 * device/lib/_fs2schar.c: added mcs51 assembly version
1392 * device/lib/_fs2ulong.c: added mcs51 assembly version
1393 * device/lib/_fs2uint.c: added mcs51 assembly version
1394 * device/lib/_fs2uchar.c: added mcs51 assembly version
1395 * device/lib/_slong2fs.c: added mcs51 assembly version
1396 * device/lib/_sint2fs.c: added mcs51 assembly version
1397 * device/lib/_schar2fs.c: added mcs51 assembly version
1398 * device/lib/_ulong2fs.c: added mcs51 assembly version
1399 * device/lib/_uint2fs.c: added mcs51 assembly version
1400 * device/lib/_uchar2fs.c: added mcs51 assembly version
1401 * device/include/float.h: added #define to select asm vs c
1403 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
1405 * device/lib/printf_fast.c: improvements to float output
1406 * device/include/float.h: add defines for assembly float library
1407 * device/lib/_fsget1arg.c: receive 1 float arg
1408 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
1409 * device/lib/_fsnormalize.c: normalize a float
1410 * device/lib/_fsreturnval.c: return float, various helper routines
1411 * device/lib/_fsrshift.c: right shift a float's mantissa
1412 * device/lib/_fsswapargs.c: swap 2 floats
1413 * device/lib/Makefile.in: build these 6 new files for mcs51
1414 * device/lib/libfloat.lib: add these 6 files to the library
1416 2004-12-26 Borut Razem <borut.razem AT siol.net>
1418 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
1421 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
1423 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
1424 and fully reentrant and register bank neutral.
1425 * device/lib/printf_fast.c: added float (not enabled by default),
1426 added compact/slower integer (also not enabled by default),
1427 improved size/speed of fast integer code, other minor changes
1428 * device/include/stdio.h, device/lib/Makefile.in,
1429 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
1431 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
1433 * src/pic16/pcode.c: declaring variables other than at the start of a
1434 block is not supported in C by VC6.
1436 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
1438 * applied a previous patch from Raphael Neider that wasn't included
1439 in the previous commits, which fixes infinite loops within jumptable
1441 * made some fixes that previous patches introduced
1443 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
1445 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
1446 that fixes an issue with AOP_PCODE asmop's offset,
1447 * (pic16_popCopyReg): update instance field too,
1448 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
1449 function of pic port,
1450 * (genCmp, genAnd, genAssign),
1451 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
1453 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
1455 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
1456 variables initial values to idata section,
1457 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
1458 variables in some functions. This utilizes parmBytes field of iCode
1459 structure to hold the offset of the variable in stack. (might be
1460 able to use the stack field too?)
1461 * applied patch from Raphael Neider # ### , # ###
1462 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
1463 variable initial values in idata section,
1464 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
1465 for static variables with initial value
1466 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
1467 applied fix in while loop from Raphael Neider.
1469 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
1471 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
1472 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
1473 * src/ds390/ralloc.c (serialRegAssign): spill bits
1474 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
1475 * support/Util/SDCCerr.c,
1476 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
1477 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
1478 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
1480 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
1482 * device/include/sdcc-lib.h: inserted LGPL, added includes
1483 asm/ds390/features.h and asm/mcs51/features.h
1484 * device/include/asm/default/features.h,
1485 * device/include/asm/gbz80/features.h,
1486 * device/include/asm/z80/features.h: added empty _AUTOMEM
1488 * device/include/asm/ds390/features.h,
1489 * device/include/asm/mcs51/features.h: added files with defines for
1490 _AUTOMEM and _STATMEM indicating automatic and static storage class
1491 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
1492 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
1493 * src/SDCCicode.c (geniCodeCast),
1494 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
1495 * src/SDCCloop.c (loopInduction): removed unused variable lr
1496 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
1497 to convertToFcall to include char modulo (RFE 1065037), added check
1498 if left operand is unsigned and use abs of literal value
1499 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
1500 as it doesn't work after conversion from peephole.def to peephole.rul
1501 * src/mcs51/gen.c (toBoolean): added check for size,
1502 (genModOneByte): optimized code for signed char modulo a literal
1503 power of 2 (thanks to Hubert Sack),
1504 (genRRC): removed unnecessary "clr c",
1505 (genRLC): replaced "add a,acc" with cheaper "rlc a"
1506 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
1508 swapped rules 256.c and 256.d,
1509 extended 256.d by using new multiple checks (thanks Erik),
1510 added rules 256.e and 256.f,
1511 updated rule 261.a and 261.b to new generated code
1512 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
1514 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1516 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
1517 induction related bugs, including first part of bug #1074377
1519 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
1521 * applied patch from bug-report #1076292,
1522 * applied patches for genAnd and Goto-optimizations for Raphael
1524 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
1525 dump a less iCode information,
1526 * src/pic16/device.h (pic16_options_t): added field debgen,
1527 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
1528 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
1529 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
1531 * (various functions): added macros FENTRY and FENTRY2 to functions,
1532 to emit function prologue,
1533 * (various functions): fixed indentation,
1534 * (genNearPointerGet): fixed loading of FSR0,
1535 * (genPackBits): applied patch from Raphael Neider to fix updating
1536 of FSR0 and touching only the modified bits,
1537 * src/pic16/genarith.c (various functions): added macros FENTRY to
1538 emit function prologue in comments,
1539 * src/pic16/pcode.h: added functions debugf2, debugf3,
1540 * src/pic16/ralloc.c: partial fix for packForPush caused
1543 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1545 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
1546 <stsp AT users.sourceforge.net> with reversed byte order
1547 * support/regression/tests/rotate.c: added (ds390 skips some tests)
1549 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1551 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
1553 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
1554 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
1556 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1558 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
1560 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1562 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
1564 (setFromConditionArgs): friendly operand parser for peephole rules,
1565 (operandBaseName, operandsNotRelated): new peephole condition
1566 "operandsNotRelated" -- similar to "operandsNotSame", but takes
1567 architecture specific register naming into account, handles n-way
1568 comparisons, and supports quoted literals
1569 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
1571 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1573 * src/mcs51/peeph.def: fixed bug #1076940
1575 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1577 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
1579 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1581 Adding support for replacing ljmps with sjmps in jumptables
1582 generated for switch statements. For now you need to set the
1583 environment variable SDCC_SJMP_JUMPTABLE to enable this.
1584 Now 4 algorithms for mcs51 jumptable generation are used:
1585 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
1586 addresses loaded pc-relative for up to 112 cases and stack-pushing
1587 target addresses loaded with offset from dptr for up to 256 cases.
1589 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
1590 * src/mcs51/main.c: adapted constants for switch table generation
1591 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
1593 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
1595 * device/lib/printf_large.c (_print_format): fixed bug 1073386
1596 * support/regression/tests/bug1057979.c: added test for bug 1073386
1598 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1600 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
1603 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1605 * src/pic16/device.h,
1606 * src/pic16/genarith.c,
1609 * src/pic16/pcode.c: applied patches #1068154 and #1070213
1611 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
1613 Large cummulative patch for pic16 port.
1614 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
1615 to call when a stack overflow occurs,
1616 * (malloc.h): added CVS Id tag,
1617 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
1619 * added libc directory. The current version of LibC contains string
1620 functions, ctype functions and macros and some functions of the
1621 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
1622 be extensively tested in the future. Standard disclaimer here.
1623 Library is not automatically build yet. But one can build it by
1624 invoking 'make' inside the libc directory.
1625 * added ADC library under libio. Preliminary version yet.
1627 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
1628 * src/pic16/gen.c (aopForRemat): asmop size is filled by
1629 aopForRemat() now and not by pic16_aopOp(),
1630 * (pic16_popGetTempReg): removed warning messgae when allocating
1631 temporary registers, its a buggy feature and will be removed,
1632 * (pic16_popGet): set register instance field in AOP_CRY,
1633 * (pic16_outBitC): fixed for results in size greater than 1,
1634 * (genUminusFloat): fixed for pic16, ported code from mcs51,
1635 * (pic16_storeForReturn): optimized return of 0,
1636 * (genCmp): experimental code for new genCmp which uses PIC18's
1637 special compare&skip instructions. Initial tests fail some times
1638 with variables grater than 1 byte in size, so new code is disabled,
1639 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
1641 * (genCast): began a fix to optimize the casting of a bit to another
1642 bit, now assigning a bitfield to another bitfield will fail, sorry,
1643 * src/pic16/main.c: disabled the use of lr-support feature,
1644 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
1645 * added some function prototypes, added function _debugf prototype,
1646 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
1647 bits with offset (case PO_GPR_BIT),
1648 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
1650 * (isBankInstruction): modified to return 0 for no banking instruction,
1651 and 1 for banking instruction,
1652 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
1653 caused stop processing pCodes after a inline assembly block,
1654 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
1655 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
1656 registers when it shouldn't,
1657 * src/pic16/ralloc.c (allocReg): add preliminary support for
1658 supporting a limited set of temporary registers,
1660 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1662 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
1663 genDataPointerSet): ensure assignments always copy in MSB to LSB
1665 (loadRegFromAop): recognize CLRH optimization,
1666 (genFunction): optimize RECEIVE iCodes in reentrant functions
1668 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1670 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
1671 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
1673 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
1674 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
1675 contiguous with data
1677 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1679 * device/lib/_gptrget.c (_gptrget),
1680 * device/lib/_gptrgetc.c (_gptrgetc),
1681 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
1682 instead of sjmp to ret
1683 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
1684 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
1686 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1688 * .version: bumped version to 2.4.7
1689 * device/lib/_gptrget.c (_gptrget): is now _naked
1690 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
1691 * device/lib/_gptrput.c (_gptrput): is now _naked
1692 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
1693 (createFunction): fixed xstack
1694 * src/SDCCglue.c (emitMaps): set allocation required for bit area
1695 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
1697 (geniCodeCritical): store original interrupt state in an iTemp bit
1698 var unless stack-auto
1699 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
1700 * src/SDCCmain.c (setIncludePath): added include/target to search path
1701 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
1702 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
1704 (processFuncArgs): put bit vars in bit area
1705 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
1706 unsaveRBank): fixed xstack,
1707 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
1708 (genFunction, genEndFunction): fixed xstack,
1709 (genAssign): optimization don't walk backwards through mem
1710 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
1711 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
1712 * support/regression/Makefile: also make library (for stack-auto) when
1713 making "all" and added "test-mcs51-xstack-auto"
1714 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
1715 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
1716 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
1717 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
1718 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
1719 make-library by MAKE_LIBRARY
1720 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
1721 regression tests for xstack
1722 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
1723 * support/regression/tests/critical.c: test for critical on mcs51
1725 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1727 * support/regression/ports/ucz80/spec.mk: use include and lib files from
1728 built version of sdcc instead of installed version
1730 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1732 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
1733 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
1735 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
1736 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
1737 WARNING: remove device/lib/build/z80/printf.o by hand when
1738 updating from previous build!
1739 * device/lib/z80/printf.c: updated comment
1740 * support/regression/tests/bug1057979.c: test all ports now
1741 * support/regression/tests/bug1065458.c: file added
1743 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1745 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
1746 *_start and *_end symbols for static functions
1748 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1750 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
1751 and search crt0.o in all library paths,
1752 (setIncludePath): proper handling of --nostdinc,
1753 (setLibPath): proper handling of --nostdlib
1754 * support/regression/Makefile,
1755 * support/regression/ports/ds390/spec.mk,
1756 * support/regression/ports/gbz80/spec.mk,
1757 * support/regression/ports/hc08/spec.mk,
1758 * support/regression/ports/mcs51/spec.mk,
1759 * support/regression/ports/mcs51-large/spec.mk,
1760 * support/regression/ports/mcs51-stack-auto/spec.mk,
1761 * support/regression/ports/z80/spec.mk: use include and lib files from
1762 built version of sdcc instead of installed version
1763 * doc/sdccman.lyx: fixed typo in --nostdinc
1765 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
1770 * src/pic/gen.c : added support to generate code for struct bit fields.
1772 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1774 * as/xa51/xa_version.h,
1775 * device/include/errno.h,
1776 * device/include/regc515c.h,
1777 * device/lib/_itoa.c,
1778 * device/lib/_ltoa.c,
1779 * device/lib/ser_ir_cts_rts.c,
1780 * sim/ucsim/xa.src/glob.cc,
1781 * sim/ucsim/xa.src/inst_gen.cc,
1782 * sim/ucsim/xa.src/xa_bit.cc,
1783 * sim/ucsim/xa.src/xa_sfr.cc,
1784 * sim/ucsim/z80.src/inst_dd.cc,
1785 * sim/ucsim/z80.src/inst_fdcb.cc,
1786 * support/scripts/keil2sdcc.pl,
1787 * src/pic16/pic16.dsp,
1788 * src/pic16/pic16a.dsp: corrected cvs line endings
1789 * device/lib/printf_large.c: fixed bug 1057979
1790 * src/pic16/gen.c: fixed non-C standard code
1791 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
1792 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
1793 * support/regression/ports/mcs51/support.c: reload T1 asap
1794 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
1795 pdata use and clear idata startup behaviour
1796 * support/regression/tests/bug1057979.c: added
1798 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
1800 * device/examples/ds390/ow390/ad26.h,
1801 * device/examples/ds390/ow390/cnt1d.h,
1802 * device/examples/ds390/ow390/crcutil.c,
1803 * device/examples/ds390/ow390/ownet.h,
1804 * device/examples/ds390/ow390/owsesu.c,
1805 * device/examples/ds390/ow390/swt12.h,
1806 * device/examples/ds390/ow390/swtoper.c,
1807 * device/examples/ds390/ow390/temp10.h,
1808 * device/examples/ds390/ow390/thermodl.c,
1809 * device/examples/ds390/tinitalk/tinitalk.dsp,
1810 * device/examples/ds390/tinitalk/tinitalk.dsw,
1811 * device/examples/mcs51/clock/hw.h,
1812 * device/examples/mcs51/simple2/go.bat,
1813 * device/examples/serialcomm/windows/serial.h,
1814 * device/examples/xa51/dummy.c,
1815 * device/examples/xa51/hello.c,
1816 * device/include/80c51xa.h,
1817 * device/include/at89x051.h: corrected cvs line endings
1819 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
1821 * src/pic16/main.c (options): added command line --gstack, to trace
1822 stack over/under flows,
1823 * added pragma 'wparam' to allow passing first byte of function
1824 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
1825 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
1826 call to __gstack_test function and sets up the symbol as extern,
1827 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
1828 * popaop): added call to pic16_testStackOverflow,
1829 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
1831 * (genCall, genPcall): now all parameters are passed via stack
1832 except in functions that are pass to wparam pragma in which WREG is
1834 * (genPcall): REENTRANT flag is checked to see if variable prototype
1835 contains reentrant keyword, don't call a non-reentrant function, via
1836 a reentrant function pointer or vice versa, functions are never
1838 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
1840 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
1841 SIGSEGV when accessing a NULL register stucture,
1842 * (pic16_printGPointerType): modified to handle UPPER modifier for
1843 function initializers, changed prototype of function to simpler one,
1844 * (pic16_printIvalFuncPtr): check to see if function is already
1845 added in externs list,
1846 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
1847 optimized a move from W to SFR with a move to the same register
1849 * device/lib/pic16/debug: NEW directory, contains debug features
1850 which are enabled when linking with libdebug.lib, currently command
1851 line option --gstack enables stack pointer tracing for over/under
1852 flow, corresponding sources are in debug/gstack
1854 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
1856 * doc/sdccman.lyx: updated SDCC version,
1857 * (PIC16 port): update list of command line options,
1858 * src/pic16/device.h (structure pic16_options_t): added field gstack
1859 to enable stack overflow tracing on push/pops,
1860 * src/pic16/device.c (statistics structure): added statistics
1862 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
1863 pic16_dump_int_registers): increase statistics counters for each
1864 * variable which is encountered
1865 * (pic16_dump_usection): emit each .udata variable to its own udata
1867 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
1868 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
1869 parameters via stack, otherwise use old scheme,
1870 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
1871 assembler output file,
1872 * src/pic16/main.c: added command line options --gstack to enable
1873 push/pop tracing for stack overflow,
1874 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
1875 instructions): added size of each instruction,
1876 * (pic16_countInstruction): estimate size of instructions in
1877 the_pFile list, inline assembly blocks are not counted,
1878 * (pic16_FixRegisterBanking): trace previous register usage, when
1879 banksel optimizations is greater than 0, don't emit a redudant
1882 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
1884 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
1885 * src/pic16/ralloc.c : applied same fix for pic16.
1886 * src/pic/gen.c : tidied it up a little.
1888 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1890 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
1891 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
1893 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1895 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
1897 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1899 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
1900 non-reentrant function __modsint in the interrupt function (thus
1901 corrupting math operations during serial I/O)
1902 * device/lib/ser_ir.c: as above, changed buffersize
1903 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
1905 * doc/Makefile: added option -t for rsync
1907 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1909 * src/SDCCast.h (struct ast),
1910 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
1912 2004-10-20 Borut Razem <borut.razem AT siol.net>
1914 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
1917 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
1919 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
1921 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
1922 support functions to replace long sequences of MOVFF's from access
1923 bank registers to stack and vice versa,
1924 * src/pic16/device.h: added new field opt_flags, where optimization
1925 flags can be set to enable certain features,
1926 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
1927 * pBlock, (genFunction, genEndFunction): surroung loop for
1928 saving/loading used registers in stack with PC_INFO pCodes,
1929 INF_LREGS. Code in between can then be optimized by pCode optimizer
1930 to support function calls,
1931 * (genDataPointerSet): fixed bug which loaded float fields in
1932 structures with corrupt data,
1933 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
1934 in a standard way debug info on stderr. Feature used for developing
1936 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
1937 obsolete chunks of code,
1938 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
1939 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
1940 * pic16/src/pcode.c (pic16_newpCodeInfo,
1941 * (pic16_newpCodeOpLocalRegs),
1942 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
1944 * (pic16_pCodeConstString): printing of the initial value of a
1945 symbol as a comment is inhibited since parsing was already done by
1946 copyStr and output is corrupt,
1947 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
1949 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1951 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
1953 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1955 * as/mcs51/lkarea.c: removed old K&R style,
1956 (lnksect): changed check on boundary error,
1957 (lnksect2): changed check on boundary error,
1958 (lnksect2): extend XSTK to end of page if size = 1
1959 * as/mcs51/lkmain.c: removed old K&R style,
1960 (Areas51): create l_IRAM symbol
1961 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
1962 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
1963 model-mcs51-stack-auto, added model-mcs51-xstack-auto
1964 * device/lib/_mullong.c: added version to be compiled with xstack
1965 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
1966 * device/lib/mcs51/crtxclear.asm: clear pdata as well
1967 * device/lib/mcs51/crtxstack.asm: fixed comment
1968 * src/SDCCglue.c: maxInterrupts defaults to 0,
1969 (emitMaps): added pdata,
1970 (createInterruptVect): (re)moved default,
1971 (glue): added pdata,
1972 (glue): moved __start__xstack to XSTK with default size 1
1973 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
1974 and options.float_rent when options.stackAuto is set,
1975 (linkEdit): only write XDATA_NAME if provided on command line
1977 * src/SDCCmem.c: added pdata
1978 * src/port.h: added pdata_name to PORT
1979 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
1980 (saveRegisters, unsaveRegisters): removed usage of B,
1981 (genMinus): fixed accumulator clash,
1982 (genJumpTab): added comment, this needs another look
1983 * src/mcs51/gen.c: added check for "B in use" paranoia,
1984 added pushB() and popB()
1985 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
1994 * src/z80/main.c: (reset_regparms) made void parameter explicit and
1995 added PSEG (PAG,XDATA) or NULL to port specifier
1996 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
1997 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
1998 (_mcs51_genInitStartup): removed __start__xstack equ,
1999 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2000 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2001 * src/z80/gen.c (_rleAppend): fixed warnings
2002 * support/regression/tests/zeropad.c: added pdata test
2003 * .version: bumped to 2.4.6
2005 2004-10-17 Borut Razem <borut.razem AT siol.net>
2007 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2008 as a part of nightly build
2010 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2012 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2013 WREG holds the first byte function parameters,
2014 * (aopForSym): take special case for symbols which are in FARSPACE
2015 but in CODESPACE too,
2016 * (assignResultValue): modified to take into account _G.useWreg,
2017 * (genCall): don't use wreg for parameter passing when function is
2018 declared as reentrant, too, added optimization INCF to stack
2019 pointer when stack parameter count is 1,
2020 * (genFunction, genEndFunction): refurnished and fixed to not using
2021 wreg for passing parameters when function has varargs or is
2022 reentrant, fixed bug with symbol name compare for generating
2023 functions in absolute address,
2024 * (pic16_storeForReturn): refurnished,
2025 * (genCmp): began writing a new version of the function, not ready
2026 yet, therefore it is disabled,
2027 * (genAssign): do not read code memory when assigning a function to
2029 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2030 array of characters, not pointer,
2031 * (pic16initialComments): in debug mode emit an .ident directive for
2033 * (_process_pragma): emit a new warning type (internal to pic16)
2034 when setting stack to default length, emit a similar warning when
2035 placing a function at absolute address and address is not word aligned
2036 * (_pic16_parseOptions): added 'return TRUE' statement,
2037 * (_pic16_linkEdit): if compiling a source, then add the source's
2038 file object, first in the list of objects to link,
2040 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2042 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2043 * src/pic/main.c : removed VC warning.
2044 * src/pic/gen.c : changed comment.
2046 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2048 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2049 reference to a deprecated symbol _GPTRREG was causing failure to
2050 link. Thanks G. M. Gallant for the info.
2052 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2054 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2055 comments for Bugs item #954788.
2057 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2059 * src/pic16/device.c (pic16_dump_gsection,
2060 * pic16_groupRegistersInSection): handle symbols declared to be in
2061 access bank differently,
2062 * src/pic16/gen.c (struct _G): added field resDirect,
2063 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2064 send values read from stack directly to result and don't allocate
2066 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2068 * (pic16_sameRegsOfs): NEW,
2069 * (freeAsmop): if _G.resDirect is set then do not mark registers as
2070 free because they were not allocated from temporary pool,
2071 * pic16_popRegFromString): workaround to fix a problem with
2072 allocating variables twice or never,
2073 * (genGenPointerGet): using PRODL instead of FSR0H,
2074 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2076 * (genAssign): take advantage of the _G.resDirect flag,
2077 * (genCast): around line 11844, use mov2f instead of directly
2078 MOVFF'ing between operands to account for literal values,
2079 * src/pic16/genutils.c: some new debug functions for gpsim have been
2081 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2082 float with integer part only,
2083 * src/pic16/main.c (_process_pragma): handle pragma udata access to
2084 place variables in access bank
2085 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2086 updated sources to reflect recent changes in gen.c
2088 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2090 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2091 sources that searched for headers in installation path, now the
2092 device/include/pic16 is used,
2093 * src/pic16/glue.c (pic16glue),
2094 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2095 .line directives if not in debug mode, this suppresses assembler's
2096 warnings for ignored directives
2098 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2100 * src/port.h: made reset_regparms prototype void parameter explicit.
2101 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2102 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2103 * doc/sdccman.lyx: documented warning disabling and how to use
2104 printf_large to make it print floats.
2105 * device/include/stdbool.h: NEW
2106 * device/lib/_atof.c,
2107 * device/lib/_divuint.c,
2108 * device/lib/_divulong.c,
2109 * device/lib/expf.c,
2110 * device/lib/printf_large.c,
2111 * device/lib/sincosf.c,
2112 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2113 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2114 a completely reentrant lib.
2116 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2118 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2119 * device/include/pic16/stdio.h: fixed bug with colon
2121 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2123 * device/include/pic16/stdio.h,
2124 * device/include/pic16/stdlib.h,
2125 * device/include/pic16/math.h: NEW
2126 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2127 declared as _naked to reduce overhead
2128 * device/lib/Makefile.in (target port-specific-objects-pic16):
2129 changed * to *.* so to ignore the CVS directory,
2130 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2131 stacked variables back in stack,
2132 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2135 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2137 * .version: bumped version number to 2.4.5
2138 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2139 * support/Util/SDCCerr.c (messages structure): added entry for
2142 Large cumulative patch for pic16 port and libraries.
2143 * device/include/pic16/sdcc-lib.h,
2144 * device/include/pic16/stdarg.h,
2145 * device/include/asm/pic16/features.h,
2146 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
2147 * device/include/pic16/float.h: changes reentrant keyword with
2148 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
2149 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
2150 updated target build-libraries to include objects from gptr,
2151 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
2152 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
2153 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
2154 all function headings,
2155 * src/SDCCmain.c: added global parameter userIncDirsSet,
2156 * (parseCmdLine): when option -I is encountered add directory to
2158 * src/version.awk: added space between control and long,
2159 * src/pic16/NOTES: added some notes for the port,
2160 * src/pic16/gen.c: added prototype for mov2fp function,
2161 * (fReturnpic16[]): properly named return value registers,
2162 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
2163 * (aopForSym): added code to handle symbols with onStack flag set,
2164 symbols onStack are allocated PTRSIZE bytes,
2165 * (aopFreeAsmop): handles special case where asmops are stack objects,
2166 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
2167 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
2168 added argument lock to trace flaws in allocating temporary registers
2169 when developing port,
2170 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
2171 * (pic16_popRegFromString): reenabled allocating a direct register
2173 * (assignResultValue): various beautifications,
2174 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
2175 referenced function argument,
2176 * (genIpush): reenabled to allow stacked arguments, handles only
2177 ic->parmPush iCodes,
2178 * (genCall, genPcall): major changes to allow for variable argument
2179 functions, fixed a bug with falsely restoring stack pointer after
2180 returning from call,
2181 * (genFunction): pending code for critical function,
2182 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
2183 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
2184 * (genNearPointerGet): fixed bug with indirect reading, was always
2186 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
2188 * (genAddrOf): rewrote code to take address of a stacked function parameter
2189 * (genCast): fixed casting to generic pointer type,
2190 * src/pic16/gen.h: added AOP_STA,
2191 * (struct asmop): added field stk,
2192 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
2193 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
2194 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
2195 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
2196 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
2197 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
2199 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
2201 * (pic16_port structure): generic pointer size is set to 3,
2202 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
2203 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
2205 * src/pic16/ralloc.c (allocReg): prevent allocating register when
2206 operand is an iTemp,
2208 2004-09-24 Martin Helmling <mh AT octo-soft.de>
2210 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
2211 * debugger/mcs51/simi.c: addapt new syntax of s51
2213 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
2215 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
2216 * src/pic16/pcode.c: commented out some calls to free() in order to
2219 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2222 * src/SDCCicode.c (isiCodeInFunctionCall),
2223 * src/avr/ralloc.c (selectSpil),
2224 * src/pic/ralloc.c (selectSpil),
2225 * src/pic16/ralloc.c (selectSpil),
2226 * src/ds390/ralloc.c (selectSpil),
2227 * src/hc08/ralloc.c (selectSpil),
2228 * src/xa51/ralloc.c (selectSpil),
2229 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
2230 stack in the middle of a function call sequence (fixes bug #1020268)
2231 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
2232 costs associated with the minimum switch case.
2234 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2236 * src/SDCC.lex: fixed bug #1030549
2238 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2240 * src/SDCCcse.h (struct cseDef),
2241 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
2242 over a function call if the CSE is derived from a symbol whose
2243 address has been taken (fixes bug #1029883)
2244 * support/regression/tests/bug-1029883: a new regression test for
2247 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2249 * src/hc08/gen.c (emitinline): fixed bug #1029778
2250 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
2251 to a cast object is no longer a syntax error ("fixes" bug #1030006,
2252 and starts toward RFE #905167)
2254 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
2256 * src/pic16/gen.c (mov2f): New function to move an operand to
2257 another without considering if it is a literal or a register,
2258 * (pic16_sameRegs): don't check if they are both AOP_REG,
2259 * (AccRsh): removed andmask=0 lines,
2260 * (genLeftShift): duplicated to be improved in future versions,
2261 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
2262 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
2263 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
2264 * (pic16initMnemonics): added initialization for POC_INFSNZW,
2265 * (insertBankSwitch): fixed inserting banksel directives algorithm
2266 for instructions that follow a skip instruction, this fixes a report
2267 for broken subtraction code generation,
2268 * src/pic16/ralloc.c (deassignLRs): do not free register if current
2269 iCode is a left op, just in case result and right share the same
2272 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2275 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
2277 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
2278 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
2279 on 2004-09-12; it was buggy
2281 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2283 * src/SDCCsymt.h: removed RESULT_CHECK
2288 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
2290 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
2292 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
2293 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
2294 configuration values no more rejected by compiler, they are assigned
2295 to configuration registers with a warning message instead,
2296 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
2297 the for-loop so last conf register is emitted too,
2298 * (_pic16_initPaths): link library libsdcc.lib by default,
2299 * (_hasNativeMulFor): modified test for multiplication according to
2300 Raphael Neider's remarks. Integer multiplication is also done with
2302 * device/include/pic16/pic18fregs.h: corrected type error in while
2303 testing and including 18f6720 header file
2305 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
2307 * src/pic16/device.h (pic16_options): removed field use_crt,
2308 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
2309 until an optimization to handle single bits is added,
2310 * (pic16_loadFSR0): moved before genUnpackBits,
2311 * (genAnd): some white lines removed,
2312 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
2313 leave_reset flags in pic16_options when using crt modules,
2315 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
2317 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
2318 for bugs 898889 & 979599. Also used some safer print instructions.
2320 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
2322 * src/pic16/device.h (pic16_options_t): added field use_crt,
2324 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
2325 catch a probable future bug,
2326 * src/pic16/gen.c: aopIdx function commented out,
2327 * (genAssign): commented out old code which used aopIdx,
2328 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
2329 code, added if conditionals to take into account the --use-crt
2330 command line options,
2331 * src/pic16/main.c (pic16_optionsTable): added new command line
2332 options, --use-crt= and --no-crt,
2333 * (_pic16_linkEdit): now the proper crt object is added in the
2334 linker command line except than when --no-crt is specified,
2335 * src/pic16/pcode.c,
2336 * src/pic16/pcode.h: added some structures and functions for a new
2337 optimization scheme to compansate for instruction overhead between
2338 same iCodes, this scheme is currently under development and is not
2340 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
2342 * device/lib/pic16/startup/crt0i.c,
2343 * device/lib/pic16/startup/crt0iz.c: added global char variable
2344 __uflags to force the generation of an idata section
2346 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
2349 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
2350 * doc/sdccman.lyx: updated sdcc version to 2.4.4
2352 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2354 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
2355 Frieder) and clarified the default code optimization mode
2357 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2359 * src/SDCC.lex (doPragma, process_pragma),
2360 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
2361 "opt_code_size", and "opt_code_balanced"
2362 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
2363 regrouped options by category, added support for category headers
2364 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
2365 and "--opt-code-size"
2366 * doc/sdccman.lyx: documented these new options and pragmas
2367 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
2368 preference into account
2370 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2372 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
2373 geniCodePreDec): Fixed bug 904237 by generating a warning
2375 * src/SDCCerr.c: added warning W_SIZEOF_VOID
2377 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
2379 * src/pic/device.c : When no max ram set validate full memory range.
2381 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
2383 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2385 * device/lib/_gptrget.c,
2386 * device/lib/_gptrput.c: updated comment
2387 * device/lib/calloc.c,
2388 * device/lib/free.c,
2389 * device/lib/malloc.c,
2390 * device/lib/realloc.c: added LGPL, made them reentrant-safe
2391 * src/SDCCcse.c (cseBBlock),
2392 * src/SDCCicode.c (printOperand, geniCodeArray),
2393 * src/SDCCicode.h (struct operand): fixed bug 868103
2394 * support/regression/tests/bug-868103.c: added
2395 * src/SDCCast.c (searchLitOp),
2396 * src/SDCCcse.h (struct cseDef),
2397 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
2398 * src/SDCCicode.h (struct operand),
2399 * src/SDCCsymt.h (struct sym_link),
2400 * src/avr/gen.c (hasInc),
2401 * src/ds390/gen.c (hasInc),
2402 * src/hc08/gen.c (genPlusIncr, hasInc),
2403 * src/mcs51/gen.c (hasInc),
2404 * src/pic16/glue.c (pic16_printIvalChar),
2405 * src/pic16/ralloc.c (regWithIdx),
2406 * src/xa51/gen.c (hasInc) : removed warnings
2407 * src/SDCCast.c (createBlock): added comment ???
2408 * src/hc08/ralloc.c: updated comments
2410 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2412 * doc/sdccman.lyx: updated section on switch statements, added
2413 section about semaphore locking
2414 * doc/Makefile: added option -info for latex2html
2415 * device/lib/_gptrget.c,
2416 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
2418 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2422 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
2423 maxram is less than 0x100.
2425 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2427 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
2429 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2440 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
2441 a jump table is the best form for a switch statement, including
2442 automatic insertion of missing cases to make the case range
2443 continuous. Developed in collaboration with Frieder Ferlemann.
2445 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2447 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
2448 accumulator result if it needs sign extension
2450 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2452 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
2454 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2456 * device/lib/gbz80/printf.c,
2457 * device/lib/z80/printf.c: removed define for NULL
2459 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2461 * as/xa51/xa_link.c,
2462 * device/examples/ds390/ow390/ad26.c,
2463 * device/examples/ds390/ow390/cnt1d.c,
2464 * device/examples/ds390/ow390/counter.c,
2465 * device/examples/ds390/ow390/ds2480.h,
2466 * device/examples/ds390/ow390/ds2480ut.c,
2467 * device/examples/ds390/ow390/findtype.c,
2468 * device/examples/ds390/ow390/gethumd.c,
2469 * device/examples/ds390/ow390/owllu.c,
2470 * device/examples/ds390/ow390/ownetu.c,
2471 * device/examples/ds390/ow390/swt12.c,
2472 * device/examples/ds390/ow390/swtloop.c,
2473 * device/examples/ds390/ow390/temp.c,
2474 * device/examples/ds390/ow390/temp10.c,
2475 * device/examples/ds390/ow390/thermo21.c,
2476 * device/examples/ds390/ow390/tinilnk.c,
2477 * device/examples/ds390/ow390/tstfind.c,
2478 * device/examples/serialcomm/windows/serial.cpp,
2479 * device/examples/serialcomm/windows/test_serialcomm.cpp,
2480 * device/include/reg51.h: fixed line endings for cvs
2482 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2484 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
2485 packRegsForAccUse, packRegisters): new accumulator register
2487 * support/regression/ports/hc08/support.c (_putchar): suppress
2488 warning of unused variable
2489 * src/SDCCicode.c: added SWAP entry to codeTable
2491 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
2493 * device/lib/sprintf.c: forgot to add this file before previous commit
2495 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
2497 * src/pic16/gen.c (genPackBits): added operand right in function
2498 parameters, load result directly if p_type is POINTER (that is
2499 called by genNearPointerSet)
2500 * (genUnPackBits): added operand left in function parameters,
2501 * (genNearPointerGet, genNearPointerSet): prevent the loading of
2502 FSR0 if accessing bitfields,
2504 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
2506 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
2507 _print_format; updated printf, sprintf, vsprintf
2508 * device/include/asm/default/features.h: corrected comment/define
2509 * device/lib/Makefile.in: added sprintf.c
2510 * device/lib/libsdcc.lib: added sprintf module
2511 * device/lib/printf_large.c,
2512 * device/lib/vprintf.c,
2513 * device/lib/sprintf.c: totally refactored printf_large and vprintf
2515 * support/regression/Makefile: changed ALL_PORTS into a usefull default
2516 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
2517 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
2519 * support/regression/tests/zeropad.c: define idata as data for hc08
2521 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2523 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
2524 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
2525 labels are referenced at least once (even if a reference is not found)
2526 * src/hc08/gen.c (emitcode): set isComment flag for comments
2527 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
2528 loads), rules 6a..6b (optimize jumps to return)
2530 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2532 * device/lib/acosf.c (acosf),
2533 * device/lib/asinf.c (asinf),
2534 * device/lib/atanf.c (atanf),
2535 * device/lib/ceilf.c (ceilf),
2536 * device/lib/cosf.c (cosf),
2537 * device/lib/coshf.c (coshf),
2538 * device/lib/cotf.c (cotf),
2539 * device/lib/fabsf.c (fabsf),
2540 * device/lib/floorf.c (floorf),
2541 * device/lib/log10f.c (log10f),
2542 * device/lib/logf.c (logf),
2543 * device/lib/sinf.c (sinf),
2544 * device/lib/sinhf.c (sinhf),
2545 * device/lib/sqrtf.c (sqrtf),
2546 * device/lib/tanf.c (tanf),
2547 * device/lib/tanhf.c (tanhf),
2548 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
2549 replaced all instances of "reentrant" in the library functions
2550 defined in math.h with this macro.
2551 * support/regression/tests/float_trans.c: reenabled test for hc08
2553 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
2555 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
2558 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2560 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
2561 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
2562 multi-byte volatile operands are used
2563 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
2564 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
2565 initialization to area GSINIT0 so that it would always precede
2566 any static initializers in GSINIT
2567 * support/regression/tests/zeropad.c: fixed idata define for hc08
2568 * support/regression/tests/bug-927659.c,
2569 * support/regression/tests/float_trans.c: disabled tests for hc08
2570 pending missing library routines
2571 * .version: increased version number to 2.4.4 - hc08 port now passes
2575 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
2577 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
2578 * Makefile.common.in,
2580 * as/hc08/Makefile.in,
2581 * as/mcs51/Makefile.in,
2582 * as/z80/Makefile.in,
2583 * debugger/mcs51/Makefile.in,
2584 * device/include/Makefile.in,
2585 * device/lib/Makefile.in,
2588 * link/z80/Makefile.in,
2589 * packihx/Makefile.in,
2590 * sim/ucsim/main_in.mk,
2591 * sim/ucsim/avr.src/Makefile.in,
2592 * sim/ucsim/doc/Makefile.in,
2593 * sim/ucsim/gui.src/serio.src/Makefile.in,
2594 * sim/ucsim/hc08.src/Makefile.in,
2595 * sim/ucsim/s51.src/Makefile.in,
2596 * sim/ucsim/xa.src/Makefile.in,
2597 * sim/ucsim/z80.src/Makefile.in,
2599 * support/cpp2/Makefile.in,
2600 * support/librarian/Makefile,
2601 * support/makebin/Makefile: added DESTDIR to the install path proposed
2602 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
2603 * doc/sdccman.lyx: added DESTDIR documentation
2605 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
2607 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
2608 instruction for interrupt handlers, use fast returns when returning
2609 from high priority interrupts
2611 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2613 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
2615 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
2616 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
2617 bugs, ported much of Bernhard's code from mcs51
2618 * src/mcs51/gen.c (genSend),
2619 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
2620 than one when calling a reentrant function
2621 * device/lib/_mullong.c: defined an alternate struct layout for big
2624 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2626 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
2629 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2631 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
2632 are sane and complete before asking the port its prefered parameter
2633 passing method (fixes bug #1017633)
2634 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
2637 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2639 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
2640 problem in bitfields >= 8 bits.
2642 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2644 * src/SDCCsymt.c: undid changes that were not meant to be committed
2646 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2648 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
2650 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2652 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
2653 copied and wrong bit got inverted
2655 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2657 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
2658 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
2659 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
2660 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
2661 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
2662 assignments to bitfields at known addresses
2663 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
2664 reads from bitfields at known addresses
2665 * src/hc08/ralloc.c (packRegisters),
2666 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
2667 genhc08Code): optimize pointer get values used as conditionals
2668 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
2671 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2673 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
2674 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
2675 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
2678 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2680 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
2682 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2684 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
2687 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
2689 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
2691 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2693 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
2696 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2698 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
2700 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2702 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
2703 cases use more compact code.
2705 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
2707 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
2709 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2711 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
2713 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2716 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
2717 parameter of changePointer() from symbol* to sym_link*
2718 * src/SDCCast.c (decorateType): call changePointer() for CAST op
2719 * src/SDCCsymt.c (compareType): void* type is castable to other
2720 pointers, but not necesarily an exact match.
2721 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
2722 is no longer blindly treated as an exact match.
2723 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
2725 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
2727 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
2729 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
2734 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
2736 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
2740 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
2742 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2744 * src/mcs51/gen.c (emitcode): fixed bug #992819
2746 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
2748 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
2749 there's no need to make it worse
2751 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2753 * src/mcs51/ralloc.c (deassignLR),
2754 * src/ds390/ralloc.c (deassignLR),
2755 * src/hc08/ralloc.c (deassignLR),
2756 * src/z80/ralloc.c (deassignLR),
2757 * src/pic/ralloc.c (deassignLR),
2758 * src/pic16/ralloc.c (deassignLR),
2759 * src/avr/ralloc.c (deassignLR),
2760 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
2761 rlivePoint): fixed another part of bug #971834
2763 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2765 * src/z80/main.c: enabled "critical" keyword
2766 * src/z80/mappings.i,
2767 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
2768 functions (fixes bug #979646)
2769 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
2771 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2773 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
2776 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
2778 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
2779 doesn't disable too much optimizations
2781 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2783 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
2785 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
2787 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
2789 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2791 * src/pic/gen.c tidied up tabs
2792 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
2793 * src/pic/main.c tidied up tabs
2794 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
2795 * src/pic/pcoderegs.c tidied up tabs
2796 * src/pic/ralloc.c tidied up tabs
2798 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
2800 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
2801 to S_FIXED for pic16 port and when symbol is not in level 0,
2802 allocate for S_REGISTER storage class and pic16 port, too,
2803 * src/pic16/device.h: prototype for checkSym,
2804 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
2805 * (pic16_assignConfigWordValue): test the value and the mask to
2806 validate that the value is suitable for the configuration word,
2807 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
2808 collect extern declared symbols, don't emit symbol twice, check
2809 first if symbol is in publics set first,
2810 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
2811 * added command line '--fstack' which enables an experimental
2812 feature for stack access, too buggy to be used yet...
2813 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
2814 * (pic16_allocDirReg): when register has storage class S_REGISTER
2815 allocate in pic16_dynAccessRegs,
2816 * device/include/pic16/pic18f????.h: modified configuration word
2817 naming convention, words started as CONFIG0H but should be CONFIG1H
2819 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2821 * device/include/mcs51reg.h: fixed bug 970993
2823 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
2825 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
2826 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
2827 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
2828 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
2829 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
2830 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
2831 error/warning numbers,
2832 added function setWarningDisabled()
2833 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
2834 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
2835 _memcmp.c _memmove.c calloc.c realloc.c free.c
2836 * support/regression/tests/malloc.c: added tests for new functionality
2837 * support/regression/tests/zeropad.c: added tests for truncated initializers
2838 and initialized char arrays starting with '\x0'
2839 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
2841 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
2843 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
2845 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2847 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
2848 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
2849 peephole 177.e. Thanks to anonymous
2851 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
2853 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
2854 function isn't used in the source but referenced as a
2855 variable initializer then declare it as extern in .asm file
2857 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
2859 * .version: increased version number to 2.4.3
2861 Adding version extension according to ChangeLog CVS revision
2862 * src/Makefile.in (target all): added dependency 'version.h'
2863 * (rule version.h): added rule to create version.h from ChangeLog,
2864 * (rule dep): added dependency version.h,
2865 * src/version.awk: AWK script to create version.h
2866 * src/SDCCdwarf2.c (dwWriteModule),
2867 * src/SDCCglue.c (initialComments),
2868 * src/SDCCmain.c (printVersionInfo): modified to write after
2869 version string the version extension number,
2870 * src/SDCCutil.c: included "version.h"
2871 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
2873 * src/SDCCutil.h: added prototype for getBuildNumber
2875 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
2876 includeDirsSet, too,
2877 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
2878 const char [] is found in function prototype...
2880 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
2881 moving to WREG with source is already in WREG,
2882 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
2883 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
2884 * (aopForSym): stack'ed symbols are partially supported, added
2885 if-clause to support symbols in FARSPACE,
2886 * (sameRegs): added test for AOP_ACC to see if registers are same,
2887 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
2888 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
2889 * (pic16_popRegFromString): will not allocate a new register if it
2890 doesn't find one by name, bug may have introduced...
2891 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
2892 * (genIpush): revived to use pic16 port's stack,
2893 * (genAddrOf): added incomplete case for stack'ed operand,
2894 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
2895 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
2896 can handle multibyte operands,
2897 * src/pic16/glue.c (pic16_printIval*): some debug info added,
2898 * (pic16initialComments): added message for MPLAB compatibility
2900 * src/pic16/main.h: prototype for pic16_mplab_comp,
2901 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
2902 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
2903 * (_pic16_linkEdit): NEW, handles link stage, transferred here
2904 because of increased complexity of procedure,
2905 * (_process_pragma): stack pragma changed to format 'stack pos len',
2906 emit symbol '_stack_end' to conform with gplink,
2907 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
2908 to search for register,
2909 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
2911 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
2912 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
2913 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
2914 case for PO_GPR_REGISTER,
2915 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
2916 dies, the new era is ahead !...
2917 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
2918 pic16_dynInternalRegs,
2919 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
2920 * (pic16_allocDirReg): minor optimizations and bug fixes,
2921 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
2923 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
2924 load stack and frame pointer with address of 'stack_end' symbol
2926 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
2928 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
2929 without source code but only variable initializers
2931 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
2933 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
2934 external are not declared as extern to reduce overhead while linking
2936 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
2938 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
2940 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2942 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
2943 Yee Keat for the patch
2944 * src/SDCCast.c (decorateType): fixed bug #979599
2945 * src/ds390/gen.h: removed local fReturnSizeDS390
2946 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
2947 * src/ds390/gen.c (genAnd, genOr, genXor),
2948 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
2950 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
2952 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
2953 add relFilesSet to $3, manipulate $2 to handle linking of object
2954 files without source files in command line,
2955 * device/include/pic16 (all headers): added ID location macros,
2956 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
2957 entries for ID location bytes,
2958 * (pic16_assignIdByteValue): NEW,
2959 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
2960 added field dumpcalltree to pic16_options_t,
2961 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
2962 is used instead of pic16_Gstack_base_addr, check if (ifx) before
2963 emitting rFalseIfx label after check_carry label,
2964 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
2965 pic16_emitDIRegs), NEW
2966 * (pic16glue): dump .calltree file when option --calltree found,
2967 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
2968 * (_pic16_genAssemblerPreamble): emit ID locations after
2969 configuration registers,
2970 * (pic16_linkCmd): modifications of the link command,
2971 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
2972 * (pic16_pCodeInitRegisters): don't init stack registers,
2973 * (pic16_findPrevInstruction): fixed bug,
2974 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
2975 bug with immediate registers,
2976 * (buildCallTree): traces stack push and pop,
2977 * (pct2): dump also stack usage for each function,
2978 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
2979 * (pic16_allocDirReg): various modifications,
2980 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
2983 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
2985 * src/pic16/pcode.c: removed buggy double colon
2987 2004-07-01 Borut Razem <borut.razem AT siol.net>
2989 * support/scripts/sdcc.nsi: added include/pic16 to setup
2991 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
2993 * device/lib/Makefile.in: fixed bug in target objects-pic16,
2994 * device/lib/pic16/Makefile: prefixed with dash (-) command under
2996 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
2997 specific command line arguments. Also added sample lkr script
2998 for placing a variable at a specific memory bank.
2999 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3000 at a specific memory bank,
3001 * (pic16_dump_isection): fixed bug which caused string literals to
3002 be omitted when dumping idata section,
3003 * (pic16_groupRegistersInSection): added code to handle registers
3004 in specific memory banks,
3005 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3006 public, all references are renamed too,
3007 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3009 * (pic16_storeForReturn): added case to handle when dest is WREG,
3010 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3011 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3012 pic16_rel_udata, check to see if that register is marked as being
3013 a member of a specific memory bank,
3014 * (pic16_printIvalCharPtr): added code to add string literals either
3015 to code or the idata sections,
3016 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3017 also accept the 'udata' pragma,
3018 * src/pic16/main.h: new structure types sectName and sectSym
3019 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3020 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3021 * (pic16_findPrevInstruction): fixed, it returned nothing,
3022 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3023 instruction combinations,
3024 * (pic16_FixRegisterBanking): heavily reorganised,
3025 * (pic16_AnalyzeBanking): if generating banksel directives is
3026 disabled, then don't call FixRegisterBanking at all,
3027 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3029 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3031 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3033 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3034 Phuah Yee Keat <yk.phuah AT nestac.com>
3036 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3038 * src/pic16/glue.c (pic16createInterruptVect): function now emits
3039 correctly the IVT even if it is relocated to some other location
3041 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3043 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3044 * device/include/pic16/pic18f2220.h: NEW,
3045 * device/lib/pic16/libdev/pic18f2220.c: NEW,
3046 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3047 * src/pic16/device.c (struct Pics16): added info for 18f2220,
3048 * src/pic16/device.h (struct pic16_options): added ivt_loc and
3049 nodefaultlibs, ivt_loc is the location of the interrupt vector
3050 table, and nodefaultlibs signs that default libraries should not be
3051 linked in link stage,
3052 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3053 according to --ivt-loc argument,
3054 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3055 when pragma stack is found,
3057 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3059 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3060 256 (range check), 257 (do while), 258.a-f (bit banging
3061 f.e. on 3-wire SPI bus)
3063 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3065 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3066 variables used exclusively within a loop
3068 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3070 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3072 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3074 * src/SDCClrange.c (computeClash): fixed bug #971834
3076 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3078 * src/mcs51/gen.c (genCmp): fixed bug #975903
3079 * src/hc08/gen.c (operandsEqu),
3080 * src/ds390/gen.c (operandsEqu),
3081 * src/z80/gen.c (operandsEqu),
3082 * src/pic/gen.c (operandsEqu),
3083 * src/pic16/gen.c (operandsEqu),
3084 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3085 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3087 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3089 * src/SDCCcse.c (cseBBlock): fixed bug #966963
3091 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3093 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3094 default case in switch statement,
3095 * glue.c (pic16_initPointer): expr is initialised via decoarteType
3096 to eliminate problem with initialisation of pointers, but problem
3098 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3099 * (emitStaticSegment): removed various lines emitting debug info,
3100 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3101 added processor registers for utilizing EEPROM,
3102 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3103 configurable and set 8
3105 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3107 * .version: increased version number to 2.4.2,
3109 Cumulative patch for pic16 port
3110 * src/pic16/device.c: changed scheme to dump initial values for
3111 variables in idata segment, all print_idata* functions were removed,
3112 now the pic16_printIval* will be called,
3113 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3114 * _pic16_printPointerType, pic16_printPointerType,
3115 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3116 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3117 NEW, similar to the respective functions in SDCCglue.c,
3118 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3119 way, emitting hex bytes,
3120 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3122 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3124 * src/avr/ralloc.c (serialRegAssign),
3125 * src/xa51/ralloc.c (serialRegAssign),
3126 * src/pic/ralloc.c (serialRegAssign),
3127 * src/pic16/ralloc.c (serialRegAssign),
3128 * src/hc08/ralloc.c (serialRegAssign),
3129 * src/z80/ralloc.c (serialRegAssign),
3130 * src/ds390/ralloc.c (serialRegAssign),
3131 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3133 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3135 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3136 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3138 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3140 Cumulative patch for pic16 port:
3141 * src/pic16/device.h (typedef PIC16_device) modified fields for
3142 defining microcontrollers,
3143 * src/pic16/device.c: added new info for all devices in Pics16 array,
3144 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
3145 to be optimised out by the pCode optimiser,
3146 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
3147 specially, bug reported by G.M. Gallant,
3148 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
3149 as force'd so that cannot be optimised out by pCode optimiser,
3150 * src/pic16/pcode.c,
3151 * src/pic16/pcodepeeph.c,
3152 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
3153 they are disabled by default, but can be enabled explicit with
3154 command argument --denable-peeps, for testing,
3155 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
3156 --pomit-ivt in COMPILE_FLAGS
3158 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3160 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
3163 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3165 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
3167 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3169 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
3170 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
3172 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
3174 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
3175 would only assign 0x300001 register.
3177 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
3179 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
3180 in COMPILE_FLAGS. Thanks to G. Gallant for report.
3182 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3184 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
3186 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
3187 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
3188 added peephole 254 (left shift), 255 (jump table)
3190 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
3192 * device/lib/Makefile.in: removed comment line with model-pic16,
3193 * (target port-specific-objects-pic16): the libraries and objects
3194 are copied to the build directory form the device/lib/pic16/bin
3197 Cumulative patch concerning pic16 port:
3198 * library directory has been re-organized,
3199 * added support for PIC18F1220,
3200 * added headers and library sources for chips 18f1220,18f6520,
3201 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
3203 * configuration registers setting has changed, now each supported
3204 device has a complete description of the registers it uses,
3205 * all initialisations are moved to idata sections, these section
3206 can be absolute or relocatable,
3207 * fixed initialisation of codespace variables,
3208 * fixed warning about PCLATU and gpsim,
3209 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
3210 * (genAssign): use table reads when assigning from variables in codespace,
3211 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
3212 char/int variables placed in codespace,
3213 * (pic16_emitConfigRegs): NEW, emits a list with configuration
3214 registers set in .asm file, no need for --pomit-config-words anymore,
3215 * (pic16glue): some 8051 legacy segments are commented out
3216 (to be removed completely),
3217 * added support for alternative assembler and linker with --asm=
3218 and --link= command line arguments,
3219 * peepholes are disabled automatically in the port, no need to
3220 specify on command line,
3221 * port supports natively char/int/long multiplication, but converts
3222 all divisions to support functions,
3223 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
3224 to the file set in variable $2,
3225 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
3226 strings in ASCII format and not in hex,
3227 * ralloc.c (serialRegAssign): added a triplet of conditional calls
3228 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
3229 allocate proper register if iCodes aren't temporary,
3231 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3233 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
3235 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
3237 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
3240 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3242 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
3243 computed address is reused
3244 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
3245 multi-byte bitfields
3247 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3249 * src/z80/gen.c: (genArrayInit): must check for pointers too
3251 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3253 * support/regression/tests/zeropad.c: never meant to commit the
3254 nestedstruct test: removed, added check for GCC version
3256 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
3258 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
3259 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
3260 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
3261 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
3262 bugs 928906 and 954082 half-empty initializers
3264 * src/SDCCsymt.c (getAllocSize): added for above fix
3265 * src/z80/gen.c (genArrayInit): fixed bug 741044
3266 * support/regression/tests/zeropad.c: added tests
3268 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
3270 * src/pic16/device.c (pic16_dump_section): corrected bug which
3271 caused some symbols of the libraries to be misplaced
3273 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3276 * src/pic16/ralloc.h,
3277 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
3278 to fix conflict with pic port
3280 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3282 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
3283 externs configuration variables,
3284 * src/pic16/ralloc.h,
3285 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
3286 prototype in header, commented out some debug messages
3288 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
3292 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
3293 for gpasm COFF object generation. Thanks to D. Hawkins for
3296 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3299 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
3300 Brock for spotting this)
3301 * src/ds390/gen.c (genEndFunction),
3302 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
3303 interrupt handler and critical. Disable push/pop optimizations when
3304 peephole optimizations disabled.
3306 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3308 Updated pic16 library sources and headers.
3309 * device/lib/pic16/pic18f*/ ,
3310 * device/include/pic16/*.h: modified to handle structured SFR
3313 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3315 * src/port.h (PORT structure): added hook initPaths, now each
3316 port can declare its own default search paths,
3317 which can been seen with the --print-search-dirs option,
3318 see pic16 port for example,
3319 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
3320 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
3321 * (doPrintSearchDirs): NEW, replaces in a central manner the
3322 printing of search dirs which was split in set*Paths functions,
3323 * (main): added call to port->initPaths and doPrintSearchDirs,
3328 * src/izt/tlcs900h.c,
3331 * src/pic16/main.c: modified port structures to reflect addition of
3334 * src/pic16/device.c (regCompare): registers are finally sorted by name,
3335 * (pic16_dump_section): for registers in same address reserve memory once,
3336 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
3338 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
3339 result is greater in size than right or left,
3340 * (pic16_genUMult8X8_8): there are some cases where the result can
3341 be 16 bits size, so handle these,
3342 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
3343 * (pic16_outBitC): modified to emit pcodes,
3344 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
3346 * (genDivOneByte): implemented algorithm to divide 8-bits,
3347 * (genCmp): uncommented goto, but issues still exist,
3348 * (genAnd): fixed a bug with variables >8bits,
3349 * (genPackBits): optimization added that uses BCF/BSF to change a
3351 * (genAssign): fixed bug when assigning floating point literals,
3352 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
3353 __sdcc_gsinit_startup label,
3354 * src/pic16/main.c (_pic16_init): removed search directory
3356 * (_pic16_initPaths): NEW, used to initialise search directories,
3357 * (_hasNativeMulFor): support functions for all except char/int
3358 multiplication, and char division,
3359 * (PIC16_port struct): modified entry for native mul support,
3360 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
3362 * (buildCallTree): call to register_usage is ifdef'ed out,
3364 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3366 * device/include/string.h: applied Stas Sergeev's patch to make this
3367 header file compatible with the preprocessor -Wundef option
3368 * src/SDCCmain.c (main): abort compilation if preprocessor reports
3369 failure (fixes bug #941458)
3371 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3373 * src/SDCCopt.c (killDeadCode): fixed bug #907733
3374 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
3375 that the variable, not the function, should be static
3376 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
3377 to be consistent with non-literal case
3379 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3381 * src/SDCCast.c (isConformingBody): fixed bug #949967
3382 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
3383 convilong): fixed bug #952086
3385 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3387 * src/SDCCmem.c (allocVariables): fixed bug #955321
3389 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3391 * src/hc08/main.c (_hc08_genAssemblerEnd),
3392 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
3393 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
3394 completely eliminated the use of a temporary file
3395 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
3396 when more than one file linked
3397 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
3399 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3401 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
3402 which fixes bug #543481
3403 * support/regression/tests/bug-751703.c: fixed comments left from a
3405 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
3406 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
3407 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
3409 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
3410 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
3411 are now changed to underscores in moduleName
3413 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3415 * as/mcs51/lkmem.c: better fix for bug #954173
3417 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3418 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3420 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
3421 * device/include/c8051f000.h,
3422 * device/include/c8051f120.h,
3423 * device/include/c8051f300.h,
3424 * device/include/c8051f310.h,
3425 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
3428 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3430 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
3431 and mailing lists, doc'ed --no-peep-comments, removed reference
3432 to knoppix (newest version has no LyX/LaTeX), other minor changes
3433 * src/SDCCglue.c (glue): save 2 bytes stack space with
3434 option --main-return. The ljmp could probably be avoided too
3436 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3438 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
3440 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3442 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
3443 * src/SDCCopt.c (isLocalWithoutDef),
3444 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
3445 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
3446 (credit to Maarten Brock for patch #949363, on which this is based)
3447 * support/regression/tests/bug-751703.c: some test cases of extern used
3448 within inner scopes.
3450 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3452 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
3454 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
3456 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
3457 dwWriteLabel): fix to create valid debugger symbols even when
3458 the module name has non-alphanumeric symbols in it
3459 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
3460 when a variable's allocation has been optimized away
3463 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3465 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
3467 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
3469 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
3471 * src/z80/gen.c (z80_emitDebuggerSymbol),
3473 * src/pic/gen.c (pic14_emitDebuggerSymbol),
3475 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
3477 * src/avr/gen.c (avr_emitDebuggerSymbol),
3479 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
3481 * src/SDCCdebug.c (emitDebuggerSymbol),
3483 * src/port.h: added a debugger struct to the port struct. Added a
3484 callback for defining debugger symbols
3486 * src/SDCCast.c (createLabel),
3487 * src/SDCC.y (labeled_statement): mark all compiler generated labels
3490 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
3491 iCode back to the ast for the function
3493 * src/hc08/ralloc.c (hc08_assignRegisters),
3494 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
3495 unneeded fields from the regs struct.
3496 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
3497 pushReg() & pullReg() functions instead of emitcode()
3499 * src/hc08/gen.c (genLabel, genhc08Code),
3500 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
3502 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
3505 * src/hc08/gen.c (genEndFunction, genhc08Code),
3507 * src/mcs51/gen.c (genEndFunction, gen51Code),
3509 * src/ds390/gen.c (genEndFunction, gen390Code),
3511 * src/z80/gen.c (genEndFunction, genZ80Code),
3514 * src/pic/gen.c (genEndFunction, genpic14Code),
3516 * src/pic16/gen.c (genEndFunction, genpic16Code),
3518 * src/avr/gen.c (genEndFunction, genAVRCode),
3520 * src/xa51/gen.c (genEndFunction, genXA51Code),
3522 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
3523 specific code to cdbFile.c and out of the backend code generators
3525 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
3526 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
3527 starting address is now 0
3531 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
3532 assembler directive for DWARF support
3533 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
3537 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
3539 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3541 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
3542 and inappropriate peephole optimization in jump tables
3544 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3547 * src/SDCCglue.c: sdccopt works for the hc08 port now
3549 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
3551 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
3553 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3555 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
3557 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3559 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
3563 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
3564 comments from the peephole optimizer replacement rules
3565 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
3567 * src/SDCCcse.c (updateSpillLocation),
3568 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
3570 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
3571 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
3572 objects far pointers
3574 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3576 * src/SDCCsymt.h: a missing part of my last change
3577 * src/pic/ralloc.c (regTypeNum),
3578 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
3580 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3583 * src/SDCCicode.c (aggrToPtrDclType),
3585 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
3586 ptrPseudoSymConvert),
3587 * src/pic/ralloc.c (regTypeNum),
3588 * src/pic16/ralloc.c (regTypeNum),
3589 * src/hc08/ralloc.c (regTypeNum),
3590 * src/ds390/ralloc.c (regTypeNum),
3591 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
3592 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
3594 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3596 * link/z80/lkmain.c (afile),
3597 * as/hc08/lkmain.c (afile),
3598 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
3599 prevent a pointer problem when a filename has no directory and
3600 no extension specified.
3602 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3604 * link/z80/lkmain.c (afile): allow periods in directory names
3605 * link/z80/lkmain.c (afile),
3606 * as/mcs51/lkmain.c (afile),
3607 * as/hc08/lkmain.c (afile): allow linker script file to have an
3608 extension other than ".lnk"
3609 * link/z80/lklex.c (getfid),
3610 * link/z80/lkmain.c (parse),
3611 * as/mcs51/lklex.c (getfid),
3612 * as/mcs51/lkmain.c (parse),
3613 * as/hc08/lklex.c (getfid),
3614 * as/hc08/lkmain.c (parse): Support comments in the linker script
3615 file on lines by themselves and after filenames
3617 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3619 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
3621 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3623 * src/z80/peeph-z80.def: removed some peephole rules that don't
3624 work with multibyte arithmetic (fixed bug #937126)
3625 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
3626 to registers and not global variables
3627 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
3628 geniCodePreInc, geniCodePostDec, geniCodePreDec,
3629 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
3630 checking for assignments not internally generated (fixed bug #931895)
3631 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
3632 structure member (fixed bug #930072)
3634 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3636 * src/SDCCmain.c (linkEdit),
3637 * src/hc08/main.c (_hc08_parseOptions),
3638 * as/hc08/Makefile.in,
3642 * as/hc08/lkrloc.c (relr, rele),
3643 * as/hc08/lkarea.c (lnkarea)
3644 * as/hc08/lkmain.c (afile, parse),
3645 * as/hc08/lkelf.c: support for ELF output
3646 * as/hc08/lks19.c (s19),
3647 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
3649 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3651 * as/mcs51/lkihx.c: Fixed bug #899105.
3653 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3655 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
3656 .dsp files from Unix to DOS.
3658 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3660 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
3661 function pointers; we have been compliant for several months now.
3662 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
3663 change that was accidently commented out
3664 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
3665 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
3668 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3670 * src/hc08/gen.c: output of all of the internal debugging information
3671 is now controlled by the D() macro; it is disabled by default
3673 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3675 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
3676 harder to keep the same registers during a CAST iCode
3677 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
3678 long via int can be done in a single cast, if the signedness is
3680 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
3681 putchar() in tinibios.c in ds390's library
3683 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3685 * src/SDCCast.c (decorateType): fixed bug #898889,
3686 cast result of a literal complement too
3687 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
3688 fixed check for bitfields
3690 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
3692 * src/SDCCicode.c (geniCodeLogic): made it static,
3693 (geniCodeLogicAndOr): added in order to fix bug #905492,
3694 (ast2iCode): fixed bug #905492
3695 * support/regression/tests/bug-905492.c: added
3696 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
3697 (processParms): fixed bug #927659: don't copy parms, this will clear
3699 * support/regression/tests/bug-927659.c: added
3701 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3703 * src/SDCCast.c (addCast): don't cast float to char
3704 * device/lib/libsdcc.lib: added _memmove
3706 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
3708 * device/lib/large/Makefile: fixed parallel execution by
3709 replacing `make` by `$(MAKE)`
3711 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3713 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
3714 offsets (fixes bug #923936)
3716 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
3718 * device/lib/small/Makefile: fixed parallel execution by
3719 replacing `make` by `$(MAKE)`
3721 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3723 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
3725 2004-03-23 Scott Dattalo <scott AT dattalo.com>
3727 * src/pic/gen.c (genCpl): multi-byte complements were not working.
3728 * src/regression/Makefile: Regression test was not running.
3730 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3732 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
3733 complement if possible
3734 * src/SDCCval.c (valComplement),
3735 * src/SDCCicode.c (operandOperation): fixed complement of literal
3736 * support/regression/tests/onebyte.c (testComplement): added
3738 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
3740 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
3741 return an optimized tree; actually replace actParm with the new tree
3742 * src/SDCCast.h: added some parantheses to remove side effects
3743 * support/regression/tests/bug-920866.c
3745 2004-03-21 Scott Dattalo <scott AT dattalo.com>
3746 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
3747 Bit operands were not being handled properly in the pic14 port.
3748 (now src/regression/add.c passes again).
3750 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3752 * src/SDCC.y (labeled_statement): case and default no longer require
3753 a following statement (RFE #893037)
3755 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3757 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
3758 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
3759 disabled (fixes bug #916294)
3760 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
3761 "mov a,acc"; patch provided by Lenny Story
3762 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
3764 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3766 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
3768 * src/ds390/gen.c (genFunction, genEndFunction),
3769 * src/ds390/ralloc.c (ds390_assignRegisters),
3770 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
3771 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
3772 pushed if there are parameters passed on the stack. Also, a cleaner
3773 way to decide if r0/r1 should be pushed/popped. (Together they fix
3776 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3779 * device/lib/mcs51/crtpagesfr.asm,
3780 * device/lib/mcs51/crtxinit.asm,
3781 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
3782 to avoid confusion with Si Lab's SFRPAGE register.
3784 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3786 * src/SDCCglue.c (emitMaps): allow public sfr variables
3787 * src/SDCCglue.c (initialComments): include compiler build date
3788 with compiler version and put the timestamp of the generated
3789 assembly file on a serperate line to be less confusing.
3790 * src/port.h: added genInitStartup hook
3797 * src/z80/main.c: genInitStartup initialize as NULL (default to
3798 historical behaviour)
3799 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
3800 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
3801 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
3802 library instead of hard coding it into the compiler.
3803 * support/regression/ports/mcs51-stack-auto/spec.mk,
3804 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
3805 * device/lib/mcs51/Makefile,
3806 * device/lib/small/Makefile,
3807 * device/lib/large/Makefile,
3808 * device/lib/mcs51/crtpagesfr.asm,
3809 * device/lib/mcs51/crtstart.asm,
3810 * device/lib/mcs51/crtxclear.asm,
3811 * device/lib/mcs51/crtxinit.asm,
3812 * device/lib/mcs51/crtclear.asm,
3813 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
3814 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
3815 and into user configurable files.
3816 * device/lib/clean.mk: clean mcs51 directory too
3817 * support/regression/tests/longlit.c: added static to T1 declaration
3818 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
3819 accesses in the initialization code
3821 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3823 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
3824 OSCTRIMVAL as noted in bug #916008
3826 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3828 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
3829 in loops with multiple exits (reported as incorrect registers
3830 used by Martin Helmling in Sdcc-user list)
3832 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3834 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
3835 made ds390 register extensions look less like error messages
3837 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3839 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
3840 reported by Adam Wozniak in Sdcc-user list
3842 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3844 * src/SDCCast.c (decorateType): fixed with bug and promotion in
3845 arithmetic optimizations, added debug output
3847 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3849 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
3850 * sdcc.spec: updated and split sdcc into 3 rpms
3851 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
3852 needed for literals of LEFT_OP and '+'
3853 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
3854 introduced RESULT_TYPE_NOPROM
3855 (geniCodeMultiply): fixed logic for decision if mul is optimized to
3857 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
3858 limited promotion to int only for '*'
3859 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
3861 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
3863 * src/pic16/gen.c (genSkip),
3864 (genc16bit2lit), (gencjneshort): commented out
3865 (is_LitOp): new helper function, checks operand type
3866 (genCmpEq): rewritten
3868 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3870 * support/regression/tests/bug-908454.c: added
3872 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
3874 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
3875 * src/SDCCicode.c (usualBinaryConversions): op needs int type
3876 (geniCodeCast): cosmetic, don't preserve bit storage class
3877 (geniCodeLeftShift): added promotion
3878 (geniCodeLogic): fixed regression
3879 * src/SDCCsymt.c (computeTypeOr): accept bits too
3880 (compareType): 2nd part of fix for bug #908454, needed for bitfields
3882 2004-03-07 Borut Razem <borut.razem AT siol.net>
3884 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
3886 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
3888 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
3889 version of pic16_genPackRegisters which does not check if ic is a
3891 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
3892 function cause string1.c regression test fails
3894 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3896 * sim/ucsim/configure.in,
3897 * sim/ucsim/configure,
3898 * sim/ucsim/doc/Makefile.in: use docdir
3899 * src/SDCC.y: fixed sbit atrributes
3900 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
3901 * src/SDCCast.c (decorateType): |^& need special promotion handling
3903 * src/SDCCsymt.h: moved definition of RESULT_TYPE
3904 * src/SDCCsymt.h (computeType),
3905 * src/SDCCicode.c: computeType() needs op
3906 * src/SDCCsymt.c (checkTypeSanity),
3907 * doc/sddman.lyx: "plain" bitfields are unsigned
3908 * src/SDCCsymt.c (computeTypeOr): added
3909 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
3911 * src/SDCCval.c (val*): computeType() needs op
3912 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
3913 * support/regression/tests/onebyte.c: added tests for |^&
3915 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
3917 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
3918 for writing icode into asm output.
3920 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
3922 * src/pic16/device.c: added some debug lines enabled
3923 with macro DEBUG_CHECK,
3924 * src/pic16/genarith.c: more debug in genPlus,
3925 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
3926 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
3927 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
3928 * (aopForSym): onStack symbols are re-placed in data memspace,
3929 and onStack flag is cleared,
3930 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
3931 copy temporary pcodeop,
3932 * (genPcall): added warning for not updating PCLATU,
3933 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
3934 always true for pic16 port,
3935 * (genMultOneWord): NEW, supports integer multiplication,
3936 * (genMult): modified to call genMultOneWord,
3937 * (ifxForOp): added warning when return NULL,
3938 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
3939 flag is set before call to operandFromSymbol for implicit
3941 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
3942 options.intlong_rent are set by default,
3943 * (_hasNativeMulFor): modified to allow port generation of integer
3945 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
3946 set regtype to REG_SFR for all registers, restricting seting the
3947 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
3949 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3951 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
3952 more than 500 times in the regression tests
3954 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3956 * support/Util/SDCCerr.h,
3957 * support/Util/SDCCerr.c,
3958 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
3960 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
3961 for symbol conflicts.
3962 * support/valdiags/tests/enum.c,
3963 * support/valdiags/tests/tentdecl.c,
3964 * support/valdiags/tests/struct.c: expect possible error messages
3965 referring to original symbol definitions.
3966 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
3968 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
3970 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
3972 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
3974 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
3976 * src/pic16/ralloc.c (newReg): fixed bug #908929
3978 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3980 * src/ds390/gen.c: added missing #include "main.h"
3982 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
3984 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
3985 checking if symbol is already in set,
3986 * src/pic16/device.h: prototype for checkAddSym,
3987 * src/pic16/gen.c: (_G): added entry interruptvector,
3988 * (assignResultValue): removed some commented out lines,
3989 * (genFunction): check for ISR via sym->type, absolute section for
3990 interrupt code is created via a new pBlock, the goto instruction is
3991 placed now correctly at the interrupt vector position, changed all
3992 references from ivec to _G.interruptvector,
3993 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
3994 is the interrupt is a high priority one, same for return from ISR,
3995 * src/pic16/glue.c: changed all calls of addSetHead for publics and
3996 externs to calls of checkAddSym,
3997 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
3998 pic16_pcode_verbose flag is set,
3999 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4000 * src/pic16/pcoderegs.c: message about how many registers are saved
4001 will only be emitted if pic16_pcode_verbose flag is set,
4003 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4005 * src/ds390/ralloc.h,
4006 * src/ds390/ralloc.c (ds390_regWithIdx),
4007 * src/ds390/gen.c (emitcode),
4009 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4010 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4011 ds390operandCompare, getRegsRead, getRegsWritten,
4012 initializeAsmLineNode): customized instruction size calculation for
4013 ds390, started basis for some register optimizations
4014 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4015 corresponding assembly output
4016 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4017 missing push/pop of r0/r1. Optimized push/pops
4019 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4021 * src/mcs51/main.c (instructionSize): fixed ACALL size
4022 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4024 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4026 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4027 the sorting of rlist with NULL elements
4028 * (print_idataType, print_idata): NEW to create idata sections
4029 * src/pic16/device.h: idataSymSet new variable
4030 * src/pic16/gen.c (genFunction): fixed some bugs in string
4031 comparing, improved the absolute section creation for ISRs,
4032 added FSR0L/FSR0H in registers that are saved in an ISR,
4033 * (genInline): fixed the processing of inline snippets,
4034 now they undergo no process by the peephole optimizer
4035 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4036 are placed in idataSymSet,
4037 * (pic16emitStaticSeg): extern symbols are added in externs,
4038 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4039 switching when aboslute variables are placed in access bank memory
4040 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4041 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4042 commented out with #if,
4043 * (pic16_packRegisters): reintroduce the check for CAST because some
4044 symbols are not correctly handled,
4045 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4046 pCodeInstruction instead of pCode,
4047 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4048 pCodeAsmDir definition,
4049 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4050 directive, then the argument directive is emitted without the leading
4051 tab, hack for inline labels which must be in the first column,
4052 * (compareLabel,pic16_findNextInstruction),
4053 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4054 * (insertBankSwitch): modified for the new pCodeAsmDir,
4056 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4057 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4059 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4061 * (pushSide): commented out with #if,
4062 * (assignResultValue): fixed some typos in saving
4064 * (genPcall): FIXED and sync'ed with genCall,
4065 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4066 * (genNearPointerGet): fixed to handle some more cases,
4067 implementation scheme via table reads,
4068 * (genConstPointerGet): modified to access code memory correct,
4069 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4070 and improved to handle some cases
4071 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4072 instead of "RETLW" for init data
4073 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4074 not IN_DIRSPACE, work around to reduce bank switching when aboslute
4075 variables are placed in access bank memory (<0x80 and >=0xf80),
4076 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4077 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4078 TBLWT_POSTDEC,TBLWT_PREINC
4079 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4080 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4082 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4083 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4084 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4085 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4087 2004-02-29 Borut Razem <borut.razem AT siol.net>
4089 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4090 support/Util/findme.h, support/Util/system.h: enhance binary relative
4091 search for lib and include by using findProgramPath()
4093 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4096 * src/SDCCpeeph.c (pcDistance),
4098 * src/mcs51/ralloc.h,
4099 * src/mcs51/ralloc.c (mcs51_regWithIdx),
4101 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4102 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4103 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4104 size calculation port specific, started basis for some register
4106 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4107 missing push/pop of r0/r1. Optimized push/pops
4108 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4109 * device/lib/_modsint.c (_modsint),
4110 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4111 and stack version so regression tests pass
4113 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4115 * src/Makefile.in (dep): include SLIBOBJS in dependency check
4116 * src/SDCCast.c (decorateType): catch another small optimization
4118 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4119 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4120 modified to finally use computeType() all over SDCC,
4121 see Feature Request #877103
4122 * src/SDCCval.h: cosmetic
4123 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4124 valCompare(); regression tested in muldiv.c
4125 * support/regression/tests/muldiv.c (testMod): mod sign follows
4128 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4130 * src/SDCCast.c (decorateType): fixed bug #902362
4131 * doc/INSTALL.txt: fixed install instructions for win32
4133 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4135 * device/include/Makefile.in (install): fixed by replacing spaces
4138 * doc/INSTALL.txt: updated for release
4139 * doc/sdccman.lyx: added warning for --xstack being buggy
4141 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4143 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
4144 to eliminate build warnings.
4145 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
4147 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
4148 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4150 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
4151 removed -penable-stack, added comment for stack pragma, added
4152 warning for not initializing the stack/frame registers, removed
4153 comment at interrupts section
4155 Stack is made permanent, there is no ability to disable stack usage.
4156 * src/pic16/device.h,
4157 * src/pic16/device.c: removed all references to USE_STACK macro,
4158 * src/pic16/device.c (pic16_dump_section): when no elements in
4159 rlist, free rlist before return,
4160 * (pic16_dump_int_registers): NEW, internal registers are a new set
4161 of general purpose registers reused by each function,
4162 * (checkAddReg): returns 1 if registers is added to set,
4163 * (pic16_groupRegistersInSection): when a registers is of type
4164 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
4165 * src/pic16/device.h: memRange and Assigned Memory are deleted,
4166 SRCASECMP macro is moved here from device.c
4167 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
4168 PO_PCLATU, PO_PRODL, PO_PRODH,
4169 * (pic16_pCodeOpType, genMinus,
4170 changed compares to "a" register, with AOP_ACC,
4171 * (pic16_genPlus): fixed some bugs and indented properly,
4172 * (pic16_addSign): changed size to size+offset in the MOVWF
4174 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
4175 multiply 8-bit operand by literal, result is 8-bit,
4176 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
4177 multiply 2 8-bit operand, result is 8-bit,
4178 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
4180 * src/pic16/gen.c: changed accUse to contain WREG only,
4181 * (pic16_emitcomment): renamed to pic16_emitpcomment,
4182 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
4183 true, do not use immediate addressing any more unless sym is a
4184 pointer in codespace,
4185 * (aopForRemat): do not use immediate addressing when symbol not in
4186 codespace and when symbol's address is requested,
4187 * (aopOp): for-loop in if(sym->accUse) is modified for the new
4189 * (aopGet): added case for AOP_ACC and don't return "accumulator
4190 bug" but WREG instead,
4191 * (popGetTempReg): pushes contents of temporary register in stack,
4192 * (popReleaseTempReg): pops contents of temporary register from
4193 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
4194 * (pic16_popGet): separated case AOP_ACC to return register WREG
4195 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
4196 or PO_IMMEDIATE and initializes their instance/offset appropriately,
4197 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
4198 the use of immediate pointers to certain cases only.
4200 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
4201 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
4202 * (assignResultValue, genCall, genRet): modified to use the new
4203 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
4204 genPcall is still broken,
4205 * (genFunction): added code to create 'A' type pBlocks when
4206 interrupt functions are generated, code not extensively tested yet,
4207 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
4208 * (genEndFunction): modified so ISRs pop stored registers from stack,
4209 * (genMultOneByte): cleanup,
4210 * (AccRsh): added flag andmask, to and result with appropriate mask,
4211 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
4212 * (genDataPointerGet): fixed and reenabled its use,
4213 * (genNearDataPointerGet): bugs fixed,
4214 * (genDataPointerSet): bugs fixed,
4215 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
4216 pic16_DumpSymbol, pic16_DumpOp,
4217 * src/pic16/genutils.h: function prototypes for the above functions,
4218 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
4220 * (pic16emitRegularMap): many many many improvements, but needs a
4222 * src/pic16/main.c: enable_stack in pic16_options is removed,
4223 * (_pic16_parseOptions): removed command line options -penable-stack,
4224 * (_process_pragma): emit stack symbol only when stack pragma is
4226 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
4227 redirected to FSR0L/FSR0H pair,
4228 * (pic16_get_op, pic16_get_op2): modifications and improvements,
4229 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4230 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
4232 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
4233 * (dumpPicOptype): NEW,
4234 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
4235 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
4236 with movff instruction,
4237 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
4238 added pic16_int_regs, some packRegsFor* functions are commented out,
4239 because produce errors,
4240 * src/pic16/NOTES: minor modifications
4242 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4244 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4245 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
4247 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
4248 * as/mcs51/lkaomf51.c: fixed bug #895763
4250 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
4252 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
4254 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4256 * doc/sdccman.lyx: added details about the HC08 storage classes and
4257 interrupts, fixed the register usage info for z80 & gbz80
4259 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
4261 * doc/sdccman.lyx: added more pic16 port documentation
4262 * device/include/pic16/: added header pic18fregs.h
4264 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4266 * doc/sdccman.lyx: added Vangelis' contribution
4268 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4270 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
4271 extend to the next CALL or PCALL, not just to the next CALL.
4273 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
4275 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
4277 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4279 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
4280 bug #895752 and a better fix for bug #716790
4282 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4284 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
4286 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4288 * doc/sdccman.lyx: minor changes, minor changed
4290 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4292 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
4293 which can't handle SDCC_NEWONEBYTEOPS,
4294 (geniCodeMultiply): removed conversion from mult to shift for pic14
4297 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4300 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
4301 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
4302 thus fixing bug #895406
4304 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
4306 * device/lib/_modsint.c,
4307 * device/lib/_modslong.c: sign follows divisor only
4308 * src/hc08/gen.c (genMultOneByte): if result size is 1,
4309 signs or signedness can be ignored
4310 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
4311 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
4312 added optimization for IFX,
4313 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
4315 reenabled optimization for IFX, which was removed on 2004-01-11
4316 * src/SDCCast.h: added return type IFX
4317 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
4318 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
4319 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
4320 SDCC_OLDONEBYTEOPS selects the old behaviour
4321 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
4322 changed again and commented promotion rule
4323 * src/SDCCval.c (valDiv): promotion no longer necessary
4324 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
4325 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
4327 * support/regression/tests/onebyte.c: added
4329 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
4331 * gen.c (genInline): reverted to old code for assemnling inline
4332 code because of bug reported James Chadd
4334 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
4336 * ralloc.h: missing declarations from previous patch,
4337 seems that patch for ralloc.h was never applied, fixed
4339 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4340 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4344 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
4345 indirect addressing. Marked FSR0 as deprecated
4346 * gen.c (pointerCode): commented out, not needed now
4347 (pic16_popGet2p): new MOVFF helper function
4349 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
4350 (shiftRLong): removed duplicate debugging info
4352 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4354 * src/ds390/gen.c (genNearPointerGet),
4355 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
4356 optimization with bits, but not bitfields.
4357 * src/ds390/ralloc.c (packRegisters),
4358 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
4360 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4362 * src/SDCCcse.c (algebraicOpts): copy operands before modification
4364 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4367 * src/SDCCicode.c (operandFromSymbol),
4368 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
4369 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
4370 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
4371 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
4372 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
4373 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
4375 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
4376 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
4377 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
4378 * src/SDCCsymt.c (newSymbol),
4379 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4382 * src/SDCCval.c (newiList): fixed bug #885705
4384 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4386 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
4387 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
4389 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4391 * device/include/c8051f120.h,
4392 * device/include/c8051f300.h,
4393 * device/include/c8051f310.h: added/updated header files for Silicon
4394 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4395 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
4396 in new section Submitting patches
4398 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4400 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
4401 genFarPointerGet, genCodePointerGet, genGenPointerGet,
4402 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4404 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
4405 genFarPointerGet, genCodePointerGet, genGenPointerGet,
4406 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4408 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
4409 genFarPointerGet, genCodePointerGet, genGenPointerGet,
4410 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4412 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
4413 genFarPointerGet, genCodePointerGet, genGenPointerGet,
4414 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4415 genGenPointerSet): fixed bug #892400
4416 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
4417 to eliminate build warnings.
4418 * src/SDCCast.c (processParms),
4419 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
4421 * support/valdiag/valdiag.py: added GCC to the list of defines active
4422 when compiling with gcc
4424 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4426 * support/Util/SDCCerr.h,
4427 * support/Util/SDCCerr.c,
4428 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
4429 with an incomplete type (fixed bug #883734)
4430 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
4432 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4434 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
4436 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4438 * src/SDCCast.c (decorateType),
4439 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
4440 function pointer implementation
4441 * support/regression/tests/funptrs.c: added tests to verify both forms
4442 of function pointers work correctly. Added tests to verify parameters
4443 are passed in the correct order.
4445 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
4447 * device.c (regCompare): registers are sorted by ascending
4448 address and increasing size,
4449 * main.c (_pic16_finaliseOptions): removed the declaration
4450 of compiler macro MCU. Now a macro of the format pic18fxxxx
4451 will be defined from the command line
4453 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4454 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4456 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
4457 PCOP_RLCF was overwritten!
4458 * gen.c (genSkip): commented out calls to pic16_emitcode,
4459 * (genCmpEQ): fixed "long" compares, only high word did get compared,
4461 * (genRRC): added debugging info,
4462 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
4463 overwritten while shifting,
4464 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
4465 overwritten while shifting,
4468 * (shiftLLeftOrResult),
4469 * (shiftRLeftOrResult),
4471 * (shiftLLong): Implemented with pic16_emitpcode
4472 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
4473 * (genLeftShift): Fixed bug, operand for shift by variable always
4474 was "and"ed with 0x0f,
4475 * (genLeftShiftLiteral),
4477 * (genRightShiftLiteral): added debugging info,
4478 * (genrshFour): added comment,
4479 * (genRightShift): determined signedness from operand "left"
4482 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4484 * src/SDCCicode.c (geniCodeParms),
4485 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
4486 function pointers, fixed function pointer bugs #861242 and #861896
4488 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4490 * device/include/c8051f000.h,
4491 * device/include/c8051f120.h,
4492 * device/include/c8051f300.h: added header files for Silicon
4493 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4495 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
4497 * src/SDCCast.c (processParams): added new type flow and restructured
4498 (gatherAutoInit): added new type flow
4499 (addCast): cosmetic changes
4500 (getLeftResultType): added new type flow for array indices, patch
4501 provided by Stas, see FR #877103
4502 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
4503 array index patch by Stas
4504 * src/SDCCast.h: added prototype getResultTypeFromType()
4506 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
4507 * src/pic/glue.c (pic14emitStaticSeg),
4508 * src/pic16/glue.c (pic16emitStaticSeg),
4509 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
4510 for initialization of symbols
4511 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
4512 * support/Util/SDCCerr.h:
4513 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
4514 * .version: bumped version number to 2.3.8
4515 * device/include/Makefile.in (install),
4516 * doc/Makefile (install): changed to 'rm `find ...`' construct to
4519 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
4521 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
4522 Slade Rich fixed an optimization bug
4523 * src/pic/pcodepeep.c,
4524 * src/pic/pcoderegs.c
4525 * doc/Makefile (install): added test for directory
4527 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4529 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
4530 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
4531 * src/pic/ralloc.c (getRegPtr, getRegGpr),
4532 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
4533 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
4534 * as/mcs51/asexpr.c (term),
4535 * as/hc08/asexpr.c (term): fixed bug #887146
4537 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4539 * src/z80/gen.c (genMult): handle single byte result product
4540 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
4541 DUMMY_READ_VOLATILE (fixed bug #886367)
4543 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4545 * support/regression/tests/libmullong.c: fixed logic, on little endian
4546 hosts we ended without a mullong_wrapper()
4548 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4550 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
4551 virus/worm forged address usage.
4553 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4555 Fixed promotion, it should be done on AST level:
4556 * src/SDCCast.c (addCast): added promotion to int
4557 (decorateType): updated call to upCast()
4558 * src/SDCCicode.c (geniCodeLeftShift): removed call to
4559 usualUnaryConversions()
4561 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
4563 * support/regression/tests/literalop.c (mulWrapper): Added a
4564 wrapper to remove integer overflow warnings.
4566 * support/regression/tests/float_trans.c: Made work on host.
4568 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
4571 * support/regression/generate-cases.py (main): Changed from inline
4574 * doc/Makefile (install): Changed to depth first to get rid of
4575 missing directory install warning.
4577 * as/Makefile (install-doc): Made work on Mac.
4579 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
4581 * src/SDCCast.c: added an additional type flow in decorateType() of
4582 opposite direction, see feature request #860006; it's enabled at runtime
4583 by setting the environment variable SDCC_NEWTYPEFLOW
4584 * src/SDCCast.h: changed prototype of decorateType()
4585 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
4586 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
4587 'char' to 'int' can be omitted, if both operands are 'unsigned char';
4588 see feature request #877103
4589 * src/SDCCval.c: updated call of decorateType()
4590 (valBitwise): fixed bug #882876
4591 (valMinus): added promotion
4592 (valLogicAndOr): result is unsigned
4593 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
4594 * src/SDCCsymt.c (computeType),
4595 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
4596 must not cause an unsigned operation
4597 * src/pic/glue (pic14emitRegularMap),
4598 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
4600 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
4602 * src/pic/pcode.c (PCodeID): commented out left over debug code
4604 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4606 * support/valdiag/tests/overflow.c: added shift tests
4614 * src/pic/pcodepeep.c,
4615 * src/pic/pcoderegs.c,
4617 * src/pic/ralloc.h: applied patch from Slade Rich;
4618 added support for multiple code pages and multiple RAM banks on the
4619 PIC 14 port. The ASM files now no longer simply assume all the
4620 code / RAM are in the same page / bank. This means the linker can
4621 safely allocate code/RAM of separate ASM files to different pages/banks.
4622 * doc/sdccman.lyx: added Slade's tips
4623 * src/mcs51/peeph.def: fixed bug #880768
4625 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4627 * src/hc08/ralloc.c (rematStr): fixed bug #879282
4628 * src/SDCCast.c (decorateType): fixed bug #880197
4630 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
4632 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
4635 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
4636 strtof is not part of C89 and isn't included with Mac OS X.
4638 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4640 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
4641 shiftL2Left2Result): fixed bug #879326
4642 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
4643 (genMultOneByte): fixed bug in signed vs unsigned multiplication
4644 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
4645 address fetch for clr instruction
4646 * device/lib/hc08/_mulint.c: created optimized assembly version
4647 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
4649 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4651 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
4652 proposed in FR #877103
4654 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4656 * src/SDCCval.c (cheapestVal): added missing checks
4657 * src/SDCCicode.c (usualBinaryConversions): fixed condition
4658 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
4660 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
4662 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
4665 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
4667 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
4668 loaded with the linker search paths (-L arguments) and the libraries
4669 to be linked with the current source (-l arguments). Changes
4670 currently will affect only the pic16 port.
4671 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
4672 include path the port specific paths and port specific libraries,
4673 * gplink command now contains the $3 argument,
4674 * src/pic16/device.h,
4675 * src/pic16/device.c,: structure PIC_device is made public and
4676 renamed to PIC16_device, the same for variable Pics which is renamed
4677 to Pics16. Updated all references to them.
4678 * src/pic16/glue.c (pic16glue): corrected bug with code
4679 initialization which bypassed the variable initializations block.
4681 * device/lib/pic16/Makefile.rules: removed --penable-stack from
4682 COMPILE_FLAGS and added the --nostdinc option
4684 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4686 * device/include/mc68hc908jb8.h: Register defs for another member
4687 of the hc08 family. Contributed by Bjorn Bringert - thanks!
4689 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
4691 Documenting changes from previous commits.
4692 * configure.in (version 1.56),
4693 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
4694 when generating output files to configure the pic16 library,
4695 but now I've commented it out, since gputils aren't installed in the
4696 SF compile farm, so library won't compile
4698 * device/lib/Makefile.in (version 1.56): initially I've added in
4699 target 'all' the prerequestive 'model-pic16' so it compiled the
4700 pic16 library, but now I've commented it out for the same reasons
4702 * added targets 'model-pic16' and 'objects-pic16' to compile the
4704 * added target 'port-specific-objects-pic16' to handle the
4705 generated libraries and copy them into the build/ directory
4706 * added target 'clean-intermediate-pic16' to clean intermediate
4707 files into pic16 directory
4708 * in target 'installdirs' added line to create directory pic16 in
4709 the installation path
4711 * device/include/Makefile.in (version 1.11): in target 'install'
4712 added lines to copy all header files to installation path,
4713 * in target 'installdirs' added line create directory for pic16
4714 headers in the installation path
4716 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
4718 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
4721 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4724 * device/lib/configure.in,
4725 * device/lib/configure: fixed for autoconf 2.57
4727 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4729 * src/z80/main.c (_parseOptions): fixed the portmode= command line
4730 option so that it actually works. Made it specific to the z80, since
4731 the gbz80 doesn't have these kinds of I/O ports.
4733 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4735 * device/include/z180.h,
4736 * device/lib/_memcpy.c,
4737 * device/lib/_memmove.c,
4738 * device/lib/_mulint.c,
4739 * device/lib/ser_ir.c,
4740 * device/lib/ser_ir_cts_rts.c,
4741 * device/lib/_strcmp.c,
4742 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
4743 * src/z80/main.c (_process_pragma): add support for pragmas bank and
4744 portmode; added deprecation warning for bank= and protmode= forms.
4745 Also, guard against buffer overflow.
4746 * src/z80/gen.c (aopGet): generate better code for sfr banked read
4748 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4750 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
4751 changed interrupt vector table generation to only emit declared vectors.
4752 * device/include/Makefile.in: added missing backslash
4753 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
4755 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4757 Mainly changes to support compilation of the device libraries
4758 * src/pic16/device.c: stack is allocated via symbol and not
4759 via literal number. The symbol is placed in the corresponding
4760 position of the data ram
4761 * (pic16_dump_section): relocatable and absolute uninitialized
4762 data are now emitted in sorted order to reduce section naming,
4763 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
4764 weren't marked as being in the access bank,
4766 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4768 Added portion of GNU PIC Library under the directory
4769 device/include/pic16 and device/lib/pic16. These files
4770 contain the declarations of SFRs for the PIC18Fxx2 devices.
4771 The directory is initialized via configure from toplevel.
4773 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
4775 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
4776 the spilllocations to be compared correctly
4778 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4780 * src/SDCCast.c (decorateType): fixed bug introduced today
4782 2004-01-12 Borut Razem <borut.razem AT siol.net>
4784 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
4785 doc/sdccman.lyx: upper case pragmas are deprecated
4787 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4789 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
4790 in simpler and even better code
4792 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4794 * src/SDCCicode.c (operandOperation): fixed bug #874819
4795 * src/SDCCast.c (decorateType): fixed
4796 char foo (unsigned long ul) { return ul > 0; }
4798 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4800 * doc/sdccman.lyx: Moved and added some sections, small changes
4801 all over. Telling LaTeX to be less strict with word spacing
4802 to better keep the right margin. Changed some notes about
4803 maintainance of the ports in section 3.2.1 - is it OK like this?
4805 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4807 SDCC source changes:
4808 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
4809 convilong): modified to inform the pic16 port that builtin functions
4812 PIC16 PORT specific changes:
4813 * src/pic16/device.c pic16_dump_equates() added,
4814 processor registers declared internally by the port are emitted in
4815 the translation as equates,
4816 * src/pic16/gen.c: inline code is passed unprocessed to the
4818 * (pic16_popGetLit2): fnuction modified to take second operand as
4819 pCodeOp pointer and not as literal,
4820 * (popRegFromIdx): prefixed with pic16_,
4821 * (pic16_popCombine2): modified to receive already allocated pCode
4823 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
4824 * (genFunction): initializes local stack frame and pushes on stack
4825 all the registers used by this function,
4826 * (genEndFunction): restores all registers from stack and restores
4828 * src/pic16/glue.c (pic16emitRegularMap): various changes and
4830 * (pic16glue): changed the program startup sequence,
4831 * added new dbName code 'A' for functions placed in absolute section
4832 * src/pic16/main.c: added function attribute _naked,
4833 * added pragma 'code' to place a fnuction at an absolute address,
4834 * added command line arguments --debug-ralloc and --pcode-verbose,
4835 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
4836 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
4837 * (pic16_newpCodeOpLit2): modified to take the second operand as
4839 * (pic16_printpBlock): modified to emit each function in a separate
4841 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
4842 UPPER for immediate operands,
4843 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
4845 * src/pic16/peeph.def: all peepholes with movff are commented out,
4846 because there is a problem in the pcode peep optimizer,
4847 * src/pic16/ralloc.c: the register allocator can now reuse local
4848 function symbols for another function. This saves register usage.
4849 * src/pic16/ralloc.h: added flag isLocal in structure regs,
4851 Added file src/pic16/NOTES with information about program writing on
4852 the current port version.
4854 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4856 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
4857 and peephole 252 (array access)
4859 2004-01-09 Borut Razem <borut.razem AT siol.net>
4861 * src/SDCCmain.c : fixed #872250: -l command line defined library
4862 files are scanned before standard library files
4864 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4866 * src/SDCCast.c (decorateType): fixed bug #874046
4868 2004-01-09 Borut Razem <borut.razem AT siol.net>
4870 * support/scripts/sdcc.nsi: remove previous installation
4872 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4874 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
4875 bytes for last interrupt vector (mcs51)
4876 * sdcc.spec: fixed typo
4878 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4880 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
4881 gen51Code): more efficient parameter receive for --model-large
4884 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4887 * src/z80/main.c: added missed needLinkerScript flags (more than
4888 one port structure defined in these file)
4889 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
4892 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
4894 * src/SDCCmain.c: removed various references to DEFAULT_PORT
4895 * src/port.h: added flag needLinkerScript in port->linker
4896 structure to inform whether to create a .lnk file or not,
4904 * src/z80/main.c: changed appropriately to configure
4905 needLinkerScript flag
4907 * src/pic16/gen.c (genAddrOf): fixed bug #863624
4908 * src/pic/glue.c: added variable udata_section_name to
4909 override default uninitialized data segment definition for
4910 devices only with SHAREBANK memory (reported from Erik Epetrich)
4911 * (pic14emitOverlay): modified to emit a commented overlay segment
4912 directive when no overlay data exist
4913 * (picglue): modified to emit uninitialized data segment
4914 according to udata_section_name
4915 * src/pic/main.c (_pic14_parseOptions): added command line
4916 options --udata-section-name=[name] to override default
4917 udata definition name
4918 * modified _linkCmd and _asmCmd to include compiler passed
4919 arguments via -W option
4920 * src/pic16/main.c: added $l in _asmCmd, changed extension for
4921 object file from '.rel' to '.o' in port->linker structure,
4922 changed size of fptr from 2 to 3 in port structure
4924 2004-01-07 Borut Razem <borut.razem AT siol.net>
4926 * support/scripts/sdcc.nsi: update PATH
4927 * support/scripts/sdcc.ico: craeted
4929 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4931 * device/include/Makefile.in: fix install
4932 * doc/Makefile: fix install
4934 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4936 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
4938 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
4939 how the function variable allocation summary is displayed; also
4940 include information about variables allocated to the overlay
4943 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4945 * as/mcs51/lkmain.c: Help about -Y option
4946 * as/mcs51/lkarea.c: Fixed gcc warnings
4948 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
4950 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
4952 * support/valdiag/tests/overflow.c: added
4953 * src/SDCCast.c (decorateType),
4954 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
4955 LEFT_OP (left shift)
4957 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4959 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
4960 (default behaviour).
4962 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4964 A python script to validate compiler diagnostic messages. It can be
4965 used to verify that sdcc complains about bad c source code and
4966 gives a good location of the error.
4967 * support/valdiag/Makefile,
4968 * support/valdiag/valdiag.py,
4969 * support/valdiag/tests/*
4971 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4973 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
4974 * src/SDCCsymt.c (newEnumType),
4976 * support/Util/SDCCerr.c,
4977 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
4979 * support/regression/tests/enum.c: added test for enum values that
4980 require at least 2 bytes of storage.
4982 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
4984 * src/common.h: added ifndef/define/endif macros
4985 around the header file.
4986 Bug reported from Jesus Calvino-Fraga
4988 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
4990 * sdcc.spec: updated
4991 * device/include/Makefile.in: don't install CVS directories
4992 * device/lib/Makefile.in: added removal of CVS directories after install
4993 * doc/Makefile: fixed install, added local_icons
4994 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
4995 * src/mcs51/gen.c (genRightShift): fixed bug #870788
4996 * src/ds390/gen.c (genRightShift): fixed bug #870788
4997 * src/SDCCast.c (decorateType): fixed bug #870781
4999 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5001 PIC16 port related changes:
5002 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5003 added variable stackPos,
5005 * gen.c: genCall, assignResultValue: added support for
5006 pushing/retrieving function parameters to/from stack,
5007 genFunction,genEndFunction: setup stack frame for the
5009 genAddrOf: will be changed according to bug 863624
5011 * added files genutils.c and genutils.h which contain gen*
5012 debugged and optimised functions extracted from gen.c
5014 * glue.c: added variable 'externs' which holds extern symbols,
5015 pic16emitRegularMap: is modified to properly handle relocatable
5016 symbols under the new scheme,
5017 pic16createInterruptVect: is modified
5018 pic16printPublics: is modified to emit 'global' assembler directives,
5019 added pic16_printExterns to print extern symbols,
5020 pic16glue: initializes stack/frame pointer in the beginning of
5021 the assembly output. Temporary hack, will be corrected later,
5022 because gplink yet does not support stack and SDCC does not
5023 yet support a type of crt0.o object to create the final binary.
5025 * Removed many lines that contain 8051 legacy code.
5026 * The code is finally placed under a 'code' directive.
5027 * Added port specific options.
5029 * _process_pragma: simplified since now we do not need *special*
5030 include file to define SFR registers. But a separate header
5031 will be needed. This will be developed later.
5032 * _pic16_parseOptions: added, parses port specific options:
5033 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5034 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5035 --preplace-udata-with=
5037 * _pic16_setDefaultOptions: modified to initialize section names,
5038 but hack is temporarly out of order since it needs improvement.
5039 * _pic16_genAssemblerPreamble: configuration words are emitted by
5040 their address instead of their name. This part is incomplete and
5041 supports only the 18Fxx2 devices. Other devices will emit an error
5042 during assembly since they do not contain the same set of config
5044 * _pic16_genIVT: is modified,
5046 * pcode.c: added definitions for some hardware registers that are needed
5048 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5049 All PCI entries are updated. Now LFSR is supported.
5050 * Removed pic16_pciTRIS is mentioned by mdubuc in source
5051 * added pic16_newpCodeOpLit2 to support instructions with
5052 two literal arguments
5053 * pic16_pCode2str: corrected code that emits assembler instructions
5054 with two literal operands and those that have an access bit modifier
5055 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5056 this fixes a bug which caused some labels to be lost, when an
5057 assembler directive was added, i.e. banksel,
5058 * pic16_FixRegisterBanking: improved logic that causes the insertion
5060 * InlineFunction: functions that are called once, are not any more
5061 inlined. This can be a port option in the future,
5063 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5065 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5066 hold the corresponding uninitialized symbols,
5067 * pic16_allocProcessorRegister: registers have explicit marked the
5069 * pic16_allocInternalRegister: registers are explicit marked as
5071 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5072 processing list, so bit registers were lost,
5075 * ralloc.h: added field 'accessBank' and original symbol operand
5076 in register definition,
5077 * removed the field isMapped from register definition,
5079 ** Several functions have been removed from various sources:
5080 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5081 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5082 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5083 pic16_assignRelocatableRegisters
5085 ** others have been introduced:
5086 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5087 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5089 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5091 * support/scripts/inc2h.pl: changed definition of BIT_AT
5092 to emit 'sbit at' instead of 'bit at'. This was a request.
5094 PIC16 port related preliminary changes:
5095 * gen.c: prefixed function popRegFromString with
5096 pic16_ and all references to it corrected
5097 * pcode.c: all pic16_pc_* hardware registers prefixed
5098 with underscore (_),
5099 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5100 * ralloc.c: newReg(): when register is REG_SFR then
5101 set address to rIdx,
5102 pic16_allocProcessorRegister(): marks register wasUsed=0
5103 pic16_writeUsedRegs(): added a call to assign processor
5104 registers via pic16_assignFixedRegisters
5106 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5108 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5109 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5110 variables in unused register banks. Also the SSEG is placed
5111 wherever there is enough space for it, and IDATA can be anywhere
5112 in internal RAM. For now compile using -Wl-Y[stack_size].
5113 The mem file is different for this option as well, since it
5114 makes no sense of talking about DSEG lenght.
5116 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5118 * src/SDCClrange.c: fixed bug 869095 that caused segfault
5119 in certain cases, e.g. when ROM assignment, patch provided
5120 from Albert den Haan.
5122 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5124 Many signedness and type propagation fixes:
5125 * src/SDCCicode.c: made geniCodeCast() static
5126 replaced SPEC_ by IS_ (cosmetic)
5127 (operandOperation): fixed div and mod operation
5128 (usualBinaryConversions): added support for promotion of char
5129 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5130 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5131 (geniCodeAdd): an array index will stay unsigned, even if promoted
5133 (geniCodeArray): ditto
5134 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5135 * src/SDCCsymt.c (computeType): added more support for char;
5136 promotion of char is selectable by promoteCharToInt, fixed signedness
5138 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5139 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5140 * src/SDCCval (val*): replaced signedness calculation by
5142 rearranged if-branches (cosmetic)
5143 (valShift): added warning W_SHIFT_CHANGED
5144 (valCompare): fixed problem with different types
5145 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
5146 * support/regression/tests/literalop.c: added many cases
5147 * support/regression/tests/ast_constant_folding.c: changed finally to
5149 * .version: new year, new version: 2.3.7
5150 * src/SDCCmain.c (main): applied patch #866468
5151 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
5152 provided by Scott Bronson
5153 * doc/sdccman.lyx: updated documentation for sdcdb
5154 updated and added chapter tips
5156 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5158 * src/SDCCsymt.h: missing from yesterday's commits
5160 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5162 * src/SDCC.y (struct_or_union_specifier),
5163 * support/Util/SDCCerr.c,
5164 * support/Util/SDCCerr.h: verify that struct & union tags are used
5167 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5169 * src/SDCCglobl.h: missing from yesterday's commits
5171 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5173 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
5174 sft_attributes, struct_declaration, parameter_declaration,
5175 type_name, start_block, declaration_list),
5176 * src/SDCC.lex (check_type): support redefinition of typedef names
5178 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5180 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
5181 aligned xdata arrays. Erik helped me with the if clause.
5183 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5185 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
5188 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5191 * src/SDCCast.c (newAst_),
5193 * src/SDCCicode.c (ast2iCode, newiCode),
5195 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
5196 expr, statement, expression_statement, selection_statement,
5197 iteration_statement, expr_opt, jump_statement): foundation for tracking
5199 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
5202 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5204 * support/Util/SDCCerr.c,
5206 * src/SDCCast.c (createCase, createDefault, decorateType),
5207 * src/SDCClabel.c (labelUnreach),
5208 * src/SDCC.y (labeled_statement, jump_statement): More improvements
5210 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
5211 (with thanks to Stas Sergeev)
5212 * device/include/time.h,
5213 * device/lib/time.c (CheckTime): suppress unreachable code warning
5215 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5217 * src/SDCCast.c (createIvalCharPtr),
5218 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
5220 * support/regression/tests/nullstring.c: tests for these two bugs
5222 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5224 * support/Util/SDCCerr.h,
5225 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
5226 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
5227 about storage class and 'at' used inside struct or union
5228 * src/SDCCBBlock.c (iCodeFromeBBlock),
5229 * src/SDCCcse.c (ifxOptimize),
5230 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
5231 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
5232 printIval, emitStaticSeg, emitOverlay),
5233 * src/SDCClabel.c (deleteIfx),
5234 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
5235 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
5236 gatherAutoInit, processParms),
5237 * support/Util/SDCCerr.h,
5238 * support/Util/SDCCerr.c (werrorfl): Support for better error location
5239 reporting for post-parse errors.
5241 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5243 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
5244 implicit casts via union; they don't work on big endian systems
5245 (possible fix for bug #861138)
5247 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5249 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
5250 * src/mcs51/main.c: fixed the fix for bug #737001
5252 2003-12-15 Borut Razem <borut.razem AT siol.net>
5254 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
5256 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5258 * support/makebin/makebin.c: put output in binary mode
5260 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5262 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
5263 xdata and data memory on startup. Set the environment variable
5264 SDCC_NOGENRAMCLEAR to disable this.
5265 * src/mcs51/peephole.def,
5266 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
5267 (allows non-interrupt and interrupt code to safely compete for a resource
5268 without the non-interrupt code having to disable interrupts)
5270 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5272 * src/SDCCicode.c (geniCodeAdd),
5273 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
5274 with valFromType if type might be a pointer and host is big endian).
5275 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
5276 types, not just integer types.
5277 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
5278 multiply defined with mismatching "at" address.
5280 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5282 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
5283 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
5284 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
5285 with embedded nulls (fixed bug #753752)
5287 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5289 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
5290 Apparently this did not see much testing (endless loop)
5292 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5294 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
5296 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5298 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
5299 gracefully handle NULL memmap pointers
5301 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5303 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
5304 instead of deleting the iCode when an operand is volatile
5305 * src/z80/gen.c (genDummyRead),
5306 * src/mcs51/gen.c (genDummyRead),
5307 * src/ds390/gen.c (genDummyRead),
5308 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
5310 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
5311 * src/SDCC.y: fixed bug #850420
5313 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5315 Applied z80 i/o port patch from Peter Townson and fixed some operators
5316 to better handle operands in A register.
5317 * device/include/z180.h
5323 * src/z80/peeph-z80.def
5327 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5329 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
5331 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5333 * device/lib/hc08/_mullong.c: Removed extra #endif
5335 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5337 * sim/ucsim/hc08.src/inst.cc,
5338 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
5340 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
5341 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
5342 * device/include/stdarg.h: fixed varargs for hc08
5343 * device/lib/Makefile.in,
5344 * device/lib/hc08/Makefile,
5345 * device/lib/hc08/_mulint.c,
5346 * device/lib/hc08/_mullong.c: fixed some endian problems
5348 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5350 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
5351 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
5352 * device/lib/_gptrget.c,
5353 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
5355 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5357 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
5358 * src/SDCCast.c (astErrors): fixed bug #846007
5359 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
5361 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5363 * src/SDCCast.c (decorateType): disabled a transformation I added in
5364 revision 1.188 (access to fields of a structure at an absolute address);
5365 it breaks with bitfields, extern declarations, and gcse analysis.
5366 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
5367 could be assigned through a pointer, so don't complain.
5368 * src/SDCCast.c (astErrors),
5370 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
5372 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
5374 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
5375 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
5376 output of __config directives, since gpasm now supports them
5377 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
5378 pre-processor macro, i.e. -DMCU=p18f452
5379 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
5380 and modified to handle 'cast' icode similarly to '=' icode
5381 * src/pic16/device.h (typedef struct PIC_device): added field
5382 'extMIface' to indicate that chip has external memory interface
5383 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
5384 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
5387 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5389 * src/SDCC.y (pointer): fixed bug #846006
5390 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
5391 * src/SDCCast.c (decorateType): fixed bug #846009
5392 * src/ds390/peeph.def,
5393 * src/ds390/gen.c (genAnd, genOr),
5394 * src/mcs51/peeph.def,
5395 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
5397 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5399 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
5406 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
5410 * src/SDCCbitv.c: added function to free a bitvector
5412 * src/SDCClrange.c: added function to recompute the liveranges
5414 * src/ds390/ralloc.c,
5415 * src/hc08/ralloc.c,
5416 * src/mcs51/ralloc.c,
5418 * src/pic16/ralloc.c,
5419 * src/xa51/ralloc.c,
5420 * src/z80/ralloc.c: recompute the liveranges after register packing
5422 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
5424 * src/SDCCloop.c (newInduction): fixed bug #845630
5426 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5428 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
5429 inadvertantly left behind from my 2003-11-12 change
5431 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5433 Updated headers I neglected to commit yesterday.
5437 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5439 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
5440 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
5441 * src/SDCCopt.c (eBBlockFromiCode),
5442 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
5443 the creation of the key hash table from the sequencing so it can be used
5444 earlier (for some GCSE bug fixes still pending)
5446 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5448 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
5449 * support/regression/tests/addsub.c: testing genPlus shortcut
5451 2003-11-15 Borut Razem <borut.razem AT siol.net>
5453 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
5455 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5457 * src/SDCCcse.c (cseBBlock): fixed bug #527779
5458 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
5459 ordering is immaterial.
5460 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
5462 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5464 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
5465 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
5466 (SIGSEV) of bug #840381
5467 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
5468 unlink new file before rename if new and old filenames are the same)
5470 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5472 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
5473 uninitialized variables) for the mcs51. Set environment variable
5474 SDCC_GENRAMCLEAR to test.
5475 xdata initialization slightly shorter
5477 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5480 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
5481 #838241 & 780691 (basicly the same bug)
5482 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
5483 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
5485 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
5487 * src/SDCCmain.c (linkEdit): "fix" #834252
5489 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5491 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
5493 * src/SDCC.y: fixed bug #819403
5495 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5497 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
5498 the reentrant attribute.
5499 * src/hc08/gen.c (genPackBits): added missing stack readjustment
5500 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
5502 * src/SDCCast.c (decorateType): fixed bug with storage class not being
5503 updated during pointer dereference; f.e. ~(((char *)1)*) was being
5504 erroneously reduced to a literal.
5505 * src/hc08/ralloc.c (packRegisters, rematStr),
5506 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
5509 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5511 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
5512 * doc/sdccman.lyx: changed from 'article' to 'book'
5513 * doc/Makefile: readded test_suite_spec and cdbfileformat
5515 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
5517 * device/include/stdlib.h: include malloc.h to comply with ANSI
5518 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
5520 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5522 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
5523 * doc/clean.mk: also remove *.out files
5524 * doc/sdccman.lyx: some additions, larger top/bottom margins
5526 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5528 * src/SDCC.y: fixed bug #837365
5529 * support/regression/tests/bitopcse.c
5530 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
5531 a symbol (might be valop instead)
5532 * device/lib/Makefile.in: added errno.c to HC08SOURCES
5533 * device/lib/clean.mk: added hc08 to the cleaning list
5535 2003-11-04 Borut Razem <borut.razem AT siol.net>
5537 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
5539 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5540 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
5541 malloc is declared in standard stdlib.h
5543 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5545 * device/lib/hc08/Makefile: need to clean .rel not .o files
5546 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
5548 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5558 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
5559 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
5560 tests (which uses the port's oclsExpense function)
5566 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
5568 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5570 * src/SDCCcse.c (ifxOptimize),
5571 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
5572 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
5573 deleting the IFX iCode.
5574 * src/hc08/ralloc.c: reduced unneeded slocs
5575 * src/hc08/gen.c: fixed bug in asmopToBoolean
5577 2003-11-04 Borut Razem <borut.razem AT siol.net>
5579 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
5580 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5581 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
5582 transferred to configure
5584 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
5586 Use headers defined in the C[++] standards:
5587 * sim/ucsim/gui.src/serio.src/fileio.cc
5588 * sim/ucsim/gui.src/serio.src/frontend.cc
5589 * sim/ucsim/gui.src/serio.src/main.cc
5590 * sim/ucsim/gui.src/serio.src/posix_signal.cc
5591 * support/Util/NewAlloc.c
5597 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5599 * Added MSVC projects for hc08 assembler and linker:
5600 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
5601 /as/hc08/link_hc08.dsp
5603 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
5605 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
5607 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
5609 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
5611 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5613 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
5615 2003-10-31 Borut Razem <borut.razem AT siol.net>
5617 * support/cpp2/cpplib.h,
5618 support/cpp2/cpplib.c,
5619 support/cpp2/cpplex.c,
5620 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
5621 to switch _asm block preprocessing on / off. Default is
5622 #pragma preproc_asm +
5624 2003-10-31 Borut Razem <borut.razem AT siol.net>
5626 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
5627 when outputting comment blocks (when executed with -C option) and
5628 _asm (SDCPP specific) blocks
5630 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5632 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
5634 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
5636 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
5638 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
5640 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
5641 * src/SDCCast.c (decorateType): fixed bug #832664
5643 2003-10-31 Borut Razem <borut.razem AT siol.net>
5645 * support\cpp2\cpplex.c: fixed for SDCPP:
5646 comments(when executed with -C option) and _asm blocks
5647 were included even if they where in skipped #if block.
5648 Applied solution from GCC cpp 3.3.2
5650 2003-10-31 Borut Razem <borut.razem AT siol.net>
5652 * src/SDCC.lex: sdcc now understands both formats:
5653 '# <line_number> <file_name>' and
5654 '#line <line_number> <file_name>'
5655 * support/cpp2/cppmain.c: sdcpp now generates the standard
5656 '# <line_number> <file_name>' instead of former
5657 '#line <line_number> <file_name>'
5659 2003-10-30 Borut Razem <borut.razem AT siol.net>
5661 * support/cpp2/cpphash.h,
5662 * support/cpp2/cpplib.h
5663 * support/cpp2/cpplex.c,
5664 * support/cpp2/cppmain.c,
5665 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
5667 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5669 Fixed a number of problems revealed by bug #827883.
5670 * src/SDCCloop.c (loopInvariants): Spill location of the
5671 result operand should be recomputed if extracted from
5672 a loop. Also, don't extract assignments of an iTemp
5674 * src/SDCCast.c (isConformingBody): loop reversal should
5675 not occur if the control variable is involved with a
5676 relational operator.
5678 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5680 * .version: bumped to 2.3.6 to reflect the big improvements
5681 made by Erik and Klaus. Thanks!
5683 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
5685 Replaced the livrange code.
5686 * src/SDCClrange.c: added new LR code
5688 * src/SDCCBBlock.h: removed remainig parts from old LR code
5689 * src/ds390/ralloc.c,
5690 * src/ds390/gen.c: minor fixes to make it work with new code
5692 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5697 * src/hc08/ralloc.c: Fix various warnings related to the hc08
5698 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
5699 (tweaked fix for bug #818696)
5701 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5703 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
5705 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5708 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
5709 * src/mcs51/gen.c (gencjneshort),
5710 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
5711 more efficient (per Scott Bronson's suggestion)
5713 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5715 Extended the semantics of the critical keyword to include
5716 individual statements. See RFE #827755 and #799831
5721 * support/Util/SDCCerr.c
5722 * support/Util/SDCCerr.h
5727 2003-10-19 Borut Razem <borut.razem AT siol.net>
5729 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
5731 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5733 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
5735 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
5736 and predecrement operand is displayed
5738 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5740 * src/SDCCval.c (valMinus): fixed bug #826041
5742 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5744 Some hc08 related updates that I missed earlier
5745 * sim/ucsim/stypes.h
5746 * support/regression/ports/hc08/spec.mk
5748 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5750 New target "hc08" for the Motorola 68hc08 family of micros
5758 * sim/ucsim/hc08.src/*
5759 * sim/ucsim/configure.in
5760 * src/ucsim/configure
5761 * sim/ucsim/packages_in.mk
5764 * device/include/mc68hc908qy.h
5766 * device/lib/Makefile.in
5767 * support/regression/ports/hc08/*
5768 * support/regression/Makefile
5770 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5772 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
5774 * src/ds390/gen.c (genCast): fixed bug #821957
5776 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5778 * device/lib/logf.c: "fixed" overlay bug
5779 * support/regression/ports/host/spec.mk: added m library
5780 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
5781 * support/regression/tests/float_trans: added (for Eric)
5783 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
5785 * src/mcs51/gen.c (genCpl): fixed bug
5786 http://sf.net/mailarchive/message.php?msg_id=6263915
5788 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
5790 * src/SDCCast.c (decorateType): added extended constant folding
5791 * src/SDCCsymt.c (computeType): cleanup
5792 * src/SDCCval.c (valShift): minor optimization
5793 * support/regression/tests/ast_constant_folding.c: added
5795 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5797 * src/SDCCmain.c: removed some unintended changes
5799 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5801 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
5802 * src/z80/gen.c: fixed part of bug #817589
5803 * src/SDCCsymt.c (checkFunction): fixed bug #817895
5805 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
5807 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
5818 * src/ds390/ralloc.c
5820 * src/mcs51/ralloc.c
5822 * src/pic16/ralloc.c
5825 * src/z80/gen.c: removed unused label "release:"
5827 2003-10-06 Borut Razem <borut.razem AT siol.net>
5829 * src/SDCC.lex: removed definition of unused variables
5830 save_optimize and save_options
5832 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5834 * clean.mk: removed '=' in "-maxdepth=1"
5835 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
5836 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
5838 2003-10-06 Borut Razem <borut.razem AT siol.net>
5840 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
5841 my_unput() replaced by unput()
5843 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
5845 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
5846 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
5847 type-punned pointer will break strict-aliasing rules"
5848 Old LR behaviour is again default; Klaus' LR can be choosen by
5849 defining the environment variable LRKLAUS
5853 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
5854 * clean.mk: fixed removal of files in bin/CVS/
5855 * device/lib/clean.mk: fixed removal of directories small and large
5856 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
5858 * src/SDCCval.c: removed superflous test for pedantic
5860 2003-10-05 Borut Razem <borut.razem AT siol.net>
5862 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
5863 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
5864 message "unmatched #pragma SAVE and #pragma RESTORE"
5866 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5868 * doc/sdccman.lyx: various additions and updates (interrupts, inline
5869 assembly, critical functions, atomic, nojtbound)
5871 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
5873 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
5879 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5882 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5884 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5886 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5887 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
5888 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
5890 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5892 * src/z80/gen.c (genRet): fixed bug #524753
5893 * src/z80/gen.c (genCast): fixed internal error on cast from
5895 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
5896 fix for bug #477835 to the z80
5897 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
5898 for tracking iCodes in the peephole optimizer for z80
5900 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5902 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
5903 the other part of bug #814548
5904 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
5906 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
5908 * src/SDCCcse.c: fixed part of bug #814548
5910 2003-09-28 Borut Razem <borut.razem AT siol.net>
5912 * src/asm.c: rewrite of printILine() to use temporary file instead
5914 * src/xa51/main.c: commented out declaration of int rewinds
5916 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5918 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
5920 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5922 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
5923 * src/asm.c (printILine): Fixed bug #811015
5925 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5927 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
5930 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5932 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
5933 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
5934 to correctly handle general case of AOP_PAIRPTR
5935 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
5937 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5939 * src/mcs51/ralloc.c (fillGaps),
5940 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
5941 register positioning bug)
5943 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
5945 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
5947 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5949 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
5950 genCodePointerGet, genGenPointerGet, genFarPointerSet,
5951 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
5952 (ralloc doesn't intentionally do this now, but perhaps later)
5953 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
5954 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
5955 register positioning bugs (Fixed bug #762602 and #795325)
5956 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
5958 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
5959 lines that --i-code-in-asm generates
5961 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5963 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
5964 trying to fclose a FILE* that was already closed.
5966 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5968 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
5969 of const struct should be treated as if const themselves)
5971 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
5973 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
5975 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5977 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
5978 Unix (/n) and DOS (/r/n) line terminations.
5980 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5982 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
5985 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5987 * src/mcs51/gen.c (genFunction, genEndFunction),
5988 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
5989 and restore of EA so that stack offsets to parameters are
5990 correct when using both critical and reentrant/stack-auto.
5991 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
5992 size (can be triggered in error if sloc is shared between
5993 different sized objects)
5994 * device/include/float.h: fixed macros to explicitly use
5995 unsigned long where needed
5997 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5999 Feature req. 799831: added code to allow nesting of critical functions
6000 * src/mcs51/gen.c (genFunction, genEndFunction)
6001 * src/ds390/gen.c (genFunction, genEndFunction)
6003 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6005 * src/SDCCsymt.c (sclsFromPtr),
6007 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6008 support for standard C idiom of memory mapped variables; for
6009 example, *((xdata int*)0x1234) = 1 is now internally equivalent
6010 to xdata int at 0x1234 tempvar = 1.
6011 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6012 provided by Akiya ISHIDA
6014 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
6016 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6017 * src/SDCCval.c (constVal): added reduction from int to char
6018 * src/SDCCval.c (valMult, valDiv): fixed sign handling
6019 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6020 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6022 * support/regression/tests/shifts.c: fixed
6024 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6026 * src/z80/gen.c (genXor): Fixed bug #805445
6028 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6030 Fixed bug #621531 (const & volatile confusion in the type chain).
6031 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6032 refer to the const or volatile state of the pointer itself.
6044 * src/pic16/ralloc.c
6045 * support/regression/tests/const.c
6047 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6049 When checking for duplicated modules, use absolute paths
6050 instead of relative paths. Files changed:
6055 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6057 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6059 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6061 * device/include/string.h: added size_t typedef, changed
6062 prototypes to use size_t, eliminated separate reentrant and
6063 non-reentrant declarations, added _memmove declaration
6064 * device/lib/_memcpy.c: changed to use size_t instead of int,
6065 changed /4 to >>2 to avoid division library call
6066 * device/lib/_memcmp.c,
6067 * device/lib/_memset.c,
6068 * device/lib/_strncat.c,
6069 * device/lib/_strncpy.c,
6070 * device/lib/_strncmp.c: changed to use size_t instead of int
6071 * device/lib/_memmove.c: new file (fixed bug #772294)
6072 * device/lib/Makefile.in: added _memmove.c
6073 * device/lib/z80/asm_strings.s: fixed bug #772290
6074 * support/regression/tests/bitfields.c: attempt to fix host assertion
6075 failure on amd64-unknown-linux2.2
6077 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6079 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6080 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6081 * as/z80/asmain.c (main): fixed bug #801766
6083 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
6085 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6088 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6090 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6091 reported in bug #800609
6093 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
6095 * Top header beautifications in src/pic16 directory:
6096 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6097 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6098 pcoderegs.h, ralloc.c, ralloc.h
6099 * main.c: added top header and GPL license notice
6100 * pcode.c: fixed the if-conditional warning
6102 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
6104 * device/lib/_mullong.c: replaced int by short for gcc
6106 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6108 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6109 and JUMPTABLE iCodes properly now (worked by accident before)
6110 * src/mcs51/gen.c (leftRightUseAcc),
6111 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6112 iCode properly now. Use getSize instead of nRegs since a & b
6113 aren't part of the nRegs tally.
6115 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
6117 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6118 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6119 before instructions that use the _STATUS register
6121 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
6123 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6124 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6125 fetching of the pointer
6126 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6127 copied from genNearPointerSet()
6128 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6129 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6130 If they pop r0/r1 they must be called in the opposite order than aopOp().
6131 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6132 (resp. --stack-auto), prepared for --xstack
6134 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6136 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6138 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
6140 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6141 these ports have their own __sdcc_external_start()
6143 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
6145 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6146 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
6147 type for bits was changed. It resulted in bit variables becoming
6148 global, which is not permitted in PIC 14 assembly output.
6150 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6152 * doc/sdccman.lyx: various additions and updates. Rearranged sections
6154 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6156 Z80 and MCS51 linkers complaint if a public symbol is defined
6157 in more than one library module:
6161 * as/mcs51/Makefile.in
6163 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6165 A few small changes that speed up the peephole optimizer.
6169 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6171 Try to make the peephole optimizer smarter by maintaining
6172 an association between the assembly source code and the
6173 iCodes that originated them. Put this information to use
6174 with a new peephole rule condition "notVolatile" so that
6175 the rules can be aggressive yet still safe.
6180 * src/mcs51/peeph.def
6182 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6186 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
6187 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
6188 if the left or right operand symbols have the accuse flag set.
6190 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6192 Changed the type of the result of the ! (NOT) operator to char;
6193 previously it returned the same type as the source. This allows
6194 us to eliminate all the genFloatNot functions (all of its target
6195 implementations were very buggy) since !float can use the same
6198 * src/SDCCicode.c (ast2iCode): ! returns char
6199 * src/mcs51/gen.c (genNot, genNotFloat),
6200 * src/ds390/gen.c (genNot, genNotFloat),
6201 * src/z80/gen.c (genNot, genNotFloat),
6202 * src/pic/gen.c (genNot, genNotFloat),
6203 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
6205 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
6207 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6208 1. Interrupt would not compile properly. Ensure PCLATH register is saved
6209 during interrupts. Ensure WSAVE is located at a shared bank address.
6210 2. Fixed page selection in some places
6211 3. Fixed BTFSS/C to where necessary use registers directly and not simply
6212 the registers name strings.
6213 4. Fixed "signed / unsigned compare" compiler warnings.
6214 5. The PIC port manages its own allocation of the general purpose
6215 registers, but makes no attempt to reuse them. As a result when
6216 compiling it soon runs out of general purpose registers. Some
6217 additional code was added to the files pcode.c and device.c to walk
6218 through the function call tree and rename the registers so that they
6228 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
6229 genPlus() & genMinus() when the result is the same as left or right
6231 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6233 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
6235 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6237 Made bitfield a distinct type from bit so that bitfields
6238 convert as per ANSI C and bits retain their traditional
6239 boolean style behaviour. Implemented bitfield support in
6247 * src/ds390/gen.c: bit v bitfield split
6248 * src/z80/gen.c: New support for bitfields
6249 * support/regression/tests/bitfields.c: reenabled z80,
6252 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6254 Rules 246.x, 247.x relate to bitfields, the others speed up
6255 access to xdata mapped I/O devices.
6257 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
6259 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6261 Cleaned up genPackBits and genUnpackBits and added two helper
6262 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
6263 for literal assignments in genPackBits (thanks to Frieder for
6269 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6271 Fixed bug #748310 (pointer to function type mishandled when the
6272 function name is omitted). Also fixed a SIGSEGV when a function
6273 attribute (reentrant, etc) is used on a non-function or on a
6274 function but misplaced before the parameter list.
6276 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
6278 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
6279 * support/Util/SDCCerr.h,
6280 * support/Util/SDCCerr.c: Added func attr misuse error msg
6282 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
6284 Fixed bug #787649 by anonymous
6285 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
6286 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
6288 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6290 Fixed numerous bitfield problems.
6292 * src/SDCC.y: More bitfield related error checking
6294 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
6295 * support/Util/SDCCerr.h,
6296 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
6297 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6298 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6299 * support/regression/tests/bitfields.c: tests added
6301 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6303 Made the constant following the "interrupt" keyword optional. If
6304 omitted, the function will not automatically be given an entry
6305 in the interrupt vector table (similar to #pragma NOIV, but
6306 less syntacticly kludgy). The interrupt number is also now
6307 range checked. Also fixed a bug in the high order bit example
6314 * support/Util/SDCCerr.c
6315 * support/Util/SDCCerr.h
6318 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
6320 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
6321 * src/SDCCicode.c (operandOperation): rewritten some ops
6322 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
6323 * src/SDCCsymt.c (computeType): literals are handled the same way as any
6325 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
6326 be re-activated by defining REDUCE_LITERALS)
6327 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
6328 unsigned, but are signed by default
6329 * src/SDCCval.c (constVal): rearranged
6330 * src/SDCCval.c (valMod): preliminary fix
6331 * src/SDCCval.c (valCastLiteral): use TYPE_* types
6332 * support/regression/literalop.c: added, work in progress
6334 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6336 Generate warnings for useless declarations like "char data;"
6337 that don't do what new users expect.
6340 * support/Util/SDCCerr.h
6341 * support/Util/SDCCerr.c
6343 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
6345 * src/SDCCval.c (valMult): fix overflow detection of negative int
6347 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6349 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
6351 Changes to support big endian targets:
6364 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
6366 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
6367 * device/lib/time.c: fixed warning "integer overflow in expression"
6369 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
6371 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
6372 * src/SDCCval.c (constVal): changed default to signed; hex and octal
6373 constants are unsigned; added recognition of "u" flag for unsigned
6374 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
6375 * src/SDCCval.c (valDiv, valMod): fixed signdness
6376 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
6377 signedness of modulo, left and right shift
6378 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
6379 * support/Util/SDCCerr.h: added warning W_INT_OVL
6380 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
6381 * src/SDCCast.c (ast_print): improved output of constants
6383 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6385 Fixed some warnings when building with MSVC:
6398 * support\cpp2\cpplib.c
6402 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
6404 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
6406 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6408 * support\librarian\clean.mk: Do not remove Makefile.
6409 * support\librarian\Makefile: added.
6411 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6413 Added librarian to MSVC build:
6416 * support\librarian\librarian.dsp
6418 'configure' not needed for librarian, removed:
6419 * support\librarian\configure
6420 * support\librarian\configure.in
6421 * support\librarian\config_in.h
6422 * support\librarian\Makefile.in
6424 Hopefully these ones built the librarian and the rest of sdcc properly:
6426 * Makefile.common.in
6428 Messed up 'configure', so revert to previous version:
6432 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
6434 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
6435 there, while the mantissa of a double is "only" 53 bits wide.
6437 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6439 Adding sdcclib to the build. MSVC project coming soon.
6440 Files added/changed:
6442 * support\librarian\clean.mk
6443 * support\librarian\configure
6444 * support\librarian\configure.in
6445 * support\librarian\config_in.h
6446 * support\librarian\Makefile.bcc
6447 * support\librarian\Makefile.in
6448 * support\librarian\sdcclib.c
6451 * Makefile.common.in
6455 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6457 Linker now complaints if linked modules have conflicting options, for
6458 example, one compiled using --model-large and another one compiled with
6459 --model-small. The following files were modified:
6481 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6483 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
6484 as/mcs51/lklibr.c: Generate a warning when a library is not found.
6486 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
6488 * src/z80/mappings.i: fix _mul[us][int,long] entries
6490 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6492 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
6494 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
6496 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
6497 * support/regression/tests/bitopcse.c: added
6505 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6507 added support for new library format to z80, gbz80 linkers:
6513 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
6515 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
6516 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
6518 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
6520 added DUMMY_READ_VOLATILE:
6529 * src/SDCCcse.c (algebraicOpts): many improvements
6530 * src/SDCCcse.h: removed algebraicOpts()
6531 * src/SDCCicode.c (picDummyRead): added
6533 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6535 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
6536 "Insufficient space in data memory".
6538 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6540 * src/mcs51/gen.c: fixed bug #771358
6541 * src/z80/gen.c: fixed bug #759087
6543 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
6545 * src/pic16/glue.c: minor cleanup by Vangelis
6547 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6549 * device/include/regc515c.h: fixed #758477
6550 * device/lib/_gptrget.c: saving some cycles in generic pointer get
6551 * device/lib/_gptrput.c: saved a few bytes
6552 * my tab spacing is 8, yours too?)
6553 * device/lib/_ser.c: process RX bytes earlier than TX bytes
6554 * device/lib/serial.c: process RX bytes earlier than TX bytes
6555 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
6557 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6559 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
6561 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6563 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
6565 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
6567 * device/lib/Makefile.in: bad fix, reverted to 1.43
6569 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
6571 * device/lib/Makefile.in: added missing z80 object files
6573 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
6575 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
6576 pic16 progress by Vangelis:
6591 * pic16/pcodepeep.c:
6594 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6596 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
6598 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6600 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
6601 added gbz80 build to MSVC project.
6602 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
6603 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
6604 from 8051 stuff and setup so it links using a .lnk file.
6606 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6608 * support/librarian/sdcclib.c: sdcc librarian.
6609 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
6612 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6614 * as/mcs51/lkmain.c: properly handle extensions in function afile.
6616 2003-07-02 Borut Razem <borut.razem AT siol.net>
6618 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
6619 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
6620 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
6621 src/xa51/main.c, src/z80/main.c:
6622 virtualization of glue() function: each port has it's own glue function,
6623 which is accessed by do_glue function pointer in PORT.general structure
6625 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
6627 * DS800C400 fun, improved ROM interface and tinibios.
6629 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
6631 * More support for DS80C400. Now includes beginning of interface to ROM.
6633 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
6635 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
6637 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6639 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
6641 2003-06-19 Borut Razem <borut.razem AT siol.net>
6643 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
6645 2003-06-19 Borut Razem <borut.razem AT siol.net>
6647 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
6648 fixed Z80 port - crt0.o: cannot open.
6650 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
6652 * support/Util/MySystem.c (merge_command): revert bad fix
6654 2003-06-18 Borut Razem <borut.razem AT siol.net>
6656 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
6658 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6660 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6661 option --use-stdout sends errors to stdout instead of stderr.
6663 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
6665 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
6667 2003-06-15 Borut Razem <borut.razem AT siol.net>
6669 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
6670 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
6671 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
6672 fixed width array of pointers replaced with sets;
6673 multiple include and lib paths ared transferred to preprocessor and linker
6674 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
6675 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
6676 fixed width array of pointers
6677 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
6678 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
6679 fixupPath(), getPathDifference()
6680 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
6681 fixed width array of pointers
6683 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
6685 * src/pic16/ralloc.c: fix warnings
6686 * src/pic16/pcode.c: fix warning
6688 2003-06-10 Scott Dattalo <scott AT dattalo.com>
6690 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
6691 know all the details, but essentially this set of changes enable
6692 the pic16 port to generate movff instructions and generate assembler
6697 * src/pic16/pcode.c:
6698 * src/pic16/device.c:
6700 * src/pic16/pcode.h:
6701 * src/pic16/pcoderegs.c:
6702 * src/pic16/ralloc.c:
6703 * src/pic16/ralloc.h:
6705 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6707 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6708 added option --vc, so sdcc errors and warnings are compatible with
6709 Microsoft Visual Studio.
6711 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6713 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
6714 device/lib/libfloat.lib: added atof function.
6716 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6718 * doc/sdccman.lyx: updated to Lyx 1.3
6719 * doc/cdbfileformat.lyx: updated to Lyx 1.3
6720 * doc/test_suite_spec.lyx: updated to Lyx 1.3
6721 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
6723 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
6725 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
6727 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6729 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
6730 additions to the "related tools/documentation" section
6732 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
6734 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
6736 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
6738 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
6739 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
6741 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
6743 * doc/sdccman.lyx: fix double dash and other minor things
6744 * doc/Makefile: fix double dash
6746 2003-05-28 Karl Bongers(patches from Martin Helmling)
6747 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
6748 condition and ignore commands.
6750 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6752 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
6753 is in parts still quite out of date, I did changes as far as I felt makes sense
6754 for a non-native english speaker.
6755 Please feel free to add to the manual or to correct my changes.
6756 * doc/Makefile: undid touching the date of intermediate tex files.
6758 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6760 * doc/sdccman.lyx: Manual has an index now
6762 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
6764 Finalize muluint/mulsint and mululong/mulslong merging:
6765 * device/lib/_mulint.c
6766 * device/lib/_mullong.c
6767 * device/lib/gbz80/mul.s
6768 * device/lib/gbz80/stubs.s
6769 * device/lib/z80/mul.s
6770 * device/lib/z80/stubs.s
6771 * src/SDCCsymt.c (initCSupport)
6773 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6775 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
6776 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
6777 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
6778 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
6781 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6783 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
6784 the regression tests I'm not brave enough to enable 245.b, 245.c
6785 * doc/sdccman.lyx: added latex preamble for hyperref package.
6786 Using pdflatex this will give you a hyperlinked pdf file with
6787 bookmarks. (prepend '%' before /usepackage if this breaks something)
6789 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6791 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
6793 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
6795 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
6797 2003-05-21 <johan AT balder>
6799 * src/SDCCglue.c (printIval): fixed bug #739934
6801 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
6803 Applied patch from bug 737905 (renamed yylineo to mylineno):
6810 * src/pic16/pcode.c: Cleaned warnings
6811 * src/pic16/pcodeflow.c: Cleaned warnings
6812 * src/pic16/pcoderegs.c: Cleaned warnings
6814 2003-05-19 Scott Dattalo <scott AT dattalo.com>
6816 * src/pic16/pcode.c: Cleaned warnings
6817 * src/pic16/pcodepeep.c: Cleaned warnings
6818 * src/pic16/ralloc.c: Cleaned warnings
6820 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
6822 * doc/sdccman.lyx: fixed bug 739745
6823 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
6825 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
6827 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
6828 it can be defined with CFLAGS when running configure
6829 * src/SDCCmain.c: fixed compiling + linking with object files
6831 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
6833 * configure.in: configure for pic16 port,
6834 added --disable-pic16-port
6835 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
6836 * src/SDCCmain.c: linkOptions is changed to set *,
6837 added if/endif conditional macros to remove options help
6838 messages from optionsTable when a port is not configured, added
6839 support for the PIc16 port in the ports table, when executing
6840 the compiler with no port specified on command line, a default
6841 port is selected with the new macro DEFAULT_PORT which is
6842 defined in port.h, in setDefaultOptions() linkOptions is removed
6843 from initialization assignment, since now it is a set,
6844 parseCmdLine uses setParseWithComma for linkOptions, in
6845 linkEdit() linkOptions are accessed with new function indexSet()
6846 which returns the i'th item of a set variable. See SDCCset.c, in
6847 linkEdit() when calling buildCmdLine(), added linkOptions as
6848 last argument. Now users can pass arguments to gplink via the
6849 -Wl option, main() uses pic16glue() to glue up pic16 programs
6850 * src/SDCCpeeph.c: various changes to support pic16
6851 * src/SDCCset.c: added function void *indexSet(set *, int) to
6852 return the i'th item of the set
6853 * src/SDCCset.h: added function prototype for indexSet()
6854 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
6855 * src/clean.mk: added pic16 in CLEANALLPORTS variable
6856 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
6857 added macro DEFAULT_PORT
6858 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
6859 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
6861 * src/pic16/glue.c: commented out some error producing lines
6862 * src/pic16/main.c: __config directives are commented out to stop
6863 gpasm complaining and test the linkage with gplink, _linkCmd and
6864 _asmCmd changed to be more gplink and gpasm friendly
6865 * src/pic16/peeph.def: peep rule 3 is commented out, since it
6866 produced an error when parsed, peep rule 12 is added to utilize
6867 movff, but it is commented out since the pCode does not support
6868 yet a command with 2 address arguments
6870 2003-05-18 <johan AT balder>
6872 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6873 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6874 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
6876 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
6877 Added feature to script commands from file.
6879 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6881 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
6882 * src/SDCCutil.c: include ctype.h for win32
6884 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6886 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
6888 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
6890 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
6891 Fixed so you can set breakpoints prior to run, run does not stop
6892 on entry now. Add tbreak. Other enhancements and fixes for use
6895 2003-05-12 Borut Razem <borut.razem AT siol.net>
6897 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
6899 2003-05-11 Borut Razem <borut.razem AT siol.net>
6901 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
6902 the path of bin directory, so that PATH is the only env. variable, which has to be set
6903 in case of standard installation.
6904 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
6905 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
6906 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
6908 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
6910 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
6911 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
6912 temp files are in the port dir; clean the gen/test directory when
6913 generating new test.c
6914 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
6915 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
6916 * support/regression/tests/zeropad.c: added
6918 2003-05-09 <johan AT balder>
6920 * src/SDCCglue.c: fixed bug #597940
6922 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
6924 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
6925 cache sfr, optimize next,step, fix off by one sourceline,
6926 support ddd list function.
6927 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
6929 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
6931 * support/regression/HTMLgen.py: added compare_s2f()
6932 * support/regression/Makefile: redo 1.27
6933 * support/regression/generate-cases.py: redo 1.5
6935 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6937 * support/regression/tests/float.c: workaround 33 bit hex constant
6938 * support/regression/tests/simplefloat.c: fix division for host
6940 2003-04-29 Scott Dattalo <scott AT dattalo.com>
6942 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
6943 that tame's the PIC's over-aggressive optimizer.
6945 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6947 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
6950 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
6952 Initial support for DS80C400. "Hello world" runs on TINIm400
6955 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
6957 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
6958 * Some notes on ddd usage added in debugger/README
6959 Martin Helmling adding more features and fixes for ddd GUI debugger.
6960 Code added for nexti, stepi, up, down, and other adjustments.
6962 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
6964 * src/pic/pCodepeep.c non-wildcard asmops are now handled
6965 * src/pic/peeph.def Added two rules to optimize carry manipulation
6966 * src/pic/* removed debug printfs
6968 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6970 * debugger/mcs51/cmd.c: added header newalloc.h
6972 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6974 * as/Makefile: new EXEEXT
6975 * as/z80/Makefile: remove trailing slash of BUILDIR
6976 * as/z80/clean.mk: new EXEEXT
6977 * Makefile.common.in: add to CFLAGS (and others), don't replace it
6978 * support/cpp2/Makefile.in: new EXEEXT
6979 * src/pic/glue.c (pic14emitRegularMap): fixed warning
6981 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6983 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
6984 EXEEXT was introduced to fix all related problems with targets
6985 "clean", "install" and "uninstall"; a couple of further flaws
6986 especially with "clean" have been fixed too
6987 * as/mcs51/Makefile.in
6992 * debugger/mcs51/Makefile.in
6993 * debugger/mcs51/clean.mk
6995 * link/z80/Makefile.in
6998 * packihx/Makefile.in
7000 * sim/ucsim/Makefile
7001 * sim/ucsim/clean.mk
7002 * sim/ucsim/avr.src/Makefile.in
7003 * sim/ucsim/avr.src/clean.mk
7004 * sim/ucsim/s51.src/Makefile.in
7005 * sim/ucsim/s51.src/clean.mk
7006 * sim/ucsim/xa.src/Makefile.in
7007 * sim/ucsim/xa.src/clean.mk
7008 * sim/ucsim/z80.src/Makefile.in
7009 * sim/ucsim/z80.src/clean.mk
7010 * sim/ucsim/main_in.mk
7011 * sim/ucsim/packages_in.mk
7012 * sim/ucsim/gui.src/Makefile.in
7013 * sim/ucsim/gui.src/serio.src/Makefile.in
7014 * sim/ucsim/gui.src/serio.src/clean.mk
7017 * support/cpp2/Makefile.in
7018 * support/cpp2/clean.mk
7019 * support/makebin/Makefile
7020 * support/makebin/clean.mk
7021 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7022 * doc/sdccman.lyx: --program-suffix no longer needed
7024 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
7026 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7027 Martin Helmling added support for ddd GUI debugger.
7028 Code added to display assembly, set variables, and other commands
7029 to interface to ddd.
7031 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
7033 * as/Makefile: fix target clean
7034 * as/clean.mk: fix target clean
7035 * as/z80/clean.mk: fix target clean
7037 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
7039 * Makefile.common.in: added AT EXEEXT AT
7040 * configure.in: removed all mingw32 stuff
7041 * configure: rebuilt from configure.in
7042 * doc/sdccman.lyx: updated section "installation"
7043 * support/scripts/sdcc_mingw32: adapted to configure
7044 * support/scripts/sdcc_cygwin_mingw32: added
7046 2003-04-22 Scott Dattalo <scott AT dattalo.com>
7048 * src/pic Added object file support for the PIC port
7049 * src/pic Applied patch from Craig Franklin (this started the object file support)
7050 * src/regression Updated the PIC regression tests for object files
7052 2003-04-20 Borut Razem <borut.razem AT siol.net>
7054 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7055 lklex.c: In function `getfid':
7056 lklex.c:203: warning: array subscript has type `char'
7057 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7058 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7059 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7060 stack handling macros
7062 2003-04-19 Borut Razem <borut.razem AT siol.net>
7064 * "handling space characters in file path" task:
7065 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7066 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7067 * support/Util/MySystem.h: make it self-sufficient
7068 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7069 src/z80/main.c, sdcc/as/mcs51/lklex.c:
7070 handling space characters in file path
7071 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7072 (it will be used by assemblers, which have their own includes, e.g. gpasm)
7073 * support/Util/MySystem.c: handling space characters in executable's path
7075 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
7077 * as/z80/Makefile: fix permanent rebuild of z80
7078 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7079 * support/regression/tests/bitfields.c: added Johan's bitfields.c
7081 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
7083 * src/SDCCopt.c: add special case optimization to replace modulo by
7084 a power of two with a bitwise AND.
7086 2003-04-18 <johan AT balder>
7088 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7090 2003-04-17 <johan AT balder>
7092 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7093 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7095 2003-04-13 Borut Razem <borut.razem AT siol.net>
7097 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7098 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7099 fixed mingw problem in adl_NORMALIZE_PATH
7101 2003-04-12 Borut Razem <borut.razem AT siol.net>
7103 * fixed "#pragma SAVE/RESTORE can not be nested":
7104 * src/SDCC.lex: reworked pragma handling functions
7105 * sdcc/src/SDCCglobl.h: reworked stack handling macros
7106 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7108 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7110 * src/SDCCutil.c (pathEquivalent): defined but not used
7111 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7112 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7113 * configure: rebuilt from configure.in
7114 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7115 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7116 * device/include/Makefile.in: replace sdcc_datadir
7117 * device/lib/Makefile.in: replace sdcc_datadir
7118 * Makefile.common.in: add LDFLAGS from configure
7119 * packihx/Makefile.in: use LDFLAGS
7120 * src/Makefile.in: use LDFLAGS
7121 * support/cpp2/Makefile.in: add LDFLAGS from configure
7122 * support/makebin/Makefile: use LDFLAGS
7123 * .version: bumped version number to 2.3.5
7125 2003-04-12 Borut Razem <borut.razem AT siol.net>
7127 * completed "different paths" task:
7128 * src/SDCCmacro.c: fixed bug in handling quotes
7129 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7130 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7132 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7134 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7136 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7138 * ds390/gen.c ds390/peeph.def: fix bug 706781
7140 2003-04-11 Borut Razem <borut.razem AT siol.net>
7142 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7144 2003-04-10 Scott Dattalo <scott AT dattalo.com>
7146 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
7147 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
7148 set - this bit used to not be set...).
7149 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
7150 bad code in PIC Port
7151 * src/regression/and2.c added to test bug 609268
7152 * src/regression/Makefile added and2.c to regression test
7155 2003-04-08 <johan AT CP255758-A>
7157 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
7158 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
7159 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
7161 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
7163 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
7165 * support/cpp2/Makefile.in: fix bug #487815
7166 * configure: rebuilt from configure.in
7167 * Makefile.common.in: docdir changed, new path suffixes
7168 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7169 * sdcc_vc_in.h: reflect changes from sdccconf.h
7170 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
7171 * src/SDCCutil.h: remove BINDIR hack
7172 * doc/sdccman.lyx: update new path hierarchy
7174 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7176 * src/SDCCpeeph.c: added okToRemoveSLOC test
7178 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7180 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
7182 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7184 * src/SDCCpeeph.c: added labelIsReturnOnly test
7185 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
7187 2003-04-05 <johan AT balder>
7189 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
7190 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
7191 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
7192 * src/SDCCast.c: fixed a warning
7193 * src/SDCCast.h: fixed a warning
7194 * src/SDCCicode.c (operandFromAst): fixed a warning
7196 2003-04-04 <johan AT balder>
7198 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
7199 * src/SDCCast.c (decorateType): fixed bug #715076
7200 * src/SDCC.y: fixed bug #702907
7202 2003-04-03 <johan AT balder>
7204 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
7205 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
7206 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
7207 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
7208 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
7210 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
7212 * _decdptr.c: fix return values
7213 * _gptrget.c: fix return values
7214 * _gptrgetc.c: fix return values
7215 * _gptrput.c: fix return values
7216 * _mulint.c: fix return values
7217 * as/z80/Makefile: fix 'make -j' problem
7219 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
7221 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
7222 * configure.in: big cleanup, updated to autoconf 2.5x
7223 * configure: rebuilt from configure.in
7224 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7225 * sdcc_vc_in.h: reflect changes from sdccconf.h
7226 * doc/Makefile: fixed a flaw in "make install"
7228 2003-04-02 <johan AT balder>
7230 * src/ds390/gen.c (genCmp): no comments
7231 * src/mcs51/gen.c (genCmp): no comments
7232 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
7233 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
7235 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
7237 * support/regression/generate-cases.py: place generated file in given sub directory
7238 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
7239 * support/regression/Makefile: improvements for 'make -j';
7240 side effect: it's simpler and faster now
7242 2003-03-31 Borut Razem <borut.razem AT siol.net>
7244 * src/z80/main.c: link-{port} and as-{port} defined without path
7245 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
7247 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
7249 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
7251 2003-03-30 Borut Razem <borut.razem AT siol.net>
7253 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
7254 changed type of list parameter to set
7255 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
7256 * src/port.h: changed type of do_assemble() parameter to set
7257 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
7258 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
7259 definition of "cppoutfilename" macro with NULL value in preProcess()
7260 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
7261 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
7262 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
7263 replaced with set *binPathSet
7264 * shash_add() deallocates the item, if allready exsists, before adding the new one
7265 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
7267 2003-03-30 Scott Dattalo <scott AT dattalo.com>
7269 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
7270 a nested for loop bug in the PIC port
7271 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
7274 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7276 * support/Util/dbuf.h: remove C++ stuff to make it portable
7278 2003-03-28 Borut Razem <borut.razem AT siol.net>
7280 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
7281 literal strings in stringLiteral()
7282 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
7283 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
7286 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
7288 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
7290 2003-03-26 <johan AT balder>
7292 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
7293 * src/ds390/gen.c (saveRegisters): catched symbol abuse
7294 * src/SDCCast.c (decorateType): fixed " -v < 3"
7296 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7298 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
7299 Added Lenny Story's debug infrastructure changes:
7300 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
7301 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
7302 * src/cdbFile.c: added
7303 * src/SDCCdebug.c: added
7304 * src/SDCCdebug.h: added
7305 * src/SDCCast.c (createFunction)
7306 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
7307 * src/SDCCmain.c (parseCmdLine, main)
7308 * src/SDCCmem.c (redoStackOffsets)
7309 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
7312 * src/avr/gen.c (genAVRCode)
7313 * src/ds390/gen.c (gen390Code)
7314 * src/mcs51/gen.c (gen51Code)
7315 * src/pic/gen.c (genpic14Code)
7316 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
7317 * src/xa51/gen.c (genXA51Code)
7318 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
7320 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7322 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
7323 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
7325 2003-03-22 <johan AT balder>
7327 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
7329 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
7331 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
7332 * doc/cdbfileformat.lyx: added, written by Lenny Story
7333 * doc/Makefile: added cdbfileformat.lyx
7334 * doc/clean.mk: added cdbfileformat.lyx
7336 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
7338 * src/mcs51/peeph.def: fix bug #705773
7340 2003-03-20 <johan AT balder>
7342 An sfr/sbit can have an "at #" AND an initializer
7343 * src/SDCCsymt.c (checkSClass):
7344 * src/SDCCmem.c (allocGlobal):
7345 * src/SDCCmem.c (allocLocal):
7346 * src/SDCCast.c (createBlock):
7348 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
7350 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
7352 2003-03-16 <johan AT balder>
7354 Undid the hackup of const and volatile, the problem is much bigger
7356 * src/SDCCast.c:1.171
7357 * src/SDCCglue.c:1.138
7358 * src/SDCCicode.c:1.146
7359 * src/SDCCsymt.c:1.150
7360 * src/SDCCval.c:1.65
7362 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
7364 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
7365 * src/ds390/gen.c (genAddrOf): fixed bug #704087
7367 2003-03-13 <johan AT balder>
7369 Hackup const and volatile modifiers in type chains a bit:
7371 * src/SDCCast.c:1.169
7372 * src/SDCCglue.c:1.136
7373 * src/SDCCicode.c:1.143
7374 * src/SDCCsymt.c1.146
7375 * src/SDCCsymt.h1.59
7376 * src/SDCCval.c:1.63
7378 2003-03-12 <johan AT balder>
7380 * src/SDCCBBlock.h: more LRH debugging junk
7381 * src/SDCCcflow.h: more LRH debugging junk
7382 * src/SDCCloop.c: more LRH debugging junk
7383 * src/SDCC.y (struct_declaration): fixed bug #697590
7384 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
7385 * src/ds390/gen.c (aopForRemat): fixed bug #700031
7386 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
7388 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7389 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
7390 test function names must now match exactly).
7391 * src/SDCCcse.c: added special case in findCheaperOp to allow
7392 extending a short integer. Makes less awful code for bug 700121 test case.
7394 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7396 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
7397 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
7399 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7401 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
7402 actually called (operandsNotEqual() was called for all
7403 operandsNotEqualX tests).
7405 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7407 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
7408 with shorter literals. Fixes bug 700121.
7410 2003-03-11 <johan AT balder>
7412 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
7414 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
7416 * src/SDCCloop.c (mergeRegions): an evil beast is dead
7417 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
7419 2003-03-10 Borut Razem <borut.razem AT siol.net>
7421 * src/SDCCmain.c: pipe preprocessor's output
7422 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7423 * sdcc_vc_in.h: define pclose as _pclose for WIN32
7424 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7425 which closes all pipes in pipeSet set
7426 * src/SDCCset.c: free deleted item in function deleteSetItem()
7427 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7428 moved from z80 to src subproject
7429 * .version: increased version number to 2.3.4
7431 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7433 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
7434 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
7435 * support/regression/ports/xa51/spec.mk: fix typo
7437 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7439 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
7441 2003-03-09 Borut Razem <borut.razem AT siol.net>
7443 * src/SDCCmain.c: pipe preprocessor's output
7444 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7445 * sdcc_vc_in.h: define pclose as _pclose for WIN32
7446 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7447 which closes all pipes in pipeSet set
7448 * src/SDCCset.c: free deleted item in function deleteSetItem()
7449 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7450 moved from z80 to src subproject
7452 2003-03-09 Borut Razem <borut.razem AT siol.net>
7454 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
7455 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
7456 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
7457 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
7458 * src/SDCCglobl.h: unification of WIN32 native definitions
7460 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7462 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
7464 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7466 * src/configure.in: check for endianess (even while cross-compiling)
7467 * src/configure: check for endianess (even while cross-compiling)
7468 * src/configure_in.h: check for endianess (even while cross-compiling)
7469 * src/avr/gen.c: remove old endianess stuff
7470 * src/mcs51/gen.c: remove old endianess stuff
7471 * src/ds390/gen.c: remove old endianess stuff
7472 * src/pic/gen.c: remove old endianess stuff
7473 * src/pic/genarith.c: remove old endianess stuff
7474 * src/pic/glue.c: fix endianess check
7475 * src/pic16/gen.c: remove old endianess stuff
7476 * src/pic16/genarith.c: remove old endianess stuff
7477 * src/pic16/glue.c: fix endianess check
7478 * src/xa51/gen.c: remove old endianess stuff
7479 * src/z80/gen.c: fix endianess check
7480 * src/SDCCglue.c: fix endianess check
7481 * src/ds390/peeph.def: fix bug 700036
7483 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7485 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
7486 * src/configure: find appropriate data-types on host for SDCC's int and long
7487 * src/configure.in: find appropriate data-types on host for SDCC's int and long
7488 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
7489 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
7491 2003-03-07 <johan AT balder>
7494 some minor cleanups before the big shot
7495 OP_DEFS and OP_USES now use Kevin's protection
7496 new option --nolabelopt
7507 * src/ds390/ralloc.c:
7508 * src/mcs51/ralloc.c:
7510 * src/xa51/ralloc.c:
7513 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7515 * src/pic/pcode.c (get_op): fix 64 bit warnings
7516 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
7517 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
7518 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
7519 * support/regression/tests/malloc.c: fix 64 bit warnings
7521 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
7523 * src/mcs51/gen.c (genMinus): fixed bug 696436
7525 2003-03-02 Borut Razem <borut.razem AT siol.net>
7527 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
7529 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7531 * configure.in: test for mkstemp
7532 * sdccconf_in.h: add HAVE_MKSTEMP
7534 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
7536 * device/include/ctype.h: removed warning while using --stack-auto
7537 * device/include/malloc.h: removed warning while using --stack-auto
7538 * device/include/string.h: removed warning while using --stack-auto
7540 2003-02-23 Borut Razem <borut.razem AT siol.net>
7542 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
7543 because NDEBUG is defined (see man assert)
7544 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
7546 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7548 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
7549 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
7551 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7553 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
7554 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
7556 2003-02-18 <johan AT balder>
7558 * as/mcs51/asmain.c (asmbl): module can start with a digit
7559 * as/z80/asmain.c (asmbl): module can start with a digit
7561 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7563 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
7564 * src/asm.c: fix pipe() for Mingw32
7566 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
7568 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
7569 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
7570 make -V work again; --c1mode reads now from stdin
7571 * doc/sdccman.lyx: added --c1mode
7572 * support/Util/SDCCerr.c: new messages for c1 mode
7573 * support/Util/SDCCerr.h: new messages for c1 mode
7574 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
7576 2003-02-15 <johan AT balder>
7578 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
7580 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
7582 * doc/sdccman.lyx: Environment variables, -o and other minor things
7584 2003-02-14 <johan AT balder>
7586 * src/xa51/main.c: before anyone really tries to use it :)
7588 * Install doc's in share/sdcc/doc
7589 * removed some obsolete files
7590 * Do a proper make distclean and uninstall
7591 M Makefile.common.in
7594 M device/include/Makefile.in
7595 M device/lib/Makefile.in
7598 M sim/ucsim/doc/Makefile.in
7601 R src/xa51/peeph.rul
7602 M support/cpp2/Makefile.in
7603 M support/makebin/Makefile
7606 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7608 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
7610 2003-02-10 Borut Razem <borut.razem AT siol.net>
7612 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
7613 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
7614 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
7615 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
7616 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
7617 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
7618 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
7619 src/z80/Makefile.bcc: Borland Makefile cleanup
7620 * as/z80/Makefile.bcc: Added Borland Makefile
7621 * support/cpp2/borland.h: Removed
7623 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
7625 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
7626 * src/SDCC.lex: new pragma NOIV
7627 * src/SDCCglobl.h: new pragma NOIV
7628 * src/SDCCmem.c: new pragma NOIV
7630 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7632 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
7634 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7636 * src/SDCCmain.c: signal handling is switched off by --debug
7637 * doc/Makefile: small fix for install; use clean.mk again
7638 * doc/clean.mk: clean *.pdf and *.html too
7640 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
7642 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
7643 * device/lib/printfl.c: fix a ds390 bug by making it portable
7644 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
7645 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
7646 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
7647 * debugger/mcs51/cmd.c: converted multi-line string literals
7648 * sim/ucsim/globals.cc: converted multi-line string literals
7649 * src/SDCCmain.c: introduced signal handler to remove temp files
7650 * doc/Makefile: small tweaks, implement clean
7651 * doc: removed generated files
7653 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7655 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
7656 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
7657 Address Record is not correctly generated for DS390."
7659 2003-02-02 Borut Razem <borut.razem AT siol.net>
7661 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
7662 * as/mcs51/asm.h: fixed compilation with Borland C
7663 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
7664 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
7665 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
7666 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
7667 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
7668 src/z80/Makefile.bcc: delete $(LIB) only if exist
7669 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
7671 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
7673 * device/include/malloc.h: introduced NULL
7674 * device/include/string.h: introduced NULL
7675 * device/include/stdlib.h: introduced NULL
7676 * device/lib/_memcpy.c: removed NULL
7677 * device/lib/_strcat.c: removed NULL
7678 * device/lib/_strchr.c: removed NULL
7679 * device/lib/_strcmp.c: removed NULL
7680 * device/lib/_strcpy.c: removed NULL
7681 * device/lib/_strcspn.c: removed NULL
7682 * device/lib/_strlen.c: removed NULL
7683 * device/lib/_strncat.c: removed NULL
7684 * device/lib/_strncmp.c: removed NULL
7685 * device/lib/_strncpy.c: removed NULL
7686 * device/lib/_strpbrk.c: removed NULL
7687 * device/lib/_strrchr.c: removed NULL
7688 * device/lib/_strspn.c: removed NULL
7689 * device/lib/_strstr.c: removed NULL
7690 * device/lib/_strtok.c: removed NULL
7691 * device/lib/malloc.c: removed NULL, include own header
7693 2003-02-02 <johan AT balder>
7695 * 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
7696 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
7697 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
7698 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
7699 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
7700 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
7702 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7704 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
7707 2003-02-01 <johan AT balder>
7709 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
7711 2003-01-31 <johan AT CP255758-A>
7713 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
7715 2003-01-30 <johan AT balder>
7717 * src/SDCCBBlock.c: automatic bug detection
7718 * src/SDCCicode.c: automatic bug detection
7720 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7722 * src/SDCCglobl.h: now --xram-size 0 works
7723 * src/SDCCmain.c: now --xram-size 0 works
7725 2003-01-29 <johan AT balder>
7727 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
7729 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7731 * as/mcs51/aslink.h: Added options --xram-size and --code-size
7732 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
7733 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
7734 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
7735 * src/SDCCglobl.h: Added options --xram-size and --code-size
7736 * src/SDCCmain.c: Added options --xram-size and --code-size
7738 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7740 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
7741 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
7743 2003-01-27 <johan AT balder>
7745 * src/SDCC.y: fixed bug #613764
7747 2003-01-26 <johan AT balder>
7749 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
7750 * src/SDCCsymt.h: fixed bug #673374
7751 * src/SDCCglue.c: fixed bug #661910
7752 * src/SDCCast.c: fixed bug #458099 and 673374
7754 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
7756 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
7757 * as/mcs51/strcmpi.h: added
7758 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
7759 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
7760 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
7761 * as/mcs51/assym.c: strcmpi -> as_strcmpi
7762 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
7763 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
7764 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
7765 * as/mcs51/Makefile.aslink: new module strcmpi
7766 * as/mcs51/Makefile.asx8051: new module strcmpi
7767 * as/mcs51/Makefil.bcc: new module strcmpi
7768 * as/mcs51/Makefile.in: new module strcmpi
7769 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
7771 2003-01-26 <johan AT balder>
7773 * src/SDCCglue.c: reverted back to 1.124
7774 * src/SDCCast.c: reverted back to 1.156
7775 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
7777 2003-01-25 <johan AT balder>
7779 * src/SDCCglue.c: A better fix for bug #661910
7780 * src/SDCCast.c: A better fix for bug #661910
7781 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
7783 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
7785 * src/Makefile.in: remove spawn.o
7786 * src/SDCCmain.c: remove spawn.h
7787 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
7788 * src/spawn.c: removed
7789 * src/spawn.h: removed
7790 * support/regression/ports/ds390/spec.mk: link with -r
7792 2003-01-24 <johan AT CP255758-A>
7794 * src/ds390/gen.c (aopOp): fixed bug #667458
7795 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
7796 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
7797 (createIvalCharPtr): an ival doesn't always have a storage class anymore
7799 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
7801 * src/mcs51/peeph.def: better assembler identation by Frieder
7802 * src/mcs51/gen.c: better assembler identation by Frieder
7804 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
7806 * as/z80/string.h: removed for gcc 3.2
7807 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
7808 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
7810 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7812 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
7813 * src/SDCCpeeph.c (replaceRule): fix bug #663503
7814 * support/regression/Makefile: separate temp files for ports
7815 * support/regression/generate-cases.py: separate temp files for ports
7816 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
7817 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
7819 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7821 * moved tinitalk to device/examples/ds390
7823 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
7825 * as/mcs51/lkmem.c: rflag is for DS390
7826 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
7827 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
7828 (linkEdit): move mem- and map-files the same way as ihx-files
7829 * src/z80/main.c (_setDefaultOptions): removed --generic
7830 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
7831 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
7832 * src/pic/glue.c (picglue): --c1mode works again
7833 * src/pic16/glue.c (pic16glue): --c1mode works again
7834 * src/asm.c (printCLine): fix #660034
7836 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7838 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
7839 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
7840 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
7841 * as/mcs51/lkmem (summary): better fix for sp problem
7842 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
7843 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
7844 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
7845 remove --stack-after-data
7847 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7849 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
7850 * src/SDCCutil.c (join): ugly bug: missing '\0'
7851 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
7853 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7855 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
7857 * src/pic/main.c (_asmCmd): gpasm supports -o
7858 * src/z80/main.c: more general macros
7859 * device/lib/Makefile.in: remove intermediate files
7861 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7863 * .version: Bumped version number to 2.3.3
7864 * src/SDCCBBlock.c: new option -o
7865 * src/SDCCglobl.h: new option -o
7866 * src/SDCCglue.c: new option -o
7867 * src/SDCCmain.c: new option -o
7868 * src/asm.c: new option -o
7869 * src/ds390/main.c: new option -o
7870 * src/pic/glue.c: new option -o
7871 * src/pic/pcode.c: new option -o
7872 * src/pic/ralloc.c: new option -o
7873 * src/pic16/glue.c: new option -o
7874 * src/pic16/pcode.c: new option -o
7875 * src/pic16/ralloc.c: new option -o
7876 * src/z80/main.c: new option -o
7877 * device/lib/Makefile.in: use -o
7878 * support/regression/ports/ds390/spec.mk: use -o
7879 * support/regression/ports/gbz80/spec.mk: use -o
7880 * support/regression/ports/mcs51/spec.mk: use -o
7881 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
7882 * support/regression/ports/z80/spec.mk: use -o
7883 * support/regression/ports/ucz80/spec.mk: use -o
7884 * support/regression/ports/xa51/spec.mk: use -o
7885 * support/regression/fwk/lib/timeout.c: fix usage string
7887 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
7888 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
7890 2003-01-07 <johan AT balder>
7892 * src/SDCCast.c (decorateType): fixed bug #600035
7894 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7895 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
7896 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
7897 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
7898 * src/pic/pcode.c: outcommented unused variable to remove warnings
7899 * src/pic/ralloc.c: outcommented unused variable to remove warnings
7901 2003-01-06 <karl AT turbobit.com>
7902 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
7905 2003-01-06 <johan AT balder>
7907 * src/SDCCicode.c: fixed array add
7909 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
7910 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
7911 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
7913 2003-01-04 <johan AT balder>
7915 * src/SDCCval.c (getNelements): fixed the initialized array of structures
7917 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7918 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
7920 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7921 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
7922 * support/regression/tests/bug-524697.c: fit mem usage into 8032
7924 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7925 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
7927 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
7928 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
7930 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
7931 * src/mcs51/main.c: removed {bindir}{sep} from aslink
7933 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7935 * in \sdcc\as\mcs51\ changed these files in order to create an
7936 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
7937 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
7938 following files to include the previous two files: aslink.dsp,
7939 Makefile.aslink, Makefile.bcc, and Makefile.in.
7941 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
7942 .adb instead of .cdb
7944 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7946 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
7947 value from option --iram-size.
7949 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7951 * \sdcc\as\mcs51\lklist.c: added boundary check before using
7954 2002-09-18 <wiml AT hhhh.org>
7956 * SDCClrange.h: exposed setFromRange() and setToRange()
7957 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
7958 packRegsForAccUse() (bug 542397)
7959 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
7960 multiple times and emitting the fetch operations more than once
7961 added aopGetUsesAcc() function to allow binary operators to
7962 fetch their operands in the correct order; made genMinus() emit
7963 compact code for X = LITERAL - Y
7965 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7966 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
7967 sprintf() in line 1267.
7969 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7970 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
7973 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7974 Changes to aslink (All the changes are marked with 'JCF'):
7976 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
7979 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
7980 area BSEG. Also moves, if possible, the DATA area down into the internal
7981 ram so more space is available.
7983 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
7986 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
7987 not bytes. Function summary() which creates a memory usage summary
7988 file with extension .mem. Reports of overlaping stack and small stack
7989 size. If the space for the stack is less than 16 bytes aslink trows a
7992 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
7993 the 8051. Option 'y' for memory summary output file.
7995 Changes to sdcc (All the changes are marked with 'JCF'):
7997 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
7999 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
8000 overlaying area for it (uses RegBankUsed[4]).
8002 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8003 bank zero as used by default. By default aslink locates the stack
8004 (equivalent to --stack-after-data). Pass option 'y' to aslink for
8005 the creation of the .mem file. Delegates the allocation of data area
8006 to aslink (it is not longer 0x30 by default). If --stack-loc passes
8007 the begining of the stack area to aslink.
8009 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
8010 glue() in SDCCglue.c creates an area for it.
8012 2002-09-03 Borut Razem <borut.razem AT siol.net>
8013 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8014 sdcc/src/pic/glue.c:
8015 introduced atexit() handler for teporay files removal in case of
8016 errors, assertions, ...
8018 2002-08-29 Borut Razem <borut.razem AT siol.net>
8019 * sdcc/support/cpp2/auto-host_vc_in.h:
8020 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8021 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8022 Maybe there is a similar problem with BORLANDC? It should be checked!
8024 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8025 corrected improper use of assert: the assignment to clr variable was done inside the assert.
8026 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8027 was not executed, and the compiler (cl) launched a warning:
8028 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8030 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
8031 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8033 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8034 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8036 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8037 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8038 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8039 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8040 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8041 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8042 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8043 - added Release configuration in VS projects
8044 - review of compiler an linker options
8045 - VC .exe files are generated in bin_vc directory, not to interfere
8046 with binaries generated from other projects (cygwin, mingw, bcc ...)
8048 * sdcc/src/yacc.dsp: added
8050 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8051 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8052 and insert the version number definitions from .version
8054 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8056 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8057 added - genarate auto-host.h using auto-host_vc_in.h as template
8060 removed from CVS, generated automatically
8062 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
8063 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8065 2002-08-11 Borut Razem <borut.razem AT siol.net>
8066 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8068 2002-08-10 Borut Razem <borut.razem AT siol.net>
8069 * src/SDCCmain.c (main):
8070 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8071 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8072 The consequence was that some temporary files were not removed.
8075 unification of code in functions tempfilename() and tempfile():
8076 function tempnam() is defined in Visual Studio 6.0 and .NET
8078 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8080 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8081 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8082 - removed compiler command line option /WX: Treats all warnings as errors
8083 - update a list of source files, included into the project
8085 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8086 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8087 changed project type to Generic Project so that can be correcly converted to VS.NET project
8089 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8091 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8093 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8095 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8096 added return 0 statements after assert() to make compiler happy
8098 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8099 added newline in the def file to keep MSC compiler satisfied
8101 * sdcc/src/z80/gen.c:
8102 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8103 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8104 - solved MSC error in function aopDump()
8106 * sdcc_vc.h: define PREFIX as "\\sdcc"
8108 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
8109 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8111 2002-06-22 Scott Dattalo <scott AT dattalo.com>
8112 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8113 - Rewrote the register banking algorithm.
8114 - Added pCode live-range analysis to registers (for now, only non-used and
8115 singly-used registers optimized away)
8117 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8119 * 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.
8121 2002-05-10 Scott Dattalo <scott AT dattalo.com>
8122 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8124 2002-04-22 Michael Hope <michaelh AT vroom>
8126 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8128 * configure.in (DD_COPT): Added include support required for gbdk.
8130 * .version: Bumped version number just to increase it.
8132 * src/SDCCmain.c: Added -nostdinc to the default options.
8134 2002-04-15 Michael Hope <michaelh AT vroom>
8136 * device/lib/z80/printf.c (sprintf): Added.
8138 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8140 * src/z80/peeph.def: Added transpose redundent load rule.
8142 * src/z80/main.c: Added force callee saves for jaune.
8144 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
8146 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
8148 2002-03-28 Johan Knol <johan AT balder>
8150 * src/SDCCval.c: fixed bug #532436
8152 2002-03-14 Scott Dattalo <scott AT dattalo.com>
8154 Added "char *Processor" field to the port structure.
8157 Added -p option. Allows port dependent processor to be specified.
8160 Initialized the new field char *Processor field to NULL in all ports
8163 Compiler generated registers for interrupt context saving
8164 were not getting allocated.
8166 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
8169 Fixed left shift. Will promote the left side of a left shift
8170 if a) left shifting more than size of operand or b) when assigned
8171 to something size > size of left side
8173 2002-03-14 Scott Dattalo <scott AT dattalo.com>
8175 tons of changes. Register allocation has been
8176 rewritten. Added customization for the various PICs. Flow
8177 analysis is restructured. ...
8183 Added. device.c is a PIC port hack to accomodate variations
8186 2002-03-13 Michael Hope <michaelh AT vroom>
8188 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
8190 2002-03-04 johanknol <johanknol AT manik>
8192 * /src/SDCCval.c: fixed
8194 const unsigned char arr[][2] = { { 0, 1 } };
8195 t18.c:1: error: Initializer element is not constant
8197 2002-03-04 bela <bela AT manik>
8199 * /device/include/mcs51reg.h:
8200 ds89c420 register definition update
8202 2002-03-03 <johan AT FRIJA>
8204 * support/Util/SDCCerr.c: did something, but don't no why anymore
8206 * support/regression/tests/bug-524691.c: made it a little less shy
8208 * src/SDCCast.c (decorateType): fixed bug #524697
8210 * src/SDCCast.c: made some lineno improvements
8212 * src/SDCCval.c (getNelements): changed warning to error
8214 * src/SDCCglue.c (printIvalArray): changed warning to error
8216 * src/SDCCicode.c: fixed a warning for mingw
8218 * src/SDCCast.c (decorateType): fixed the << promotion for ops
8220 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
8222 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
8224 * src/ds390/peeph.def:
8225 Added some more peephole rules
8227 * src/ds390/gen.c: Various fixes & enhancements
8229 * src/SDCClrange.c, src/SDCClrange.h:
8230 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
8232 * src/ds390/ralloc.c:
8233 various fixes & enhancements (ds390) specific
8235 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
8236 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
8239 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
8241 2002-03-02 <johan AT FRIJA>
8243 * src/SDCCast.c (decorateType): fixed bug #524708
8245 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
8247 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
8249 2002-03-01 Michael Hope <michaelh AT vroom>
8251 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
8253 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
8255 2002-03-01 <johan AT FRIJA>
8257 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
8259 * src/SDCCast.c (decorateType): fixed bug #524209
8261 * src/SDCCval.c (valNot): fixed bug #524195
8263 2002-02-26 <johan AT balder>
8265 * src/xa51/gen.c: fixed a warning
8267 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
8269 * src/SDCCast.c (decorateType): fixed bug #522534
8271 2002-02-23 <johan AT balder>
8273 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
8275 2002-02-22 <johan AT balder>
8277 * src/SDCCast.c: fixed bug #514865
8279 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
8281 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
8283 * sdcc/src/SDCCloop.c:
8284 Previous fix was not good. basic blocks that have "break" or "return" are
8285 not really partof a loop , but live ranges used in these blocks should
8286 be live thru the entire loop, so set partOfLoop but don't add them to
8289 2002-02-21 <johan AT FRIJA>
8291 * src/SDCCcse.c: fixed bug #514308
8293 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
8296 Fixed BUG #519583. If a conditional block ended in a return/break
8297 statement inside a loop, it was not being considered part of the loop.
8299 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
8301 2002-02-10 Karl Bongers <karl AT turbobit.com>
8304 Fixed up SDCDB debugger somewhat. Updated debugger/README
8305 with lots of comments and notes.
8307 * device/examples/test2.c:
8308 Fix bug, "red" variable not being initialized(compiler complained).
8310 * device/examples/Makefile, examples/test3.c:
8311 Add Makefile in device/examples folder, compiles test3.c
8312 for use as a multiple module SDCDB test case.
8314 * sim/ucsim/cmd.src/cmdset.cc:
8315 Took out debug printfs in ucsim "next" command.
8318 Karl and Johan start ucsim XA support. Most dissassembly working,
8319 about 75% emulation done(plenty of work remaining).
8321 * sim/ucsim/z80.src:
8322 Add Z80 support to ucsim, add test-ucz80 regression test,
8323 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
8324 Notice z80 compiler fails on examples/test3.c/crc code.
8326 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
8328 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
8329 Added support for --parms-in-bank1
8331 * src/ds390/peeph.def:
8332 added a few more peephole optimzations
8335 1) added __builtin_inp & __builtin_outp used to read in data of given length
8336 from a memory mapped port
8337 2) added __builtin_memcmp
8338 3) added __builtin_swapw swap bytes of a short
8340 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
8341 1) handle multiple send & receives from register bank1
8342 2) ralloc can now allocate DPTR1 to some liveRanges
8344 * src/SDCCsymt.c, src/SDCCsymt.h:
8345 changes to handle multiple sends & receives
8348 added some pointer arithmetic optimization
8351 added some pointer arithmetic optimizations but not stable yet so not
8352 called from anywhere (will get this working shortly)
8354 * src/SDCCopt.c: fixed for multiple sends & receives
8357 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
8358 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
8359 set preprocessor defines (depending on options)
8361 * src/SDCCicode.c, src/SDCCicode.h:
8362 changes made to handle multiple sends & receives
8365 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
8367 * src/SDCCcse.c, src/SDCCcse.h:
8368 added function findbackward def (to be used in upcoming optimization)
8370 * src/SDCCcflow.c, src/SDCCcflow.h:
8371 added function returnAtEnd - to determine if a basic block terminates with
8374 * src/SDCCast.c, src/SDCCast.h:
8375 added option parms-in-bank1
8377 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
8378 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
8379 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
8380 adjusted for --parms-in-bank1 option
8382 * device/include/string.h:
8383 donot redefine "reentrant" keyword
8385 * device/include/ds80c390.h: Added some more SFRs
8387 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
8389 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
8391 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
8393 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
8395 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
8397 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
8399 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
8401 * Added --xram-movc option
8403 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8405 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
8407 2002-01-11 Johan Knol
8409 * Added math lib of Jesus Calvino-Fraga
8411 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
8413 * src/SDCCmain.c (processFile): fix processing of ../../src.c
8414 * support/regression/Makefile: new target test-mcs51-stack-auto
8415 * support/regression/ports/mcs51-stack-auto/spec.mk: added
8417 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
8419 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
8421 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
8423 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
8425 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
8427 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
8429 * src/SDCCglue.h: add definition for printIvalChar()
8431 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
8433 * src/SDCCast.c: fix #498138 by Johan
8435 * src/SDCCglue.c: fix #498138 by Johan
8437 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
8439 * support/regression/Makefile: fix clean
8441 * support/regression/ports/ds390/support.c: fix transmission of last character
8443 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
8445 * /sdcc/src/ds390/gen.c:
8446 a) improved computing address of stack variable
8447 b) took out some #if 0 code
8448 c) improved parmBytes adjustment
8449 d) improved genPlusIncr & genMinusIncr
8450 e) genCmp could generate bad code (when left assigned to DPTR)
8451 f) Fixed bug in hasInc
8453 * /sdcc/src/ds390/ralloc.c:
8454 a) packRegsForSupport could mess up live information (Fixed)
8455 b) packRegsDPTRuse could be incorrect for left & right shift
8457 * /sdcc/src/mcs51/ralloc.c:
8458 packRegsForSupport could mess up the live information (Fixed)
8460 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
8462 * /sdcc/src/SDCCast.c:
8463 can reverse a loop even if function call is present as long
8464 as the loop control variable is local & is not passed as parameter
8466 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
8468 * /sdcc/ChangeLog: *** empty log message ***
8470 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
8471 More builtin function additions for TININative
8473 * /sdcc/src/ds390/ralloc.c:
8474 Had broken the regression testsuite
8476 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
8478 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
8479 Added funcattr hasStackParms will be set for reentrant functions when there
8480 are paramteres on the stack, this helps in minimizing frame pointer generation
8481 typeFromStr can handle function pointers now
8483 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
8484 *** empty log message ***
8486 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
8488 * /src/ds390/gen.c, /src/ds390/main.c:
8489 More builtin function additions for TININative
8491 * /src/ds390/ralloc.c:
8492 Had broken the regression testsuite
8494 * /src/SDCCast.c: Fixed a bug in dumptree
8496 * /src/SDCCsymt.c, /src/SDCCsymt.h:
8497 Added funcattr hasStackParms will be set for reentrant functions when there
8498 are paramteres on the stack, this helps in minimizing frame pointer generation
8499 typeFromStr can handle function pointers now
8501 * /doc/builtins.txt, /doc/TININative.txt:
8502 *** empty log message ***
8505 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
8507 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
8508 ALPHA version for -mTININative
8510 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
8511 updated to reflect changes in the port structure
8514 added function do_assemble (similar to do_link) if non-null this function
8515 will be called to do assembly (-mTININative) requires a multi command
8517 added function genAssemblerEnd will be called to generate assembler Epilogue
8520 added _JavaNative to debug info printing
8522 * /src/SDCCmain.c: added option --tini-libid
8523 added port->do_assemble function (-mTININative) has a multi command assemble
8525 * /src/SDCCglue.c: Disabled "constExpr" check
8526 added port->genAssemblerEnd function
8528 * /src/SDCCglobl.h: Added option --tini-libid value
8531 tookout optimizeCompare from the header (has no external references)
8533 * /src/SDCCast.c: made one more function "static"
8535 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
8537 * src/z80/mappings.i: Added z80asm support.
8539 * src/z80/main.c: Added z80asm support on --asm=z80asm
8541 * src/z80/gen.c: Fixed asm portability issues.
8543 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
8545 * src/SDCCglue.c (printExterns): Added global/extern split.
8547 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
8549 * support/regression/Makefile: added test for mcs51 model large
8551 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
8553 * support/regression/ports/gbz80/spec.mk: added -mgbz80
8555 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
8557 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
8559 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
8561 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
8563 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
8565 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
8567 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
8569 * support/regression/tests/simplefloat.c: Port to mcs51.
8571 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
8572 * support/regression/tests/bug-485362.c: Added.
8574 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
8576 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
8578 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
8580 * src/z80/gen.c (aopDump): Added a dump function.
8582 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
8583 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
8585 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
8587 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
8589 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
8591 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
8593 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
8595 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
8597 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
8599 * support/regression/ports/ds390/support.c: Use tinibios.
8601 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
8603 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
8605 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
8606 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
8608 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
8610 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
8612 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
8614 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
8616 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
8617 (packRegsForIYUse): Created and optimised.
8619 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
8621 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
8622 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
8624 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
8626 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
8628 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
8630 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
8632 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
8634 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
8636 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
8638 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
8640 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
8642 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
8644 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
8646 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
8647 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
8648 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
8650 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
8652 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
8653 (genNotFloat): Added.
8654 (genUminusFloat): Added.
8656 * device/lib/z80/Makefile: Added floating pt stubs.
8658 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
8660 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
8662 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
8664 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
8666 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
8668 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
8670 * sdcc/support/regression/Makefile: Add port ds390.
8672 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
8674 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
8676 * sdcc/support/regression/ports/ds390/spec.mk: Added.
8678 * sdcc/support/regression/ports/ds390/support.c: Added.
8680 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
8682 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
8684 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
8686 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
8688 * device/include/malloc.h: Added z80 and gbz80 support.
8690 * device/lib/gbz80/heap.s: Added.
8692 * device/lib/z80/heap.s: Added.
8694 * device/lib/malloc.c: Added z80 and gbz80 support.
8696 * support/regression/tests/malloc.c (testMalloc): Added.
8698 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
8700 * support/regression/tests/bug-478094.c: Added.
8702 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
8704 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
8706 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
8708 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
8710 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
8712 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
8714 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
8716 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
8718 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
8720 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
8722 * support/regression/tests/bug-477927.c: Added.
8724 * src/z80/peeph.def: Added minor rules.
8726 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
8728 * src/z80/peeph.def: Added jump optimisation modification.
8730 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
8732 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
8734 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
8736 * support/regression/tests/funptrs.c: Added.
8738 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
8740 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
8742 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
8744 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
8746 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
8748 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
8749 (movLeft2ResultLong): Created.
8751 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
8752 (joinPushes): Added. Joins two char pushes into a word push.
8754 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
8756 * support/cpp2/Makefile.in (install): Added creation of dest dir.
8758 * support/makebin/Makefile (install): Added creation of dest dir.
8760 2001-10-24 Karl Bongers <karl AT turbobit.com>
8762 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
8764 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
8766 * src/z80/ralloc.c: Turned off faulty pack for one use.
8768 * src/z80/peeph-gbz80.def: Removed redundent restart options.
8770 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
8772 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
8774 * support/regression/Makefile: Improved clean
8776 * support/regression/ports/gbz80/spec.mk: Added clean
8778 * support/regression/ports/host/spec.mk: Added clean
8780 * support/regression/ports/z80/spec.mk: Added clean
8782 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
8784 * support/regression/ports/mcs51/timeout.c: little improvements
8786 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
8788 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
8790 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
8792 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
8794 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
8796 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
8798 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
8800 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
8801 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
8803 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
8805 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
8807 * src/mcs51/main.c (_linkCmd): Added bin path to command.
8809 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
8811 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
8813 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
8815 * support/regression/tests/longor.c: Added.
8817 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
8819 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
8821 * as/mcs51/aslink.h: define PATH_MAX
8823 * as/mcs51/asm.h: define PATH_MAX
8825 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
8827 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
8829 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
8831 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
8833 * src/SDCCglobl.h: define PATH_MAX
8835 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
8837 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
8839 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
8841 * src/z80/gen.c (gencjneshort): Fixed
8843 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
8845 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
8847 * support/regression/tests/bug-469671.c: Added.
8849 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
8851 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
8853 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
8855 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
8857 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
8859 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
8861 * src/device/lib/_mulint.c : removed hint: nooverlay bug
8863 * src/device/lib/_mullong.c : removed hint: nooverlay bug
8865 * src/device/lib/_divuint.c : removed hint: nooverlay bug
8867 * src/device/lib/_divulong.c: removed hint: nooverlay bug
8869 * src/device/lib/_moduint.c : removed hint: nooverlay bug
8871 * src/device/lib/_modulong.c: removed hint: nooverlay bug
8873 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
8875 * 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.
8877 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
8879 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
8881 2001-10-07 <johan AT FRIJA>
8883 * device/lib/gets.c (gets): fixed the return value.
8885 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
8886 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
8888 * 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.
8890 * 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.
8892 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
8894 * src/pic/gen.c: Removed Safe_strdup.
8896 * configure.in: Added option to enable libgc support.
8898 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
8899 (bitVectUnion): Optimised.
8900 (bitVectIntersect): Optimised.
8901 (bitVectBitsInCommon): Optimised.
8902 (bitVectCplAnd): Optimised.
8904 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
8906 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8908 * src/SDCCmain.c: distinguish between assembler debug and plain options
8910 * src/avr/main.c: remove standard assembler options
8912 * src/ds390/main.c: remove standard assembler options
8914 * src/mcs51/main.c: remove standard assembler options
8916 * src/port.h: removed "PENDING" comment
8918 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8920 * src/device/lib/_mulint.c : new, with assember functions
8922 * src/device/lib/_mullong.c : new, with assember functions
8924 * src/device/lib/_divuint.c : with assember functions
8926 * src/device/lib/_divsint.c : with assember functions
8928 * src/device/lib/_divulong.c: with assember functions
8930 * src/device/lib/_divslong.c: with assember functions
8932 * src/device/lib/_moduint.c : with assember functions
8934 * src/device/lib/_modsint.c : with assember functions
8936 * src/device/lib/_modulong.c: with assember functions
8938 * src/device/lib/_modslong.c: with assember functions
8940 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
8942 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
8944 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
8945 replaced _mululong.c and _mulslong.c by _mullong.c
8947 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8949 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
8951 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
8953 * src/SDCCglue.c: test, if win32api is available for MINGW
8955 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
8957 * src/SDCCsymt.c: no more _modifier in printTypeChain()
8958 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
8959 * support/regression/ports/gbz80/spec.mk: removed GENERIC
8960 * support/regression/ports/host/spec.mk: removed GENERIC
8961 * support/regression/ports/mcs51/spec.mk: removed GENERIC
8962 * support/regression/ports/z80/spec.mk: removed GENERIC
8964 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
8966 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
8968 * support/regression/tests/bug-467035.c: Created.
8970 2001-10-01 <johan AT FRIJA>
8972 * src/SDCC.y: fixed bug #466586 part 1
8974 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
8976 * SDCCicode.c: z80 has no generic pointers
8977 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
8979 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
8981 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
8983 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
8985 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
8987 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
8989 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
8991 * configure.in: Fixed up so that ucsim is only configured once.
8993 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
8995 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
8996 (getPathDifference): As above.
8998 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
9000 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9002 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
9003 * .version: Updated to 2.3.1
9005 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9006 Added copyright header.
9008 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9009 (assemble): Added support for macro based assembler commands.
9010 (linkEdit): Added support for macro based linker commands.
9011 (preProcess): Changed the pre-processor to use macros.
9012 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9013 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9015 * device/lib/z80/crt0.s: Added module name for debugging.
9017 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
9019 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9021 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9023 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9025 * src/Makefile.in: Added SDCCmacro and SDCCutil
9027 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
9029 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9031 2001-09-16 <johan AT FRIJA>
9033 * 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.
9035 2001-09-15 <johan AT FRIJA>
9037 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9038 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9040 2001-09-11 <johan AT FRIJA>
9042 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9044 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
9046 * support/regression/tests/bug-460444.c: Added test case.
9048 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9049 (genCast): Added justification for all of the asserts.
9051 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
9053 * support/regression/support.c: _xdata replaced by xdata
9055 * support/regression/spec.mk: removed _generic
9057 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
9059 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9061 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9062 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9064 * src/z80/peeph.def: Added a rule to optimise shift then compare.
9066 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9068 * support/regression/tests/bug-460010.c: Added test case.
9070 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9072 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
9074 * support/regression/Makefile: inter-port-clean adjusted for mcs51
9076 * support/regression/testfwk.c: removed workaround for bug #436344
9078 * support/regression/tests/bp.c: use less memory with mcs51
9080 * support/regression/tests/bug-441448.c: use less memory
9082 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9084 * support/regression/collate-results.py: typo
9086 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
9088 * support/regression/tests/fetchoverlap.c: Added new test case.
9090 * support/regression/tests/bp.c: Added new test case.
9092 * support/regression/tests/bug-448984.c: Added new test case.
9094 * support/regression/tests/pow2shifts.c: Added new test case.
9096 * src/z80/gen.c: Turned off the noise it normally generates for the release.
9097 (genlshTwo): Fixed right shift for count > 8.
9099 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9101 2001-09-08 <johan AT FRIJA>
9103 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9105 2001-09-07 <johan AT FRIJA>
9107 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9109 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9111 2001-09-06 <johan AT FRIJA>
9113 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9114 * bernhard noted me at this: "() equals to (void)" (1.38)
9116 2001-09-05 <johan AT FRIJA>
9118 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9120 2001-09-04 <johan AT FRIJA>
9122 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9125 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
9127 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
9129 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
9131 * link/z80/aslink.h: Fixed path for PATH_MAX
9133 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
9135 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9137 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9139 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9141 * 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.
9143 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
9145 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
9146 (genCmp): Fixed up genCmp for the GB with longs.
9148 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
9150 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
9152 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
9154 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
9156 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
9158 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
9160 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
9162 * 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.
9164 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
9166 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
9168 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
9170 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
9172 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9174 * sim/ucsim/configure: little improvement of Cygwin-detection
9175 * sim/ucsim/configure.in: little improvement of Cygwin-detection
9176 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
9177 * support/regression/tests/bug-221100.c: small changes for mcs51
9178 * support/regression/tests/bug-221168.c: small changes for mcs51
9179 * support/regression/tests/bug-227710.c: small changes for mcs51
9180 * support/regression/tests/staticinit.c: small changes for mcs51
9181 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
9182 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
9183 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601