* as/mcs51/lkarea.c: enlarged codemap for banked memory
[fw/sdcc] / ChangeLog
1 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3         * device/lib/mcs51/crtbank.asm: added # to 0x0F
4
5 2005-07-21 Raphael Neider <rneider AT web.de>
6
7         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8           architecture cannot handle them efficiently, fixes bug #1235003
9         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
10           check for empty sets before using them (fixes bug #1232190)
11
12 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
13
14         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
15           (lnksect2): generate warnings for memory overlap
16         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
17           constseg to set the name of these segments so you can instruct the linker
18           to place them in banks
19         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
20         * src/SDCCglobl.h: added MODEL_HUGE to enum,
21           added code_seg and const_seg to options
22         * src/SDCCglue.c (emitMaps): use options.const_seg,
23           (createInterruptVect): put interrupt vectors in segment HOME,
24           (glue): put HOME before static segment and put the main glue in HOME,
25           (glue): use options.code_seg
26         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
27         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
28           these segments so you can instruct the linker to place them in banks
29           (linkEdit): use code_loc for HOME segment which should be the first
30           segment in code memory now
31         * src/SDCCmem.c: fixed more stuff like bug 1238386
32         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
33           (changePointer): don't change function pointers to code pointers for
34           banked functions,
35           (compareType): added exceptional check for banked function pointers
36         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
37         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
38           after static in code memory
39         * src/mcs51/gen.c: added aopLiteralLong prototype,
40           (aopForSym): use getSize for functions,
41           (genCall): generate banked calls over one trampoline __sdcc_banked_call
42           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
43           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
44           the segment,
45           (genPcall): use call for literal function pointers and generate banked
46           calls over the one trampoline so there's only one place for the user to
47           modify according to his/hers hardware,
48           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
49           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
50         * src/mcs51/main.c: added keyword banked,
51           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
52         * support/Util/SDCCerr.c,
53         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
54           needed for passing the bank and address to the trampoline
55         * device/lib/mcs51/crtbank.asm: added for bankswitching
56         * device/lib/mcs51/Makefile: added crtbank
57
58 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
59
60         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
61           for fields at offset 0 of a struct or union as reported
62           on 2005-07-07 in the developer mailing list.
63
64 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
65
66         * src/SDCCmem.c: fixed bug 1238386
67
68 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
69
70         * src/mcs51/peeph.def: added labelrefcounting for peepholes
71           (patch #1144962), added peephole 300, enabled 259.x
72         * doc/sdccman.lyx: removed screenshot and provided link instead
73
74 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
75
76         * doc/sdccman.lyx: added section about debugging with ddd
77         * doc/figures/ddd_example.eps: screenshot of debugging session
78
79 2005-07-04 Raphael Neider <rneider AT web.de>
80
81         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
82           like CODE pointers, fixes #1115683
83         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
84           call, fixes bugs #1232211, #1228110,
85           fixed wrong casts to pCodeFlow from pCodeInstructions
86
87 2005-07-04 Raphael Neider <rneider AT web.de>
88
89         * src/pic/gen.c (popGet): changed assert to allow for
90           bit operands
91         * (popGetAddr): changed signature to provide
92           an additional index, patched all call sites
93         * (genCmpEq): handle literal-like operands correctly
94         * (genAddrOf): added sanity checks on __code/__data pointers
95         * (genAssign): added handling of symbols from __code section
96         * (gencjne): do not generate code for comparisons whose result
97           is neither stored nor used, fixes bug #1171114
98         * (AccLsh, AccRsh): operate on operand instead of WREG
99         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
100           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
101           by known count
102         * rewrote complete shift-by-literal logic, commented unused
103           functions out
104         * (genConstPointerGet): get multiple bytes (if result size > 1),
105           fixed handling of non-immediate addresses
106         * (genPointerGet): handle CODE pointers like CONST pointers
107         * (genpic14Code): insert C-SRC lines as Cource-pCodes
108         * ({aop,op}_isLitLike): NEW, single place to decide whether an
109           operand is to be treated as a literal or not
110         * (mov2w,genPcall,genCmpEq),
111           src/pic/genarith.c: use aop_isLitLike() to decide between
112           literal/register contents
113         * (addSign): added missing offset
114         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
115           only emit comment in debug-mode,
116           use {aop,op}_isLitLike throughout the file
117         * src/pic/glue.c: fix initializers for pointers (work in progress)
118         * src/pic/pcode.c (get_op): honor index on _const symbols
119         * ({reset,dump}pCodeStatistics): NEW, estimate code size
120         * (dumppBlock): added pCode size estimation
121         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
122           check for IS_SYMOP before OP_SYMBOL'ing
123         * fixed indentation, compacted switch-statements
124         * (allocReg): find free register and allocate it instead of
125           allocating new registers all the time
126         * (deassignLRs): prevent POINTER_GET's from being assigned the same
127           registers as its operands (necessary only for multibyte GETs)
128
129 2005-07-01 Raphael Neider <rneider AT web.de>
130
131         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
132           debugging .asm-output macros FENTRY + FEXIT
133         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
134           way... I wonder...
135         * (emitpComment): NEW, printf to pCode
136         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
137           offset handling
138         * (popGetAddr): NEW, variant of popGet to access an immediates
139           high(er) bytes instead of the n'th byte of memory they reference,
140           replaced popGet with popGetAddr where neccessary
141         * (genDataPointerGet): reactivated and fixed implementation
142         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
143           accesses
144         * (genDataPointerSet): fixed multibyte assignments
145         * (genpic14Code): fixed --i-code-in-asm handling
146         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
147         * (genPlus): fixed index-out-of-bounds error
148         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
149         * src/pic/ralloc.c: added debugging output macro FENTRY2
150         * (spillThis): fixed indentation, enbraced for-body for clarity
151         * (rematStr): commented out as now unused
152         * (regTypeNum): commented out special spill case (overwrites
153           arbitrary values)
154         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
155
156 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
157
158         * doc/sdccman.lyx: documented sfr16/sfr32,
159           added example for using storage class with function pointers
160         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
161
162 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
163
164         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
165         * device/lib/_itoa.c,
166         * device/lib/_ltoa.c: optimized codesize
167         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
168           but don't know how to suppress the double warning.
169         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
170         * support/Util/SDCCerr.c,
171         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
172
173 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
174
175         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
176           fixed old K&R prototypes
177         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
178         * device/lib/_gptrget.c,
179         * device/lib/_gptrgetc.c,
180         * device/lib/_gptrput.c: changed versions for new memory indicator values,
181           also new versions for small generic pointers and banked generic pointers
182         * src/port.h: added const_name
183         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
184         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
185         * src/SDCCcse.c (findPrevIc): check all associative operators
186         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
187         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
188         * src/SDCCmem.c: updated comments,
189           set far-space to 0 for pdata, results in optimized code
190         * src/SDCCmem.h: added macro CONST_NAME
191         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
192           moving the info into the highest bits, see also gptrget/gptrput
193         * src/src.dsp: added sdcc.ico to project files
194         * src/avr/gen.c (genCast): fixed bug 0x%d
195         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
196         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
197           relation between ptr_type and DCL_TYPE,
198           (genCast): fixed bug 0x%d
199         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
200           (CODE)" for const_name
201         * src/hc08/gen.c (genCast): fixed bug 0x%d
202         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
203           (hc08_port): added "CONST (CODE)" for const_name
204         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
205           (aopForRemat, adjustArithmeticResult): disconnected direct relation
206           between ptr_type and DCL_TYPE,
207           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
208           operand* and took AOP() inside function so sfr-ness can be checked,
209           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
210           new prototype,
211           (genFunction, genEndFunction): optimized stack setup,
212           (genMinus): optimized for literals with ending zeroes (in bytes),
213           (genCast): fixed bug 0x%d
214         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
215           (mcs51_port): added "CONST (CODE)" for const_name
216         * src/mcs51/peeph.def: made rule 226 more generic
217         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
218         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
219         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
220         * src/z80/main.c (z80_port): added NULL for const_name,
221           (gbz80_port): added NULL for const_name
222         * support/regression/tests/bug663539.c,
223         * support/regression/tests/sfr16.c: new tests
224
225 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
226
227         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
228
229 2005-06-24 Raphael Neider <rneider AT web.de>
230
231         * device/lib/pic16/libdev/pic18f[68][567]20.c:
232           corrected typos...
233         * device/include/pic16/signal.h: added USBIF
234           and SIG_USB
235
236 2005-06-24 Raphael Neider <rneider AT web.de>
237
238         * device/lib/pic16/libdev/pic18f2455.c,
239           device/include/pic16/pic18f2455.h: NEW
240         * device/include/pic16/pic18fregs.h,
241           device/lib/pic16/pics.all,
242           src/pic16/device.c: added 18f2455
243         * device/lib/pic16/libdev/pic18f[68][567]20.c,
244           device/include/pic16/{pic18f[68][567].h,usart.h}:
245           replaced MULTIPLE_USARTS define with more relaible
246           compatibility sfrs (for USART access)
247
248 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
249
250         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
251           and the output asm file line is printed on two lines.
252
253 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
254
255         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
256           BGT, BLE, BHI, and BLS instructions
257         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
258           genCmpEq): removed
259         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
260           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
261           fixes bug #1216342
262         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
263
264 2005-06-15 Raphael Neider <rneider AT web.de>
265
266         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
267         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
268         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
269           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
270           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
271
272 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
273
274         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
275           Marcel Telka in bug #1215704
276
277 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
278
279         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
280           located in shared memory bank.
281
282 2005-05-31 Raphael Neider <rneider AT web.de>
283
284         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
285           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
286           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
287
288 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
289
290         * device/lib/_strncpy.c: fixed the fix
291
292 2005-05-26 Raphael Neider <rneider AT web.de>
293
294         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
295           initializers with \0, bug #1208187
296         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
297           intializers with \0, bug #1208187
298
299 2005-05-26 Raphael Neider <rneider AT web.de>
300
301         * src/pic16/glue.c (pic16_printIvalChar): fixed string
302           initializers with \0, bug #1208187
303         * src/pic16/main.c (_process_pragma): added sanity checks
304           for stack position and size, emit warnings when appropriate
305
306 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
307
308         * device/lib/_strncpy.c: fixed not filling with \0
309
310 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
311
312         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
313           createFunction),
314         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
315           compound_statement),
316         * src/SDCCsymt.h,
317         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
318
319 2005-05-24 Raphael Neider <rneider AT web.de>
320
321         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
322
323 2005-05-24 Raphael Neider <rneider AT web.de>
324
325         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
326           TRISE definitions, closes bug #1162453
327
328 2005-05-22 Raphael Neider <rneider AT web.de>
329
330         * src/pic16/main.c (_process_pragma): check for missing
331           arguments to pragmas code and udata
332         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
333           consistency fixes to match other headers (thanks to Jim Paris)
334         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
335
336 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
337
338         * src/SDCCicode.c (isOperandEqual): fixed missing ;
339
340 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
341
342         * support/regression/tests/bug1198642.c: new test
343         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
344         * src/SDCCcse.c (findPrevIc): added comment, please have a look
345         * support/scripts/resource.h,
346         * support/scripts/resource.rc,
347         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
348         * support/scripts/sdcc.ico: added 32x32 icon
349
350 2005-05-18 Raphael Neider <rneider AT web.de>
351
352         * device/lib/pic16/libdev/pic18f*.c,
353         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
354           keywords to "__sfr" and "__at (X)"
355         * device/include/pic16/pic18fregs.h: added pic18f4520
356         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
357           #1203088 (MPLAB compatibility)
358
359 2005-05-17 Raphael Neider <rneider AT web.de>
360
361         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
362         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
363         * device/lib/pic16/pics.all: added new devices
364         * src/pic16/device.c: added support for pic18f4520
365
366 2005-05-16 Raphael Neider <rneider AT web.de>
367         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
368         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
369         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
370           convenience function for bit access
371
372 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
373
374         * device/lib/printf_large.c: fixed bug 1193299
375         * support/regression/tests/bug1057979.c: added test %3.3s
376
377 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
378
379         * device/include/mcs51/8051.h,
380         * device/include/mcs51/8052.h: made parseable with lint
381         * device/include/mcs51/lint.h: added include file for (sp)lint
382         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
383         * doc/cdbfileformat.lyx,
384         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
385
386 2005-05-14 Raphael Neider <rneider AT web.de>
387
388         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
389         * device/lib/pic16/libc/stdlib/itoa.c (new)
390         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
391         * device/lib/pic16/libio/Makefile: exclude subdir according to
392           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
393         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
394         * src/pic16/gen.c (genFunction): prevent annoying warning
395         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
396           nameclashes on BeOS
397         * support/cpp2/cppmain.c (cpp_output_string): new
398         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
399           fixes bug 1116802
400
401 2005-05-13 Borut Razem <borut.razem AT siol.net>
402
403         * src/SDCCmain.c (linkEdit): fixed bug 1195202
404
405 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
406
407         * .version: changed to version 2.5.1; back to bleeding edge development
408
409 2005-05-11 Borut Razem <borut.razem AT siol.net>
410
411         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
412           generate PDF version 1.3 documents
413
414 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
415
416         * .version: changed to version 2.5.0
417
418 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
419
420         * doc/sdccman.lyx: updated weblinks, index and smaller updates
421
422 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
423
424         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
425         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
426         well as many smaller updates.
427         * .version: changed to version 2.5.0-pre1
428
429 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
430
431         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
432
433 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
434
435         * support/regression/tests/bug1185672.c: added
436         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
437           bug 1185672
438         * src/mcs51/gen.c (genCall): added comments, made it look safer
439         * src/mcs51/gen.c (genEndFunction): simplified
440
441 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
442
443         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
444
445 2005-04-14 Borut Razem <borut.razem AT siol.net>
446
447         * fixed bug 1045046 - SIGSEGV with really simple code?:
448           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
449           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
450
451 2005-04-14 Borut Razem <borut.razem AT siol.net>
452
453         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
454           src/pic16/device.h: temporarily disabled experimental #inline pragma
455           for 2.5.0 release
456
457 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
458
459         * device/include/z80/stdio.h,
460         * device/include/z80/string.h: removed these highly incomplete files so
461           SDCC can use the default ones in device/include/
462
463 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
464
465         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
466         gcc warning.
467         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
468         fix sdcpp warnings.
469
470 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
471
472         * device/include/malloc.h: removed redundant __reentrant prototypes
473         * device/lib/_mullong.c: added working xstack variant in asm (C version
474           doesn't pass regression tests)
475         * device/lib/bpx.c: used __data and made bpx char for mcs51
476         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
477           (createFunction): fixed bug with xstackPtr
478         * src/SDCCcse.c: corrected comments
479         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
480           (killDeadCode, eBBlockFromiCode): removed unused code
481         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
482           corrected comments
483         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
484           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
485           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
486           (genModOneByte): fixed warning in MSVC
487         * src/mcs51/main.c (): added comments
488         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
489
490 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
491
492         * src/SDCCmain.c (linkEdit): oops, changed one line too many
493
494 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
495
496         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
497
498 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
499
500         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
501         characters arrays of larger size than the declared one.
502
503 2005-04-10 Borut Razem <borut.razem AT siol.net>
504
505         * src/pic/gen.c (genInline),
506           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
507           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
508           (findNextInstruction), (findPrevInstruction),
509           (findInstructionUsingLabel),
510           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
511         * src/pic/pcode.c (findLabel): added missing '\n'
512         * src/src.dsp: added SDCCdwarf2.c to the project
513
514 2005-04-09 Borut Razem <borut.razem AT siol.net>
515
516         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
517
518 2005-04-08 Raphael Neider <rneider AT web.de>
519
520         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
521           into the chain after a given one) and mergeDefmapSymbols (combine
522           defmap entries for each symbol per pcode)
523         * (createDefmap): have defmap entries merged in the end
524         * (defmapReplaceSymRef): split defmap entries covering two accesses to
525           a symbol before replacing one access type's symbol, merge symbols in
526           the end (replacement symbol might already have an entry)
527         * (assignValnums): keep reference to written WREG intact
528
529 2005-04-08 Raphael Neider <rneider AT web.de>
530
531         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
532           Alpha)
533
534 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
535
536         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
537         bytes
538
539 2005-04-07 Raphael Neider <rneider AT web.de>
540
541         * device/include/pic16/usart.h: added compatibility defines for
542           devices with more than one USART
543         * device/include/pic16/pic18f[68][567]20.h: activated above defines
544
545 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
546
547         * device/lib/Makefile.in: updated for port specific include
548
549 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * support/regression/ports/mcs51/spec.mk: added mcs51 include
552
553 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
554
555         * device/include/8051.h,
556         * device/include/8052.h,
557         * device/include/at89S8252.h,
558         * device/include/at89c55.h,
559         * device/include/at89x051.h,
560         * device/include/at89x51.h,
561         * device/include/at89x52.h,
562         * device/include/mcs51reg.h,
563         * device/include/reg51.h,
564         * device/include/reg764.h,
565         * device/include/regc515c.h,
566         * device/include/sab80515.h: (re)moved these 12 files
567         * device/include/mcs51/8051.h,
568         * device/include/mcs51/8052.h,
569         * device/include/mcs51/at89S8252.h,
570         * device/include/mcs51/at89c55.h,
571         * device/include/mcs51/at89x051.h,
572         * device/include/mcs51/at89x51.h,
573         * device/include/mcs51/at89x52.h,
574         * device/include/mcs51/mcs51reg.h,
575         * device/include/mcs51/reg51.h,
576         * device/include/mcs51/reg764.h,
577         * device/include/mcs51/regc515c.h,
578         * device/include/mcs51/sab80515.h: and added them here
579
580 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
581
582         * device/include/stdarg.h: changed SDCC specific keywords to double
583           underlined form.
584         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
585           mcs51 and ds390.
586         * device/include/hc08/mc68hc908gp32.h,
587         * device/include/hc08/mc68hc908jb8.h,
588         * device/include/hc08/mc68hc908jkjl.h,
589         * device/include/hc08/mc68hc908qy.h: fixed comments
590         * device/include/mcs51/README: updated
591         * device/include/mcs51/c8051f120.h: added PINRSF
592         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
593         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
594           amidst code. Also inline is not supported.
595
596 2005-04-06 Raphael Neider <rneider AT web.de>
597
598         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
599         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
600           callers stack/frame pointers
601
602 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
603
604         * device/include/pic16/usart.h: added, missing in previous commit,
605         * device/include/pic16/adc.h: fixed typo,
606         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
607         commit,
608         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
609         <p18fxxx.inc>
610         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
611         uninitialized because a bug appears with gplink
612         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
613         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
614         complains for unrecognised option
615
616 2005-04-05 Raphael Neider <rneider AT web.de>
617
618         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
619           structs as well (using memcpy)
620         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
621           on ISRs (GOTO has no label)
622         * src/pic16/device.h: added OF_OPTIMIZE_DF
623         * src/pic16/main.c: added compiler switch --optimize-df to enable the
624           new data flow analysis/optimization
625         * src/pic16/pcode.c: added (prototypes for and implementation of)
626           dataflow analysis functions, fixed pCodeInstructions' inCond and
627           outCond values, made RCALL a branch instruction
628         * (pic16_unlinkpCode): keep C line if possible
629         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
630           C line moved if possible
631         * (pic16_getRegFrompCodeOp): NEW, improved version of...
632         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
633           to use new pic16_getRegFrompCodeOp (works for more SFRs)
634         * (pic16_BuildFlow): fixed skip instructions with label (did not start
635           new flow)
636         * (pic16_getJumptabpCode): NEW, needed in...
637         * (LinkFlow): fixed handling of jumptables, calls and conditional
638           branches
639         * (pic16_InsertCommentAfter): NEW
640         * (pic16_pCodeReplace): made verbose and flow preserving
641         * (AnalyzeFlow): added call to data flow analysis
642         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
643         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
644         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
645
646 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
647
648         * src/SDCCast.c (decorateType): fixed bug #1105626
649
650 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
651
652         * device/include/asm/pic16/features.h,
653         * pic18f*.h headers,
654         * device/include/pic16/adc.h,
655         * device/include/pic16/delay.h,
656         * device/include/pic16/i2c.h,
657         * device/include/pic16/malloc.h,
658         * device/include/pic16/stdio.h,
659         * device/include/pic16/stdlib.h,
660         * device/include/pic16/string.h,
661         * device/lib/pic16/libc/stdio/printf_tiny.c,
662         * device/lib/pic16/libc/stdio/printf_small.c,
663         * device/lib/pic16/libc/stdio/strmgpsim.c,
664         * device/lib/pic16/libc/stdio/strmmssp.c,
665         * device/lib/pic16/libc/stdio/strmusart.c,
666         * device/lib/pic16/libc/stdio/vfprintf.c,
667         * device/lib/pic16/libc/stdlib/ltoa.c,
668         * device/lib/pic16/libc/stdlib/putchar.c,
669         * device/lib/pic16/libc/stdlib/x_ftoa.c,
670         * device/lib/pic16/libc/stdlib/memchrpgm.c,
671         * device/lib/pic16/libc/stdlib/memchrram.c,
672         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
673         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
674         * device/lib/pic16/libio/adc/adcbusy.c,
675         * device/lib/pic16/libio/adc/adcread.c,
676         * device/lib/pic16/libio/adc/adcsetch.c,
677         * device/lib/pic16/libio/usart/ubaud.c,
678         * device/lib/pic16/libio/usart/ubusy.c,
679         * device/lib/pic16/libio/usart/udrdy.c,
680         * device/lib/pic16/libio/usart/uopen.c,
681         * device/lib/pic16/libio/usart/uputc.c,
682         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
683         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
684         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
685         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
686         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
687         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
688         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
689         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
690         specific keywords to double underlined form,
691         * device/lib/pic16/libc/Makefile.rules,
692         * device/lib/pic16/libsdcc/Makefile.rules,
693         * device/lib/pic16/libm/Makefile,
694         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
695         to compile with C standard set in Makefile.common
696         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
697         rand.c and crc.c in compilation process,
698         * device/lib/pic16/libsdcc/int/divuint.c,
699         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
700         `c' from signed to unsigned,
701         * device/lib/pic16/startup/crt0.c,
702         * device/lib/pic16/startup/crt0i.c,
703         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
704         keywords to double underlined form, bug fixes in _do_cinit function
705         which prevented the correct initialization of the .idata segment,
706         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
707         core to enter a infinite loop
708         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
709
710 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
711
712         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
713
714 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
715
716         * device/include/Makefile.in: add support for hc08 subdirectory
717         * device/include/hc08/: new subdirectory
718         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
719         Lucas Loizaga, thanks!
720         * device/include/hc08/mc68hc908qy.h,
721         * device/include/hc08/mc68hc908gp32.h,
722         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
723         their own directory. Changed internal macro names to use the compiler
724         reserved namespace. Changed SDCC specific keywords to double
725         underlined form.
726         * device/include/math.h,
727         * device/include/malloc.h,
728         * device/include/stdarg.h,
729         * device/include/stdbool.h
730         * device/include/string.h,
731         * device/include/tinibios.h,
732         * device/include/ds400rom.h,
733         * device/include/8051.h,
734         * device/include/8052.h,
735         * device/include/80c51xa.h,
736         * device/include/at89c55.h,
737         * device/include/at89S8252.h,
738         * device/include/at89x51.h,
739         * device/include/at89x52.h,
740         * device/include/ds80c390.h,
741         * device/include/reg764.h,
742         * device/include/regc515c.h,
743         * device/include/sab80515.h,
744         * device/include/mcs51/c8051f000.h,
745         * device/include/mcs51/c8051f018.h,
746         * device/include/mcs51/c8051f020.h,
747         * device/include/mcs51/c8051f040.h,
748         * device/include/mcs51/c8051f060.h,
749         * device/include/mcs51/c8051f120.h,
750         * device/include/mcs51/c8051f300.h,
751         * device/include/mcs51/c8051f310.h,
752         * device/include/mcs51/c8051f320.h,
753         * device/include/mcs51/c8051f330.h,
754         * device/include/mcs51/c8051f350.h,
755         * device/include/z180.h: Changed SDCC specific keywords to double
756         underlined form.
757
758 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
759
760         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
761         18F4455,
762         * (pic16_assignConfigWordValue): disable testing of configuration
763         register value with config mask,
764         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
765         function with port->fun_prefix,
766         * (genFunction): when generating a naked interrupt function never
767         create an absolute segment placed in interrupt vector address, place
768         the actual interrupt function at IVA instead, when an interrupt
769         function is generated with unspecified interrupt then do not create
770         the absolute section,
771         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
772         code for generating a call to generic pointer get/put function with
773         a call to function pic16_callGenericPointer(),
774         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
775         the call to the generic pointer get/put functions with prefixing the
776         function name with port->fun_prefix,
777         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
778         * src/pic16/main.c (_process_pragma): prefix function with
779         port->fun_prefix,
780         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
781         calling assembler, old 18Fxxxx macro is deprecated,
782         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
783         PC_ASMDIR in while condition,
784         * (findInstruction): add PC_ASMDIR in while condition,
785         * (buildCallTree): prefix main with port->fun_prefix,
786         * (pic16_pCode2str): fixed bug that didn't emit the memory access
787         identifier for variable with banked access in instructions BTFSS,
788         BTFSC, BCF, BSF, BTG
789         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
790         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
791         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
792         perform optimization when enviroment variable NO_REG_OPT is set,
793         * (insideLRBlock): NEW, return 1 if register is inside an
794         INF_LOCALREGS block,
795         * (RemoveRegFromLRBlock): remove a register that is completely
796         eliminated by register optimization, but it is still left in local
797         register store/restore in/from stack block,
798         * (Remove2pcodes): after removing register, check to see if it
799         should be removed from local register store/restore in/from stack
800         block,
801         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
802         DUMMY_READ_VOLATILE,
803
804         * device/include/pic16/adc.h: minor prototype modifications and
805         update,
806         * device/include/pic16/malloc.h: added GPL notice various
807         modifications,
808         * device/include/pic16/stdint.h: NEW, standard header for ints
809         * device/include/pic16/delay.h: NEW, header for delay functions,
810         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
811         delay1mtcy,
812         * device/include/pic16/signal.h: NEW, header providing helper macros
813         for implementing signal handlers,
814         * device/include/pic16/stdio.h: added prototypes for functions,
815         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
816         prototypes for stdin and stdout, added macro PUTCHAR to
817         automatically implement putchar function prototype,
818         * device/include/pic16/usart.h: modified and updated USART library,
819         * device/lib/pic16/libio/adc/,
820         * device/lib/pic16/libio/i2c: some modifications to improve library
821         performance,
822         * device/lib/pic16/libc/stdio/: modifications for the new printf*
823         family of functions,
824         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
825         family of functions and other sources,
826         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
827         of the PIC18Fxx[28] devices,
828         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
829         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
830         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
831         _do_cinit function, because the previous failed when local variables
832         where not placed in the same memory bank,
833         * device/lib/pic16/libsdcc/char/: various modifications to improve
834         library performance,
835         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
836         information on the new functions of the c library and more...
837
838 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
839
840         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
841
842 2005-03-26 Raphael Neider <rneider AT web.de>
843
844         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
845           if condition == CARRY)
846         * (genCmp): adapted to new genSkipc semantics
847         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
848           on rIfx (genCmp was broken)
849
850 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
851
852         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
853         * src/z80/main.c (_keywords[]),
854         * src/SDCCglobal.h (struct options),
855         * src/SDCC.y,
856         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
857         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
858         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
859         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
860         always available in leading double underscore form. The C99 support is
861         mostly missing, but it's a start.
862         * support/regression/tests/bug-227710.c: fixed nonconforming use of
863         reserved identifier "__data".
864
865 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
866
867         * src/mcs51/peeph.def: fixed bug 1170013
868
869 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
870
871         * device/include/mcs51reg.h: fixed bug 842007
872
873 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
874
875         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
876         last time.
877
878 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
879
880         * src/port.h (struct PORT),
881         * src/avr/ralloc.c (avr_assignRegisters),
882         * src/avr/main.c,
883         * src/ds390/ralloc.c (ds390_assignRegisters),
884         * src/ds390/main.c,
885         * src/hc08/ralloc.c (hc08_assignRegisters),
886         * src/hc08/main.c,
887         * src/mcs51/ralloc.c (mcs51_assignRegisters),
888         * src/mcs51/main.c,
889         * src/pic/ralloc.c (pic14_assignRegisters),
890         * src/pic/main.c,
891         * src/pic16/ralloc.c (pic16_assignRegisters),
892         * src/pic16/main.c,
893         * src/xa51/ralloc.c (xa51_assignRegisters),
894         * src/xa51/main.c,
895         * src/z80/ralloc.c (z80_assignRegisters),
896         * src/z80/ralloc.h,
897         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
898         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
899         * src/SDCCcse.h,
900         * src/SDCCdflow.c (computeDataFlow),
901         * src/SDCCdflow.h,
902         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
903         * src/SDCCloop.h,
904         * src/SDCCcflow.c (*),
905         * src/SDCCcflow.h,
906         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
907         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
908         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
909         immedDom() returning wrong block; probably fixes bug #1160833)
910
911 2005-03-20 Borut Razem <borut.razem AT siol.net>
912
913         * support/scripts/inc2h.pl: WIN32 port
914
915 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * device/lib/makefile.in: added abs.c and labs.c
918
919 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
920
921         * device/include/stdint.h: added
922         * device/lib/abs.c: added
923         * device/lib/labs.c: added
924         * device/include/stdlib.h: added abs() and labs() prototypes
925         * device/lib/libsdcc.lib: added abs and labs
926         * device/include/float.h,
927         * device/lib/_fsmul.c,
928         * device/lib/printf_fast.c,
929         * device/lib/printf_tiny.c: updated comments
930
931 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
932
933         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
934         bug #1164313
935
936 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
937
938         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
939         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
940
941 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
942
943         * device/lib/printf_large.c: removed inline assembly for portability and
944           readability. Use printf_fast if speed or size are more important.
945         * src/pic16/gen.c: removed conditions around use of DEBUGpc
946         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
947
948 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
949
950         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
951         prevent compiler warning
952
953 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
954
955         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
956         moved to level 0 and declared as static. Also they are explicit
957         placed in access bank. This was necessery because some times they
958         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
959         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
960         optimizations. Currently only compare to unsigned char is implemented,
961         * src/pic16/gen.c: added fReturnIdx array,
962         * (struct resolvedIfx) is moved to gen.h and made public,
963         * (struct _G): added sregsAlloc and sregsAllocSet fields,
964         * (aopForSym): added an optimization to directly store in stack of
965         the operand of a SEND iCode,
966         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
967         but as registers instead (AOP_REG) using the fReturnIdx array,
968         * (pic16_freeAsmop): remove the freed register from the
969         _G.sregsAlloc field,
970         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
971         a compare of 'WREG',
972         * (pic16_popGetTempRegCond): changed function prototype, now
973         function takes also a bitVector argument v which holds the current
974         set of registers that are allocated for stack access by aopForSym,
975         registers allocated in aopForSym for accessing stack symbols are not
976         any more part of the functions usedRegs field,
977         * (genCall): some times aopOp is called for a stack variable to be
978         send, aopForSym might perform the push, if this is true make sure
979         that genCall doesn't push the variable twice by testing _G.resDirect,
980         * (genFunction): changed testing for unspecified interrupt number
981         from 256 to INTNO_UNSPEC,
982         * modified selection scheme of frame pointer generation. Previously
983         if function did use local registers a frame pointer was generated,
984         now a frame pointer is generated only if function has arguments
985         (that need PLUSW2 register access), or has stack arguments, or the
986         compiler is not instructed to omit the frame pointer,
987         * (genEndFunction): before restoring local registers that were saved
988         in the function preamble, also restore the registers that *might*
989         have been allocated for stack access,
990         * (genRet): removed some old comments,
991         * (genCmp, the active (RN's) version): added a call to the
992         pic16_genCmp_special function to perform the compare with a more
993         robust and optimized way,
994         * (genInline): a feature has been added in inline code generation,
995         which allows a wildcard variable substitution when writing inline
996         assembly. Code is incomplete and experimental therefore undocumented,
997         * (genCast): changed order of aopOp for result and right to allow
998         aopForSym to directly load the result if possible,
999         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1000         perform an optimized compare on some selected special occasions,
1001         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1002         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1003         generate an IVT any more,
1004         * src/pic16/main.c (pic16_optionsTable): added command line option
1005         --optimize-cmp,
1006         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1007         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1008         macros,
1009         * src/pic16/NOTES: Raphael Neider added in list of active developers
1010         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1011         jumptable_end to prevent bug #,
1012         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1013         inCond and outCond fields,
1014         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1015         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1016         turn off register spilling,
1017         * (packRegsForOneUse): synced with other ports' versions although it
1018         is not used currently,
1019         * (pic16_packRegisters): added an optimization while reading
1020         structure bitfields, some registers may be saved (malloc code is
1021         decreased by 80 bytes)
1022
1023 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1024
1025         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1026         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1027         this can be optimized more?
1028
1029 2005-03-10 Raphael Neider <rneider AT web.de>
1030
1031         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1032           genNearPointerGet): (hopefully) fixed access to bitfields via
1033           pointers (p->bitN = x; and x = p->bitN; failed)
1034
1035 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1036
1037         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1038
1039 2005-03-09 Raphael Neider <rneider AT web.de>
1040
1041         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1042
1043 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1044
1045         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1046         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1047           (regTypeNum): set REG_BIT type if necessary
1048         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1049         * support/regression/tests/critical.c: check bug 1144613
1050
1051 2005-03-02 Raphael Neider <rneider AT web.de>
1052
1053         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1054
1055 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1056
1057         * src/avr/ralloc.c (serialRegAssign),
1058         * src/ds390/ralloc.c (serialRegAssign),
1059         * src/hc08/ralloc.c (serialRegAssign),
1060         * src/mcs51/ralloc.c (serialRegAssign),
1061         * src/pic/ralloc.c (serialRegAssign),
1062         * src/pic16/ralloc.c (serialRegAssign),
1063         * src/xa51/ralloc.c (serialRegAssign),
1064         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1065
1066 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1067
1068         * src/SDCCast.c (decorateType): fixed bug 1124787
1069
1070 2005-02-20 Hubert Sack <sack AT digiplan.de>
1071         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1072
1073         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1074         patch #1121755
1075
1076 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1077
1078         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1079         to keep the correct label reference count when adding/removing references
1080         to labels. A peephole file using this is appended to patch #1144962.
1081
1082 2005-02-14 Raphael Neider <rneider AT web.de>
1083
1084         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1085         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1086         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1087           retrievals of result operand's value on assignment
1088
1089 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1090
1091         * device/include/pic16/string.h: modified prototype for memccpy()
1092         to memccpy(void *, void *, char, size_t)
1093         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1094         check whether to omit frame pointer or not,
1095         * (genInline): convert all occurences of "\n" to LF in inline
1096         assembler blocks, this helps formatting the inline text,
1097         * (pic16_loadFSR0): modified prototype,
1098         * (genNearPointerGet, genNearPointerSet): reorganization of code,
1099         removed some 8051 legacy code,
1100         * (genPackBits): enabled handling bitfields exceeding one byte in size,
1101         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1102         before allocating temporary registers in functions,
1103
1104 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1105
1106         * support/regression/tests/bitvars.c: corrected the "fix"
1107
1108 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1109
1110         * support/regression/tests/bitvars.c,
1111         * support/regression/tests/bitwise.c,
1112         * support/regression/tests/rotate.c: "fixed" problems on Alpha
1113
1114 2005-02-10 Raphael Neider <rneider AT web.de>
1115
1116         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1117           different size for Alpha
1118         * src/pic16/gen.c (genCmpEq) : improved compare with 0
1119
1120 2005-02-09 Raphael Neider <rneider AT web.de>
1121
1122         * src/SDCC.lex(doPragma) : save and restore warning options as well
1123           (also added new stack plus clone- and copyAndFreeSDCCERRG())
1124         * have #pragma less_pedantic set the errorlevel to WARNING
1125           (fixes #1117001)
1126         * (cloneOptimize) : fixed wrong malloc's size
1127         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1128           facilitate correct handling of #pragma (save|restore)
1129
1130 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1131
1132         * src/mcs51/gen.c: removed non-standard C nameless struct/union
1133
1134 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1135
1136         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1137
1138 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1139
1140         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1141
1142 2005-02-02 Raphael Neider <rneider AT web.de>
1143
1144         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1145         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1146         * (pic16_storeForReturn): fixed to allow returning function pointers
1147         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1148         * device/include/pic16/{stddef.h,stdbool.h}: added
1149
1150 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1151
1152         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1153
1154 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1155
1156         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1157         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1158          appeared to be required
1159
1160 2005-01-31 Borut Razem <borut.razem AT siol.net>
1161
1162         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1163           include/mcs51 and include/z80 directories to the package
1164
1165 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1166
1167         * src/hc08/gen.c (genFunction): fixed bug #1112752
1168
1169 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1170
1171         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1172
1173 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1174
1175         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1176
1177 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1178
1179         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1180
1181 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * device/include/c8051fxxx.h: removed these 6 files
1184         * device/include/mcs51/c8051fxxx.h: added these 11 new files
1185
1186 2005-01-26 Raphael Neider <rneider AT web.de>
1187
1188         * src/pic16/gen.c (genAssign): fixed assignment from longs
1189           in codespace (were cut to three bytes)
1190         * (genDummyRead): implemented (except for CODESPACE...),
1191           fixed bug #1108575
1192         * src/pic16/glue.c (emitStatistics): beautified
1193         * device/lib/pic16/libm/Makefile: added include path
1194
1195 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1196
1197         * src/z80/gen.c (aopPut): fixed bug #1103902
1198
1199 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1200
1201         * device/lib/expf.c: fixed bug #1095792
1202
1203 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1204
1205         * device/lib/pic16/libm: added Math library sources
1206
1207 2005-01-24 Raphael Neider <rneider AT web.de>
1208
1209         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1210           to enable upcast to pCodeOpReg2 (there is no type tag to
1211           differenciate the two and pic16_popGet2p cast into PCOR2)
1212         * src/pic16/main.c (_process_pragma): fixed another malloc bug
1213           (sizeof(sectNames) changed to sizeof(sectName))
1214           Both patches fix segfaults under MinGW.
1215
1216 2005-01-23 Raphael Neider <rneider AT web.de>
1217
1218         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1219           Safe_[mc]?alloc()'ed variables
1220         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1221           of (byte sized) temporaries (assign them to WREG for now)
1222         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1223           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1224           this might fix SIGSEGVs on MinGW...
1225         * src/SDCCopt.c (killDeadCode): restored original behaviour
1226           (volatile operands might get thrown away though)
1227
1228 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1229
1230         * src/pic16/gen.c: fixed bug #1106975,
1231         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
1232         pointer update, INTCON is saved, global interrupts are disabled and
1233         restored after updateing TOS.
1234         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
1235         * added function attribute 'shadowregs' to take advantage of shadow
1236         registers,
1237         * added function attribute 'wparam' as an alternative to the wparam
1238         pragma,
1239         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
1240         user declares a non-ISR function as 'shadowregs',
1241         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
1242
1243 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
1244
1245         * .version: bumped version number to 2.4.8
1246         * device/lib/pic16/pics.all: list of PIC18F devices supported by
1247         pic16 port,
1248         * device/lib/pic16/libio/i2c/: I2C module support library,
1249         * device/include/pic16/i2c.h: I2C support library header,
1250         * device/lib/pic16/libc/stdio/: standard IO support sources,
1251         * (printf_small.c): printf_small() source, supports float print,
1252         * (printf_tiny.c): printf_tiny() source, does not support floats,
1253         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
1254         enable global optimizations for entire library source, other
1255         Makefiles in the source tree are also modified to reflect this,
1256         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
1257         function,
1258         * doc/sdccman.lyx: updated to reflect new changes,
1259         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
1260         sym->onStack if-case,
1261         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
1262         sbit, idata, _idata, xdata, _xdata,
1263         * added pragma library, to link an external library, (see doc),
1264         * removed command line options, --pomit-config-words, --pomit-ivt,
1265         --pleave-reset-vector,
1266         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
1267         when calling assembler to reflect memory model used, also define
1268         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
1269         reflect stack model used,
1270         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
1271         on stack return NULL,
1272
1273 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1274
1275         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
1276           of the operands is volatile. Fixes #1020220
1277
1278 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1279
1280         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
1281         * (OptimizeRegUsage): make sure that there is really no other flow where
1282           the first pCode is used
1283
1284 2005-01-22 Raphael Neider <rneider AT web.de>
1285
1286         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
1287           to fix #1106967 (pCode->seq are not set up correctly)
1288
1289 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1290
1291         * src/SDCCglue.c (glue): make sure code area is declared before the
1292         static initialization area.
1293
1294 2005-01-21 Raphael Neider <rneider AT web.de>
1295
1296         * device/lib/Makefile.in: fixed test for pic16 install dir
1297         * device/lib/pic16/*/Makefile*: modified compile flags to enable
1298           optimizations
1299         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
1300           added --optimize-goto compiler switch and pragma wparam documentation
1301         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
1302         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
1303           and PRODH closing bug #1071770 (peephole optimizer)
1304
1305 2005-01-19 Raphael Neider <rneider AT web.de>
1306
1307         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
1308           cmdLine buffers (used when calling sdcpp...) are large enough
1309           (MAX_PATH=256 truncates arguments leading to system halts when
1310           used in MinGW...)
1311         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
1312         * (genUminus): rewritten to for efficiency
1313         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
1314           used uninitialized in some cases)
1315         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
1316           copy the third byte from the int -- now assumes 0x80 (data memory)
1317         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
1318           operands (genAddLit expects the iCode's operands to swapped as
1319           well), fixed leftover bytes (crashed for short left operands)
1320         * (pic16_genMinusDec): performance improvements, removed false
1321           PIC14 emitSKPNCs
1322         * (pic16_genMinus): fixed to cope with differently sized operands
1323         * src/pic16/glue.c (pic16_glue): added new banksel optimization
1324           for --obanksel > 1
1325         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
1326         * src/pic16/graph.[ch]: implementation of directed graphs, used by
1327           new banksel optimization
1328         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
1329           analysis for temporary registers (segfaults...)
1330         * src/pic16/peeph.def: added rule
1331
1332 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
1333
1334         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
1335         which converts a float number to its ASCII representation
1336         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
1337         functions to convert the fractional and integer part of a float to ASCII,
1338         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
1339         realloc.c): added _MALLOC_SPEC to explicit place variables in data
1340         ram
1341         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
1342         _STATMEM macros,
1343         * device/include/pic16/adc.h: added GPL info,
1344         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
1345         a pCodeOp as tested operand,
1346         * (genNearPointerGet): optimized bit testing, does not use
1347         intermediate register for bit value, test directly instead with
1348         BTFSS, BTFSC, works only for single bits,
1349         * (genpic16Code): dump the name of the iCode in the asm,
1350         * src/pic16/ralloc.c (decodeOp): removed static declaration and
1351         renamed to pic16_decodeOp,
1352         * (serialRegAssign): do not allocate a temporary register for iCode
1353         sequences that test a single bit for 1/0
1354
1355 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
1356
1357         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
1358         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
1359         access stack and frame pointers. They are initially assigned to
1360         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
1361         accessing SFRs. Updated all occurences of modification of stack or
1362         frame pointer in gen.c and pcode.c,
1363         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
1364         assigning of a literal value to pointers,
1365         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
1366         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
1367         selected
1368
1369 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1370
1371         * doc/sdccman.lyx: update documentation about stack pragma, added
1372         some info for stack memory models
1373
1374 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1375
1376         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
1377
1378 2005-01-08 Raphael Neider <rneider AT web.de>
1379
1380         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
1381           udata sections to fix bug #1097823
1382
1383 2005-01-05 Raphael Neider <rneider AT web.de>
1384
1385         * src/pic16/gen.c (genGenericShift): added handling of differently
1386           sized left operand and result
1387
1388 2005-01-04 Raphael Neider <rneider AT web.de>
1389
1390         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
1391         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
1392           to hold the condition bit)
1393         * added new version of genCmp (old code available via #define)
1394         * added new version of genShiftLeft/genShiftRight in a generic
1395           way, now supports shifting by negative values
1396         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
1397           shiftCount (expected by genGenericShift)
1398         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
1399         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
1400           dump
1401         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
1402           is an invalid literal too...)
1403
1404 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
1405
1406         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
1407         from Raphael Neider,
1408         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
1409         for 8-bit literals. This fixes some literal operands which are sign
1410         extended to 16-bits ints when instruction needs only 8-bits.
1411
1412 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
1413
1414         * device/lib/logf.c: added mcs51 assembly version
1415         * device/lib/expf.c: added mcs51 assembly version
1416         * device/lib/_logexpf.c: new shared asm code for expf and logf
1417         * device/include/math.h: add defines for assembly math library
1418         * device/lib/Makefile.in: build new _logexpf.c
1419         * device/lib/libfloat.lib: use new _logexpf.c
1420
1421 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1422
1423         * src/pic/device.c
1424         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
1425           device types which have less than 0x7f registers.
1426
1427 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1428
1429         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
1430
1431 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1432
1433         * device/lib/printf_fast.c: only build on supported arch.
1434         * device/lib/printf_tiny.c: only build on supported arch.
1435         * device/lib/printf_fast_f.c: only build if asm float lib
1436         * device/lib/_fsget1arg.c: only build if asm float lib
1437         * device/lib/_fsget2args.c: only build if asm float lib
1438         * device/lib/_fsnormalize.c: only build if asm float lib
1439         * device/lib/_fsreturnval.c: only build if asm float lib
1440         * device/lib/_fsrshift.c: only build if asm float lib
1441         * device/lib/_fsswapargs.c: only build if asm float lib
1442         * device/include/stdio.h: don't provide print_fast,
1443           print_fast_f, print_tiny prototypes if --xstack used
1444
1445 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
1446
1447         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
1448         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
1449           to the SOURCES
1450
1451 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1452
1453         * device/lib/printf_fast_f.c: same as printf_fast, but
1454           with floating point enabled
1455         * device/lib/printf_fast.c: minor tweaks
1456         * device/include/stdio.h: add printf_fast_f
1457
1458 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1459
1460         * src/SDCCmain.c: make --float-reent default for mcs51
1461         * device/lib/_fsadd.c: added mcs51 assembly version
1462         * device/lib/_fssub.c: added mcs51 assembly version
1463         * device/lib/_fsmul.c: added mcs51 assembly version
1464         * device/lib/_fsdiv.c: added mcs51 assembly version
1465         * device/lib/_fseq.c: added mcs51 assembly version
1466         * device/lib/_fsneq.c: added mcs51 assembly version
1467         * device/lib/_fsgt.c: added mcs51 assembly version
1468         * device/lib/_fslt.c: added mcs51 assembly version
1469         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
1470         * device/lib/Makefile.in: add _fscmp to build
1471         * device/lib/libfloat.lib: add _fscmp to build
1472
1473 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1474
1475         * device/lib/_fs2slong.c: added mcs51 assembly version
1476         * device/lib/_fs2sint.c: added mcs51 assembly version
1477         * device/lib/_fs2schar.c: added mcs51 assembly version
1478         * device/lib/_fs2ulong.c: added mcs51 assembly version
1479         * device/lib/_fs2uint.c: added mcs51 assembly version
1480         * device/lib/_fs2uchar.c: added mcs51 assembly version
1481         * device/lib/_slong2fs.c: added mcs51 assembly version
1482         * device/lib/_sint2fs.c: added mcs51 assembly version
1483         * device/lib/_schar2fs.c: added mcs51 assembly version
1484         * device/lib/_ulong2fs.c: added mcs51 assembly version
1485         * device/lib/_uint2fs.c: added mcs51 assembly version
1486         * device/lib/_uchar2fs.c: added mcs51 assembly version
1487         * device/include/float.h: added #define to select asm vs c
1488
1489 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
1490
1491         * device/lib/printf_fast.c: improvements to float output
1492         * device/include/float.h: add defines for assembly float library
1493         * device/lib/_fsget1arg.c: receive 1 float arg
1494         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
1495         * device/lib/_fsnormalize.c: normalize a float
1496         * device/lib/_fsreturnval.c: return float, various helper routines
1497         * device/lib/_fsrshift.c: right shift a float's mantissa
1498         * device/lib/_fsswapargs.c: swap 2 floats
1499         * device/lib/Makefile.in: build these 6 new files for mcs51
1500         * device/lib/libfloat.lib: add these 6 files to the library
1501
1502 2004-12-26 Borut Razem <borut.razem AT siol.net>
1503
1504         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
1505           built by gcc 3.4.2
1506
1507 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
1508
1509         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
1510           and fully reentrant and register bank neutral.
1511         * device/lib/printf_fast.c: added float (not enabled by default),
1512           added compact/slower integer (also not enabled by default),
1513           improved size/speed of fast integer code, other minor changes
1514         * device/include/stdio.h, device/lib/Makefile.in,
1515           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
1516
1517 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
1518
1519         * src/pic16/pcode.c: declaring variables other than at the start of a
1520           block is not supported in C by VC6.
1521
1522 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
1523
1524         * applied a previous patch from Raphael Neider that wasn't included
1525         in the previous commits, which fixes infinite loops within jumptable
1526         improvements,
1527         * made some fixes that previous patches introduced
1528
1529 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
1530
1531         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
1532         that fixes an issue with AOP_PCODE asmop's offset,
1533         * (pic16_popCopyReg): update instance field too,
1534         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
1535         function of pic port,
1536         * (genCmp, genAnd, genAssign),
1537         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
1538
1539 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
1540
1541         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
1542         variables initial values to idata section,
1543         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
1544         variables in some functions. This utilizes parmBytes field of iCode
1545         structure to hold the offset of the variable in stack. (might be
1546         able to use the stack field too?)
1547         * applied patch from Raphael Neider # ### , # ###
1548         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
1549         variable initial values in idata section,
1550         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
1551         for static variables with initial value
1552         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
1553         applied fix in while loop from Raphael Neider.
1554
1555 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
1556
1557         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
1558         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
1559         * src/ds390/ralloc.c (serialRegAssign): spill bits
1560         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
1561         * support/Util/SDCCerr.c,
1562         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
1563         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
1564         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
1565
1566 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
1567
1568         * device/include/sdcc-lib.h: inserted LGPL, added includes
1569           asm/ds390/features.h and asm/mcs51/features.h
1570         * device/include/asm/default/features.h,
1571         * device/include/asm/gbz80/features.h,
1572         * device/include/asm/z80/features.h: added empty _AUTOMEM
1573           and _STATMEM
1574         * device/include/asm/ds390/features.h,
1575         * device/include/asm/mcs51/features.h: added files with defines for
1576           _AUTOMEM and _STATMEM indicating automatic and static storage class
1577         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
1578         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
1579         * src/SDCCicode.c (geniCodeCast),
1580         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
1581         * src/SDCCloop.c (loopInduction): removed unused variable lr
1582         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
1583           to convertToFcall to include char modulo (RFE 1065037), added check
1584           if left operand is unsigned and use abs of literal value
1585         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
1586           as it doesn't work after conversion from peephole.def to peephole.rul
1587         * src/mcs51/gen.c (toBoolean): added check for size,
1588           (genModOneByte): optimized code for signed char modulo a literal
1589           power of 2 (thanks to Hubert Sack),
1590           (genRRC): removed unnecessary "clr c",
1591           (genRLC): replaced "add a,acc" with cheaper "rlc a"
1592         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
1593           jump optimization,
1594           swapped rules 256.c and 256.d,
1595           extended 256.d by using new multiple checks (thanks Erik),
1596           added rules 256.e and 256.f,
1597           updated rule 261.a and 261.b to new generated code
1598         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
1599
1600 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1601
1602         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
1603           induction related bugs, including first part of bug #1074377
1604
1605 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
1606
1607         * applied patch from bug-report #1076292,
1608         * applied patches for genAnd and Goto-optimizations for Raphael
1609         Neider,
1610         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
1611         dump a less iCode information,
1612         * src/pic16/device.h (pic16_options_t): added field debgen,
1613         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
1614         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
1615         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
1616         puclic,
1617         * (various functions): added macros FENTRY and FENTRY2 to functions,
1618         to emit function prologue,
1619         * (various functions): fixed indentation,
1620         * (genNearPointerGet): fixed loading of FSR0,
1621         * (genPackBits): applied patch from Raphael Neider to fix updating
1622         of FSR0 and touching only the modified bits,
1623         * src/pic16/genarith.c (various functions): added macros FENTRY to
1624         emit function prologue in comments,
1625         * src/pic16/pcode.h: added functions debugf2, debugf3,
1626         * src/pic16/ralloc.c: partial fix for packForPush caused
1627         segmentation fault,
1628
1629 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1630
1631         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
1632           <stsp AT users.sourceforge.net> with reversed byte order
1633         * support/regression/tests/rotate.c: added (ds390 skips some tests)
1634
1635 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1636
1637         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
1638           bug #1074377
1639         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
1640         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
1641
1642 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1643
1644         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
1645
1646 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1647
1648         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
1649           conditions,
1650           (setFromConditionArgs): friendly operand parser for peephole rules,
1651           (operandBaseName, operandsNotRelated): new peephole condition
1652           "operandsNotRelated" -- similar to "operandsNotSame", but takes
1653           architecture specific register naming into account, handles n-way
1654           comparisons, and supports quoted literals
1655         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
1656
1657 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1658
1659         * src/mcs51/peeph.def: fixed bug #1076940
1660
1661 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1662
1663         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
1664
1665 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1666
1667         Adding support for replacing ljmps with sjmps in jumptables
1668         generated for switch statements. For now you need to set the
1669         environment variable SDCC_SJMP_JUMPTABLE to enable this.
1670         Now 4 algorithms for mcs51 jumptable generation are used:
1671         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
1672         addresses loaded pc-relative for up to 112 cases and stack-pushing
1673         target addresses loaded with offset from dptr for up to 256 cases.
1674
1675         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
1676         * src/mcs51/main.c: adapted constants for switch table generation
1677         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
1678
1679 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
1680
1681         * device/lib/printf_large.c (_print_format): fixed bug 1073386
1682         * support/regression/tests/bug1057979.c: added test for bug 1073386
1683
1684 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1685
1686         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
1687         compilers
1688
1689 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1690
1691         * src/pic16/device.h,
1692         * src/pic16/genarith.c,
1693         * src/pic16/glue.c,
1694         * src/pic16/main.c,
1695         * src/pic16/pcode.c: applied patches #1068154 and #1070213
1696
1697 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
1698
1699         Large cummulative patch for pic16 port.
1700         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
1701         to call when a stack overflow occurs,
1702         * (malloc.h): added CVS Id tag,
1703         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
1704         variable,
1705         * added libc directory. The current version of LibC contains string
1706         functions, ctype functions and macros and some functions of the
1707         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
1708         be extensively tested in the future. Standard disclaimer here.
1709         Library is not automatically build yet. But one can build it by
1710         invoking 'make' inside the libc directory.
1711         * added ADC library under libio. Preliminary version yet.
1712
1713         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
1714         * src/pic16/gen.c (aopForRemat): asmop size is filled by
1715         aopForRemat() now and not by pic16_aopOp(),
1716         * (pic16_popGetTempReg): removed warning messgae when allocating
1717         temporary registers, its a buggy feature and will be removed,
1718         * (pic16_popGet): set register instance field in AOP_CRY,
1719         * (pic16_outBitC): fixed for results in size greater than 1,
1720         * (genUminusFloat): fixed for pic16, ported code from mcs51,
1721         * (pic16_storeForReturn): optimized return of 0,
1722         * (genCmp): experimental code for new genCmp which uses PIC18's
1723         special compare&skip instructions. Initial tests fail some times
1724         with variables grater than 1 byte in size, so new code is disabled,
1725         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
1726         a single bit,
1727         * (genCast): began a fix to optimize the casting of a bit to another
1728         bit, now assigning a bitfield to another bitfield will fail, sorry,
1729         * src/pic16/main.c: disabled the use of lr-support feature,
1730         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
1731         * added some function prototypes, added function _debugf prototype,
1732         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
1733         bits with offset (case PO_GPR_BIT),
1734         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
1735         command line,
1736         * (isBankInstruction): modified to return 0 for no banking instruction,
1737         and 1 for banking instruction,
1738         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
1739         caused stop processing pCodes after a inline assembly block,
1740         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
1741         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
1742         registers when it shouldn't,
1743         * src/pic16/ralloc.c (allocReg): add preliminary support for
1744         supporting a limited set of temporary registers,
1745
1746 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1747
1748         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
1749           genDataPointerSet): ensure assignments always copy in MSB to LSB
1750           order,
1751           (loadRegFromAop): recognize CLRH optimization,
1752           (genFunction): optimize RECEIVE iCodes in reentrant functions
1753
1754 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1755
1756         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
1757           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
1758           selected.
1759         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
1760         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
1761           contiguous with data
1762
1763 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1764
1765         * device/lib/_gptrget.c (_gptrget),
1766         * device/lib/_gptrgetc.c (_gptrgetc),
1767         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
1768           instead of sjmp to ret
1769         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
1770           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
1771
1772 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1773
1774         * .version: bumped version to 2.4.7
1775         * device/lib/_gptrget.c (_gptrget): is now _naked
1776         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
1777         * device/lib/_gptrput.c (_gptrput): is now _naked
1778         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
1779           (createFunction): fixed xstack
1780         * src/SDCCglue.c (emitMaps): set allocation required for bit area
1781         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
1782           or bit either,
1783           (geniCodeCritical): store original interrupt state in an iTemp bit
1784           var unless stack-auto
1785         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
1786         * src/SDCCmain.c (setIncludePath): added include/target to search path
1787         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
1788         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
1789           prototype,
1790           (processFuncArgs): put bit vars in bit area
1791         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
1792           unsaveRBank): fixed xstack,
1793           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
1794           (genFunction, genEndFunction): fixed xstack,
1795           (genAssign): optimization don't walk backwards through mem
1796         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
1797         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
1798         * support/regression/Makefile: also make library (for stack-auto) when
1799           making "all" and added "test-mcs51-xstack-auto"
1800         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
1801         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
1802         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
1803         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
1804         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
1805           make-library by MAKE_LIBRARY
1806         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
1807           regression tests for xstack
1808         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
1809         * support/regression/tests/critical.c: test for critical on mcs51
1810
1811 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1812
1813         * support/regression/ports/ucz80/spec.mk: use include and lib files from
1814           built version of sdcc instead of installed version
1815
1816 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1817
1818         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
1819         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
1820           vprintf.c now
1821         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
1822         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
1823           WARNING: remove device/lib/build/z80/printf.o by hand when
1824           updating from previous build!
1825         * device/lib/z80/printf.c: updated comment
1826         * support/regression/tests/bug1057979.c: test all ports now
1827         * support/regression/tests/bug1065458.c: file added
1828
1829 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1830
1831         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
1832           *_start and *_end symbols for static functions
1833
1834 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1835
1836         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
1837           and search crt0.o in all library paths,
1838           (setIncludePath): proper handling of --nostdinc,
1839           (setLibPath): proper handling of --nostdlib
1840         * support/regression/Makefile,
1841         * support/regression/ports/ds390/spec.mk,
1842         * support/regression/ports/gbz80/spec.mk,
1843         * support/regression/ports/hc08/spec.mk,
1844         * support/regression/ports/mcs51/spec.mk,
1845         * support/regression/ports/mcs51-large/spec.mk,
1846         * support/regression/ports/mcs51-stack-auto/spec.mk,
1847         * support/regression/ports/z80/spec.mk: use include and lib files from
1848           built version of sdcc instead of installed version
1849         * doc/sdccman.lyx: fixed typo in --nostdinc
1850
1851 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
1852
1853         * src/pic/pcode.c,
1854         * src/pic/device.c,
1855         * src/pic/ralloc.c,
1856         * src/pic/gen.c : added support to generate code for struct bit fields.
1857
1858 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1859
1860         * as/xa51/xa_version.h,
1861         * device/include/errno.h,
1862         * device/include/regc515c.h,
1863         * device/lib/_itoa.c,
1864         * device/lib/_ltoa.c,
1865         * device/lib/ser_ir_cts_rts.c,
1866         * sim/ucsim/xa.src/glob.cc,
1867         * sim/ucsim/xa.src/inst_gen.cc,
1868         * sim/ucsim/xa.src/xa_bit.cc,
1869         * sim/ucsim/xa.src/xa_sfr.cc,
1870         * sim/ucsim/z80.src/inst_dd.cc,
1871         * sim/ucsim/z80.src/inst_fdcb.cc,
1872         * support/scripts/keil2sdcc.pl,
1873         * src/pic16/pic16.dsp,
1874         * src/pic16/pic16a.dsp: corrected cvs line endings
1875         * device/lib/printf_large.c: fixed bug 1057979
1876         * src/pic16/gen.c: fixed non-C standard code
1877         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
1878         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
1879         * support/regression/ports/mcs51/support.c: reload T1 asap
1880         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
1881           pdata use and clear idata startup behaviour
1882         * support/regression/tests/bug1057979.c: added
1883
1884 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
1885
1886         * device/examples/ds390/ow390/ad26.h,
1887         * device/examples/ds390/ow390/cnt1d.h,
1888         * device/examples/ds390/ow390/crcutil.c,
1889         * device/examples/ds390/ow390/ownet.h,
1890         * device/examples/ds390/ow390/owsesu.c,
1891         * device/examples/ds390/ow390/swt12.h,
1892         * device/examples/ds390/ow390/swtoper.c,
1893         * device/examples/ds390/ow390/temp10.h,
1894         * device/examples/ds390/ow390/thermodl.c,
1895         * device/examples/ds390/tinitalk/tinitalk.dsp,
1896         * device/examples/ds390/tinitalk/tinitalk.dsw,
1897         * device/examples/mcs51/clock/hw.h,
1898         * device/examples/mcs51/simple2/go.bat,
1899         * device/examples/serialcomm/windows/serial.h,
1900         * device/examples/xa51/dummy.c,
1901         * device/examples/xa51/hello.c,
1902         * device/include/80c51xa.h,
1903         * device/include/at89x051.h: corrected cvs line endings
1904
1905 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
1906
1907         * src/pic16/main.c (options): added command line --gstack, to trace
1908         stack over/under flows,
1909         * added pragma 'wparam' to allow passing first byte of function
1910         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
1911         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
1912         call to __gstack_test function and sets up the symbol as extern,
1913         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
1914         * popaop): added call to pic16_testStackOverflow,
1915         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
1916         wparamList list,
1917         * (genCall, genPcall): now all parameters are passed via stack
1918         except in functions that are pass to wparam pragma in which WREG is
1919         used too,
1920         * (genPcall): REENTRANT flag is checked to see if variable prototype
1921         contains reentrant keyword, don't call a non-reentrant function, via
1922         a reentrant function pointer or vice versa, functions are never
1923         passed via WREG,
1924         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
1925         D.Winkler,
1926         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
1927         SIGSEGV when accessing a NULL register stucture,
1928         * (pic16_printGPointerType): modified to handle UPPER modifier for
1929         function initializers, changed prototype of function to simpler one,
1930         * (pic16_printIvalFuncPtr): check to see if function is already
1931         added in externs list,
1932         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
1933         optimized a move from W to SFR with a move to the same register
1934         later after a CALL,
1935         * device/lib/pic16/debug: NEW directory, contains debug features
1936         which are enabled when linking with libdebug.lib, currently command
1937         line option --gstack enables stack pointer tracing for over/under
1938         flow, corresponding sources are in debug/gstack
1939
1940 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
1941
1942         * doc/sdccman.lyx: updated SDCC version,
1943         * (PIC16 port): update list of command line options,
1944         * src/pic16/device.h (structure pic16_options_t): added field gstack
1945         to enable stack overflow tracing on push/pops,
1946         * src/pic16/device.c (statistics structure): added statistics
1947         structure,
1948         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
1949         pic16_dump_int_registers): increase statistics counters for each
1950         * variable which is encountered
1951         * (pic16_dump_usection): emit each .udata variable to its own udata
1952         section,
1953         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
1954         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
1955         parameters via stack, otherwise use old scheme,
1956         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
1957         assembler output file,
1958         * src/pic16/main.c: added command line options --gstack to enable
1959         push/pop tracing for stack overflow,
1960         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
1961         instructions): added size of each instruction,
1962         * (pic16_countInstruction): estimate size of instructions in
1963         the_pFile list, inline assembly blocks are not counted,
1964         * (pic16_FixRegisterBanking): trace previous register usage, when
1965         banksel optimizations is greater than 0, don't emit a redudant
1966         banksel directive,
1967
1968 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
1969
1970         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
1971         * src/pic16/ralloc.c : applied same fix for pic16.
1972         * src/pic/gen.c : tidied it up a little.
1973
1974 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1975
1976         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
1977         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
1978
1979 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1980
1981         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
1982
1983 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1984
1985         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
1986         non-reentrant function __modsint in the interrupt function (thus
1987         corrupting math operations during serial I/O)
1988         * device/lib/ser_ir.c: as above, changed buffersize
1989         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
1990         256.c,d for zeroing
1991         * doc/Makefile: added option -t for rsync
1992
1993 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1994
1995         * src/SDCCast.h (struct ast),
1996         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
1997
1998 2004-10-20 Borut Razem <borut.razem AT siol.net>
1999
2000         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2001         package
2002
2003 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2004
2005         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2006         makefile targets,
2007         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2008         support functions to replace long sequences of MOVFF's from access
2009         bank registers to stack and vice versa,
2010         * src/pic16/device.h: added new field opt_flags, where optimization
2011         flags can be set to enable certain features,
2012         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2013         * pBlock, (genFunction, genEndFunction): surroung loop for
2014         saving/loading used registers in stack with PC_INFO pCodes,
2015         INF_LREGS. Code in between can then be optimized by pCode optimizer
2016         to support function calls,
2017         * (genDataPointerSet): fixed bug which loaded float fields in
2018         structures with corrupt data,
2019         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2020         in a standard way debug info on stderr. Feature used for developing
2021         and debugging only,
2022         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2023         obsolete chunks of code,
2024         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2025         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2026         * pic16/src/pcode.c (pic16_newpCodeInfo,
2027         * (pic16_newpCodeOpLocalRegs),
2028         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2029         feature,
2030         * (pic16_pCodeConstString): printing of the initial value of a
2031         symbol as a comment is inhibited since parsing was already done by
2032         copyStr and output is corrupt,
2033         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2034
2035 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2036
2037         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2038
2039 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2040
2041         * as/mcs51/lkarea.c: removed old K&R style,
2042           (lnksect): changed check on boundary error,
2043           (lnksect2): changed check on boundary error,
2044           (lnksect2): extend XSTK to end of page if size = 1
2045         * as/mcs51/lkmain.c: removed old K&R style,
2046           (Areas51): create l_IRAM symbol
2047         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2048         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2049           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2050         * device/lib/_mullong.c: added version to be compiled with xstack
2051         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2052         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2053         * device/lib/mcs51/crtxstack.asm: fixed comment
2054         * src/SDCCglue.c: maxInterrupts defaults to 0,
2055           (emitMaps): added pdata,
2056           (createInterruptVect): (re)moved default,
2057           (glue): added pdata,
2058           (glue): moved __start__xstack to XSTK with default size 1
2059         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2060           and options.float_rent when options.stackAuto is set,
2061           (linkEdit): only write XDATA_NAME if provided on command line
2062         * src/SDCCmem.h,
2063         * src/SDCCmem.c: added pdata
2064         * src/port.h: added pdata_name to PORT
2065         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2066           (saveRegisters, unsaveRegisters): removed usage of B,
2067           (genMinus): fixed accumulator clash,
2068           (genJumpTab): added comment, this needs another look
2069         * src/mcs51/gen.c: added check for "B in use" paranoia,
2070           added pushB() and popB()
2071         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2072           chance
2073         * src/avr/main.c,
2074         * src/ds390/main.c,
2075         * src/hc08/main.c,
2076         * src/mcs51/main.c,
2077         * src/pic/main.c,
2078         * src/pic16/main.c,
2079         * src/xa51/main.c,
2080         * src/z80/main.c: (reset_regparms) made void parameter explicit and
2081           added PSEG (PAG,XDATA) or NULL to port specifier
2082         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2083         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2084           (_mcs51_genInitStartup): removed __start__xstack equ,
2085           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2086         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2087         * src/z80/gen.c (_rleAppend): fixed warnings
2088         * support/regression/tests/zeropad.c: added pdata test
2089         * .version: bumped to 2.4.6
2090
2091 2004-10-17 Borut Razem <borut.razem AT siol.net>
2092
2093         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2094         as a part of nightly build
2095
2096 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2097
2098         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2099         WREG holds the first byte function parameters,
2100         * (aopForSym): take special case for symbols which are in FARSPACE
2101         but in CODESPACE too,
2102         * (assignResultValue): modified to take into account _G.useWreg,
2103         * (genCall): don't use wreg for parameter passing when function is
2104         declared as reentrant, too, added optimization INCF to stack
2105         pointer when stack parameter count is 1,
2106         * (genFunction, genEndFunction): refurnished and fixed to not using
2107         wreg for passing parameters when function has varargs or is
2108         reentrant, fixed bug with symbol name compare for generating
2109         functions in absolute address,
2110         * (pic16_storeForReturn): refurnished,
2111         * (genCmp): began writing a new version of the function, not ready
2112         yet, therefore it is disabled,
2113         * (genAssign): do not read code memory when assigning a function to
2114         a pointer function,
2115         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2116         array of characters, not pointer,
2117         * (pic16initialComments): in debug mode emit an .ident directive for
2118         the assembler,
2119         * (_process_pragma): emit a new warning type (internal to pic16)
2120         when setting stack to default length, emit a similar warning when
2121         placing a function at absolute address and address is not word aligned
2122         * (_pic16_parseOptions): added 'return TRUE' statement,
2123         * (_pic16_linkEdit): if compiling a source, then add the source's
2124         file object, first in the list of objects to link,
2125
2126 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2127
2128         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2129         * src/pic/main.c : removed VC warning.
2130         * src/pic/gen.c : changed comment.
2131
2132 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2133
2134         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2135         reference to a deprecated symbol _GPTRREG was causing failure to
2136         link. Thanks G. M. Gallant for the info.
2137
2138 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2139
2140         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2141         comments for Bugs item #954788.
2142
2143 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2144
2145         * src/pic16/device.c (pic16_dump_gsection,
2146         * pic16_groupRegistersInSection): handle symbols declared to be in
2147         access bank differently,
2148         * src/pic16/gen.c (struct _G): added field resDirect,
2149         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2150         send values read from stack directly to result and don't allocate
2151         temporary values,
2152         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2153         same registers,
2154         * (pic16_sameRegsOfs): NEW,
2155         * (freeAsmop): if _G.resDirect is set then do not mark registers as
2156         free because they were not allocated from temporary pool,
2157         * pic16_popRegFromString): workaround to fix a problem with
2158         allocating variables twice or never,
2159         * (genGenPointerGet): using PRODL instead of FSR0H,
2160         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2161         instead of FSR0H,
2162         * (genAssign): take advantage of the _G.resDirect flag,
2163         * (genCast): around line 11844, use mov2f instead of directly
2164         MOVFF'ing between operands to account for literal values,
2165         * src/pic16/genutils.c: some new debug functions for gpsim have been
2166         added,
2167         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2168         float with integer part only,
2169         * src/pic16/main.c (_process_pragma): handle pragma udata access to
2170         place variables in access bank
2171         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2172         updated sources to reflect recent changes in gen.c
2173
2174 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2175
2176         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2177         sources that searched for headers in installation path, now the
2178         device/include/pic16 is used,
2179         * src/pic16/glue.c (pic16glue),
2180         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2181         .line directives if not in debug mode, this suppresses assembler's
2182         warnings for ignored directives
2183
2184 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2185
2186         * src/port.h: made reset_regparms prototype void parameter explicit.
2187         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2188         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2189         * doc/sdccman.lyx: documented warning disabling and how to use
2190           printf_large to make it print floats.
2191         * device/include/stdbool.h: NEW
2192         * device/lib/_atof.c,
2193         * device/lib/_divuint.c,
2194         * device/lib/_divulong.c,
2195         * device/lib/expf.c,
2196         * device/lib/printf_large.c,
2197         * device/lib/sincosf.c,
2198         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2199         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2200           a completely reentrant lib.
2201
2202 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2203
2204         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2205         * device/include/pic16/stdio.h: fixed bug with colon
2206
2207 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2208
2209         * device/include/pic16/stdio.h,
2210         * device/include/pic16/stdlib.h,
2211         * device/include/pic16/math.h: NEW
2212         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2213         declared as _naked to reduce overhead
2214         * device/lib/Makefile.in (target port-specific-objects-pic16):
2215         changed * to *.* so to ignore the CVS directory,
2216         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2217         stacked variables back in stack,
2218         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2219         corruption
2220
2221 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2222
2223         * .version: bumped version number to 2.4.5
2224         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2225         * support/Util/SDCCerr.c (messages structure): added entry for
2226         W_POSSBUG2
2227
2228         Large cumulative patch for pic16 port and libraries.
2229         * device/include/pic16/sdcc-lib.h,
2230         * device/include/pic16/stdarg.h,
2231         * device/include/asm/pic16/features.h,
2232         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
2233         * device/include/pic16/float.h: changes reentrant keyword with
2234         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
2235         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
2236         updated target build-libraries to include objects from gptr,
2237         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
2238         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
2239         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
2240         all function headings,
2241         * src/SDCCmain.c: added global parameter userIncDirsSet,
2242         * (parseCmdLine): when option -I is encountered add directory to
2243         userIncDirsSet too,
2244         * src/version.awk: added space between control and long,
2245         * src/pic16/NOTES: added some notes for the port,
2246         * src/pic16/gen.c: added prototype for mov2fp function,
2247         * (fReturnpic16[]): properly named return value registers,
2248         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
2249         * (aopForSym): added code to handle symbols with onStack flag set,
2250         symbols onStack are allocated PTRSIZE bytes,
2251         * (aopFreeAsmop): handles special case where asmops are stack objects,
2252         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
2253         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
2254         added argument lock to trace flaws in allocating temporary registers
2255         when developing port,
2256         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
2257         * (pic16_popRegFromString): reenabled allocating a direct register
2258         from string,
2259         * (assignResultValue): various beautifications,
2260         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
2261         referenced function argument,
2262         * (genIpush): reenabled to allow stacked arguments, handles only
2263         ic->parmPush iCodes,
2264         * (genCall, genPcall): major changes to allow for variable argument
2265         functions, fixed a bug with falsely restoring stack pointer after
2266         returning from call,
2267         * (genFunction): pending code for critical function,
2268         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
2269         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
2270         * (genNearPointerGet): fixed bug with indirect reading, was always
2271         reading from INDF0
2272         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
2273         pointers,
2274         * (genAddrOf): rewrote code to take address of a stacked function parameter
2275         * (genCast): fixed casting to generic pointer type,
2276         * src/pic16/gen.h: added AOP_STA,
2277         * (struct asmop): added field stk,
2278         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
2279         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
2280         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
2281         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
2282         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
2283         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
2284         generic pointers,
2285         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
2286         and library paths,
2287         * (pic16_port structure): generic pointer size is set to 3,
2288         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
2289         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
2290         compiler warning,
2291         * src/pic16/ralloc.c (allocReg): prevent allocating register when
2292         operand is an iTemp,
2293
2294 2004-09-24 Martin Helmling <mh AT octo-soft.de>
2295
2296         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
2297         * debugger/mcs51/simi.c: addapt new syntax of s51
2298
2299 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
2300
2301         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
2302         * src/pic16/pcode.c: commented out some calls to free() in order to
2303         fix bug #989576,
2304
2305 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2306
2307         * src/SDCCicode.h,
2308         * src/SDCCicode.c (isiCodeInFunctionCall),
2309         * src/avr/ralloc.c (selectSpil),
2310         * src/pic/ralloc.c (selectSpil),
2311         * src/pic16/ralloc.c (selectSpil),
2312         * src/ds390/ralloc.c (selectSpil),
2313         * src/hc08/ralloc.c (selectSpil),
2314         * src/xa51/ralloc.c (selectSpil),
2315         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
2316         stack in the middle of a function call sequence (fixes bug #1020268)
2317         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
2318         costs associated with the minimum switch case.
2319
2320 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2321
2322         * src/SDCC.lex: fixed bug #1030549
2323
2324 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2325
2326         * src/SDCCcse.h (struct cseDef),
2327         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
2328         over a function call if the CSE is derived from a symbol whose
2329         address has been taken (fixes bug #1029883)
2330         * support/regression/tests/bug-1029883: a new regression test for
2331         this bug
2332
2333 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2334
2335         * src/hc08/gen.c (emitinline): fixed bug #1029778
2336         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
2337         to a cast object is no longer a syntax error ("fixes" bug #1030006,
2338         and starts toward RFE #905167)
2339
2340 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
2341
2342         * src/pic16/gen.c (mov2f): New function to move an operand to
2343         another without considering if it is a literal or a register,
2344         * (pic16_sameRegs): don't check if they are both AOP_REG,
2345         * (AccRsh): removed andmask=0 lines,
2346         * (genLeftShift): duplicated to be improved in future versions,
2347         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
2348         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
2349         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
2350         * (pic16initMnemonics): added initialization for POC_INFSNZW,
2351         * (insertBankSwitch): fixed inserting banksel directives algorithm
2352         for instructions that follow a skip instruction, this fixes a report
2353         for broken subtraction code generation,
2354         * src/pic16/ralloc.c (deassignLRs): do not free register if current
2355         iCode is a left op, just in case result and right share the same
2356         registers
2357
2358 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2359
2360         * src/hc08/main.c,
2361         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
2362         preservation of HX
2363         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
2364         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
2365         on 2004-09-12; it was buggy
2366
2367 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2368
2369         * src/SDCCsymt.h: removed RESULT_CHECK
2370         * src/SDCCast.c,
2371         * src/SDCCglue.c,
2372         * src/SDCCval.c,
2373         * src/pic/glue.c,
2374         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
2375
2376 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
2377
2378         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
2379         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
2380         configuration values no more rejected by compiler, they are assigned
2381         to configuration registers with a warning message instead,
2382         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
2383         the for-loop so last conf register is emitted too,
2384         * (_pic16_initPaths): link library libsdcc.lib by default,
2385         * (_hasNativeMulFor): modified test for multiplication according to
2386         Raphael Neider's remarks. Integer multiplication is also done with
2387         support functions,
2388         * device/include/pic16/pic18fregs.h: corrected type error in while
2389         testing and including 18f6720 header file
2390
2391 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
2392
2393         * src/pic16/device.h (pic16_options): removed field use_crt,
2394         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
2395         until an optimization to handle single bits is added,
2396         * (pic16_loadFSR0): moved before genUnpackBits,
2397         * (genAnd): some white lines removed,
2398         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
2399         leave_reset flags in pic16_options when using crt modules,
2400
2401 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
2402
2403         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
2404           for bugs 898889 & 979599. Also used some safer print instructions.
2405
2406 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
2407
2408         * src/pic16/device.h (pic16_options_t): added field use_crt,
2409         crt_name, no_crt,
2410         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
2411         catch a probable future bug,
2412         * src/pic16/gen.c: aopIdx function commented out,
2413         * (genAssign): commented out old code which used aopIdx,
2414         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
2415         code, added if conditionals to take into account the --use-crt
2416         command line options,
2417         * src/pic16/main.c (pic16_optionsTable): added new command line
2418         options, --use-crt= and --no-crt,
2419         * (_pic16_linkEdit): now the proper crt object is added in the
2420         linker command line except than when --no-crt is specified,
2421         * src/pic16/pcode.c,
2422         * src/pic16/pcode.h: added some structures and functions for a new
2423         optimization scheme to compansate for instruction overhead between
2424         same iCodes, this scheme is currently under development and is not
2425         working in any way,
2426         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
2427         to && operator,
2428         * device/lib/pic16/startup/crt0i.c,
2429         * device/lib/pic16/startup/crt0iz.c: added global char variable
2430         __uflags to force the generation of an idata section
2431
2432 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
2433
2434         * doc/Makefile,
2435         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
2436         * doc/sdccman.lyx: updated sdcc version to 2.4.4
2437
2438 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2439
2440         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
2441         Frieder) and clarified the default code optimization mode
2442
2443 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2444
2445         * src/SDCC.lex (doPragma, process_pragma),
2446         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
2447         "opt_code_size", and "opt_code_balanced"
2448         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
2449         regrouped options by category, added support for category headers
2450         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
2451         and "--opt-code-size"
2452         * doc/sdccman.lyx: documented these new options and pragmas
2453         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
2454         preference into account
2455
2456 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2457
2458         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
2459           geniCodePreDec): Fixed bug 904237 by generating a warning
2460         * src/SDCCerr.h,
2461         * src/SDCCerr.c: added warning W_SIZEOF_VOID
2462
2463 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
2464
2465         * src/pic/device.c : When no max ram set validate full memory range.
2466         * src/pic/pcode.c,
2467         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
2468
2469 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2470
2471         * device/lib/_gptrget.c,
2472         * device/lib/_gptrput.c: updated comment
2473         * device/lib/calloc.c,
2474         * device/lib/free.c,
2475         * device/lib/malloc.c,
2476         * device/lib/realloc.c: added LGPL, made them reentrant-safe
2477         * src/SDCCcse.c (cseBBlock),
2478         * src/SDCCicode.c (printOperand, geniCodeArray),
2479         * src/SDCCicode.h (struct operand): fixed bug 868103
2480         * support/regression/tests/bug-868103.c: added
2481         * src/SDCCast.c (searchLitOp),
2482         * src/SDCCcse.h (struct cseDef),
2483         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
2484         * src/SDCCicode.h (struct operand),
2485         * src/SDCCsymt.h (struct sym_link),
2486         * src/avr/gen.c (hasInc),
2487         * src/ds390/gen.c (hasInc),
2488         * src/hc08/gen.c (genPlusIncr, hasInc),
2489         * src/mcs51/gen.c (hasInc),
2490         * src/pic16/glue.c (pic16_printIvalChar),
2491         * src/pic16/ralloc.c (regWithIdx),
2492         * src/xa51/gen.c (hasInc) : removed warnings
2493         * src/SDCCast.c (createBlock): added comment ???
2494         * src/hc08/ralloc.c: updated comments
2495
2496 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2497
2498         * doc/sdccman.lyx: updated section on switch statements, added
2499         section about semaphore locking
2500         * doc/Makefile: added option -info for latex2html
2501         * device/lib/_gptrget.c,
2502         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
2503
2504 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2505
2506         * src/pic/device.h,
2507         * src/pic/device.c,
2508         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
2509          maxram is less than 0x100.
2510
2511 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2512
2513         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
2514
2515 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2516
2517         * src/port.h,
2518         * src/mcs51/main.c,
2519         * src/ds390/main.c,
2520         * src/z80/main.c,
2521         * src/hc08/main.c,
2522         * src/pic/main.c,
2523         * src/pic16/main.c,
2524         * src/avr/main.c,
2525         * src/xa51/main.c
2526         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
2527         a jump table is the best form for a switch statement, including
2528         automatic insertion of missing cases to make the case range
2529         continuous. Developed in collaboration with Frieder Ferlemann.
2530
2531 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2532
2533         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
2534         accumulator result if it needs sign extension
2535
2536 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2537
2538         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
2539
2540 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2541
2542         * device/lib/gbz80/printf.c,
2543         * device/lib/z80/printf.c: removed define for NULL
2544
2545 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2546
2547         * as/xa51/xa_link.c,
2548         * device/examples/ds390/ow390/ad26.c,
2549         * device/examples/ds390/ow390/cnt1d.c,
2550         * device/examples/ds390/ow390/counter.c,
2551         * device/examples/ds390/ow390/ds2480.h,
2552         * device/examples/ds390/ow390/ds2480ut.c,
2553         * device/examples/ds390/ow390/findtype.c,
2554         * device/examples/ds390/ow390/gethumd.c,
2555         * device/examples/ds390/ow390/owllu.c,
2556         * device/examples/ds390/ow390/ownetu.c,
2557         * device/examples/ds390/ow390/swt12.c,
2558         * device/examples/ds390/ow390/swtloop.c,
2559         * device/examples/ds390/ow390/temp.c,
2560         * device/examples/ds390/ow390/temp10.c,
2561         * device/examples/ds390/ow390/thermo21.c,
2562         * device/examples/ds390/ow390/tinilnk.c,
2563         * device/examples/ds390/ow390/tstfind.c,
2564         * device/examples/serialcomm/windows/serial.cpp,
2565         * device/examples/serialcomm/windows/test_serialcomm.cpp,
2566         * device/include/reg51.h: fixed line endings for cvs
2567
2568 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2569
2570         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
2571         packRegsForAccUse, packRegisters): new accumulator register
2572         packing algorithm
2573         * support/regression/ports/hc08/support.c (_putchar): suppress
2574         warning of unused variable
2575         * src/SDCCicode.c: added SWAP entry to codeTable
2576
2577 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * device/lib/sprintf.c: forgot to add this file before previous commit
2580
2581 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
2582
2583         * src/pic16/gen.c (genPackBits): added operand right in function
2584         parameters, load result directly if p_type is POINTER (that is
2585         called by genNearPointerSet)
2586         * (genUnPackBits): added operand left in function parameters,
2587         * (genNearPointerGet, genNearPointerSet): prevent the loading of
2588         FSR0 if accessing bitfields,
2589
2590 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
2591
2592         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
2593           _print_format; updated printf, sprintf, vsprintf
2594         * device/include/asm/default/features.h: corrected comment/define
2595         * device/lib/Makefile.in: added sprintf.c
2596         * device/lib/libsdcc.lib: added sprintf module
2597         * device/lib/printf_large.c,
2598         * device/lib/vprintf.c,
2599         * device/lib/sprintf.c: totally refactored printf_large and vprintf
2600           into these 3 files
2601         * support/regression/Makefile: changed ALL_PORTS into a usefull default
2602         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
2603         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
2604           hc08 test
2605         * support/regression/tests/zeropad.c: define idata as data for hc08
2606
2607 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2608
2609         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
2610         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
2611         labels are referenced at least once (even if a reference is not found)
2612         * src/hc08/gen.c (emitcode): set isComment flag for comments
2613         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
2614         loads), rules 6a..6b (optimize jumps to return)
2615
2616 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2617
2618         * device/lib/acosf.c (acosf),
2619         * device/lib/asinf.c (asinf),
2620         * device/lib/atanf.c (atanf),
2621         * device/lib/ceilf.c (ceilf),
2622         * device/lib/cosf.c (cosf),
2623         * device/lib/coshf.c (coshf),
2624         * device/lib/cotf.c (cotf),
2625         * device/lib/fabsf.c (fabsf),
2626         * device/lib/floorf.c (floorf),
2627         * device/lib/log10f.c (log10f),
2628         * device/lib/logf.c (logf),
2629         * device/lib/sinf.c (sinf),
2630         * device/lib/sinhf.c (sinhf),
2631         * device/lib/sqrtf.c (sqrtf),
2632         * device/lib/tanf.c (tanf),
2633         * device/lib/tanhf.c (tanhf),
2634         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
2635         replaced all instances of "reentrant" in the library functions
2636         defined in math.h with this macro.
2637         * support/regression/tests/float_trans.c: reenabled test for hc08
2638
2639 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
2640
2641         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
2642         erroneously deleted
2643
2644 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2645
2646         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
2647         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
2648         multi-byte volatile operands are used
2649         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
2650         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
2651         initialization to area GSINIT0 so that it would always precede
2652         any static initializers in GSINIT
2653         * support/regression/tests/zeropad.c: fixed idata define for hc08
2654         * support/regression/tests/bug-927659.c,
2655         * support/regression/tests/float_trans.c: disabled tests for hc08
2656         pending missing library routines
2657         * .version: increased version number to 2.4.4 - hc08 port now passes
2658         regression tests
2659
2660
2661 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
2662
2663         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
2664         * Makefile.common.in,
2665         * as/Makefile,
2666         * as/hc08/Makefile.in,
2667         * as/mcs51/Makefile.in,
2668         * as/z80/Makefile.in,
2669         * debugger/mcs51/Makefile.in,
2670         * device/include/Makefile.in,
2671         * device/lib/Makefile.in,
2672         * doc/Makefile,
2673         * link/Makefile,
2674         * link/z80/Makefile.in,
2675         * packihx/Makefile.in,
2676         * sim/ucsim/main_in.mk,
2677         * sim/ucsim/avr.src/Makefile.in,
2678         * sim/ucsim/doc/Makefile.in,
2679         * sim/ucsim/gui.src/serio.src/Makefile.in,
2680         * sim/ucsim/hc08.src/Makefile.in,
2681         * sim/ucsim/s51.src/Makefile.in,
2682         * sim/ucsim/xa.src/Makefile.in,
2683         * sim/ucsim/z80.src/Makefile.in,
2684         * src/Makefile.in,
2685         * support/cpp2/Makefile.in,
2686         * support/librarian/Makefile,
2687         * support/makebin/Makefile: added DESTDIR to the install path proposed
2688         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
2689         * doc/sdccman.lyx: added DESTDIR documentation
2690
2691 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
2692
2693         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
2694         instruction for interrupt handlers, use fast returns when returning
2695         from high priority interrupts
2696
2697 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2698
2699         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
2700         code generation
2701         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
2702         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
2703         bugs, ported much of Bernhard's code from mcs51
2704         * src/mcs51/gen.c (genSend),
2705         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
2706         than one when calling a reentrant function
2707         * device/lib/_mullong.c: defined an alternate struct layout for big
2708         endian ports (hc08)
2709
2710 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2711
2712         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
2713         test
2714
2715 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2716
2717         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
2718         are sane and complete before asking the port its prefered parameter
2719         passing method (fixes bug #1017633)
2720         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
2721         and _ret3
2722
2723 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2724
2725         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
2726         problem in bitfields >= 8 bits.
2727
2728 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2729
2730         * src/SDCCsymt.c: undid changes that were not meant to be committed
2731
2732 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2733
2734         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
2735
2736 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2737
2738         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
2739           copied and wrong bit got inverted
2740
2741 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2742
2743         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
2744         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
2745         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
2746         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
2747         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
2748         assignments to bitfields at known addresses
2749         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
2750         reads from bitfields at known addresses
2751         * src/hc08/ralloc.c (packRegisters),
2752         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
2753         genhc08Code): optimize pointer get values used as conditionals
2754         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
2755         and branch
2756
2757 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2758
2759         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
2760         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
2761         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
2762         as conditionals
2763
2764 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2765
2766         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
2767
2768 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2769
2770         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
2771         related problems
2772
2773 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
2774
2775         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
2776
2777 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2778
2779         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
2780         mcs51 port
2781
2782 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2783
2784         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
2785
2786 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2787
2788         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
2789         cases use more compact code.
2790
2791 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
2792
2793         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
2794
2795 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2796
2797         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
2798
2799 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2800
2801         * src/SDCCsymt.h,
2802         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
2803         parameter of changePointer() from symbol* to sym_link*
2804         * src/SDCCast.c (decorateType): call changePointer() for CAST op
2805         * src/SDCCsymt.c (compareType): void* type is castable to other
2806         pointers, but not necesarily an exact match.
2807         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
2808         is no longer blindly treated as an exact match.
2809         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
2810
2811 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
2812
2813         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
2814
2815 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
2816
2817         * src/pic/gen.c,
2818         * src/pic/pcode.c,
2819         * src/pic/ralloc.h,
2820         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
2821
2822 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
2823
2824         * src/pic/device.c,
2825         * src/pic/device.h,
2826         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
2827
2828 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2829
2830         * src/mcs51/gen.c (emitcode): fixed bug #992819
2831
2832 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
2833
2834         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
2835           there's no need to make it worse
2836
2837 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2838
2839         * src/mcs51/ralloc.c (deassignLR),
2840         * src/ds390/ralloc.c (deassignLR),
2841         * src/hc08/ralloc.c (deassignLR),
2842         * src/z80/ralloc.c (deassignLR),
2843         * src/pic/ralloc.c (deassignLR),
2844         * src/pic16/ralloc.c (deassignLR),
2845         * src/avr/ralloc.c (deassignLR),
2846         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
2847         rlivePoint): fixed another part of bug #971834
2848
2849 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2850
2851         * src/z80/main.c: enabled "critical" keyword
2852         * src/z80/mappings.i,
2853         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
2854         functions (fixes bug #979646)
2855         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
2856
2857 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2858
2859         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
2860           such as c:\mydir.
2861
2862 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
2863
2864         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
2865           doesn't disable too much optimizations
2866
2867 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2868
2869         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
2870
2871 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
2874
2875 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2876
2877         * src/pic/gen.c tidied up tabs
2878         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
2879         * src/pic/main.c tidied up tabs
2880         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
2881         * src/pic/pcoderegs.c tidied up tabs
2882         * src/pic/ralloc.c tidied up tabs
2883
2884 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
2885
2886         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
2887         to S_FIXED for pic16 port and when symbol is not in level 0,
2888         allocate for S_REGISTER storage class and pic16 port, too,
2889         * src/pic16/device.h: prototype for checkSym,
2890         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
2891         * (pic16_assignConfigWordValue): test the value and the mask to
2892         validate that the value is suitable for the configuration word,
2893         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
2894         collect extern declared symbols, don't emit symbol twice, check
2895         first if symbol is in publics set first,
2896         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
2897         * added command line '--fstack' which enables an experimental
2898         feature for stack access, too buggy to be used yet...
2899         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
2900         * (pic16_allocDirReg): when register has storage class S_REGISTER
2901         allocate in pic16_dynAccessRegs,
2902         * device/include/pic16/pic18f????.h: modified configuration word
2903         naming convention, words started as CONFIG0H but should be CONFIG1H
2904
2905 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2906
2907         * device/include/mcs51reg.h: fixed bug 970993
2908
2909 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
2910
2911         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
2912         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
2913         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
2914         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
2915         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
2916         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
2917           error/warning numbers,
2918           added function setWarningDisabled()
2919         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
2920         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
2921           _memcmp.c _memmove.c calloc.c realloc.c free.c
2922         * support/regression/tests/malloc.c: added tests for new functionality
2923         * support/regression/tests/zeropad.c: added tests for truncated initializers
2924           and initialized char arrays starting with '\x0'
2925         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
2926
2927 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
2928
2929         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
2930
2931 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2932
2933         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
2934         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
2935         peephole 177.e. Thanks to anonymous
2936
2937 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
2938
2939         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
2940         function isn't used in the source but referenced as a
2941         variable initializer then declare it as extern in .asm file
2942
2943 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
2944
2945         * .version: increased version number to 2.4.3
2946
2947         Adding version extension according to ChangeLog CVS revision
2948         * src/Makefile.in (target all): added dependency 'version.h'
2949         * (rule version.h): added rule to create version.h from ChangeLog,
2950         * (rule dep): added dependency version.h,
2951         * src/version.awk: AWK script to create version.h
2952         * src/SDCCdwarf2.c (dwWriteModule),
2953         * src/SDCCglue.c (initialComments),
2954         * src/SDCCmain.c (printVersionInfo): modified to write after
2955         version string the version extension number,
2956         * src/SDCCutil.c: included "version.h"
2957         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
2958         number,
2959         * src/SDCCutil.h: added prototype for getBuildNumber
2960
2961         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
2962         includeDirsSet, too,
2963         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
2964         const char [] is found in function prototype...
2965
2966         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
2967         moving to WREG with source is already in WREG,
2968         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
2969         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
2970         * (aopForSym): stack'ed symbols are partially supported, added
2971         if-clause to support symbols in FARSPACE,
2972         * (sameRegs): added test for AOP_ACC to see if registers are same,
2973         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
2974         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
2975         * (pic16_popRegFromString): will not allocate a new register if it
2976         doesn't find one by name, bug may have introduced...
2977         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
2978         * (genIpush): revived to use pic16 port's stack,
2979         * (genAddrOf): added incomplete case for stack'ed operand,
2980         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
2981         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
2982         can handle multibyte operands,
2983         * src/pic16/glue.c (pic16_printIval*): some debug info added,
2984         * (pic16initialComments): added message for MPLAB compatibility
2985         mode enabled,
2986         * src/pic16/main.h: prototype for pic16_mplab_comp,
2987         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
2988         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
2989         * (_pic16_linkEdit): NEW, handles link stage, transferred here
2990         because of increased complexity of procedure,
2991         * (_process_pragma): stack pragma changed to format 'stack pos len',
2992         emit symbol '_stack_end' to conform with gplink,
2993         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
2994         to search for register,
2995         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
2996         PO_GPR_REGISTER,
2997         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
2998         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
2999         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3000         case for PO_GPR_REGISTER,
3001         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3002         dies, the new era is ahead !...
3003         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3004         pic16_dynInternalRegs,
3005         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3006         * (pic16_allocDirReg): minor optimizations and bug fixes,
3007         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3008
3009         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3010         load stack and frame pointer with address of 'stack_end' symbol
3011
3012 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3013
3014         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3015         without source code but only variable initializers
3016
3017 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3018
3019         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3020         external are not declared as extern to reduce overhead while linking
3021
3022 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3023
3024         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3025
3026 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3027
3028         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3029           Yee Keat for the patch
3030         * src/SDCCast.c (decorateType): fixed bug #979599
3031         * src/ds390/gen.h: removed local fReturnSizeDS390
3032         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3033         * src/ds390/gen.c (genAnd, genOr, genXor),
3034         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3035
3036 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3037
3038         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3039         add relFilesSet to $3, manipulate $2 to handle linking of object
3040         files without source files in command line,
3041         * device/include/pic16 (all headers): added ID location macros,
3042         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3043         entries for ID location bytes,
3044         * (pic16_assignIdByteValue): NEW,
3045         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3046         added field dumpcalltree to pic16_options_t,
3047         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3048         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3049         emitting rFalseIfx label after check_carry label,
3050         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3051         pic16_emitDIRegs), NEW
3052         * (pic16glue): dump .calltree file when option --calltree found,
3053         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3054         * (_pic16_genAssemblerPreamble): emit ID locations after
3055         configuration registers,
3056         * (pic16_linkCmd): modifications of the link command,
3057         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3058         * (pic16_pCodeInitRegisters): don't init stack registers,
3059         * (pic16_findPrevInstruction): fixed bug,
3060         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3061         bug with immediate registers,
3062         * (buildCallTree): traces stack push and pop,
3063         * (pct2): dump also stack usage for each function,
3064         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3065         * (pic16_allocDirReg): various modifications,
3066         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3067         fixed to 1,
3068
3069 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3070
3071         * src/pic16/pcode.c: removed buggy double colon
3072
3073 2004-07-01 Borut Razem <borut.razem AT siol.net>
3074
3075         * support/scripts/sdcc.nsi: added include/pic16 to setup
3076
3077 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3078
3079         * device/lib/Makefile.in: fixed bug in target objects-pic16,
3080         * device/lib/pic16/Makefile: prefixed with dash (-) command under
3081         target 'clean',
3082         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3083         specific command line arguments. Also added sample lkr script
3084         for placing a variable at a specific memory bank.
3085         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3086         at a specific memory bank,
3087         * (pic16_dump_isection): fixed bug which caused string literals to
3088         be omitted when dumping idata section,
3089         * (pic16_groupRegistersInSection): added code to handle registers
3090         in specific memory banks,
3091         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3092         public, all references are renamed too,
3093         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3094         AOP_DPTR2,
3095         * (pic16_storeForReturn): added case to handle when dest is WREG,
3096         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3097         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3098         pic16_rel_udata, check to see if that register is marked as being
3099         a member of a specific memory bank,
3100         * (pic16_printIvalCharPtr): added code to add string literals either
3101         to code or the idata sections,
3102         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3103         also accept the 'udata' pragma,
3104         * src/pic16/main.h: new structure types sectName and sectSym
3105         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3106         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3107         * (pic16_findPrevInstruction): fixed, it returned nothing,
3108         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3109         instruction combinations,
3110         * (pic16_FixRegisterBanking): heavily reorganised,
3111         * (pic16_AnalyzeBanking): if generating banksel directives is
3112         disabled, then don't call FixRegisterBanking at all,
3113         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3114         completely removed,
3115         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3116
3117 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3118
3119         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3120         Phuah Yee Keat <yk.phuah AT nestac.com>
3121
3122 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3123
3124         * src/pic16/glue.c (pic16createInterruptVect): function now emits
3125         correctly the IVT even if it is relocated to some other location
3126
3127 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3128
3129         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3130         * device/include/pic16/pic18f2220.h: NEW,
3131         * device/lib/pic16/libdev/pic18f2220.c: NEW,
3132         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3133         * src/pic16/device.c (struct Pics16): added info for 18f2220,
3134         * src/pic16/device.h (struct pic16_options): added ivt_loc and
3135         nodefaultlibs, ivt_loc is the location of the interrupt vector
3136         table, and nodefaultlibs signs that default libraries should not be
3137         linked in link stage,
3138         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3139         according to --ivt-loc argument,
3140         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3141         when pragma stack is found,
3142
3143 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3144
3145         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3146         256 (range check), 257 (do while), 258.a-f (bit banging
3147         f.e. on 3-wire SPI bus)
3148
3149 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3150
3151         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3152         variables used exclusively within a loop
3153
3154 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3155
3156         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3157
3158 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3159
3160         * src/SDCClrange.c (computeClash): fixed bug #971834
3161
3162 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3163
3164         * src/mcs51/gen.c (genCmp): fixed bug #975903
3165         * src/hc08/gen.c (operandsEqu),
3166         * src/ds390/gen.c (operandsEqu),
3167         * src/z80/gen.c (operandsEqu),
3168         * src/pic/gen.c (operandsEqu),
3169         * src/pic16/gen.c (operandsEqu),
3170         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3171         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3172
3173 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3174
3175         * src/SDCCcse.c (cseBBlock): fixed bug #966963
3176
3177 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3178
3179         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3180         default case in switch statement,
3181         * glue.c (pic16_initPointer): expr is initialised via decoarteType
3182         to eliminate problem with initialisation of pointers, but problem
3183         still exists,
3184         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3185         * (emitStaticSegment): removed various lines emitting debug info,
3186         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3187         added processor registers for utilizing EEPROM,
3188         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3189         configurable and set 8
3190
3191 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3192
3193         * .version: increased version number to 2.4.2,
3194
3195         Cumulative patch for pic16 port
3196         * src/pic16/device.c: changed scheme to dump initial values for
3197         variables in idata segment, all print_idata* functions were removed,
3198         now the pic16_printIval* will be called,
3199         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3200         * _pic16_printPointerType, pic16_printPointerType,
3201         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3202         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3203         NEW, similar to the respective functions in SDCCglue.c,
3204         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3205         way, emitting hex bytes,
3206         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3207
3208 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3209
3210         * src/avr/ralloc.c (serialRegAssign),
3211         * src/xa51/ralloc.c (serialRegAssign),
3212         * src/pic/ralloc.c (serialRegAssign),
3213         * src/pic16/ralloc.c (serialRegAssign),
3214         * src/hc08/ralloc.c (serialRegAssign),
3215         * src/z80/ralloc.c (serialRegAssign),
3216         * src/ds390/ralloc.c (serialRegAssign),
3217         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3218
3219 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3220
3221         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3222         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3223
3224 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3225
3226         Cumulative patch for pic16 port:
3227         * src/pic16/device.h (typedef PIC16_device) modified fields for
3228         defining microcontrollers,
3229         * src/pic16/device.c: added new info for all devices in Pics16 array,
3230         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
3231         to be optimised out by the pCode optimiser,
3232         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
3233         specially, bug reported by G.M. Gallant,
3234         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
3235         as force'd so that cannot be optimised out by pCode optimiser,
3236         * src/pic16/pcode.c,
3237         * src/pic16/pcodepeeph.c,
3238         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
3239         they are disabled by default, but can be enabled explicit with
3240         command argument --denable-peeps, for testing,
3241         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
3242         --pomit-ivt in COMPILE_FLAGS
3243
3244 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3245
3246         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
3247           compilation on MSVC
3248
3249 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3250
3251         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
3252
3253 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3254
3255         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
3256         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
3257
3258 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
3259
3260         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
3261         would only assign 0x300001 register.
3262
3263 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
3264
3265         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
3266         in COMPILE_FLAGS. Thanks to G. Gallant for report.
3267
3268 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3269
3270         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
3271         for ds80c400
3272         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
3273         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
3274         added peephole 254 (left shift), 255 (jump table)
3275
3276 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
3277
3278         * device/lib/Makefile.in: removed comment line with model-pic16,
3279         * (target port-specific-objects-pic16): the libraries and objects
3280         are copied to the build directory form the device/lib/pic16/bin
3281         directory
3282
3283         Cumulative patch concerning pic16 port:
3284         * library directory has been re-organized,
3285         * added support for PIC18F1220,
3286         * added headers and library sources for chips 18f1220,18f6520,
3287         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
3288
3289         * configuration registers setting has changed, now each supported
3290         device has a complete description of the registers it uses,
3291         * all initialisations are moved to idata sections, these section
3292         can be absolute or relocatable,
3293         * fixed initialisation of codespace variables,
3294         * fixed warning about PCLATU and gpsim,
3295         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
3296         * (genAssign): use table reads when assigning from variables in codespace,
3297         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
3298         char/int variables placed in codespace,
3299         * (pic16_emitConfigRegs): NEW, emits a list with configuration
3300         registers set in .asm file, no need for --pomit-config-words anymore,
3301         * (pic16glue): some 8051 legacy segments are commented out
3302         (to be removed completely),
3303         * added support for alternative assembler and linker with --asm=
3304         and --link= command line arguments,
3305         * peepholes are disabled automatically in the port, no need to
3306         specify on command line,
3307         * port supports natively char/int/long multiplication, but converts
3308         all divisions to support functions,
3309         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
3310         to the file set in variable $2,
3311         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
3312         strings in ASCII format and not in hex,
3313         * ralloc.c (serialRegAssign): added a triplet of conditional calls
3314         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
3315         allocate proper register if iCodes aren't temporary,
3316
3317 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3318
3319         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
3320
3321 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
3322
3323         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
3324         is commented out
3325
3326 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3327
3328         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
3329         computed address is reused
3330         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
3331         multi-byte bitfields
3332
3333 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3334
3335         * src/z80/gen.c: (genArrayInit): must check for pointers too
3336
3337 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3338
3339         * support/regression/tests/zeropad.c: never meant to commit the
3340           nestedstruct test: removed, added check for GCC version
3341
3342 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
3343
3344         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
3345         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
3346         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
3347           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
3348           bugs 928906 and 954082 half-empty initializers
3349         * src/SDCCsymt.h,
3350         * src/SDCCsymt.c (getAllocSize): added for above fix
3351         * src/z80/gen.c (genArrayInit): fixed bug 741044
3352         * support/regression/tests/zeropad.c: added tests
3353
3354 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
3355
3356         * src/pic16/device.c (pic16_dump_section): corrected bug which
3357         caused some symbols of the libraries to be misplaced
3358
3359 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3360
3361         * src/pic16/glue.c,
3362         * src/pic16/ralloc.h,
3363         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
3364         to fix conflict with pic port
3365
3366 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3367
3368         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
3369         externs configuration variables,
3370         * src/pic16/ralloc.h,
3371         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
3372         prototype in header, commented out some debug messages
3373
3374 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
3375
3376         * src/pic16/glue.c,
3377         * src/pic16/main.c,
3378         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
3379         for gpasm COFF object generation. Thanks to D. Hawkins for
3380         his patch info
3381
3382 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3383
3384         * src/ds390/main.c,
3385         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
3386         Brock for spotting this)
3387         * src/ds390/gen.c (genEndFunction),
3388         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
3389         interrupt handler and critical. Disable push/pop optimizations when
3390         peephole optimizations disabled.
3391
3392 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3393
3394         Updated pic16 library sources and headers.
3395         * device/lib/pic16/pic18f*/ ,
3396         * device/include/pic16/*.h: modified to handle structured SFR
3397         definitions
3398
3399 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3400
3401         * src/port.h (PORT structure): added hook initPaths, now each
3402         port can declare its own default search paths,
3403         which can been seen with the --print-search-dirs option,
3404         see pic16 port for example,
3405         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
3406         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
3407         * (doPrintSearchDirs): NEW, replaces in a central manner the
3408         printing of search dirs which was split in set*Paths functions,
3409         * (main): added call to port->initPaths and doPrintSearchDirs,
3410         * src/avr/main.c,
3411         * src/ds390/main.c,
3412         * src/hc08/main.c,
3413         * src/izt/i186.c,
3414         * src/izt/tlcs900h.c,
3415         * src/mcs51/main.c,
3416         * src/pic/main.c,
3417         * src/pic16/main.c: modified port structures to reflect addition of
3418         initPaths hook,
3419
3420         * src/pic16/device.c (regCompare): registers are finally sorted by name,
3421         * (pic16_dump_section): for registers in same address reserve memory once,
3422         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
3423         to no_banksel,
3424         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
3425         result is greater in size than right or left,
3426         * (pic16_genUMult8X8_8): there are some cases where the result can
3427         be 16 bits size, so handle these,
3428         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
3429         * (pic16_outBitC): modified to emit pcodes,
3430         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
3431         or not,
3432         * (genDivOneByte): implemented algorithm to divide 8-bits,
3433         * (genCmp): uncommented goto, but issues still exist,
3434         * (genAnd): fixed a bug with variables >8bits,
3435         * (genPackBits): optimization added that uses BCF/BSF to change a
3436         single bit,
3437         * (genAssign): fixed bug when assigning floating point literals,
3438         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
3439         __sdcc_gsinit_startup label,
3440         * src/pic16/main.c (_pic16_init): removed search directory
3441         initialisations,
3442         * (_pic16_initPaths): NEW, used to initialise search directories,
3443         * (_hasNativeMulFor): support functions for all except char/int
3444         multiplication, and char division,
3445         * (PIC16_port struct): modified entry for native mul support,
3446         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
3447         no_banksel option,
3448         * (buildCallTree): call to register_usage is ifdef'ed out,
3449
3450 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3451
3452         * device/include/string.h: applied Stas Sergeev's patch to make this
3453         header file compatible with the preprocessor -Wundef option
3454         * src/SDCCmain.c (main): abort compilation if preprocessor reports
3455         failure (fixes bug #941458)
3456
3457 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3458
3459         * src/SDCCopt.c (killDeadCode): fixed bug #907733
3460         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
3461         that the variable, not the function, should be static
3462         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
3463         to be consistent with non-literal case
3464
3465 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3466
3467         * src/SDCCast.c (isConformingBody): fixed bug #949967
3468         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
3469         convilong): fixed bug #952086
3470
3471 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3472
3473         * src/SDCCmem.c (allocVariables): fixed bug #955321
3474
3475 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3476
3477         * src/hc08/main.c (_hc08_genAssemblerEnd),
3478         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
3479         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
3480         completely eliminated the use of a temporary file
3481         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
3482         when more than one file linked
3483         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
3484
3485 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3486
3487         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
3488         which fixes bug #543481
3489         * support/regression/tests/bug-751703.c: fixed comments left from a
3490         cut and paste error
3491         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
3492         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
3493         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
3494         scopes
3495         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
3496         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
3497         are now changed to underscores in moduleName
3498
3499 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3500
3501         * as/mcs51/lkmem.c: better fix for bug #954173
3502
3503 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3504         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3505
3506         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
3507         * device/include/c8051f000.h,
3508         * device/include/c8051f120.h,
3509         * device/include/c8051f300.h,
3510         * device/include/c8051f310.h,
3511         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
3512         PWM16) and detab'ed
3513
3514 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3515
3516         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
3517         and mailing lists, doc'ed --no-peep-comments, removed reference
3518         to knoppix (newest version has no LyX/LaTeX), other minor changes
3519         * src/SDCCglue.c (glue): save 2 bytes stack space with
3520         option --main-return. The ljmp could probably be avoided too
3521
3522 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3523
3524         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
3525
3526 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3527
3528         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
3529         * src/SDCCopt.c (isLocalWithoutDef),
3530         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
3531         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
3532         (credit to Maarten Brock for patch #949363, on which this is based)
3533         * support/regression/tests/bug-751703.c: some test cases of extern used
3534         within inner scopes.
3535
3536 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3537
3538         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
3539         SPEC_STRUCT
3540         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
3541         struct definitions
3542         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
3543         dwWriteLabel): fix to create valid debugger symbols even when
3544         the module name has non-alphanumeric symbols in it
3545         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
3546         when a variable's allocation has been optimized away
3547
3548
3549 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3550
3551         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
3552         * src/hc08/main.c,
3553         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
3554         * src/mcs51/main.c,
3555         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
3556         * src/ds390/main.c,
3557         * src/z80/gen.c (z80_emitDebuggerSymbol),
3558         * src/z80/main.c,
3559         * src/pic/gen.c (pic14_emitDebuggerSymbol),
3560         * src/pic/main.c,
3561         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
3562         * src/pic16/main.c,
3563         * src/avr/gen.c (avr_emitDebuggerSymbol),
3564         * src/avr/main.c,
3565         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
3566         * src/xa51/main.c,
3567         * src/SDCCdebug.c (emitDebuggerSymbol),
3568         * src/SDCCdebug.h,
3569         * src/port.h: added a debugger struct to the port struct. Added a
3570         callback for defining debugger symbols
3571
3572         * src/SDCCast.c (createLabel),
3573         * src/SDCC.y (labeled_statement): mark all compiler generated labels
3574         with isitmp = 1
3575         * src/SDCCicode.h,
3576         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
3577         iCode back to the ast for the function
3578
3579         * src/hc08/ralloc.c (hc08_assignRegisters),
3580         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
3581         unneeded fields from the regs struct.
3582         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
3583         pushReg() & pullReg() functions instead of emitcode()
3584
3585         * src/hc08/gen.c (genLabel, genhc08Code),
3586         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
3587
3588         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
3589         debugger hooks
3590
3591         * src/hc08/gen.c (genEndFunction, genhc08Code),
3592         * src/hc08/gen.h,
3593         * src/mcs51/gen.c (genEndFunction, gen51Code),
3594         * src/mcs51/gen.h,
3595         * src/ds390/gen.c (genEndFunction, gen390Code),
3596         * src/ds390/gen.h,
3597         * src/z80/gen.c (genEndFunction, genZ80Code),
3598         * src/z80/gen.h,
3599         * src/z80/z80.h,
3600         * src/pic/gen.c (genEndFunction, genpic14Code),
3601         * src/pic/gen.h,
3602         * src/pic16/gen.c (genEndFunction, genpic16Code),
3603         * src/pic16/gen.h,
3604         * src/avr/gen.c (genEndFunction, genAVRCode),
3605         * src/avr/gen.h,
3606         * src/xa51/gen.c (genEndFunction, genXA51Code),
3607         * src/xa51/gen.h,
3608         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
3609         specific code to cdbFile.c and out of the backend code generators
3610
3611         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
3612         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
3613         starting address is now 0
3614
3615         * as/hc08/asm.h,
3616         * as/hc08/m08pst.c,
3617         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
3618         assembler directive for DWARF support
3619         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
3620
3621         * src/src.dsp,
3622         * src/Makefile.in,
3623         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
3624
3625 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3626
3627         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
3628         and inappropriate peephole optimization in jump tables
3629
3630 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3631
3632         * as/hc08/m08pst.c,
3633         * src/SDCCglue.c: sdccopt works for the hc08 port now
3634
3635 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
3636
3637         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
3638
3639 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3640
3641         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
3642
3643 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3644
3645         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
3646         rules
3647         * src/SDCCmain.c,
3648         * src/SDCCglobl.h,
3649         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
3650         comments from the peephole optimizer replacement rules
3651         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
3652         symbols
3653         * src/SDCCcse.c (updateSpillLocation),
3654         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
3655         equivalents
3656         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
3657         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
3658         objects far pointers
3659
3660 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3661
3662         * src/SDCCsymt.h: a missing part of my last change
3663         * src/pic/ralloc.c (regTypeNum),
3664         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
3665
3666 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3667
3668         * src/SDCCicode.h,
3669         * src/SDCCicode.c (aggrToPtrDclType),
3670         * src/SDCCptropt.h,
3671         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
3672         ptrPseudoSymConvert),
3673         * src/pic/ralloc.c (regTypeNum),
3674         * src/pic16/ralloc.c (regTypeNum),
3675         * src/hc08/ralloc.c (regTypeNum),
3676         * src/ds390/ralloc.c (regTypeNum),
3677         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
3678         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
3679
3680 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3681
3682         * link/z80/lkmain.c (afile),
3683         * as/hc08/lkmain.c (afile),
3684         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
3685         prevent a pointer problem when a filename has no directory and
3686         no extension specified.
3687
3688 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3689
3690         * link/z80/lkmain.c (afile): allow periods in directory names
3691         * link/z80/lkmain.c (afile),
3692         * as/mcs51/lkmain.c (afile),
3693         * as/hc08/lkmain.c (afile): allow linker script file to have an
3694         extension other than ".lnk"
3695         * link/z80/lklex.c (getfid),
3696         * link/z80/lkmain.c (parse),
3697         * as/mcs51/lklex.c (getfid),
3698         * as/mcs51/lkmain.c (parse),
3699         * as/hc08/lklex.c (getfid),
3700         * as/hc08/lkmain.c (parse): Support comments in the linker script
3701         file on lines by themselves and after filenames
3702
3703 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3704
3705         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
3706
3707 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3708
3709         * src/z80/peeph-z80.def: removed some peephole rules that don't
3710         work with multibyte arithmetic (fixed bug #937126)
3711         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
3712         to registers and not global variables
3713         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
3714         geniCodePreInc, geniCodePostDec, geniCodePreDec,
3715         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
3716         checking for assignments not internally generated (fixed bug #931895)
3717         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
3718         structure member (fixed bug #930072)
3719
3720 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3721
3722         * src/SDCCmain.c (linkEdit),
3723         * src/hc08/main.c (_hc08_parseOptions),
3724         * as/hc08/Makefile.in,
3725         * as/hc08/aslink.h,
3726         * as/hc08/asm.h,
3727         * as/hc08/m08pst.c,
3728         * as/hc08/lkrloc.c (relr, rele),
3729         * as/hc08/lkarea.c (lnkarea)
3730         * as/hc08/lkmain.c (afile, parse),
3731         * as/hc08/lkelf.c: support for ELF output
3732         * as/hc08/lks19.c (s19),
3733         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
3734
3735 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3736
3737         * as/mcs51/lkihx.c: Fixed bug #899105.
3738
3739 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3740
3741         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
3742         .dsp files from Unix to DOS.
3743
3744 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3745
3746         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
3747         function pointers; we have been compliant for several months now.
3748         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
3749         change that was accidently commented out
3750         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
3751         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
3752         bug #922319
3753
3754 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3755
3756         * src/hc08/gen.c: output of all of the internal debugging information
3757         is now controlled by the D() macro; it is disabled by default
3758
3759 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3760
3761         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
3762         harder to keep the same registers during a CAST iCode
3763         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
3764         long via int can be done in a single cast, if the signedness is
3765         correct.
3766         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
3767         putchar() in tinibios.c in ds390's library
3768
3769 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3770
3771         * src/SDCCast.c (decorateType): fixed bug #898889,
3772         cast result of a literal complement too
3773         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
3774         fixed check for bitfields
3775
3776 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
3777
3778         * src/SDCCicode.c (geniCodeLogic): made it static,
3779         (geniCodeLogicAndOr): added in order to fix bug #905492,
3780         (ast2iCode): fixed bug #905492
3781         * support/regression/tests/bug-905492.c: added
3782         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
3783         (processParms): fixed bug #927659: don't copy parms, this will clear
3784         decorated flag
3785         * support/regression/tests/bug-927659.c: added
3786
3787 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3788
3789         * src/SDCCast.c (addCast): don't cast float to char
3790         * device/lib/libsdcc.lib: added _memmove
3791
3792 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
3793
3794         * device/lib/large/Makefile: fixed parallel execution by
3795         replacing `make` by `$(MAKE)`
3796
3797 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3798
3799         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
3800         offsets (fixes bug #923936)
3801
3802 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
3803
3804         * device/lib/small/Makefile: fixed parallel execution by
3805         replacing `make` by `$(MAKE)`
3806
3807 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3808
3809         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
3810
3811 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
3812
3813         * src/pic/gen.c (genCpl): multi-byte complements were not working.
3814         * src/regression/Makefile: Regression test was not running.
3815
3816 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3817
3818         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
3819         complement if possible
3820         * src/SDCCval.c (valComplement),
3821         * src/SDCCicode.c (operandOperation): fixed complement of literal
3822         * support/regression/tests/onebyte.c (testComplement): added
3823
3824 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
3825
3826         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
3827         return an optimized tree; actually replace actParm with the new tree
3828         * src/SDCCast.h: added some parantheses to remove side effects
3829         * support/regression/tests/bug-920866.c
3830
3831 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
3832         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
3833         Bit operands were not being handled properly in the pic14 port.
3834         (now src/regression/add.c passes again).
3835
3836 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3837
3838         * src/SDCC.y (labeled_statement): case and default no longer require
3839         a following statement (RFE #893037)
3840
3841 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3842
3843         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
3844         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
3845         disabled (fixes bug #916294)
3846         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
3847         "mov a,acc"; patch provided by Lenny Story
3848         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
3849
3850 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3851
3852         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
3853         functions
3854         * src/ds390/gen.c (genFunction, genEndFunction),
3855         * src/ds390/ralloc.c (ds390_assignRegisters),
3856         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
3857         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
3858         pushed if there are parameters passed on the stack. Also, a cleaner
3859         way to decide if r0/r1 should be pushed/popped. (Together they fix
3860         bug #918693)
3861
3862 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3863
3864         * doc/sdccman.lyx,
3865         * device/lib/mcs51/crtpagesfr.asm,
3866         * device/lib/mcs51/crtxinit.asm,
3867         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
3868         to avoid confusion with Si Lab's SFRPAGE register.
3869
3870 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3871
3872         * src/SDCCglue.c (emitMaps): allow public sfr variables
3873         * src/SDCCglue.c (initialComments): include compiler build date
3874         with compiler version and put the timestamp of the generated
3875         assembly file on a serperate line to be less confusing.
3876         * src/port.h: added genInitStartup hook
3877         * src/avr/main.c,
3878         * src/ds390/main.c,
3879         * src/hc08/main.c,
3880         * src/pic/main.c,
3881         * src/pic16/main.c,
3882         * src/xa51/main.c,
3883         * src/z80/main.c: genInitStartup initialize as NULL (default to
3884         historical behaviour)
3885         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
3886         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
3887         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
3888         library instead of hard coding it into the compiler.
3889         * support/regression/ports/mcs51-stack-auto/spec.mk,
3890         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
3891         * device/lib/mcs51/Makefile,
3892         * device/lib/small/Makefile,
3893         * device/lib/large/Makefile,
3894         * device/lib/mcs51/crtpagesfr.asm,
3895         * device/lib/mcs51/crtstart.asm,
3896         * device/lib/mcs51/crtxclear.asm,
3897         * device/lib/mcs51/crtxinit.asm,
3898         * device/lib/mcs51/crtclear.asm,
3899         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
3900         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
3901         and into user configurable files.
3902         * device/lib/clean.mk: clean mcs51 directory too
3903         * support/regression/tests/longlit.c: added static to T1 declaration
3904         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
3905         accesses in the initialization code
3906
3907 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3908
3909         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
3910         OSCTRIMVAL as noted in bug #916008
3911
3912 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3913
3914         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
3915         in loops with multiple exits (reported as incorrect registers
3916         used by Martin Helmling in Sdcc-user list)
3917
3918 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3919
3920         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
3921         made ds390 register extensions look less like error messages
3922
3923 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3924
3925         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
3926         reported by Adam Wozniak in Sdcc-user list
3927
3928 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3929
3930         * src/SDCCast.c (decorateType): fixed with bug and promotion in
3931         arithmetic optimizations, added debug output
3932
3933 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3934
3935         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
3936         * sdcc.spec: updated and split sdcc into 3 rpms
3937         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
3938         needed for literals of LEFT_OP and '+'
3939         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
3940         introduced RESULT_TYPE_NOPROM
3941         (geniCodeMultiply): fixed logic for decision if mul is optimized to
3942         left shift
3943         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
3944         limited promotion to int only for '*'
3945         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
3946
3947 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
3948
3949         * src/pic16/gen.c (genSkip),
3950         (genc16bit2lit), (gencjneshort): commented out
3951         (is_LitOp): new helper function, checks operand type
3952         (genCmpEq): rewritten
3953
3954 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3955
3956         * support/regression/tests/bug-908454.c: added
3957
3958 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
3959
3960         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
3961         * src/SDCCicode.c (usualBinaryConversions): op needs int type
3962         (geniCodeCast): cosmetic, don't preserve bit storage class
3963         (geniCodeLeftShift): added promotion
3964         (geniCodeLogic): fixed regression
3965         * src/SDCCsymt.c (computeTypeOr): accept bits too
3966         (compareType): 2nd part of fix for bug #908454, needed for bitfields
3967
3968 2004-03-07  Borut Razem <borut.razem AT siol.net>
3969
3970         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
3971
3972 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
3973
3974         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
3975         version of pic16_genPackRegisters which does not check if ic is a
3976         CAST operator,
3977         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
3978         function cause string1.c regression test fails
3979
3980 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3981
3982         * sim/ucsim/configure.in,
3983         * sim/ucsim/configure,
3984         * sim/ucsim/doc/Makefile.in: use docdir
3985         * src/SDCC.y: fixed sbit atrributes
3986         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
3987         * src/SDCCast.c (decorateType): |^& need special promotion handling
3988         * src/SDCCast.h,
3989         * src/SDCCsymt.h: moved definition of RESULT_TYPE
3990         * src/SDCCsymt.h (computeType),
3991         * src/SDCCicode.c: computeType() needs op
3992         * src/SDCCsymt.c (checkTypeSanity),
3993         * doc/sddman.lyx: "plain" bitfields are unsigned
3994         * src/SDCCsymt.c (computeTypeOr): added
3995         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
3996         |^& ops
3997         * src/SDCCval.c (val*): computeType() needs op
3998         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
3999         * support/regression/tests/onebyte.c: added tests for |^&
4000
4001 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4002
4003         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4004         for writing icode into asm output.
4005
4006 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4007
4008         * src/pic16/device.c: added some debug lines enabled
4009         with macro DEBUG_CHECK,
4010         * src/pic16/genarith.c: more debug in genPlus,
4011         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4012         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4013         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4014         * (aopForSym): onStack symbols are re-placed in data memspace,
4015         and onStack flag is cleared,
4016         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4017         copy temporary pcodeop,
4018         * (genPcall): added warning for not updating PCLATU,
4019         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4020         always true for pic16 port,
4021         * (genMultOneWord): NEW, supports integer multiplication,
4022         * (genMult): modified to call genMultOneWord,
4023         * (ifxForOp): added warning when return NULL,
4024         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4025         flag is set before call to operandFromSymbol for implicit
4026         added structures,
4027         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4028         options.intlong_rent are set by default,
4029         * (_hasNativeMulFor): modified to allow port generation of integer
4030         multiplication,
4031         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4032         set regtype to REG_SFR for all registers, restricting seting the
4033         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4034
4035 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4036
4037         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4038         more than 500 times in the regression tests
4039
4040 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4041
4042         * support/Util/SDCCerr.h,
4043         * support/Util/SDCCerr.c,
4044         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4045         enumerator_list),
4046         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4047         for symbol conflicts.
4048         * support/valdiags/tests/enum.c,
4049         * support/valdiags/tests/tentdecl.c,
4050         * support/valdiags/tests/struct.c: expect possible error messages
4051         referring to original symbol definitions.
4052         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4053         * src/SDCCsymt.h,
4054         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4055
4056 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4057
4058         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4059
4060 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4061
4062         * src/pic16/ralloc.c (newReg): fixed bug #908929
4063
4064 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4065
4066         * src/ds390/gen.c: added missing #include "main.h"
4067
4068 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4069
4070         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4071         checking if symbol is already in set,
4072         * src/pic16/device.h: prototype for checkAddSym,
4073         * src/pic16/gen.c: (_G): added entry interruptvector,
4074         * (assignResultValue): removed some commented out lines,
4075         * (genFunction): check for ISR via sym->type, absolute section for
4076         interrupt code is created via a new pBlock, the goto instruction is
4077         placed now correctly at the interrupt vector position, changed all
4078         references from ivec to _G.interruptvector,
4079         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4080         is the interrupt is a high priority one, same for return from ISR,
4081         * src/pic16/glue.c: changed all calls of addSetHead for publics and
4082         externs to calls of checkAddSym,
4083         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4084         pic16_pcode_verbose flag is set,
4085         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4086         * src/pic16/pcoderegs.c: message about how many registers are saved
4087         will only be emitted if pic16_pcode_verbose flag is set,
4088
4089 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4090
4091         * src/ds390/ralloc.h,
4092         * src/ds390/ralloc.c (ds390_regWithIdx),
4093         * src/ds390/gen.c (emitcode),
4094         * src/ds390/main.h,
4095         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4096         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4097         ds390operandCompare, getRegsRead, getRegsWritten,
4098         initializeAsmLineNode): customized instruction size calculation for
4099         ds390, started basis for some register optimizations
4100         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4101         corresponding assembly output
4102         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4103         missing push/pop of r0/r1. Optimized push/pops
4104
4105 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4106
4107         * src/mcs51/main.c (instructionSize): fixed ACALL size
4108         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4109
4110 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4111
4112         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4113         the sorting of rlist with NULL elements
4114         * (print_idataType, print_idata): NEW to create idata sections
4115         * src/pic16/device.h: idataSymSet new variable
4116         * src/pic16/gen.c (genFunction): fixed some bugs in string
4117         comparing, improved the absolute section creation for ISRs,
4118         added FSR0L/FSR0H in registers that are saved in an ISR,
4119         * (genInline): fixed the processing of inline snippets,
4120         now they undergo no process by the peephole optimizer
4121         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4122         are placed in idataSymSet,
4123         * (pic16emitStaticSeg): extern symbols are added in externs,
4124         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4125         switching when aboslute variables are placed in access bank memory
4126         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4127         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4128         commented out with #if,
4129         * (pic16_packRegisters): reintroduce the check for CAST because some
4130         symbols are not correctly handled,
4131         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4132         pCodeInstruction instead of pCode,
4133         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4134         pCodeAsmDir definition,
4135         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4136         directive, then the argument directive is emitted without the leading
4137         tab, hack for inline labels which must be in the first column,
4138         * (compareLabel,pic16_findNextInstruction),
4139         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4140         * (insertBankSwitch): modified for the new pCodeAsmDir,
4141
4142 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4143         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4144
4145         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4146         instance,
4147         * (pushSide): commented out with #if,
4148         * (assignResultValue): fixed some typos in saving
4149         registers,
4150         * (genPcall): FIXED and sync'ed with genCall,
4151         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4152         * (genNearPointerGet): fixed to handle some more cases,
4153         implementation scheme via table reads,
4154         * (genConstPointerGet): modified to access code memory correct,
4155         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4156         and improved to handle some cases
4157         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4158         instead of "RETLW" for init data
4159         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4160         not IN_DIRSPACE, work around to reduce bank switching when aboslute
4161         variables are placed in access bank memory (<0x80 and >=0xf80),
4162         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4163         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4164         TBLWT_POSTDEC,TBLWT_PREINC
4165         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4166         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4167         directives
4168         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4169         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4170         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4171         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4172
4173 2004-02-29  Borut Razem <borut.razem AT siol.net>
4174
4175         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4176         support/Util/findme.h, support/Util/system.h: enhance binary relative
4177         search for lib and include by using findProgramPath()
4178
4179 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4180
4181         * src/SDCCpeeph.h,
4182         * src/SDCCpeeph.c (pcDistance),
4183         * src/port.h,
4184         * src/mcs51/ralloc.h,
4185         * src/mcs51/ralloc.c (mcs51_regWithIdx),
4186         * src/mcs51/main.h,
4187         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4188         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4189         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4190         size calculation port specific, started basis for some register
4191         optimizations
4192         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4193         missing push/pop of r0/r1. Optimized push/pops
4194         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4195         * device/lib/_modsint.c (_modsint),
4196         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4197         and stack version so regression tests pass
4198
4199 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4200
4201         * src/Makefile.in (dep): include SLIBOBJS in dependency check
4202         * src/SDCCast.c (decorateType): catch another small optimization
4203         with '?' operator
4204         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4205         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4206         modified to finally use computeType() all over SDCC,
4207         see Feature Request #877103
4208         * src/SDCCval.h: cosmetic
4209         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4210         valCompare(); regression tested in muldiv.c
4211         * support/regression/tests/muldiv.c (testMod): mod sign follows
4212         dividend only
4213
4214 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4215
4216         * src/SDCCast.c (decorateType): fixed bug #902362
4217         * doc/INSTALL.txt: fixed install instructions for win32
4218
4219 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4220
4221         * device/include/Makefile.in (install): fixed by replacing spaces
4222         by tabs
4223         * doc/README.txt,
4224         * doc/INSTALL.txt: updated for release
4225         * doc/sdccman.lyx: added warning for --xstack being buggy
4226
4227 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4228
4229         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
4230         to eliminate build warnings.
4231         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
4232
4233 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
4234            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4235
4236         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
4237         removed -penable-stack, added comment for stack pragma, added
4238         warning for not initializing the stack/frame registers, removed
4239         comment at interrupts section
4240
4241         Stack is made permanent, there is no ability to disable stack usage.
4242         * src/pic16/device.h,
4243         * src/pic16/device.c: removed all references to USE_STACK macro,
4244         * src/pic16/device.c (pic16_dump_section): when no elements in
4245         rlist, free rlist before return,
4246         * (pic16_dump_int_registers): NEW, internal registers are a new set
4247         of general purpose registers reused by each function,
4248         * (checkAddReg): returns 1 if registers is added to set,
4249         * (pic16_groupRegistersInSection): when a registers is of type
4250         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
4251         * src/pic16/device.h: memRange and Assigned Memory are deleted,
4252         SRCASECMP macro is moved here from device.c
4253         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
4254         PO_PCLATU, PO_PRODL, PO_PRODH,
4255         * (pic16_pCodeOpType, genMinus,
4256         changed compares to "a" register, with AOP_ACC,
4257         * (pic16_genPlus): fixed some bugs and indented properly,
4258         * (pic16_addSign): changed size to size+offset in the MOVWF
4259         instruction,
4260         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
4261         multiply 8-bit operand by literal, result is 8-bit,
4262         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
4263         multiply 2 8-bit operand, result is 8-bit,
4264         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
4265         genUMult8X*_16,
4266         * src/pic16/gen.c: changed accUse to contain WREG only,
4267         * (pic16_emitcomment): renamed to pic16_emitpcomment,
4268         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
4269         true, do not use immediate addressing any more unless sym is a
4270         pointer in codespace,
4271         * (aopForRemat): do not use immediate addressing when symbol not in
4272         codespace and when symbol's address is requested,
4273         * (aopOp): for-loop in if(sym->accUse) is modified for the new
4274         accUse size (= 1),
4275         * (aopGet): added case for AOP_ACC and don't return "accumulator
4276         bug" but WREG instead,
4277         * (popGetTempReg): pushes contents of temporary register in stack,
4278         * (popReleaseTempReg): pops contents of temporary register from
4279         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
4280         * (pic16_popGet): separated case AOP_ACC to return register WREG
4281         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
4282         or PO_IMMEDIATE and initializes their instance/offset appropriately,
4283         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
4284         the use of immediate pointers to certain cases only.
4285
4286         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
4287         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
4288         * (assignResultValue, genCall, genRet): modified to use the new
4289         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
4290         genPcall is still broken,
4291         * (genFunction): added code to create 'A' type pBlocks when
4292         interrupt functions are generated, code not extensively tested yet,
4293         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
4294         * (genEndFunction): modified so ISRs pop stored registers from stack,
4295         * (genMultOneByte): cleanup,
4296         * (AccRsh): added flag andmask, to and result with appropriate mask,
4297         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
4298         * (genDataPointerGet): fixed and reenabled its use,
4299         * (genNearDataPointerGet): bugs fixed,
4300         * (genDataPointerSet): bugs fixed,
4301         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
4302         pic16_DumpSymbol, pic16_DumpOp,
4303         * src/pic16/genutils.h: function prototypes for the above functions,
4304         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
4305         pointers,
4306         * (pic16emitRegularMap): many many many improvements, but needs a
4307         major cleanup,
4308         * src/pic16/main.c: enable_stack in pic16_options is removed,
4309         * (_pic16_parseOptions): removed command line options -penable-stack,
4310         * (_process_pragma): emit stack symbol only when stack pragma is
4311         processed,
4312         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
4313         redirected to FSR0L/FSR0H pair,
4314         * (pic16_get_op, pic16_get_op2): modifications and improvements,
4315         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4316         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
4317         for immediates,
4318         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
4319         * (dumpPicOptype): NEW,
4320         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
4321         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
4322         with movff instruction,
4323         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
4324         added pic16_int_regs, some packRegsFor* functions are commented out,
4325         because produce errors,
4326         * src/pic16/NOTES: minor modifications
4327
4328 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4329
4330         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4331         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
4332         --pack-iram.
4333         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
4334         * as/mcs51/lkaomf51.c: fixed bug #895763
4335
4336 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
4337
4338         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
4339
4340 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4341
4342         * doc/sdccman.lyx: added details about the HC08 storage classes and
4343         interrupts, fixed the register usage info for z80 & gbz80
4344
4345 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
4346
4347         * doc/sdccman.lyx: added more pic16 port documentation
4348         * device/include/pic16/: added header pic18fregs.h
4349
4350 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4351
4352         * doc/sdccman.lyx: added Vangelis' contribution
4353
4354 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4355
4356         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
4357         extend to the next CALL or PCALL, not just to the next CALL.
4358
4359 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
4360
4361         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
4362
4363 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4364
4365         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
4366         bug #895752 and a better fix for bug #716790
4367
4368 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4369
4370         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
4371
4372 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4373
4374         * doc/sdccman.lyx: minor changes, minor changed
4375
4376 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4377
4378         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
4379         which can't handle SDCC_NEWONEBYTEOPS,
4380         (geniCodeMultiply): removed conversion from mult to shift for pic14
4381         and pic16
4382
4383 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4384
4385         * src/hc08/gen.h,
4386         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
4387         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
4388         thus fixing bug #895406
4389
4390 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
4391
4392         * device/lib/_modsint.c,
4393         * device/lib/_modslong.c: sign follows divisor only
4394         * src/hc08/gen.c (genMultOneByte): if result size is 1,
4395         signs or signedness can be ignored
4396         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
4397         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
4398         added optimization for IFX,
4399         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
4400         arguments;
4401         reenabled optimization for IFX, which was removed on 2004-01-11
4402         * src/SDCCast.h: added return type IFX
4403         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
4404         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
4405         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
4406         SDCC_OLDONEBYTEOPS selects the old behaviour
4407         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
4408         changed again and commented promotion rule
4409         * src/SDCCval.c (valDiv): promotion no longer necessary
4410         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
4411         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
4412         rewritten
4413         * support/regression/tests/onebyte.c: added
4414
4415 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
4416
4417         * gen.c (genInline): reverted to old code for assemnling inline
4418         code because of bug reported James Chadd
4419
4420 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
4421
4422         * ralloc.h: missing declarations from previous patch,
4423         seems that patch for ralloc.h was never applied, fixed
4424
4425 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4426            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4427
4428         * pcode.c,
4429         * pcode.h,
4430         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
4431         indirect addressing. Marked FSR0 as deprecated
4432         * gen.c (pointerCode): commented out, not needed now
4433         (pic16_popGet2p): new MOVFF helper function
4434         (genGenPointerGet),
4435         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
4436         (shiftRLong): removed duplicate debugging info
4437
4438 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4439
4440         * src/ds390/gen.c (genNearPointerGet),
4441         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
4442         optimization with bits, but not bitfields.
4443         * src/ds390/ralloc.c (packRegisters),
4444         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
4445
4446 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4447
4448         * src/SDCCcse.c (algebraicOpts): copy operands before modification
4449
4450 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4451
4452         * src/SDCCsymt.h,
4453         * src/SDCCicode.c (operandFromSymbol),
4454         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
4455         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
4456         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
4457         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
4458         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
4459         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
4460         bug #892038
4461         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
4462         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
4463         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
4464         * src/SDCCsymt.c (newSymbol),
4465         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4466         enumerator_list),
4467         * src/SDCCval.h,
4468         * src/SDCCval.c (newiList): fixed bug #885705
4469
4470 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4471
4472         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
4473         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
4474
4475 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4476
4477         * device/include/c8051f120.h,
4478         * device/include/c8051f300.h,
4479         * device/include/c8051f310.h: added/updated header files for Silicon
4480         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4481         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
4482         in new section Submitting patches
4483
4484 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4485
4486         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
4487         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4488         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4489         genGenPointerSet),
4490         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
4491         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4492         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4493         genGenPointerSet),
4494         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
4495         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4496         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4497         genGenPointerSet),
4498         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
4499         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4500         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4501         genGenPointerSet): fixed bug #892400
4502         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
4503         to eliminate build warnings.
4504         * src/SDCCast.c (processParms),
4505         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
4506         fixed bug 751859
4507         * support/valdiag/valdiag.py: added GCC to the list of defines active
4508         when compiling with gcc
4509
4510 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4511
4512         * support/Util/SDCCerr.h,
4513         * support/Util/SDCCerr.c,
4514         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
4515         with an incomplete type (fixed bug #883734)
4516         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
4517
4518 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4519
4520         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
4521
4522 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4523
4524         * src/SDCCast.c (decorateType),
4525         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
4526         function pointer implementation
4527         * support/regression/tests/funptrs.c: added tests to verify both forms
4528         of function pointers work correctly. Added tests to verify parameters
4529         are passed in the correct order.
4530
4531 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
4532
4533         * device.c (regCompare): registers are sorted by ascending
4534         address and increasing size,
4535         * main.c (_pic16_finaliseOptions): removed the declaration
4536         of compiler macro MCU. Now a macro of the format pic18fxxxx
4537         will be defined from the command line
4538
4539 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4540             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4541
4542         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
4543         PCOP_RLCF was overwritten!
4544         * gen.c (genSkip): commented out calls to pic16_emitcode,
4545         * (genCmpEQ): fixed "long" compares, only high word did get compared,
4546         * (genlshTwo),
4547         * (genRRC): added debugging info,
4548         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
4549         overwritten while shifting,
4550         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
4551         overwritten while shifting,
4552         * (AccLsh),
4553         * (AccRsh),
4554         * (shiftLLeftOrResult),
4555         * (shiftRLeftOrResult),
4556         * (shiftRLong),
4557         * (shiftLLong): Implemented with pic16_emitpcode
4558         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
4559         * (genLeftShift): Fixed bug, operand for shift by variable always
4560         was "and"ed with 0x0f,
4561         * (genLeftShiftLiteral),
4562         * (genrshTwo),
4563         * (genRightShiftLiteral): added debugging info,
4564         * (genrshFour): added comment,
4565         * (genRightShift): determined signedness from operand "left"
4566         instead of "result"
4567
4568 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4569
4570         * src/SDCCicode.c (geniCodeParms),
4571         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
4572         function pointers, fixed function pointer bugs #861242 and #861896
4573
4574 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4575
4576         * device/include/c8051f000.h,
4577         * device/include/c8051f120.h,
4578         * device/include/c8051f300.h: added header files for Silicon
4579         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4580
4581 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
4582
4583         * src/SDCCast.c (processParams): added new type flow and restructured
4584         (gatherAutoInit): added new type flow
4585         (addCast): cosmetic changes
4586         (getLeftResultType): added new type flow for array indices, patch
4587         provided by Stas, see FR #877103
4588         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
4589         array index patch by Stas
4590         * src/SDCCast.h: added prototype getResultTypeFromType()
4591         * src/SDCCval.h,
4592         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
4593         * src/pic/glue.c (pic14emitStaticSeg),
4594         * src/pic16/glue.c (pic16emitStaticSeg),
4595         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
4596         for initialization of symbols
4597         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
4598         * support/Util/SDCCerr.h:
4599         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
4600         * .version: bumped version number to 2.3.8
4601         * device/include/Makefile.in (install),
4602         * doc/Makefile (install): changed to 'rm `find ...`' construct to
4603         avoid warnings
4604
4605 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
4606
4607         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
4608         Slade Rich fixed an optimization bug
4609         * src/pic/pcodepeep.c,
4610         * src/pic/pcoderegs.c
4611         * doc/Makefile (install): added test for directory
4612
4613 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4614
4615         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
4616         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
4617         * src/pic/ralloc.c (getRegPtr, getRegGpr),
4618         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
4619         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
4620         * as/mcs51/asexpr.c (term),
4621         * as/hc08/asexpr.c (term): fixed bug #887146
4622
4623 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4624
4625         * src/z80/gen.c (genMult): handle single byte result product
4626         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
4627         DUMMY_READ_VOLATILE (fixed bug #886367)
4628
4629 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4630
4631         * support/regression/tests/libmullong.c: fixed logic, on little endian
4632         hosts we ended without a mullong_wrapper()
4633
4634 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4635
4636         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
4637         virus/worm forged address usage.
4638
4639 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4640
4641         Fixed promotion, it should be done on AST level:
4642         * src/SDCCast.c (addCast): added promotion to int
4643         (decorateType): updated call to upCast()
4644         * src/SDCCicode.c (geniCodeLeftShift): removed call to
4645         usualUnaryConversions()
4646
4647 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
4648
4649         * support/regression/tests/literalop.c (mulWrapper): Added a
4650         wrapper to remove integer overflow warnings.
4651
4652         * support/regression/tests/float_trans.c: Made work on host.
4653
4654         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
4655         location of sz80.
4656
4657         * support/regression/generate-cases.py (main): Changed from inline
4658         to a main method.
4659
4660         * doc/Makefile (install): Changed to depth first to get rid of
4661         missing directory install warning.
4662
4663         * as/Makefile (install-doc): Made work on Mac.
4664
4665 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
4666
4667         * src/SDCCast.c: added an additional type flow in decorateType() of
4668         opposite direction, see feature request #860006; it's enabled at runtime
4669         by setting the environment variable SDCC_NEWTYPEFLOW
4670         * src/SDCCast.h: changed prototype of decorateType()
4671         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
4672         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
4673         'char' to 'int' can be omitted, if both operands are 'unsigned char';
4674         see feature request #877103
4675         * src/SDCCval.c: updated call of decorateType()
4676         (valBitwise): fixed bug #882876
4677         (valMinus): added promotion
4678         (valLogicAndOr): result is unsigned
4679         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
4680         * src/SDCCsymt.c (computeType),
4681         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
4682         must not cause an unsigned operation
4683         * src/pic/glue (pic14emitRegularMap),
4684         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
4685
4686 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
4687
4688         * src/pic/pcode.c (PCodeID): commented out left over debug code
4689
4690 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4691
4692         * support/valdiag/tests/overflow.c: added shift tests
4693         * src/pic/device.c,
4694         * src/pic/gen.c,
4695         * src/pic/gen.h,
4696         * src/pic/glue.c,
4697         * src/pic/main.c,
4698         * src/pic/pcode.c,
4699         * src/pic/pcode.h,
4700         * src/pic/pcodepeep.c,
4701         * src/pic/pcoderegs.c,
4702         * src/pic/ralloc.c,
4703         * src/pic/ralloc.h: applied patch from Slade Rich;
4704         added support for multiple code pages and multiple RAM banks on the
4705         PIC 14 port. The ASM files now no longer simply assume all the
4706         code / RAM are in the same page / bank. This means the linker can
4707         safely allocate code/RAM of separate ASM files to different pages/banks.
4708         * doc/sdccman.lyx: added Slade's tips
4709         * src/mcs51/peeph.def: fixed bug #880768
4710
4711 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4712
4713         * src/hc08/ralloc.c (rematStr): fixed bug #879282
4714         * src/SDCCast.c (decorateType): fixed bug #880197
4715
4716 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
4717
4718         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
4719         getopt.h.
4720
4721         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
4722         strtof is not part of C89 and isn't included with Mac OS X.
4723
4724 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4725
4726         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
4727         shiftL2Left2Result): fixed bug #879326
4728         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
4729         (genMultOneByte): fixed bug in signed vs unsigned multiplication
4730         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
4731         address fetch for clr instruction
4732         * device/lib/hc08/_mulint.c: created optimized assembly version
4733         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
4734
4735 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4736
4737         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
4738         proposed in FR #877103
4739
4740 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4741
4742         * src/SDCCval.c (cheapestVal): added missing checks
4743         * src/SDCCicode.c (usualBinaryConversions): fixed condition
4744         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
4745
4746 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
4747
4748         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
4749         equal operands
4750
4751 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
4752
4753         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
4754         loaded with the linker search paths (-L arguments) and the libraries
4755         to be linked with the current source (-l arguments). Changes
4756         currently will affect only the pic16 port.
4757         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
4758         include path the port specific paths and port specific libraries,
4759         * gplink command now contains the $3 argument,
4760         * src/pic16/device.h,
4761         * src/pic16/device.c,: structure PIC_device is made public and
4762         renamed to PIC16_device, the same for variable Pics which is renamed
4763         to Pics16. Updated all references to them.
4764         * src/pic16/glue.c (pic16glue): corrected bug with code
4765         initialization which bypassed the variable initializations block.
4766
4767         * device/lib/pic16/Makefile.rules: removed --penable-stack from
4768         COMPILE_FLAGS and added the --nostdinc option
4769
4770 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4771
4772         * device/include/mc68hc908jb8.h: Register defs for another member
4773         of the hc08 family. Contributed by Bjorn Bringert - thanks!
4774
4775 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
4776
4777         Documenting changes from previous commits.
4778         * configure.in (version 1.56),
4779         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
4780         when generating output files to configure the pic16 library,
4781         but now I've commented it out, since gputils aren't installed in the
4782         SF compile farm, so library won't compile
4783
4784         * device/lib/Makefile.in (version 1.56): initially I've added in
4785         target 'all' the prerequestive 'model-pic16' so it compiled the
4786         pic16 library, but now I've commented it out for the same reasons
4787         above,
4788         * added targets 'model-pic16' and 'objects-pic16' to compile the
4789         library
4790         * added target 'port-specific-objects-pic16' to handle the
4791         generated libraries and copy them into the build/ directory
4792         * added target 'clean-intermediate-pic16' to clean intermediate
4793         files into pic16 directory
4794         * in target 'installdirs' added line to create directory pic16 in
4795         the installation path
4796
4797         * device/include/Makefile.in (version 1.11): in target 'install'
4798         added lines to copy all header files to installation path,
4799         * in target 'installdirs' added line create directory for pic16
4800         headers in the installation path
4801
4802 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
4803
4804         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
4805          a function call
4806
4807 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4808
4809         * configure,
4810         * device/lib/configure.in,
4811         * device/lib/configure: fixed for autoconf 2.57
4812
4813 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4814
4815         * src/z80/main.c (_parseOptions): fixed the portmode= command line
4816         option so that it actually works. Made it specific to the z80, since
4817         the gbz80 doesn't have these kinds of I/O ports.
4818
4819 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4820
4821         * device/include/z180.h,
4822         * device/lib/_memcpy.c,
4823         * device/lib/_memmove.c,
4824         * device/lib/_mulint.c,
4825         * device/lib/ser_ir.c,
4826         * device/lib/ser_ir_cts_rts.c,
4827         * device/lib/_strcmp.c,
4828         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
4829         * src/z80/main.c (_process_pragma): add support for pragmas bank and
4830         portmode; added deprecation warning for bank= and protmode= forms.
4831         Also, guard against buffer overflow.
4832         * src/z80/gen.c (aopGet): generate better code for sfr banked read
4833
4834 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4835
4836         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
4837         changed interrupt vector table generation to only emit declared vectors.
4838         * device/include/Makefile.in: added missing backslash
4839         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
4840
4841 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4842
4843         Mainly changes to support compilation of the device libraries
4844         * src/pic16/device.c: stack is allocated via symbol and not
4845         via literal number. The symbol is placed in the corresponding
4846         position of the data ram
4847         * (pic16_dump_section): relocatable and absolute uninitialized
4848         data are now emitted in sorted order to reduce section naming,
4849         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
4850         weren't marked as being in the access bank,
4851
4852 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4853
4854         Added portion of GNU PIC Library under the directory
4855         device/include/pic16 and device/lib/pic16. These files
4856         contain the declarations of SFRs for the PIC18Fxx2 devices.
4857         The directory is initialized via configure from toplevel.
4858
4859 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
4860
4861         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
4862         the spilllocations to be compared correctly
4863
4864 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4865
4866         * src/SDCCast.c (decorateType): fixed bug introduced today
4867
4868 2004-01-12  Borut Razem <borut.razem AT siol.net>
4869
4870         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
4871         doc/sdccman.lyx: upper case pragmas are deprecated
4872
4873 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4874
4875         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
4876         in simpler and even better code
4877
4878 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4879
4880         * src/SDCCicode.c (operandOperation): fixed bug #874819
4881         * src/SDCCast.c (decorateType): fixed
4882         char foo (unsigned long ul) { return ul > 0; }
4883
4884 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4885
4886         * doc/sdccman.lyx: Moved and added some sections, small changes
4887         all over. Telling LaTeX to be less strict with word spacing
4888         to better keep the right margin. Changed some notes about
4889         maintainance of the ports in section 3.2.1 - is it OK like this?
4890
4891 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4892
4893         SDCC source changes:
4894         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
4895         convilong): modified to inform the pic16 port that builtin functions
4896         are external
4897
4898         PIC16 PORT specific changes:
4899         * src/pic16/device.c pic16_dump_equates() added,
4900         processor registers declared internally by the port are emitted in
4901         the translation as equates,
4902         * src/pic16/gen.c: inline code is passed unprocessed to the
4903         translation,
4904         * (pic16_popGetLit2): fnuction modified to take second operand as
4905         pCodeOp pointer and not as literal,
4906         * (popRegFromIdx): prefixed with pic16_,
4907         * (pic16_popCombine2): modified to receive already allocated pCode
4908         operands,
4909         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
4910         * (genFunction): initializes local stack frame and pushes on stack
4911         all the registers used by this function,
4912         * (genEndFunction): restores all registers from stack and restores
4913         stack frame,
4914         * src/pic16/glue.c (pic16emitRegularMap): various changes and
4915         improvements,
4916         * (pic16glue): changed the program startup sequence,
4917         * added new dbName code 'A' for functions placed in absolute section
4918         * src/pic16/main.c: added function attribute _naked,
4919         * added pragma 'code' to place a fnuction at an absolute address,
4920         * added command line arguments --debug-ralloc and --pcode-verbose,
4921         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
4922         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
4923         * (pic16_newpCodeOpLit2): modified to take the second operand as
4924         pCodeOp pointer,
4925         * (pic16_printpBlock): modified to emit each function in a separate
4926         section,
4927         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
4928         UPPER for immediate operands,
4929         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
4930         instruction,
4931         * src/pic16/peeph.def: all peepholes with movff are commented out,
4932         because there is a problem in the pcode peep optimizer,
4933         * src/pic16/ralloc.c: the register allocator can now reuse local
4934         function symbols for another function. This saves register usage.
4935         * src/pic16/ralloc.h: added flag isLocal in structure regs,
4936
4937         Added file src/pic16/NOTES with information about program writing on
4938         the current port version.
4939
4940 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4941
4942         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
4943         and peephole 252 (array access)
4944
4945 2004-01-09  Borut Razem <borut.razem AT siol.net>
4946
4947         * src/SDCCmain.c : fixed #872250: -l command line defined library
4948           files are scanned before standard library files
4949
4950 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4951
4952         * src/SDCCast.c (decorateType): fixed bug #874046
4953
4954 2004-01-09  Borut Razem <borut.razem AT siol.net>
4955
4956         * support/scripts/sdcc.nsi: remove previous installation
4957
4958 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4959
4960         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
4961         bytes for last interrupt vector (mcs51)
4962         * sdcc.spec: fixed typo
4963
4964 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4965
4966         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
4967         gen51Code): more efficient parameter receive for --model-large
4968         ("bug" #845294)
4969
4970 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4971
4972         * src/ds390/main.c,
4973         * src/z80/main.c: added missed needLinkerScript flags (more than
4974         one port structure defined in these file)
4975         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
4976         bug #795325
4977
4978 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
4979
4980         * src/SDCCmain.c: removed various references to DEFAULT_PORT
4981         * src/port.h: added flag needLinkerScript in port->linker
4982         structure to inform whether to create a .lnk file or not,
4983         * src/avr/main.c,
4984         * src/ds390/main.c,
4985         * src/hc08/main.c,
4986         * src/mcs51/main.c,
4987         * src/pic/main.c,
4988         * src/pic16/main.c,
4989         * src/xa51/main.c,
4990         * src/z80/main.c: changed appropriately to configure
4991         needLinkerScript flag
4992         * src/pic/gen.c,
4993         * src/pic16/gen.c (genAddrOf): fixed bug #863624
4994         * src/pic/glue.c: added variable udata_section_name to
4995         override default uninitialized data segment definition for
4996         devices only with SHAREBANK memory (reported from Erik Epetrich)
4997         * (pic14emitOverlay): modified to emit a commented overlay segment
4998         directive when no overlay data exist
4999         * (picglue): modified to emit uninitialized data segment
5000         according to udata_section_name
5001         * src/pic/main.c (_pic14_parseOptions): added command line
5002         options --udata-section-name=[name] to override default
5003         udata definition name
5004         * modified _linkCmd and _asmCmd to include compiler passed
5005         arguments via -W option
5006         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5007         object file from '.rel' to '.o' in port->linker structure,
5008         changed size of fptr from 2 to 3 in port structure
5009
5010 2004-01-07  Borut Razem <borut.razem AT siol.net>
5011
5012         * support/scripts/sdcc.nsi: update PATH
5013         * support/scripts/sdcc.ico: craeted
5014
5015 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5016
5017         * device/include/Makefile.in: fix install
5018         * doc/Makefile: fix install
5019
5020 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5021
5022         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5023         in bug #860505
5024         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5025         how the function variable allocation summary is displayed; also
5026         include information about variables allocated to the overlay
5027         segment
5028
5029 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5030
5031         * as/mcs51/lkmain.c: Help about -Y option
5032         * as/mcs51/lkarea.c: Fixed gcc warnings
5033
5034 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5035
5036         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5037         fixed warning
5038         * support/valdiag/tests/overflow.c: added
5039         * src/SDCCast.c (decorateType),
5040         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5041         LEFT_OP (left shift)
5042
5043 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5044
5045         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5046         (default behaviour).
5047
5048 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5049
5050         A python script to validate compiler diagnostic messages. It can be
5051         used to verify that sdcc complains about bad c source code and
5052         gives a good location of the error.
5053         * support/valdiag/Makefile,
5054         * support/valdiag/valdiag.py,
5055         * support/valdiag/tests/*
5056
5057 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5058
5059         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5060         * src/SDCCsymt.c (newEnumType),
5061         * src/SDCCsymt.h
5062         * support/Util/SDCCerr.c,
5063         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5064         enum related bugs.
5065         * support/regression/tests/enum.c: added test for enum values that
5066         require at least 2 bytes of storage.
5067
5068 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5069
5070         * src/common.h: added ifndef/define/endif macros
5071         around the header file.
5072         Bug reported from Jesus Calvino-Fraga
5073
5074 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5075
5076         * sdcc.spec: updated
5077         * device/include/Makefile.in: don't install CVS directories
5078         * device/lib/Makefile.in: added removal of CVS directories after install
5079         * doc/Makefile: fixed install, added local_icons
5080         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5081         * src/mcs51/gen.c (genRightShift): fixed bug #870788
5082         * src/ds390/gen.c (genRightShift): fixed bug #870788
5083         * src/SDCCast.c (decorateType): fixed bug #870781
5084
5085 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5086
5087         PIC16 port related changes:
5088         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5089         added variable stackPos,
5090
5091         * gen.c: genCall, assignResultValue: added support for
5092         pushing/retrieving function parameters to/from stack,
5093         genFunction,genEndFunction: setup stack frame for the
5094         generated function,
5095         genAddrOf: will be changed according to bug 863624
5096
5097         * added files genutils.c and genutils.h which contain gen*
5098         debugged and optimised functions extracted from gen.c
5099
5100         * glue.c: added variable 'externs' which holds extern symbols,
5101         pic16emitRegularMap: is modified to properly handle relocatable
5102          symbols under the new scheme,
5103         pic16createInterruptVect: is modified
5104         pic16printPublics: is modified to emit 'global' assembler directives,
5105         added pic16_printExterns to print extern symbols,
5106         pic16glue: initializes stack/frame pointer in the beginning of
5107         the assembly output. Temporary hack, will be corrected later,
5108         because gplink yet does not support stack and SDCC does not
5109         yet support a type of crt0.o object to create the final binary.
5110
5111         * Removed many lines that contain 8051 legacy code.
5112         * The code is finally placed under a 'code' directive.
5113         * Added port specific options.
5114
5115         * _process_pragma: simplified since now we do not need *special*
5116         include file to define SFR registers. But a separate header
5117         will be needed. This will be developed later.
5118         * _pic16_parseOptions: added, parses port specific options:
5119         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5120         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5121         --preplace-udata-with=
5122
5123         * _pic16_setDefaultOptions: modified to initialize section names,
5124         but hack is temporarly out of order since it needs improvement.
5125         * _pic16_genAssemblerPreamble: configuration words are emitted by
5126         their address instead of their name. This part is incomplete and
5127         supports only the 18Fxx2 devices. Other devices will emit an error
5128         during assembly since they do not contain the same set of config
5129         registers
5130         * _pic16_genIVT: is modified,
5131
5132         * pcode.c: added definitions for some hardware registers that are needed
5133         for stack support
5134         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5135         All PCI entries are updated. Now LFSR is supported.
5136         * Removed pic16_pciTRIS is mentioned by mdubuc in source
5137         * added pic16_newpCodeOpLit2 to support instructions with
5138         two literal arguments
5139         * pic16_pCode2str: corrected code that emits assembler instructions
5140         with two literal operands and those that have an access bit modifier
5141         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5142         this fixes a bug which caused some labels to be lost, when an
5143         assembler directive was added, i.e. banksel,
5144         * pic16_FixRegisterBanking: improved logic that causes the insertion
5145         of bank switching,
5146         * InlineFunction: functions that are called once, are not any more
5147         inlined. This can be a port option in the future,
5148
5149         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5150
5151         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5152         hold the corresponding uninitialized symbols,
5153         * pic16_allocProcessorRegister: registers have explicit marked the
5154         accessBank field,
5155         * pic16_allocInternalRegister: registers are explicit marked as
5156         not used,
5157         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5158         processing list, so bit registers were lost,
5159         *
5160
5161         * ralloc.h: added field 'accessBank' and original symbol operand
5162         in register definition,
5163         * removed the field isMapped from register definition,
5164
5165         ** Several functions have been removed from various sources:
5166         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5167         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5168         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5169         pic16_assignRelocatableRegisters
5170
5171         ** others have been introduced:
5172         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5173         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5174
5175 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5176
5177         * support/scripts/inc2h.pl: changed definition of BIT_AT
5178         to emit 'sbit at' instead of 'bit at'. This was a request.
5179
5180         PIC16 port related preliminary changes:
5181         * gen.c: prefixed function popRegFromString with
5182         pic16_ and all references to it corrected
5183         * pcode.c: all pic16_pc_* hardware registers prefixed
5184         with underscore (_),
5185         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5186         * ralloc.c: newReg(): when register is REG_SFR then
5187         set address to rIdx,
5188         pic16_allocProcessorRegister(): marks register wasUsed=0
5189         pic16_writeUsedRegs(): added a call to assign processor
5190         registers via pic16_assignFixedRegisters
5191
5192 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5193
5194         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5195         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5196         variables in unused register banks.  Also the SSEG is placed
5197         wherever there is enough space for it, and IDATA can be anywhere
5198         in internal RAM.  For now compile using -Wl-Y[stack_size].
5199         The mem file is different for this option as well, since it
5200         makes no sense of talking about DSEG lenght.
5201
5202 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5203
5204         * src/SDCClrange.c: fixed bug 869095 that caused segfault
5205         in certain cases, e.g. when ROM assignment, patch provided
5206         from Albert den Haan.
5207
5208 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5209
5210         Many signedness and type propagation fixes:
5211         * src/SDCCicode.c: made geniCodeCast() static
5212         replaced SPEC_ by IS_ (cosmetic)
5213         (operandOperation): fixed div and mod operation
5214         (usualBinaryConversions): added support for promotion of char
5215         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5216         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5217         (geniCodeAdd): an array index will stay unsigned, even if promoted
5218         from char to int
5219         (geniCodeArray): ditto
5220         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5221         * src/SDCCsymt.c (computeType): added more support for char;
5222         promotion of char is selectable by promoteCharToInt, fixed signedness
5223         for all cases
5224         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5225         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5226         * src/SDCCval (val*): replaced signedness calculation by
5227         computeType()
5228         rearranged if-branches (cosmetic)
5229         (valShift): added warning W_SHIFT_CHANGED
5230         (valCompare): fixed problem with different types
5231         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
5232         * support/regression/tests/literalop.c: added many cases
5233         * support/regression/tests/ast_constant_folding.c: changed finally to
5234         'unsigned int'
5235         * .version: new year, new version: 2.3.7
5236         * src/SDCCmain.c (main): applied patch #866468
5237         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
5238         provided by Scott Bronson
5239         * doc/sdccman.lyx: updated documentation for sdcdb
5240         updated and added chapter tips
5241
5242 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5243
5244         * src/SDCCsymt.h: missing from yesterday's commits
5245
5246 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5247
5248         * src/SDCC.y (struct_or_union_specifier),
5249         * support/Util/SDCCerr.c,
5250         * support/Util/SDCCerr.h: verify that struct & union tags are used
5251         as declared.
5252
5253 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5254
5255         * src/SDCCglobl.h: missing from yesterday's commits
5256
5257 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5258
5259         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
5260         sft_attributes, struct_declaration, parameter_declaration,
5261         type_name, start_block, declaration_list),
5262         * src/SDCC.lex (check_type): support redefinition of typedef names
5263
5264 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5265
5266         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
5267         aligned xdata arrays. Erik helped me with the if clause.
5268
5269 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5270
5271         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
5272         warning
5273
5274 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5275
5276         * src/SDCCast.h,
5277         * src/SDCCast.c (newAst_),
5278         * src/SDCCicode.h,
5279         * src/SDCCicode.c (ast2iCode, newiCode),
5280         * src/SDCCglobl.h,
5281         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
5282         expr, statement, expression_statement, selection_statement,
5283         iteration_statement, expr_opt, jump_statement): foundation for tracking
5284         sequence points
5285         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
5286         point code too)
5287
5288 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5289
5290         * support/Util/SDCCerr.c,
5291         * src/SDCCast.h,
5292         * src/SDCCast.c (createCase, createDefault, decorateType),
5293         * src/SDCClabel.c (labelUnreach),
5294         * src/SDCC.y (labeled_statement, jump_statement): More improvements
5295         to error messages.
5296         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
5297         (with thanks to Stas Sergeev)
5298         * device/include/time.h,
5299         * device/lib/time.c (CheckTime): suppress unreachable code warning
5300
5301 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5302
5303         * src/SDCCast.c (createIvalCharPtr),
5304         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
5305         bug #753752)
5306         * support/regression/tests/nullstring.c: tests for these two bugs
5307
5308 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5309
5310         * support/Util/SDCCerr.h,
5311         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
5312         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
5313         about storage class and 'at' used inside struct or union
5314         * src/SDCCBBlock.c (iCodeFromeBBlock),
5315         * src/SDCCcse.c (ifxOptimize),
5316         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
5317         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
5318         printIval, emitStaticSeg, emitOverlay),
5319         * src/SDCClabel.c (deleteIfx),
5320         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
5321         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
5322         gatherAutoInit, processParms),
5323         * support/Util/SDCCerr.h,
5324         * support/Util/SDCCerr.c (werrorfl): Support for better error location
5325         reporting for post-parse errors.
5326
5327 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5328
5329         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
5330         implicit casts via union; they don't work on big endian systems
5331         (possible fix for bug #861138)
5332
5333 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5334
5335         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
5336         * src/mcs51/main.c: fixed the fix for bug #737001
5337
5338 2003-12-15  Borut Razem <borut.razem AT siol.net>
5339
5340         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
5341
5342 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5343
5344         * support/makebin/makebin.c: put output in binary mode
5345
5346 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5347
5348         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
5349         xdata and data memory on startup. Set the environment variable
5350         SDCC_NOGENRAMCLEAR to disable this.
5351         * src/mcs51/peephole.def,
5352         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
5353         (allows non-interrupt and interrupt code to safely compete for a resource
5354         without the non-interrupt code having to disable interrupts)
5355
5356 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5357
5358         * src/SDCCicode.c (geniCodeAdd),
5359         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
5360         with valFromType if type might be a pointer and host is big endian).
5361         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
5362         types, not just integer types.
5363         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
5364         multiply defined with mismatching "at" address.
5365
5366 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5367
5368         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
5369         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
5370         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
5371         with embedded nulls (fixed bug #753752)
5372
5373 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5374
5375         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
5376         Apparently this did not see much testing (endless loop)
5377
5378 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5379
5380         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
5381
5382 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5383
5384         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
5385         gracefully handle NULL memmap pointers
5386
5387 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5388
5389         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
5390         instead of deleting the iCode when an operand is volatile
5391         * src/z80/gen.c (genDummyRead),
5392         * src/mcs51/gen.c (genDummyRead),
5393         * src/ds390/gen.c (genDummyRead),
5394         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
5395         not just IC_RIGHT
5396         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
5397         * src/SDCC.y: fixed bug #850420
5398
5399 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5400
5401         Applied z80 i/o port patch from Peter Townson and fixed some operators
5402         to better handle operands in A register.
5403         * device/include/z180.h
5404         * src/SDCC.y
5405         * src/SDCCglue.c
5406         * src/z80/gen.c
5407         * src/z80/gen.h
5408         * src/z80/main.c
5409         * src/z80/peeph-z80.def
5410         * src/z80/peeph.def
5411         * src/z80/z80.h
5412
5413 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5414
5415         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
5416
5417 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5418
5419         * device/lib/hc08/_mullong.c: Removed extra #endif
5420
5421 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5422
5423         * sim/ucsim/hc08.src/inst.cc,
5424         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
5425         carries from x to h
5426         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
5427         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
5428         * device/include/stdarg.h: fixed varargs for hc08
5429         * device/lib/Makefile.in,
5430         * device/lib/hc08/Makefile,
5431         * device/lib/hc08/_mulint.c,
5432         * device/lib/hc08/_mullong.c: fixed some endian problems
5433
5434 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5435
5436         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
5437         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
5438         * device/lib/_gptrget.c,
5439         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
5440
5441 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5442
5443         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
5444         * src/SDCCast.c (astErrors): fixed bug #846007
5445         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
5446
5447 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5448
5449         * src/SDCCast.c (decorateType): disabled a transformation I added in
5450         revision 1.188 (access to fields of a structure at an absolute address);
5451         it breaks with bitfields, extern declarations, and gcse analysis.
5452         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
5453         could be assigned through a pointer, so don't complain.
5454         * src/SDCCast.c (astErrors),
5455         * src/SDCCast.h,
5456         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
5457
5458 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
5459
5460         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
5461         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
5462         output of __config directives, since gpasm now supports them
5463         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
5464         pre-processor macro, i.e. -DMCU=p18f452
5465         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
5466         and modified to handle 'cast' icode similarly to '=' icode
5467         * src/pic16/device.h (typedef struct PIC_device): added field
5468         'extMIface' to indicate that chip has external memory interface
5469         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
5470         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
5471         18F8720
5472
5473 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5474
5475         * src/SDCC.y (pointer): fixed bug #846006
5476         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
5477         * src/SDCCast.c (decorateType): fixed bug #846009
5478         * src/ds390/peeph.def,
5479         * src/ds390/gen.c (genAnd, genOr),
5480         * src/mcs51/peeph.def,
5481         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
5482
5483 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5484
5485         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
5486         * src/SDCCdflow.c
5487         * src/SDCCcse.c
5488         * src/SDCCcse.h
5489         * src/SDCCBBlock.h
5490         * src/SDCCBBlock.c
5491
5492 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
5493
5494         fixed bug #845089
5495         * src/SDCCbitv.h,
5496         * src/SDCCbitv.c: added function to free a bitvector
5497         * src/SDCClrange.h,
5498         * src/SDCClrange.c: added function to recompute the liveranges
5499         * src/avr/ralloc.c,
5500         * src/ds390/ralloc.c,
5501         * src/hc08/ralloc.c,
5502         * src/mcs51/ralloc.c,
5503         * src/pic/ralloc.c,
5504         * src/pic16/ralloc.c,
5505         * src/xa51/ralloc.c,
5506         * src/z80/ralloc.c: recompute the liveranges after register packing
5507
5508 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
5509
5510         * src/SDCCloop.c (newInduction): fixed bug #845630
5511
5512 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5513
5514         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
5515         inadvertantly left behind from my 2003-11-12 change
5516
5517 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5518
5519         Updated headers I neglected to commit yesterday.
5520         * src/SDCClrange.h,
5521         * src/SDCCicode.h
5522
5523 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5524
5525         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
5526         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
5527         * src/SDCCopt.c (eBBlockFromiCode),
5528         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
5529         the creation of the key hash table from the sequencing so it can be used
5530         earlier (for some GCSE bug fixes still pending)
5531
5532 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5533
5534         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
5535         * support/regression/tests/addsub.c: testing genPlus shortcut
5536
5537 2003-11-15  Borut Razem <borut.razem AT siol.net>
5538
5539         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
5540
5541 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5542
5543         * src/SDCCcse.c (cseBBlock): fixed bug #527779
5544         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
5545         ordering is immaterial.
5546         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
5547
5548 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5549
5550         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
5551         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
5552         (SIGSEV) of bug #840381
5553         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
5554         unlink new file before rename if new and old filenames are the same)
5555
5556 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5557
5558         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
5559         uninitialized variables) for the mcs51. Set environment variable
5560         SDCC_GENRAMCLEAR to test.
5561         xdata initialization slightly shorter
5562
5563 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5564
5565         * src/SDCCsymt.h,
5566         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
5567         #838241 & 780691 (basicly the same bug)
5568         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
5569         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
5570
5571 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
5572
5573         * src/SDCCmain.c (linkEdit): "fix" #834252
5574
5575 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5576
5577         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
5578         * src/SDCCast.h,
5579         * src/SDCC.y: fixed bug #819403
5580
5581 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5582
5583         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
5584         the reentrant attribute.
5585         * src/hc08/gen.c (genPackBits): added missing stack readjustment
5586         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
5587         simulation
5588         * src/SDCCast.c (decorateType): fixed bug with storage class not being
5589         updated during pointer dereference; f.e. ~(((char *)1)*) was being
5590         erroneously reduced to a literal.
5591         * src/hc08/ralloc.c (packRegisters, rematStr),
5592         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
5593         some cases
5594
5595 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5596
5597         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
5598         * doc/sdccman.lyx: changed from 'article' to 'book'
5599         * doc/Makefile: readded test_suite_spec and cdbfileformat
5600
5601 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
5602
5603         * device/include/stdlib.h: include malloc.h to comply with ANSI
5604         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
5605
5606 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5607
5608         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
5609         * doc/clean.mk: also remove *.out files
5610         * doc/sdccman.lyx: some additions, larger top/bottom margins
5611
5612 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5613
5614         * src/SDCC.y: fixed bug #837365
5615         * support/regression/tests/bitopcse.c
5616         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
5617         a symbol (might be valop instead)
5618         * device/lib/Makefile.in: added errno.c to HC08SOURCES
5619         * device/lib/clean.mk: added hc08 to the cleaning list
5620
5621 2003-11-04  Borut Razem <borut.razem AT siol.net>
5622
5623         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
5624           made 2003-11-04
5625         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5626           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
5627           malloc is declared in standard stdlib.h
5628
5629 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5630
5631         * device/lib/hc08/Makefile: need to clean .rel not .o files
5632         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
5633
5634 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5635
5636         * src/port.h,
5637         * src/hc08/main.c,
5638         * src/mcs51/main.c,
5639         * src/ds390/main.c,
5640         * src/z80/main.c,
5641         * src/avr/main.c,
5642         * src/pic/main.c,
5643         * src/pic16/main.c,
5644         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
5645         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
5646         tests (which uses the port's oclsExpense function)
5647         * src/SDCC.y,
5648         * src/SDCCast.c,
5649         * src/SDCCicode.c,
5650         * src/hc08/gen.c,
5651         * src/ds390/gen.c,
5652         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
5653
5654 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5655
5656         * src/SDCCcse.c (ifxOptimize),
5657         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
5658         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
5659         deleting the IFX iCode.
5660         * src/hc08/ralloc.c: reduced unneeded slocs
5661         * src/hc08/gen.c: fixed bug in asmopToBoolean
5662
5663 2003-11-04  Borut Razem <borut.razem AT siol.net>
5664
5665         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
5666           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5667           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
5668           transferred to configure
5669
5670 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
5671
5672         Use headers defined in the C[++] standards:
5673         * sim/ucsim/gui.src/serio.src/fileio.cc
5674         * sim/ucsim/gui.src/serio.src/frontend.cc
5675         * sim/ucsim/gui.src/serio.src/main.cc
5676         * sim/ucsim/gui.src/serio.src/posix_signal.cc
5677         * support/Util/NewAlloc.c
5678         * as/hc08/lklibr.c
5679         * as/mcs51/lklibr.c
5680         * as/z80/aslist.c
5681         * as/z80/assym.c
5682
5683 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5684
5685         * Added MSVC projects for hc08 assembler and linker:
5686         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
5687         /as/hc08/link_hc08.dsp
5688
5689 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
5690
5691         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
5692
5693 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
5694
5695         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
5696
5697 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5698
5699         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
5700
5701 2003-10-31  Borut Razem <borut.razem AT siol.net>
5702
5703         * support/cpp2/cpplib.h,
5704           support/cpp2/cpplib.c,
5705           support/cpp2/cpplex.c,
5706           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
5707           to switch _asm block preprocessing on / off. Default is
5708           #pragma preproc_asm +
5709
5710 2003-10-31  Borut Razem <borut.razem AT siol.net>
5711
5712         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
5713           when outputting comment blocks (when executed with -C option) and
5714           _asm (SDCPP specific) blocks
5715
5716 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5717
5718         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
5719
5720 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
5721
5722         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
5723
5724 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
5725
5726         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
5727         * src/SDCCast.c (decorateType): fixed bug #832664
5728
5729 2003-10-31  Borut Razem <borut.razem AT siol.net>
5730
5731         * support\cpp2\cpplex.c: fixed for SDCPP:
5732           comments(when executed with -C option) and _asm blocks
5733           were included even if they where in skipped #if block.
5734           Applied solution from GCC cpp 3.3.2
5735
5736 2003-10-31  Borut Razem <borut.razem AT siol.net>
5737
5738         * src/SDCC.lex: sdcc now understands both formats:
5739           '# <line_number> <file_name>' and
5740           '#line <line_number> <file_name>'
5741         * support/cpp2/cppmain.c: sdcpp now generates the standard
5742           '# <line_number> <file_name>' instead of former
5743           '#line <line_number> <file_name>'
5744
5745 2003-10-30  Borut Razem <borut.razem AT siol.net>
5746
5747         * support/cpp2/cpphash.h,
5748         * support/cpp2/cpplib.h
5749         * support/cpp2/cpplex.c,
5750         * support/cpp2/cppmain.c,
5751         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
5752
5753 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5754
5755         Fixed a number of problems revealed by bug #827883.
5756         * src/SDCCloop.c (loopInvariants): Spill location of the
5757         result operand should be recomputed if extracted from
5758         a loop. Also, don't extract assignments of an iTemp
5759         from a literal.
5760         * src/SDCCast.c (isConformingBody): loop reversal should
5761         not occur if the control variable is involved with a
5762         relational operator.
5763
5764 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5765
5766         * .version: bumped to 2.3.6 to reflect the big improvements
5767         made by Erik and Klaus. Thanks!
5768
5769 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
5770
5771         Replaced the livrange code.
5772         * src/SDCClrange.c: added new LR code
5773         * src/SDCCloop.c,
5774         * src/SDCCBBlock.h: removed remainig parts from old LR code
5775         * src/ds390/ralloc.c,
5776         * src/ds390/gen.c: minor fixes to make it work with new code
5777
5778 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5779
5780         * as/hc08/asm.h,
5781         * as/hc08/lkrloc.c,
5782         * src/hc08/gen.c,
5783         * src/hc08/ralloc.c: Fix various warnings related to the hc08
5784         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
5785         (tweaked fix for bug #818696)
5786
5787 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5788
5789         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
5790
5791 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5792
5793         * src/SDCCmain.c,
5794         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
5795         * src/mcs51/gen.c (gencjneshort),
5796         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
5797         more efficient (per Scott Bronson's suggestion)
5798
5799 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5800
5801         Extended the semantics of the critical keyword to include
5802         individual statements. See RFE #827755 and #799831
5803         * src/SDCC.y
5804         * src/SDCCicode.c
5805         * src/SDCCopt.c
5806         * src/SDCCast.c
5807         * support/Util/SDCCerr.c
5808         * support/Util/SDCCerr.h
5809         * src/mcs51/gen.c
5810         * src/ds390/gen.c
5811         * src/hc08/gen.c
5812
5813 2003-10-19  Borut Razem <borut.razem AT siol.net>
5814
5815         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
5816
5817 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5818
5819         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
5820         Fixed bug #818696
5821         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
5822         and predecrement operand is displayed
5823
5824 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5825
5826         * src/SDCCval.c (valMinus): fixed bug #826041
5827
5828 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5829
5830         Some hc08 related updates that I missed earlier
5831         * sim/ucsim/stypes.h
5832         * support/regression/ports/hc08/spec.mk
5833
5834 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5835
5836         New target "hc08" for the Motorola 68hc08 family of micros
5837
5838         * configure
5839         * configure.in
5840         * Makefile
5841         * src/hc08/*
5842         * src/SDCCmain.c
5843         * src/port.h
5844         * sim/ucsim/hc08.src/*
5845         * sim/ucsim/configure.in
5846         * src/ucsim/configure
5847         * sim/ucsim/packages_in.mk
5848         * as/hc08/*
5849         * as/Makefile
5850         * device/include/mc68hc908qy.h
5851         * device/lib/hc08/*
5852         * device/lib/Makefile.in
5853         * support/regression/ports/hc08/*
5854         * support/regression/Makefile
5855
5856 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5857
5858         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
5859         regression test
5860         * src/ds390/gen.c (genCast): fixed bug #821957
5861
5862 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5863
5864         * device/lib/logf.c: "fixed" overlay bug
5865         * support/regression/ports/host/spec.mk: added m library
5866         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
5867         * support/regression/tests/float_trans: added (for Eric)
5868
5869 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
5870
5871         * src/mcs51/gen.c (genCpl): fixed bug
5872         http://sf.net/mailarchive/message.php?msg_id=6263915
5873
5874 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
5875
5876         * src/SDCCast.c (decorateType): added extended constant folding
5877         * src/SDCCsymt.c (computeType): cleanup
5878         * src/SDCCval.c (valShift): minor optimization
5879         * support/regression/tests/ast_constant_folding.c: added
5880
5881 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5882
5883         * src/SDCCmain.c: removed some unintended changes
5884
5885 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5886
5887         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
5888         * src/z80/gen.c: fixed part of bug #817589
5889         * src/SDCCsymt.c (checkFunction): fixed bug #817895
5890
5891 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
5892
5893         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
5894         * src/SDCCcflow.c
5895         * src/SDCCcse.c
5896         * src/SDCCdflow.c
5897         * src/SDCClabel.c
5898         * src/SDCClrange.c
5899         * src/SDCCmem.c
5900         * src/SDCCopt.c
5901         * src/SDCCpeeph.c
5902         * src/SDCCset.c
5903         * src/avr/ralloc.c
5904         * src/ds390/ralloc.c
5905         * src/izt/ralloc.c
5906         * src/mcs51/ralloc.c
5907         * src/pic/ralloc.c
5908         * src/pic16/ralloc.c
5909         * src/xa51/ralloc.c
5910         * src/z80/ralloc.c
5911         * src/z80/gen.c: removed unused label "release:"
5912
5913 2003-10-06  Borut Razem <borut.razem AT siol.net>
5914
5915         * src/SDCC.lex: removed definition of unused variables
5916           save_optimize and save_options
5917
5918 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5919
5920         * clean.mk: removed '=' in "-maxdepth=1"
5921         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
5922         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
5923
5924 2003-10-06  Borut Razem <borut.razem AT siol.net>
5925
5926         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
5927           my_unput() replaced by unput()
5928
5929 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
5930
5931         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
5932         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
5933         type-punned pointer will break strict-aliasing rules"
5934         Old LR behaviour is again default; Klaus' LR can be choosen by
5935         defining the environment variable LRKLAUS
5936         * src/SDCCBBlock.h
5937         * src/SDCCloop.c
5938         * src/SDCClrange.c
5939         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
5940         * clean.mk: fixed removal of files in bin/CVS/
5941         * device/lib/clean.mk: fixed removal of directories small and large
5942         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
5943         * src/SDCCicode.c,
5944         * src/SDCCval.c: removed superflous test for pedantic
5945
5946 2003-10-05  Borut Razem <borut.razem AT siol.net>
5947
5948         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
5949           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
5950           message "unmatched #pragma SAVE and #pragma RESTORE"
5951
5952 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5953
5954         * doc/sdccman.lyx: various additions and updates (interrupts, inline
5955           assembly, critical functions, atomic, nojtbound)
5956
5957 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
5958
5959         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
5960         * src/SDCCBBlock.h
5961         * src/SDCCloop.c
5962         * src/SDCCloop.h
5963         * src/SDCClrange.c
5964
5965 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5966
5967         * src/z80/gen.h,
5968         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5969         * src/mcs51/gen.h
5970         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5971         * src/ds390/gen.h
5972         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5973         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
5974         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
5975
5976 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5977
5978         * src/z80/gen.c (genRet): fixed bug #524753
5979         * src/z80/gen.c (genCast): fixed internal error on cast from
5980         pointer to long
5981         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
5982         fix for bug #477835 to the z80
5983         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
5984         for tracking iCodes in the peephole optimizer for z80
5985
5986 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5987
5988         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
5989         the other part of bug #814548
5990         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
5991
5992 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
5993
5994         * src/SDCCcse.c: fixed part of bug #814548
5995
5996 2003-09-28  Borut Razem <borut.razem AT siol.net>
5997
5998         * src/asm.c: rewrite of printILine() to use temporary file instead
5999           a pipe
6000         * src/xa51/main.c: commented out declaration of int rewinds
6001
6002 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6003
6004         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6005
6006 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6007
6008         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6009         * src/asm.c (printILine): Fixed bug #811015
6010
6011 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6012
6013         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6014         freeing.
6015
6016 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6017
6018         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6019         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6020         to correctly handle general case of AOP_PAIRPTR
6021         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6022
6023 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6024
6025         * src/mcs51/ralloc.c (fillGaps),
6026         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6027         register positioning bug)
6028
6029 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6030
6031         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6032
6033 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6034
6035         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6036         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6037         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6038         (ralloc doesn't intentionally do this now, but perhaps later)
6039         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6040         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6041         register positioning bugs (Fixed bug #762602 and #795325)
6042         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6043         (Fixed bug #808779)
6044         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6045         lines that --i-code-in-asm generates
6046
6047 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6048
6049         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6050         trying to fclose a FILE* that was already closed.
6051
6052 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6053
6054         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6055         of const struct should be treated as if const themselves)
6056
6057 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6058
6059         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6060
6061 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6062
6063         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6064         Unix (/n) and DOS (/r/n) line terminations.
6065
6066 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6067
6068         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6069         bug #613775
6070
6071 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6072
6073         * src/mcs51/gen.c (genFunction, genEndFunction),
6074         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6075         and restore of EA so that stack offsets to parameters are
6076         correct when using both critical and reentrant/stack-auto.
6077         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6078         size (can be triggered in error if sloc is shared between
6079         different sized objects)
6080         * device/include/float.h: fixed macros to explicitly use
6081         unsigned long where needed
6082
6083 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
6084
6085         Feature req. 799831: added code to allow nesting of critical functions
6086         * src/mcs51/gen.c (genFunction, genEndFunction)
6087         * src/ds390/gen.c (genFunction, genEndFunction)
6088
6089 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6090
6091         * src/SDCCsymt.c (sclsFromPtr),
6092         * src/SDCCsymt.h,
6093         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6094         support for standard C idiom of memory mapped variables; for
6095         example, *((xdata int*)0x1234) = 1 is now internally equivalent
6096         to xdata int at 0x1234 tempvar = 1.
6097         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6098         provided by Akiya ISHIDA
6099
6100 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
6101
6102         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6103         * src/SDCCval.c (constVal): added reduction from int to char
6104         * src/SDCCval.c (valMult, valDiv): fixed sign handling
6105         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6106         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6107         to ignore the sign
6108         * support/regression/tests/shifts.c: fixed
6109
6110 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6111
6112         * src/z80/gen.c (genXor): Fixed bug #805445
6113
6114 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6115
6116         Fixed bug #621531 (const & volatile confusion in the type chain).
6117         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6118         refer to the const or volatile state of the pointer itself.
6119
6120         * src/SDCCast.c
6121         * src/SDCCglue.c
6122         * src/SDCCicode.c
6123         * src/SDCCsymt.c
6124         * src/SDCCval.c
6125         * src/SDCC.y
6126         * src/SDCCsymt.h
6127         * src/pic/gen.c
6128         * src/pic/ralloc.c
6129         * src/pic16/gen.c
6130         * src/pic16/ralloc.c
6131         * support/regression/tests/const.c
6132
6133 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6134
6135         When checking for duplicated modules, use absolute paths
6136         instead of relative paths.  Files changed:
6137
6138         * as/mcs51/lklib.c
6139         * link/z80/lklib.c
6140
6141 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6142
6143         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6144
6145 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6146
6147         * device/include/string.h: added size_t typedef, changed
6148         prototypes to use size_t, eliminated separate reentrant and
6149         non-reentrant declarations, added _memmove declaration
6150         * device/lib/_memcpy.c: changed to use size_t instead of int,
6151         changed /4 to >>2 to avoid division library call
6152         * device/lib/_memcmp.c,
6153         * device/lib/_memset.c,
6154         * device/lib/_strncat.c,
6155         * device/lib/_strncpy.c,
6156         * device/lib/_strncmp.c: changed to use size_t instead of int
6157         * device/lib/_memmove.c: new file (fixed bug #772294)
6158         * device/lib/Makefile.in: added _memmove.c
6159         * device/lib/z80/asm_strings.s: fixed bug #772290
6160         * support/regression/tests/bitfields.c: attempt to fix host assertion
6161         failure on amd64-unknown-linux2.2
6162
6163 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6164
6165         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6166         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6167         * as/z80/asmain.c (main): fixed bug #801766
6168
6169 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
6170
6171         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6172         compilers
6173
6174 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6175
6176         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6177         reported in bug #800609
6178
6179 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
6180
6181         * Top header beautifications in src/pic16 directory:
6182           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6183           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6184           pcoderegs.h, ralloc.c, ralloc.h
6185         * main.c: added top header and GPL license notice
6186         * pcode.c: fixed the if-conditional warning
6187
6188 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
6189
6190         * device/lib/_mullong.c: replaced int by short for gcc
6191
6192 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6193
6194         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6195         and JUMPTABLE iCodes properly now (worked by accident before)
6196         * src/mcs51/gen.c (leftRightUseAcc),
6197         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6198         iCode properly now. Use getSize instead of nRegs since a & b
6199         aren't part of the nRegs tally.
6200
6201 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
6202
6203         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6204         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6205           before instructions that use the _STATUS register
6206
6207 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
6208
6209         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6210         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6211         fetching of the pointer
6212         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6213         copied from genNearPointerSet()
6214         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6215         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6216         If they pop r0/r1 they must be called in the opposite order than aopOp().
6217         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6218         (resp. --stack-auto), prepared for --xstack
6219
6220 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6221
6222         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6223
6224 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
6225
6226         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6227         these ports have their own __sdcc_external_start()
6228
6229 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
6230
6231         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6232         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
6233         type for bits was changed. It resulted in bit variables becoming
6234         global, which is not permitted in PIC 14 assembly output.
6235
6236 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6237
6238         * doc/sdccman.lyx: various additions and updates. Rearranged sections
6239
6240 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6241
6242         Z80 and MCS51 linkers complaint if a public symbol is defined
6243         in more than one library module:
6244
6245         * as/mcs51/lklib.c
6246         * link/z80/lklib.c
6247         * as/mcs51/Makefile.in
6248
6249 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6250
6251         A few small changes that speed up the peephole optimizer.
6252
6253         * src/SDCCpeeph.c
6254
6255 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6256
6257         Try to make the peephole optimizer smarter by maintaining
6258         an association between the assembly source code and the
6259         iCodes that originated them. Put this information to use
6260         with a new peephole rule condition "notVolatile" so that
6261         the rules can be aggressive yet still safe.
6262
6263         * src/SDCCpeeph.c
6264         * src/SDCCpeeph.h
6265         * src/mcs51/gen.c
6266         * src/mcs51/peeph.def
6267
6268 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6269
6270         Fixed bug #741761
6271
6272         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
6273         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
6274         if the left or right operand symbols have the accuse flag set.
6275
6276 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277
6278         Changed the type of the result of the ! (NOT) operator to char;
6279         previously it returned the same type as the source. This allows
6280         us to eliminate all the genFloatNot functions (all of its target
6281         implementations were very buggy) since !float can use the same
6282         code as !long now.
6283
6284         * src/SDCCicode.c (ast2iCode): ! returns char
6285         * src/mcs51/gen.c (genNot, genNotFloat),
6286         * src/ds390/gen.c (genNot, genNotFloat),
6287         * src/z80/gen.c (genNot, genNotFloat),
6288         * src/pic/gen.c (genNot, genNotFloat),
6289         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
6290
6291 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
6292
6293         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6294         1. Interrupt would not compile properly. Ensure PCLATH register is saved
6295            during interrupts. Ensure WSAVE is located at a shared bank address.
6296         2. Fixed page selection in some places
6297         3. Fixed BTFSS/C to where necessary use registers directly and not simply
6298            the registers name strings.
6299         4. Fixed "signed / unsigned compare" compiler warnings.
6300         5. The PIC port manages its own allocation of the general purpose
6301            registers, but makes no attempt to reuse them. As a result when
6302            compiling it soon runs out of general purpose registers. Some
6303            additional code was added to the files pcode.c and device.c to walk
6304            through the function call tree and rename the registers so that they
6305            get reused.
6306
6307         * src/pic/device.c
6308         * src/pic/gen.c
6309         * src/pic/glue.c
6310         * src/pic/pcode.c
6311         * src/pic/pcode.h
6312         * src/pic/ralloc.c
6313         * src/pic/ralloc.h
6314         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
6315         genPlus() & genMinus() when the result is the same as left or right
6316
6317 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6318
6319         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
6320
6321 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6322
6323         Made bitfield a distinct type from bit so that bitfields
6324         convert as per ANSI C and bits retain their traditional
6325         boolean style behaviour. Implemented bitfield support in
6326         the z80 port.
6327
6328         * src/SDCCsymt.h,
6329         * src/SDCCsymt.c,
6330         * src/SDCCast.c,
6331         * src/cdbFile.c,
6332         * src/mcs51/gen.c,
6333         * src/ds390/gen.c: bit v bitfield split
6334         * src/z80/gen.c: New support for bitfields
6335         * support/regression/tests/bitfields.c: reenabled z80,
6336         added more tests
6337
6338 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6339
6340         Rules 246.x, 247.x relate to bitfields, the others speed up
6341         access to xdata mapped I/O devices.
6342
6343         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
6344
6345 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6346
6347         Cleaned up genPackBits and genUnpackBits and added two helper
6348         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
6349         for literal assignments in genPackBits (thanks to Frieder for
6350         reminding me).
6351
6352         * src/mcs51/gen.c
6353         * src/ds390/gen.c
6354
6355 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6356
6357         Fixed bug #748310 (pointer to function type mishandled when the
6358         function name is omitted). Also fixed a SIGSEGV when a function
6359         attribute (reentrant, etc) is used on a non-function or on a
6360         function but misplaced before the parameter list.
6361
6362         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
6363         bug #748310
6364         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
6365         * support/Util/SDCCerr.h,
6366         * support/Util/SDCCerr.c: Added func attr misuse error msg
6367
6368 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6369
6370         Fixed bug #787649 by anonymous
6371         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
6372         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
6373
6374 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6375
6376         Fixed numerous bitfield problems.
6377
6378         * src/SDCC.y: More bitfield related error checking
6379         * src/SDCCsymt.h,
6380         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
6381         * support/Util/SDCCerr.h,
6382         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
6383         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6384         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6385         * support/regression/tests/bitfields.c: tests added
6386
6387 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6388
6389         Made the constant following the "interrupt" keyword optional. If
6390         omitted, the function will not automatically be given an entry
6391         in the interrupt vector table (similar to #pragma NOIV, but
6392         less syntacticly kludgy). The interrupt number is also now
6393         range checked. Also fixed a bug in the high order bit example
6394         in the manual.
6395
6396         * src/SDCC.y
6397         * src/SDCCmem.c
6398         * src/SDCCglue.c
6399         * src/SDCCsymt.h
6400         * support/Util/SDCCerr.c
6401         * support/Util/SDCCerr.h
6402         * doc/sdccman.lyx
6403
6404 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6405
6406         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
6407         * src/SDCCicode.c (operandOperation): rewritten some ops
6408         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
6409         * src/SDCCsymt.c (computeType): literals are handled the same way as any
6410         other type
6411         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
6412         be re-activated by defining REDUCE_LITERALS)
6413         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
6414         unsigned, but are signed by default
6415         * src/SDCCval.c (constVal): rearranged
6416         * src/SDCCval.c (valMod): preliminary fix
6417         * src/SDCCval.c (valCastLiteral): use TYPE_* types
6418         * support/regression/literalop.c: added, work in progress
6419
6420 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6421
6422         Generate warnings for useless declarations like "char data;"
6423         that don't do what new users expect.
6424
6425         * src/SDCC.y
6426         * support/Util/SDCCerr.h
6427         * support/Util/SDCCerr.c
6428
6429 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
6430
6431         * src/SDCCval.c (valMult): fix overflow detection of negative int
6432
6433 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6434
6435         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
6436
6437         Changes to support big endian targets:
6438
6439         * src/ports.h
6440         * src/SDCCglue.c
6441         * src/avr/main.c
6442         * src/ds390/main.c
6443         * src/izt/i186.c
6444         * src/mcs51/main.c
6445         * src/pic/main.c
6446         * src/pic16/main.c
6447         * src/xa51/main.c
6448         * src/z80/main.c
6449
6450 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
6451
6452         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
6453         * device/lib/time.c: fixed warning "integer overflow in expression"
6454
6455 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
6456
6457         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
6458         * src/SDCCval.c (constVal): changed default to signed; hex and octal
6459         constants are unsigned; added recognition of "u" flag for unsigned
6460         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
6461         * src/SDCCval.c (valDiv, valMod): fixed signdness
6462         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
6463         signedness of modulo, left and right shift
6464         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
6465         * support/Util/SDCCerr.h: added warning W_INT_OVL
6466         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
6467         * src/SDCCast.c (ast_print): improved output of constants
6468
6469 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6470
6471         Fixed some warnings when building with MSVC:
6472
6473         * as\mcs51\asdata.c
6474         * as\z80\asdata.c
6475         * as\mcs51\asm.h
6476         * as\z80\asm.h
6477         * link\z80\aslink.h
6478         * link\z80\lkdata.c
6479         * link\z80\lkeval.c
6480         * link\z80\lkgb.c
6481         * link\z80\lkihx.c
6482         * link\z80\lks19.c
6483         * link\z80\lksym.c
6484         * support\cpp2\cpplib.c
6485         * src\ds390\gen.c
6486         * src\mcs51\gen.c
6487
6488 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
6489
6490         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
6491
6492 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6493
6494         * support\librarian\clean.mk: Do not remove Makefile.
6495         * support\librarian\Makefile: added.
6496
6497 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6498
6499         Added librarian to MSVC build:
6500         * all.dsp
6501         * sdcc.dsw
6502         * support\librarian\librarian.dsp
6503
6504         'configure' not needed for librarian, removed:
6505         * support\librarian\configure
6506         * support\librarian\configure.in
6507         * support\librarian\config_in.h
6508         * support\librarian\Makefile.in
6509
6510         Hopefully these ones built the librarian and the rest of sdcc properly:
6511         * Makefile
6512         * Makefile.common.in
6513
6514         Messed up 'configure', so revert to previous version:
6515         * configure
6516         * configure.in
6517
6518 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
6519
6520         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
6521         there, while the mantissa of a double is "only" 53 bits wide.
6522
6523 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6524
6525         Adding sdcclib to the build.  MSVC project coming soon.
6526         Files added/changed:
6527
6528         * support\librarian\clean.mk
6529         * support\librarian\configure
6530         * support\librarian\configure.in
6531         * support\librarian\config_in.h
6532         * support\librarian\Makefile.bcc
6533         * support\librarian\Makefile.in
6534         * support\librarian\sdcclib.c
6535         * Makefile.bcc
6536         * Makefile
6537         * Makefile.common.in
6538         * configure
6539         * configure.in
6540
6541 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6542
6543         Linker now complaints if linked modules have conflicting options, for
6544         example, one compiled using --model-large and another one compiled with
6545         --model-small.  The following files were modified:
6546
6547         * as\mcs51\asdata.c
6548         * as\mcs51\aslink.h
6549         * as\mcs51\asm.h
6550         * as\mcs51\asmain.c
6551         * as\mcs51\asout.c
6552         * as\mcs51\i51pst.c
6553         * as\mcs51\lkdata.c
6554         * as\mcs51\lklibr.c
6555         * as\mcs51\lkmain.c
6556         * as\z80\asdata.c
6557         * as\z80\asm.h
6558         * as\z80\asmain.c
6559         * as\z80\asout.c
6560         * as\z80\z80pst.c
6561         * link\z80\aslink.h
6562         * link\z80\lkdata.c
6563         * link\z80\lklibr.c
6564         * link\z80\lkmain.c
6565         * src\SDCCglue.c
6566
6567 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6568
6569         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
6570         as/mcs51/lklibr.c: Generate a warning when a library is not found.
6571
6572 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
6573
6574         * src/z80/mappings.i: fix _mul[us][int,long] entries
6575
6576 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6577
6578         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
6579
6580 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6581
6582         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
6583         * support/regression/tests/bitopcse.c: added
6584         fixed warning:
6585         * src/avr/gen.c:
6586         * src/pic/gen.c:
6587         * src/pic16/gen.c:
6588         * src/z80/gen.c:
6589         * src/xa51/gen.c:
6590
6591 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6592
6593         added support for new library format to z80, gbz80 linkers:
6594         *link/z80/aslink.h
6595         *link/z80/lklex.c
6596         *link/z80/lklib.c
6597         *link/z80/lklist.c
6598
6599 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6600
6601         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
6602         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
6603
6604 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
6605
6606         added DUMMY_READ_VOLATILE:
6607         * src/SDCC.y:
6608         * src/avr/gen.c:
6609         * src/xa51/gen.c:
6610         * src/z80/gen.c:
6611         * src/pic/gen.c:
6612         * src/pic16/gen.c:
6613         * src/mcs51/gen.c:
6614         * src/ds390/gen.c:
6615         * src/SDCCcse.c (algebraicOpts): many improvements
6616         * src/SDCCcse.h: removed algebraicOpts()
6617         * src/SDCCicode.c (picDummyRead): added
6618
6619 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6620
6621         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
6622         "Insufficient space in data memory".
6623
6624 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6625
6626         * src/mcs51/gen.c: fixed bug #771358
6627         * src/z80/gen.c: fixed bug #759087
6628
6629 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
6630
6631         * src/pic16/glue.c: minor cleanup by Vangelis
6632
6633 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6634
6635         * device/include/regc515c.h: fixed #758477
6636         * device/lib/_gptrget.c: saving some cycles in generic pointer get
6637         * device/lib/_gptrput.c: saved a few bytes
6638         * my tab spacing is 8, yours too?)
6639         * device/lib/_ser.c: process RX bytes earlier than TX bytes
6640         * device/lib/serial.c: process RX bytes earlier than TX bytes
6641         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
6642
6643 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6644
6645         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
6646
6647 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6648
6649     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
6650
6651 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
6652
6653         * device/lib/Makefile.in: bad fix, reverted to 1.43
6654
6655 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
6656
6657         * device/lib/Makefile.in: added missing z80 object files
6658
6659 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
6660
6661         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
6662         pic16 progress by Vangelis:
6663         * src/SDCCglobl.h:
6664         * src/SDCCmain.c:
6665         * src/pic/Makefile:
6666         * src/pic:
6667         * pic/Makefile:
6668         * pic16/device.c:
6669         * pic16/device.h:
6670         * pic16/gen.c:
6671         * pic16/gen.h:
6672         * pic16/genarith.c:
6673         * pic16/glue.c:
6674         * pic16/main.c:
6675         * pic16/pcode.c:
6676         * pic16/pcode.h:
6677         * pic16/pcodepeep.c:
6678         * pic16/peeph.def:
6679
6680 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6681
6682     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
6683
6684 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6685
6686     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
6687     added gbz80 build to MSVC project.
6688     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
6689     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
6690     from 8051 stuff and setup so it links using a .lnk file.
6691
6692 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6693
6694     * support/librarian/sdcclib.c: sdcc librarian.
6695     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
6696     with sdcclib.
6697
6698 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6699
6700     * as/mcs51/lkmain.c: properly handle extensions in function afile.
6701
6702 2003-07-02  Borut Razem <borut.razem AT siol.net>
6703
6704         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
6705         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
6706         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
6707         src/xa51/main.c, src/z80/main.c:
6708         virtualization of glue() function: each port has it's own glue function,
6709         which is accessed by do_glue function pointer in PORT.general structure
6710
6711 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
6712
6713         * DS800C400 fun, improved ROM interface and tinibios.
6714
6715 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
6716
6717         * More support for DS80C400. Now includes beginning of interface to ROM.
6718
6719 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
6720
6721         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
6722
6723 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6724
6725         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
6726
6727 2003-06-19  Borut Razem <borut.razem AT siol.net>
6728
6729         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
6730
6731 2003-06-19  Borut Razem <borut.razem AT siol.net>
6732
6733         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
6734         fixed Z80 port - crt0.o: cannot open.
6735
6736 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
6737
6738         * support/Util/MySystem.c (merge_command): revert bad fix
6739
6740 2003-06-18  Borut Razem <borut.razem AT siol.net>
6741
6742         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
6743
6744 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6745
6746         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6747         option --use-stdout sends errors to stdout instead of stderr.
6748
6749 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
6750
6751         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
6752
6753 2003-06-15  Borut Razem <borut.razem AT siol.net>
6754
6755         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
6756         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
6757         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
6758         fixed width array of pointers replaced with sets;
6759         multiple include and lib paths ared transferred to preprocessor and linker
6760         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
6761         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
6762         fixed width array of pointers
6763         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
6764         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
6765         fixupPath(), getPathDifference()
6766         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
6767         fixed width array of pointers
6768
6769 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
6770
6771         * src/pic16/ralloc.c: fix warnings
6772         * src/pic16/pcode.c: fix warning
6773
6774 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
6775
6776          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
6777         know all the details, but essentially this set of changes enable
6778         the pic16 port to generate movff instructions and generate assembler
6779         directives,
6780         * src/SDCCmain.c:
6781         * src/pic16/gen.c:
6782         * src/pic16/glue.c:
6783         * src/pic16/pcode.c:
6784         * src/pic16/device.c:
6785         * src/pic16/main.c:
6786         * src/pic16/pcode.h:
6787         * src/pic16/pcoderegs.c:
6788         * src/pic16/ralloc.c:
6789         * src/pic16/ralloc.h:
6790
6791 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6792
6793         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6794         added option --vc, so sdcc errors and warnings are compatible with
6795         Microsoft Visual Studio.
6796
6797 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6798
6799         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
6800           device/lib/libfloat.lib: added atof function.
6801
6802 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
6803
6804         * doc/sdccman.lyx: updated to Lyx 1.3
6805         * doc/cdbfileformat.lyx: updated to Lyx 1.3
6806         * doc/test_suite_spec.lyx: updated to Lyx 1.3
6807         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
6808
6809 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
6810
6811         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
6812
6813 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6814
6815         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
6816           additions to the "related tools/documentation" section
6817
6818 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
6819
6820         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
6821
6822 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
6823
6824         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
6825         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
6826
6827 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
6828
6829         * doc/sdccman.lyx: fix double dash and other minor things
6830         * doc/Makefile: fix double dash
6831
6832 2003-05-28  Karl Bongers(patches from Martin Helmling)
6833         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
6834           condition and ignore commands.
6835
6836 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6837
6838         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
6839           is in parts still quite out of date, I did changes as far as I felt makes sense
6840           for a non-native english speaker.
6841           Please feel free to add to the manual or to correct my changes.
6842         * doc/Makefile: undid touching the date of intermediate tex files.
6843
6844 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6845
6846         * doc/sdccman.lyx: Manual has an index now
6847
6848 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
6849
6850         Finalize muluint/mulsint and mululong/mulslong merging:
6851         * device/lib/_mulint.c
6852         * device/lib/_mullong.c
6853         * device/lib/gbz80/mul.s
6854         * device/lib/gbz80/stubs.s
6855         * device/lib/z80/mul.s
6856         * device/lib/z80/stubs.s
6857         * src/SDCCsymt.c (initCSupport)
6858
6859 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6860
6861         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
6862         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
6863           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
6864           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
6865           instead of /Zm500.
6866
6867 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6868
6869         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
6870           the regression tests I'm not brave enough to enable 245.b, 245.c
6871         * doc/sdccman.lyx: added latex preamble for hyperref package.
6872           Using pdflatex this will give you a hyperlinked pdf file with
6873           bookmarks. (prepend '%' before /usepackage if this breaks something)
6874
6875 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6876
6877          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
6878
6879 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
6880
6881         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
6882
6883 2003-05-21    <johan AT balder>
6884
6885         * src/SDCCglue.c (printIval): fixed bug #739934
6886
6887 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
6888
6889         Applied patch from bug 737905 (renamed yylineo to mylineno):
6890         * src/altlex.c
6891         * src/SDCCast.c
6892         * src/SDCglobl.h
6893         * src/SDCC.lex
6894         * src/SDCCsymt.c
6895         * src/SDCCval.c
6896         * src/pic16/pcode.c: Cleaned warnings
6897         * src/pic16/pcodeflow.c: Cleaned warnings
6898         * src/pic16/pcoderegs.c: Cleaned warnings
6899
6900 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
6901
6902         * src/pic16/pcode.c: Cleaned warnings
6903         * src/pic16/pcodepeep.c: Cleaned warnings
6904         * src/pic16/ralloc.c: Cleaned warnings
6905
6906 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
6907
6908         * doc/sdccman.lyx: fixed bug 739745
6909         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
6910
6911 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
6912
6913         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
6914         it can be defined with CFLAGS when running configure
6915         * src/SDCCmain.c: fixed compiling + linking with object files
6916
6917 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
6918
6919         * configure.in: configure for pic16 port,
6920             added --disable-pic16-port
6921         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
6922         * src/SDCCmain.c: linkOptions is changed to set *,
6923             added if/endif conditional macros to remove options help
6924             messages from optionsTable when a port is not configured, added
6925             support for the PIc16 port in the ports table, when executing
6926             the compiler with no port specified on command line, a default
6927             port is selected with the new macro DEFAULT_PORT which is
6928             defined in port.h, in setDefaultOptions() linkOptions is removed
6929             from initialization assignment, since now it is a set,
6930             parseCmdLine uses setParseWithComma for linkOptions, in
6931             linkEdit() linkOptions are accessed with new function indexSet()
6932             which returns the i'th item of a set variable. See SDCCset.c, in
6933             linkEdit() when calling buildCmdLine(), added linkOptions as
6934             last argument. Now users can pass arguments to gplink via the
6935             -Wl option, main() uses pic16glue() to glue up pic16 programs
6936         * src/SDCCpeeph.c: various changes to support pic16
6937         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
6938             return the i'th item of the set
6939         * src/SDCCset.h: added function prototype for indexSet()
6940         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
6941         * src/clean.mk: added pic16 in CLEANALLPORTS variable
6942         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
6943             added macro DEFAULT_PORT
6944         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
6945         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
6946             generated
6947         * src/pic16/glue.c: commented out some error producing lines
6948         * src/pic16/main.c: __config directives are commented out to stop
6949             gpasm complaining and test the linkage with gplink, _linkCmd and
6950             _asmCmd changed to be more gplink and gpasm friendly
6951         * src/pic16/peeph.def: peep rule 3 is commented out, since it
6952             produced an error when parsed, peep rule 12 is added to utilize
6953             movff, but it is commented out since the pCode does not support
6954             yet a command with 2 address arguments
6955
6956 2003-05-18    <johan AT balder>
6957
6958         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6959         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6960 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
6961
6962         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
6963   Added feature to script commands from file.
6964
6965 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
6966
6967         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
6968         * src/SDCCutil.c: include ctype.h for win32
6969
6970 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
6971
6972         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
6973
6974 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
6975
6976         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
6977   Fixed so you can set breakpoints prior to run, run does not stop
6978   on entry now.  Add tbreak.  Other enhancements and fixes for use
6979   with ddd.
6980
6981 2003-05-12  Borut Razem <borut.razem AT siol.net>
6982
6983         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
6984
6985 2003-05-11  Borut Razem <borut.razem AT siol.net>
6986
6987         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
6988         the path of bin directory, so that PATH is the only env. variable, which has to be set
6989         in case of standard installation.
6990         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
6991         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
6992         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
6993
6994 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
6995
6996         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
6997         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
6998         temp files are in the port dir; clean the gen/test directory when
6999         generating new test.c
7000         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7001         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7002         * support/regression/tests/zeropad.c: added
7003
7004 2003-05-09    <johan AT balder>
7005
7006         * src/SDCCglue.c: fixed bug #597940
7007
7008 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7009
7010         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7011   cache sfr, optimize next,step, fix off by one sourceline,
7012   support ddd list function.
7013         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7014
7015 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7016
7017         * support/regression/HTMLgen.py: added compare_s2f()
7018         * support/regression/Makefile: redo 1.27
7019         * support/regression/generate-cases.py: redo 1.5
7020
7021 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7022
7023         * support/regression/tests/float.c: workaround 33 bit hex constant
7024         * support/regression/tests/simplefloat.c: fix division for host
7025
7026 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7027
7028         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7029         that tame's the PIC's over-aggressive optimizer.
7030
7031 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7032
7033          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7034          support for MSVC.
7035
7036 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7037
7038         Initial support for DS80C400. "Hello world" runs on TINIm400
7039         (with polled I/O).
7040
7041 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7042
7043          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7044          * Some notes on ddd usage added in debugger/README
7045          Martin Helmling adding more features and fixes for ddd GUI debugger.
7046          Code added for nexti, stepi, up, down, and other adjustments.
7047
7048 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7049
7050         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7051         * src/pic/peeph.def Added two rules to optimize carry manipulation
7052         * src/pic/* removed debug printfs
7053
7054 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7055
7056         * debugger/mcs51/cmd.c: added header newalloc.h
7057
7058 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7059
7060         * as/Makefile: new EXEEXT
7061         * as/z80/Makefile: remove trailing slash of BUILDIR
7062         * as/z80/clean.mk: new EXEEXT
7063         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7064         * support/cpp2/Makefile.in: new EXEEXT
7065         * src/pic/glue.c (pic14emitRegularMap): fixed warning
7066
7067 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
7068
7069         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7070         EXEEXT was introduced to fix all related problems with targets
7071         "clean", "install" and "uninstall"; a couple of further flaws
7072         especially with "clean" have been fixed too
7073         * as/mcs51/Makefile.in
7074         * as/mcs51/clean.mk
7075         * as/z80/Makefile
7076         * Makefile
7077         * clean.mk
7078         * debugger/mcs51/Makefile.in
7079         * debugger/mcs51/clean.mk
7080         * link/z80/Makefile
7081         * link/z80/Makefile.in
7082         * link/z80/clean.mk
7083         * link/Makefile
7084         * packihx/Makefile.in
7085         * packihx/clean.mk
7086         * sim/ucsim/Makefile
7087         * sim/ucsim/clean.mk
7088         * sim/ucsim/avr.src/Makefile.in
7089         * sim/ucsim/avr.src/clean.mk
7090         * sim/ucsim/s51.src/Makefile.in
7091         * sim/ucsim/s51.src/clean.mk
7092         * sim/ucsim/xa.src/Makefile.in
7093         * sim/ucsim/xa.src/clean.mk
7094         * sim/ucsim/z80.src/Makefile.in
7095         * sim/ucsim/z80.src/clean.mk
7096         * sim/ucsim/main_in.mk
7097         * sim/ucsim/packages_in.mk
7098         * sim/ucsim/gui.src/Makefile.in
7099         * sim/ucsim/gui.src/serio.src/Makefile.in
7100         * sim/ucsim/gui.src/serio.src/clean.mk
7101         * src/Makefile.in
7102         * src/clean.mk
7103         * support/cpp2/Makefile.in
7104         * support/cpp2/clean.mk
7105         * support/makebin/Makefile
7106         * support/makebin/clean.mk
7107         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7108         * doc/sdccman.lyx: --program-suffix no longer needed
7109
7110 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
7111
7112          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7113          Martin Helmling added support for ddd GUI debugger.
7114          Code added to display assembly, set variables, and other commands
7115          to interface to ddd.
7116
7117 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
7118
7119         * as/Makefile: fix target clean
7120         * as/clean.mk: fix target clean
7121         * as/z80/clean.mk: fix target clean
7122
7123 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
7124
7125         * Makefile.common.in: added  AT EXEEXT AT
7126         * configure.in: removed all mingw32 stuff
7127         * configure: rebuilt from configure.in
7128         * doc/sdccman.lyx: updated section "installation"
7129         * support/scripts/sdcc_mingw32: adapted to configure
7130         * support/scripts/sdcc_cygwin_mingw32: added
7131
7132 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
7133
7134         * src/pic Added object file support for the PIC port
7135         * src/pic Applied patch from Craig Franklin (this started the object file support)
7136         * src/regression Updated the PIC regression tests for object files
7137
7138 2003-04-20  Borut Razem <borut.razem AT siol.net>
7139
7140         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7141           lklex.c: In function `getfid':
7142           lklex.c:203: warning: array subscript has type `char'
7143         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7144           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7145         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7146           stack handling macros
7147
7148 2003-04-19  Borut Razem <borut.razem AT siol.net>
7149
7150         * "handling space characters in file path" task:
7151         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7152         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7153         * support/Util/MySystem.h: make it self-sufficient
7154         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7155           src/z80/main.c, sdcc/as/mcs51/lklex.c:
7156           handling space characters in file path
7157         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7158           (it will be used by assemblers, which have their own includes, e.g. gpasm)
7159         * support/Util/MySystem.c: handling space characters in executable's path
7160
7161 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
7162
7163         * as/z80/Makefile: fix permanent rebuild of z80
7164         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7165         * support/regression/tests/bitfields.c: added Johan's bitfields.c
7166
7167 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
7168
7169         * src/SDCCopt.c: add special case optimization to replace modulo by
7170           a power of two with a bitwise AND.
7171
7172 2003-04-18    <johan AT balder>
7173
7174         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7175
7176 2003-04-17    <johan AT balder>
7177
7178         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7179         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7180
7181 2003-04-13  Borut Razem <borut.razem AT siol.net>
7182
7183         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7184         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7185           fixed mingw problem in adl_NORMALIZE_PATH
7186
7187 2003-04-12  Borut Razem <borut.razem AT siol.net>
7188
7189         * fixed "#pragma SAVE/RESTORE can not be nested":
7190         * src/SDCC.lex: reworked pragma handling functions
7191         * sdcc/src/SDCCglobl.h: reworked stack handling macros
7192         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7193
7194 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7195
7196         * src/SDCCutil.c (pathEquivalent): defined but not used
7197         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7198         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7199         * configure: rebuilt from configure.in
7200         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7201         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7202         * device/include/Makefile.in: replace sdcc_datadir
7203         * device/lib/Makefile.in: replace sdcc_datadir
7204         * Makefile.common.in: add LDFLAGS from configure
7205         * packihx/Makefile.in: use LDFLAGS
7206         * src/Makefile.in: use LDFLAGS
7207         * support/cpp2/Makefile.in: add LDFLAGS from configure
7208         * support/makebin/Makefile: use LDFLAGS
7209         * .version: bumped version number to 2.3.5
7210
7211 2003-04-12  Borut Razem <borut.razem AT siol.net>
7212
7213         * completed "different paths" task:
7214         * src/SDCCmacro.c: fixed bug in handling quotes
7215         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7216         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7217
7218 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7219
7220         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7221
7222 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7223
7224         * ds390/gen.c ds390/peeph.def: fix bug 706781
7225
7226 2003-04-11  Borut Razem <borut.razem AT siol.net>
7227
7228         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7229
7230 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
7231
7232         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
7233         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
7234          set - this bit used to not be set...).
7235         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
7236           bad code in PIC Port
7237         * src/regression/and2.c added to test bug 609268
7238         * src/regression/Makefile added and2.c to regression test
7239
7240
7241 2003-04-08    <johan AT CP255758-A>
7242
7243         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
7244         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
7245         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
7246
7247 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
7248
7249         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
7250         fix bug #487815
7251         * support/cpp2/Makefile.in: fix bug #487815
7252         * configure: rebuilt from configure.in
7253         * Makefile.common.in: docdir changed, new path suffixes
7254         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7255         * sdcc_vc_in.h: reflect changes from sdccconf.h
7256         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
7257         * src/SDCCutil.h: remove BINDIR hack
7258         * doc/sdccman.lyx: update new path hierarchy
7259
7260 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7261
7262         * src/SDCCpeeph.c: added okToRemoveSLOC test
7263
7264 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7265
7266         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
7267
7268 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7269
7270         * src/SDCCpeeph.c: added labelIsReturnOnly test
7271         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
7272
7273 2003-04-05    <johan AT balder>
7274
7275         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
7276         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
7277         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
7278         * src/SDCCast.c: fixed a warning
7279         * src/SDCCast.h: fixed a warning
7280         * src/SDCCicode.c (operandFromAst): fixed a warning
7281
7282 2003-04-04    <johan AT balder>
7283
7284         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
7285         * src/SDCCast.c (decorateType): fixed bug #715076
7286         * src/SDCC.y: fixed bug #702907
7287
7288 2003-04-03    <johan AT balder>
7289
7290         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
7291         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
7292         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
7293         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
7294         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
7295
7296 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
7297
7298         * _decdptr.c: fix return values
7299         * _gptrget.c: fix return values
7300         * _gptrgetc.c: fix return values
7301         * _gptrput.c: fix return values
7302         * _mulint.c: fix return values
7303         * as/z80/Makefile: fix 'make -j' problem
7304
7305 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
7306
7307         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
7308         * configure.in: big cleanup, updated to autoconf 2.5x
7309         * configure: rebuilt from configure.in
7310         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7311         * sdcc_vc_in.h: reflect changes from sdccconf.h
7312         * doc/Makefile: fixed a flaw in "make install"
7313
7314 2003-04-02    <johan AT balder>
7315
7316         * src/ds390/gen.c (genCmp): no comments
7317         * src/mcs51/gen.c (genCmp): no comments
7318         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
7319         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
7320
7321 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
7322
7323         * support/regression/generate-cases.py: place generated file in given sub directory
7324         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
7325         * support/regression/Makefile: improvements for 'make -j';
7326         side effect: it's simpler and faster now
7327
7328 2003-03-31  Borut Razem <borut.razem AT siol.net>
7329
7330         * src/z80/main.c: link-{port} and as-{port} defined without path
7331         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
7332
7333 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
7334
7335         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
7336
7337 2003-03-30  Borut Razem <borut.razem AT siol.net>
7338
7339         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
7340           changed type of list parameter to set
7341         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
7342         * src/port.h: changed type of do_assemble() parameter to set
7343         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
7344           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
7345           definition of "cppoutfilename" macro with NULL value in preProcess()
7346         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
7347         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
7348         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
7349           replaced with set *binPathSet
7350         * shash_add() deallocates the item, if allready exsists, before adding the new one
7351         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
7352
7353 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
7354
7355         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
7356           a nested for loop bug in the PIC port
7357         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
7358           for loops
7359
7360 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
7361
7362         * support/Util/dbuf.h: remove C++ stuff to make it portable
7363
7364 2003-03-28  Borut Razem <borut.razem AT siol.net>
7365
7366         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
7367           literal strings in stringLiteral()
7368         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
7369         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
7370           to the project
7371
7372 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
7373
7374         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
7375
7376 2003-03-26    <johan AT balder>
7377
7378         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
7379         * src/ds390/gen.c (saveRegisters): catched symbol abuse
7380         * src/SDCCast.c (decorateType): fixed " -v < 3"
7381
7382 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
7383
7384         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
7385         Added Lenny Story's debug infrastructure changes:
7386         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
7387         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
7388         * src/cdbFile.c: added
7389         * src/SDCCdebug.c: added
7390         * src/SDCCdebug.h: added
7391         * src/SDCCast.c (createFunction)
7392         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
7393         * src/SDCCmain.c (parseCmdLine, main)
7394         * src/SDCCmem.c (redoStackOffsets)
7395         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
7396         * src/SDCCsymt.h
7397         * src/common.h
7398         * src/avr/gen.c (genAVRCode)
7399         * src/ds390/gen.c (gen390Code)
7400         * src/mcs51/gen.c (gen51Code)
7401         * src/pic/gen.c (genpic14Code)
7402         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
7403         * src/xa51/gen.c (genXA51Code)
7404         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
7405
7406 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7407
7408         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
7409         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
7410
7411 2003-03-22    <johan AT balder>
7412
7413         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
7414
7415 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
7416
7417         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
7418         * doc/cdbfileformat.lyx: added, written by Lenny Story
7419         * doc/Makefile: added cdbfileformat.lyx
7420         * doc/clean.mk: added cdbfileformat.lyx
7421
7422 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
7423
7424         * src/mcs51/peeph.def: fix bug #705773
7425
7426 2003-03-20    <johan AT balder>
7427
7428         An sfr/sbit can have an "at #" AND an initializer
7429         * src/SDCCsymt.c (checkSClass):
7430         * src/SDCCmem.c (allocGlobal):
7431         * src/SDCCmem.c (allocLocal):
7432         * src/SDCCast.c (createBlock):
7433
7434 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
7435
7436         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
7437
7438 2003-03-16    <johan AT balder>
7439
7440         Undid the hackup of const and volatile, the problem is much bigger
7441         * src/SDCC.y:1.65
7442         * src/SDCCast.c:1.171
7443         * src/SDCCglue.c:1.138
7444         * src/SDCCicode.c:1.146
7445         * src/SDCCsymt.c:1.150
7446         * src/SDCCval.c:1.65
7447
7448 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
7449
7450         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
7451         * src/ds390/gen.c (genAddrOf): fixed bug #704087
7452
7453 2003-03-13    <johan AT balder>
7454
7455         Hackup const and volatile modifiers in type chains a bit:
7456         * src/SDCC.y:1.63
7457         * src/SDCCast.c:1.169
7458         * src/SDCCglue.c:1.136
7459         * src/SDCCicode.c:1.143
7460         * src/SDCCsymt.c1.146
7461         * src/SDCCsymt.h1.59
7462         * src/SDCCval.c:1.63
7463
7464 2003-03-12    <johan AT balder>
7465
7466         * src/SDCCBBlock.h: more LRH debugging junk
7467         * src/SDCCcflow.h: more LRH debugging junk
7468         * src/SDCCloop.c: more LRH debugging junk
7469         * src/SDCC.y (struct_declaration): fixed bug #697590
7470         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
7471         * src/ds390/gen.c (aopForRemat): fixed bug #700031
7472         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
7473
7474 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7475         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
7476         test function names must now match exactly).
7477         * src/SDCCcse.c: added special case in findCheaperOp to allow
7478         extending a short integer. Makes less awful code for bug 700121 test case.
7479
7480 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7481
7482         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
7483         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
7484
7485 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7486
7487         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
7488         actually called (operandsNotEqual() was called for all
7489         operandsNotEqualX tests).
7490
7491 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7492
7493         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
7494         with shorter literals. Fixes bug 700121.
7495
7496 2003-03-11    <johan AT balder>
7497
7498         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
7499
7500 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
7501
7502         * src/SDCCloop.c (mergeRegions): an evil beast is dead
7503         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
7504
7505 2003-03-10  Borut Razem <borut.razem AT siol.net>
7506
7507         * src/SDCCmain.c: pipe preprocessor's output
7508         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7509         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7510         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7511         which closes all pipes in pipeSet set
7512         * src/SDCCset.c: free deleted item in function deleteSetItem()
7513         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7514         moved from z80 to src subproject
7515         * .version: increased version number to 2.3.4
7516
7517 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
7518
7519         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
7520         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
7521         * support/regression/ports/xa51/spec.mk: fix typo
7522
7523 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
7524
7525         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
7526
7527 2003-03-09  Borut Razem <borut.razem AT siol.net>
7528
7529         * src/SDCCmain.c: pipe preprocessor's output
7530         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7531         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7532         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7533         which closes all pipes in pipeSet set
7534         * src/SDCCset.c: free deleted item in function deleteSetItem()
7535         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7536         moved from z80 to src subproject
7537
7538 2003-03-09  Borut Razem <borut.razem AT siol.net>
7539
7540         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
7541         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
7542         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
7543         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
7544         * src/SDCCglobl.h: unification of WIN32 native definitions
7545
7546 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7547
7548         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
7549
7550 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7551
7552         * src/configure.in:   check for endianess (even while cross-compiling)
7553         * src/configure:      check for endianess (even while cross-compiling)
7554         * src/configure_in.h: check for endianess (even while cross-compiling)
7555         * src/avr/gen.c:        remove old endianess stuff
7556         * src/mcs51/gen.c:      remove old endianess stuff
7557         * src/ds390/gen.c:      remove old endianess stuff
7558         * src/pic/gen.c:        remove old endianess stuff
7559         * src/pic/genarith.c:   remove old endianess stuff
7560         * src/pic/glue.c:       fix endianess check
7561         * src/pic16/gen.c:      remove old endianess stuff
7562         * src/pic16/genarith.c: remove old endianess stuff
7563         * src/pic16/glue.c:     fix endianess check
7564         * src/xa51/gen.c:       remove old endianess stuff
7565         * src/z80/gen.c:        fix endianess check
7566         * src/SDCCglue.c:       fix endianess check
7567         * src/ds390/peeph.def: fix bug 700036
7568
7569 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7570
7571         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
7572         * src/configure: find appropriate data-types on host for SDCC's int and long
7573         * src/configure.in: find appropriate data-types on host for SDCC's int and long
7574         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
7575         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
7576
7577 2003-03-07    <johan AT balder>
7578
7579         Just a big NOOP:
7580                 some minor cleanups before the big shot
7581                 OP_DEFS and OP_USES now use Kevin's protection
7582                 new option --nolabelopt
7583
7584         * src/SDCCBBlock.c:
7585         * src/SDCCast.c,:
7586         * src/SDCCcflow.c:
7587         * src/SDCCcse.c:
7588         * src/SDCCicode.c:
7589         * src/SDCCicode.h:
7590         * src/SDCClabel.c:
7591         * src/SDCCloop.c:
7592         * src/SDCCmain.c:
7593         * src/ds390/ralloc.c:
7594         * src/mcs51/ralloc.c:
7595         * src/pic/ralloc.c:
7596         * src/xa51/ralloc.c:
7597         * src/z80/ralloc.c:
7598
7599 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
7600
7601         * src/pic/pcode.c (get_op): fix 64 bit warnings
7602         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
7603         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
7604         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
7605         * support/regression/tests/malloc.c: fix 64 bit warnings
7606
7607 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
7608
7609         * src/mcs51/gen.c (genMinus): fixed bug 696436
7610
7611 2003-03-02  Borut Razem <borut.razem AT siol.net>
7612
7613         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
7614
7615 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
7616
7617         * configure.in: test for mkstemp
7618         * sdccconf_in.h: add HAVE_MKSTEMP
7619
7620 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
7621
7622         * device/include/ctype.h: removed warning while using --stack-auto
7623         * device/include/malloc.h: removed warning while using --stack-auto
7624         * device/include/string.h: removed warning while using --stack-auto
7625
7626 2003-02-23  Borut Razem <borut.razem AT siol.net>
7627
7628         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
7629         because NDEBUG is defined (see man assert)
7630         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
7631
7632 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7633
7634         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
7635         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
7636
7637 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7638
7639         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
7640         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
7641
7642 2003-02-18    <johan AT balder>
7643
7644         * as/mcs51/asmain.c (asmbl): module can start with a digit
7645         * as/z80/asmain.c (asmbl): module can start with a digit
7646
7647 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
7648
7649         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
7650         * src/asm.c: fix pipe() for Mingw32
7651
7652 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
7653
7654         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
7655         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
7656         make -V work again; --c1mode reads now from stdin
7657         * doc/sdccman.lyx: added --c1mode
7658         * support/Util/SDCCerr.c: new messages for c1 mode
7659         * support/Util/SDCCerr.h: new messages for c1 mode
7660         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
7661
7662 2003-02-15    <johan AT balder>
7663
7664         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
7665
7666 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
7667
7668         * doc/sdccman.lyx: Environment variables, -o and other minor things
7669
7670 2003-02-14    <johan AT balder>
7671
7672         * src/xa51/main.c: before anyone really tries to use it :)
7673
7674         * Install doc's in share/sdcc/doc
7675         * removed some obsolete files
7676         * Do a proper make distclean and uninstall
7677         M Makefile.common.in
7678         R sdccbuild.sh
7679         M as/Makefile
7680         M device/include/Makefile.in
7681         M device/lib/Makefile.in
7682         M doc/sdccman.lyx
7683         M link/Makefile
7684         M sim/ucsim/doc/Makefile.in
7685         M src/clean.mk
7686         R src/avr/peeph.rul
7687         R src/xa51/peeph.rul
7688         M support/cpp2/Makefile.in
7689         M support/makebin/Makefile
7690
7691
7692 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
7693
7694         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
7695
7696 2003-02-10  Borut Razem <borut.razem AT siol.net>
7697
7698         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
7699         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
7700         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
7701         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
7702         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
7703         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
7704         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
7705         src/z80/Makefile.bcc: Borland Makefile cleanup
7706         * as/z80/Makefile.bcc: Added Borland Makefile
7707         * support/cpp2/borland.h: Removed
7708
7709 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
7710
7711         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
7712         * src/SDCC.lex: new pragma NOIV
7713         * src/SDCCglobl.h: new pragma NOIV
7714         * src/SDCCmem.c: new pragma NOIV
7715
7716 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7717
7718         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
7719
7720 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7721
7722         * src/SDCCmain.c: signal handling is switched off by --debug
7723         * doc/Makefile: small fix for install; use clean.mk again
7724         * doc/clean.mk: clean *.pdf and *.html too
7725
7726 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
7727
7728         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
7729         * device/lib/printfl.c: fix a ds390 bug by making it portable
7730         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
7731         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
7732         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
7733         * debugger/mcs51/cmd.c: converted multi-line string literals
7734         * sim/ucsim/globals.cc: converted multi-line string literals
7735         * src/SDCCmain.c: introduced signal handler to remove temp files
7736         * doc/Makefile: small tweaks, implement clean
7737         * doc: removed generated files
7738
7739 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7740
7741         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
7742         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
7743         Address Record is not correctly generated for DS390."
7744
7745 2003-02-02  Borut Razem <borut.razem AT siol.net>
7746
7747         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
7748         * as/mcs51/asm.h: fixed compilation with Borland C
7749         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
7750         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
7751         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
7752         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
7753         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
7754         src/z80/Makefile.bcc: delete $(LIB) only if exist
7755         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
7756
7757 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
7758
7759         * device/include/malloc.h: introduced NULL
7760         * device/include/string.h: introduced NULL
7761         * device/include/stdlib.h: introduced NULL
7762         * device/lib/_memcpy.c: removed NULL
7763         * device/lib/_strcat.c: removed NULL
7764         * device/lib/_strchr.c: removed NULL
7765         * device/lib/_strcmp.c: removed NULL
7766         * device/lib/_strcpy.c: removed NULL
7767         * device/lib/_strcspn.c: removed NULL
7768         * device/lib/_strlen.c: removed NULL
7769         * device/lib/_strncat.c: removed NULL
7770         * device/lib/_strncmp.c: removed NULL
7771         * device/lib/_strncpy.c: removed NULL
7772         * device/lib/_strpbrk.c: removed NULL
7773         * device/lib/_strrchr.c: removed NULL
7774         * device/lib/_strspn.c: removed NULL
7775         * device/lib/_strstr.c: removed NULL
7776         * device/lib/_strtok.c: removed NULL
7777         * device/lib/malloc.c: removed NULL, include own header
7778
7779 2003-02-02    <johan AT balder>
7780
7781         * 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
7782         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
7783         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
7784         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
7785         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
7786         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
7787
7788 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7789
7790         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
7791         area 'DATA'"
7792
7793 2003-02-01    <johan AT balder>
7794
7795         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
7796
7797 2003-01-31    <johan AT CP255758-A>
7798
7799         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
7800
7801 2003-01-30    <johan AT balder>
7802
7803         * src/SDCCBBlock.c: automatic bug detection
7804         * src/SDCCicode.c: automatic bug detection
7805
7806 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7807
7808         * src/SDCCglobl.h:   now --xram-size 0 works
7809         * src/SDCCmain.c:    now --xram-size 0 works
7810
7811 2003-01-29    <johan AT balder>
7812
7813         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
7814
7815 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7816
7817         * as/mcs51/aslink.h: Added options --xram-size and --code-size
7818         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
7819         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
7820         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
7821         * src/SDCCglobl.h:   Added options --xram-size and --code-size
7822         * src/SDCCmain.c:    Added options --xram-size and --code-size
7823
7824 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
7825
7826         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
7827         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
7828
7829 2003-01-27    <johan AT balder>
7830
7831         * src/SDCC.y: fixed bug #613764
7832
7833 2003-01-26    <johan AT balder>
7834
7835         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
7836         * src/SDCCsymt.h: fixed bug #673374
7837         * src/SDCCglue.c: fixed bug #661910
7838         * src/SDCCast.c: fixed bug #458099 and 673374
7839
7840 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
7841
7842         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
7843         * as/mcs51/strcmpi.h: added
7844         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
7845         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
7846         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
7847         * as/mcs51/assym.c: strcmpi -> as_strcmpi
7848         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
7849         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
7850         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
7851         * as/mcs51/Makefile.aslink: new module strcmpi
7852         * as/mcs51/Makefile.asx8051: new module strcmpi
7853         * as/mcs51/Makefil.bcc: new module strcmpi
7854         * as/mcs51/Makefile.in: new module strcmpi
7855         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
7856
7857 2003-01-26    <johan AT balder>
7858
7859         * src/SDCCglue.c: reverted back to 1.124
7860         * src/SDCCast.c: reverted back to 1.156
7861         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
7862
7863 2003-01-25    <johan AT balder>
7864
7865         * src/SDCCglue.c: A better fix for bug #661910
7866         * src/SDCCast.c: A better fix for bug #661910
7867         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
7868
7869 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
7870
7871         * src/Makefile.in: remove spawn.o
7872         * src/SDCCmain.c: remove spawn.h
7873         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
7874         * src/spawn.c: removed
7875         * src/spawn.h: removed
7876         * support/regression/ports/ds390/spec.mk: link with -r
7877
7878 2003-01-24    <johan AT CP255758-A>
7879
7880         * src/ds390/gen.c (aopOp): fixed bug #667458
7881         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
7882         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
7883         (createIvalCharPtr): an ival doesn't always have a storage class anymore
7884
7885 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
7886
7887         * src/mcs51/peeph.def: better assembler identation by Frieder
7888         * src/mcs51/gen.c: better assembler identation by Frieder
7889
7890 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
7891
7892         * as/z80/string.h: removed for gcc 3.2
7893         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
7894         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
7895
7896 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
7897
7898         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
7899         * src/SDCCpeeph.c (replaceRule): fix bug #663503
7900         * support/regression/Makefile: separate temp files for ports
7901         * support/regression/generate-cases.py: separate temp files for ports
7902         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
7903         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
7904
7905 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
7906
7907         * moved tinitalk to device/examples/ds390
7908
7909 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
7910
7911         * as/mcs51/lkmem.c: rflag is for DS390
7912         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
7913         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
7914                          (linkEdit): move mem- and map-files the same way as ihx-files
7915         * src/z80/main.c (_setDefaultOptions): removed --generic
7916         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
7917         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
7918         * src/pic/glue.c (picglue): --c1mode works again
7919         * src/pic16/glue.c (pic16glue): --c1mode works again
7920         * src/asm.c (printCLine): fix #660034
7921
7922 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
7923
7924         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
7925         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
7926         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
7927         * as/mcs51/lkmem (summary): better fix for sp problem
7928         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
7929         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
7930         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
7931                                               remove --stack-after-data
7932
7933 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
7934
7935         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
7936         * src/SDCCutil.c (join): ugly bug: missing '\0'
7937         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
7938
7939 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
7940
7941         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
7942         * src/port.h: typo
7943         * src/pic/main.c (_asmCmd): gpasm supports -o
7944         * src/z80/main.c: more general macros
7945         * device/lib/Makefile.in: remove intermediate files
7946
7947 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
7948
7949         * .version: Bumped version number to 2.3.3
7950         * src/SDCCBBlock.c: new option -o
7951         * src/SDCCglobl.h: new option -o
7952         * src/SDCCglue.c: new option -o
7953         * src/SDCCmain.c: new option -o
7954         * src/asm.c: new option -o
7955         * src/ds390/main.c: new option -o
7956         * src/pic/glue.c: new option -o
7957         * src/pic/pcode.c: new option -o
7958         * src/pic/ralloc.c: new option -o
7959         * src/pic16/glue.c: new option -o
7960         * src/pic16/pcode.c: new option -o
7961         * src/pic16/ralloc.c: new option -o
7962         * src/z80/main.c: new option -o
7963         * device/lib/Makefile.in: use -o
7964         * support/regression/ports/ds390/spec.mk: use -o
7965         * support/regression/ports/gbz80/spec.mk: use -o
7966         * support/regression/ports/mcs51/spec.mk: use -o
7967         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
7968         * support/regression/ports/z80/spec.mk: use -o
7969         * support/regression/ports/ucz80/spec.mk: use -o
7970         * support/regression/ports/xa51/spec.mk: use -o
7971         * support/regression/fwk/lib/timeout.c: fix usage string
7972
7973 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
7974         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
7975
7976 2003-01-07    <johan AT balder>
7977
7978         * src/SDCCast.c (decorateType): fixed bug #600035
7979
7980 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
7981         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
7982         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
7983         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
7984         * src/pic/pcode.c: outcommented unused variable to remove warnings
7985         * src/pic/ralloc.c: outcommented unused variable to remove warnings
7986
7987 2003-01-06    <karl AT turbobit.com>
7988         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
7989    regression tests.
7990
7991 2003-01-06    <johan AT balder>
7992
7993         * src/SDCCicode.c: fixed array add
7994
7995 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
7996         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
7997         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
7998
7999 2003-01-04    <johan AT balder>
8000
8001         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8002
8003 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8004         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8005
8006 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8007         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8008         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8009
8010 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8011         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8012
8013 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8014         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8015
8016 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8017         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8018
8019 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8020
8021     * in \sdcc\as\mcs51\ changed these files in order to create an
8022     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8023     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8024     following files to include the previous two files: aslink.dsp,
8025     Makefile.aslink, Makefile.bcc, and Makefile.in.
8026
8027     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8028     .adb instead of .cdb
8029
8030 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8031
8032         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8033         value from option --iram-size.
8034
8035 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8036
8037         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8038         dram[] array.
8039
8040 2002-09-18    <wiml AT hhhh.org>
8041
8042         * SDCClrange.h: exposed setFromRange() and setToRange()
8043         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8044           packRegsForAccUse() (bug 542397)
8045         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8046           multiple times and emitting the fetch operations more than once
8047           added aopGetUsesAcc() function to allow binary operators to
8048           fetch their operands in the correct order; made genMinus() emit
8049           compact code for X = LITERAL - Y
8050
8051 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8052         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8053         sprintf() in line 1267.
8054
8055 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8056         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8057         like ports.
8058
8059 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8060         Changes to aslink (All the changes are marked with 'JCF'):
8061
8062         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8063         summary().
8064
8065         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8066         area BSEG.  Also moves, if possible, the DATA area down into the internal
8067         ram so more space is available.
8068
8069         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8070         sflag.
8071
8072         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8073         not bytes.  Function summary() which creates a memory usage summary
8074         file with extension .mem.  Reports of overlaping stack and small stack
8075         size.  If the space for the stack is less than 16 bytes aslink trows a
8076         warning.
8077
8078         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8079         the 8051.  Option 'y' for memory summary output file.
8080
8081         Changes to sdcc (All the changes are marked with 'JCF'):
8082
8083         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8084
8085         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
8086         overlaying area for it (uses RegBankUsed[4]).
8087
8088         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8089         bank zero as used by default.  By default aslink locates the stack
8090         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
8091         the creation of the .mem file.  Delegates the allocation of data area
8092         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
8093         the begining of the stack area to aslink.
8094
8095         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
8096         glue() in SDCCglue.c creates an area for it.
8097
8098 2002-09-03  Borut Razem <borut.razem AT siol.net>
8099         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8100         sdcc/src/pic/glue.c:
8101         introduced atexit() handler for teporay files removal in case of
8102         errors, assertions, ...
8103
8104 2002-08-29  Borut Razem <borut.razem AT siol.net>
8105         * sdcc/support/cpp2/auto-host_vc_in.h:
8106         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8107         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8108         Maybe there is a similar problem with BORLANDC? It should be checked!
8109
8110         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8111         corrected improper use of assert: the assignment to clr variable was done inside the assert.
8112         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8113         was not executed, and the compiler (cl) launched a warning:
8114         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8115
8116 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8117         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8118
8119 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8120         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8121
8122         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8123           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8124           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8125           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8126           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8127           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8128           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8129         - added Release configuration in VS projects
8130         - review of compiler an linker options
8131         - VC .exe files are generated in bin_vc directory, not to interfere
8132           with binaries generated from other projects (cygwin, mingw, bcc ...)
8133
8134         * sdcc/src/yacc.dsp: added
8135
8136         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8137         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8138         and insert the version number definitions from .version
8139
8140         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8141
8142         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8143         added - genarate auto-host.h using auto-host_vc_in.h as template
8144
8145         * sdcc/sdcc_vc.h,
8146         removed from CVS, generated automatically
8147
8148 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
8149         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8150
8151 2002-08-11  Borut Razem <borut.razem AT siol.net>
8152         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8153
8154 2002-08-10  Borut Razem <borut.razem AT siol.net>
8155         * src/SDCCmain.c (main):
8156         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8157         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8158         The consequence was that some temporary files were not removed.
8159
8160         * src/SDCCglue.c:
8161         unification of code in functions tempfilename() and tempfile():
8162         function tempnam() is defined in Visual Studio 6.0 and .NET
8163
8164         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8165
8166         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8167           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8168         - removed compiler command line option /WX: Treats all warnings as errors
8169         - update a list of source files, included into the project
8170
8171         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8172           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8173         changed project type to Generic Project so that can be correcly converted to VS.NET project
8174
8175         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8176
8177         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8178
8179         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8180
8181         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8182         added return 0 statements after assert() to make compiler happy
8183
8184         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8185         added newline in the def file to keep MSC compiler satisfied
8186
8187         * sdcc/src/z80/gen.c:
8188         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8189           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8190         - solved MSC error in function aopDump()
8191
8192         * sdcc_vc.h: define PREFIX as "\\sdcc"
8193
8194 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
8195         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8196
8197 2002-06-22  Scott Dattalo <scott AT dattalo.com>
8198         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8199         - Rewrote the register banking algorithm.
8200         - Added pCode live-range analysis to registers (for now, only non-used and
8201         singly-used registers optimized away)
8202
8203         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8204
8205         * 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.
8206
8207 2002-05-10  Scott Dattalo <scott AT dattalo.com>
8208         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8209
8210 2002-04-22  Michael Hope  <michaelh AT vroom>
8211
8212         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8213
8214         * configure.in (DD_COPT): Added include support required for gbdk.
8215
8216         * .version: Bumped version number just to increase it.
8217
8218         * src/SDCCmain.c: Added -nostdinc to the default options.
8219
8220 2002-04-15  Michael Hope  <michaelh AT vroom>
8221
8222         * device/lib/z80/printf.c (sprintf): Added.
8223
8224         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8225
8226         * src/z80/peeph.def: Added transpose redundent load rule.
8227
8228         * src/z80/main.c: Added force callee saves for jaune.
8229
8230         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
8231
8232         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
8233
8234 2002-03-28  Johan Knol  <johan AT balder>
8235
8236         * src/SDCCval.c: fixed bug #532436
8237
8238 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8239         * /src/port.h:
8240         Added "char *Processor" field to the port structure.
8241
8242         * /src/SDCCmain.c:
8243         Added -p option. Allows port dependent processor to be specified.
8244
8245         * all ports:
8246         Initialized the new field char *Processor field to NULL in all ports
8247
8248         * /src/pic/*:
8249         Compiler generated registers for interrupt context saving
8250         were not getting allocated.
8251
8252 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
8253
8254         * /src/SDCCast.c:
8255         Fixed left shift. Will promote the left side of a left shift
8256         if a) left shifting more than size of operand or b) when assigned
8257         to something size > size of left side
8258
8259 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8260         * src/pic/*
8261         tons of changes. Register allocation has been
8262         rewritten. Added customization for the various PICs. Flow
8263         analysis is restructured. ...
8264
8265         * src/pic/device.h:
8266         Added
8267
8268         * src/pic/device.c:
8269         Added. device.c is a PIC port hack to accomodate variations
8270         in PIC devices.
8271
8272 2002-03-13  Michael Hope  <michaelh AT vroom>
8273
8274         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
8275
8276 2002-03-04  johanknol  <johanknol AT manik>
8277
8278         * /src/SDCCval.c: fixed
8279
8280         const unsigned char arr[][2] = { { 0, 1 } };
8281         t18.c:1: error: Initializer element is not constant
8282
8283 2002-03-04  bela  <bela AT manik>
8284
8285         * /device/include/mcs51reg.h:
8286         ds89c420 register definition update
8287
8288 2002-03-03    <johan AT FRIJA>
8289
8290         * support/Util/SDCCerr.c: did something, but don't no why anymore
8291
8292         * support/regression/tests/bug-524691.c: made it a little less shy
8293
8294         * src/SDCCast.c (decorateType): fixed bug #524697
8295
8296         * src/SDCCast.c: made some lineno improvements
8297
8298         * src/SDCCval.c (getNelements): changed warning to error
8299
8300         * src/SDCCglue.c (printIvalArray): changed warning to error
8301
8302         * src/SDCCicode.c: fixed a warning for mingw
8303
8304         * src/SDCCast.c (decorateType): fixed the << promotion for ops
8305
8306         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
8307
8308 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
8309
8310         * src/ds390/peeph.def:
8311         Added some more peephole rules
8312
8313         * src/ds390/gen.c: Various fixes & enhancements
8314
8315         * src/SDCClrange.c, src/SDCClrange.h:
8316         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
8317
8318         * src/ds390/ralloc.c:
8319         various fixes & enhancements (ds390) specific
8320
8321         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
8322         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
8323         from rallocs.
8324
8325         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
8326
8327 2002-03-02    <johan AT FRIJA>
8328
8329         * src/SDCCast.c (decorateType): fixed bug #524708
8330
8331         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
8332
8333         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
8334
8335 2002-03-01  Michael Hope  <michaelh AT vroom>
8336
8337         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
8338
8339         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
8340
8341 2002-03-01    <johan AT FRIJA>
8342
8343         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
8344
8345         * src/SDCCast.c (decorateType): fixed bug #524209
8346
8347         * src/SDCCval.c (valNot): fixed bug #524195
8348
8349 2002-02-26    <johan AT balder>
8350
8351         * src/xa51/gen.c: fixed a warning
8352
8353         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
8354
8355         * src/SDCCast.c (decorateType): fixed bug #522534
8356
8357 2002-02-23    <johan AT balder>
8358
8359         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
8360
8361 2002-02-22    <johan AT balder>
8362
8363         * src/SDCCast.c: fixed bug #514865
8364
8365         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
8366
8367 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
8368
8369         * sdcc/src/SDCCloop.c:
8370         Previous fix was not good. basic blocks that have "break" or "return" are
8371         not really partof a loop , but live ranges used in these blocks should
8372         be live thru the entire loop, so set partOfLoop but don't add them to
8373         loop region
8374
8375 2002-02-21    <johan AT FRIJA>
8376
8377         * src/SDCCcse.c: fixed bug #514308
8378
8379 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
8380
8381         * src/SDCCloop.c:
8382         Fixed BUG #519583. If a conditional block ended in a return/break
8383         statement inside a loop, it was not being considered part of the loop.
8384
8385         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
8386
8387 2002-02-10  Karl Bongers <karl AT turbobit.com>
8388
8389         * debugger/*:
8390         Fixed up SDCDB debugger somewhat.  Updated debugger/README
8391         with lots of comments and notes.
8392
8393         * device/examples/test2.c:
8394         Fix bug, "red" variable not being initialized(compiler complained).
8395
8396         * device/examples/Makefile, examples/test3.c:
8397         Add Makefile in device/examples folder, compiles test3.c
8398         for use as a multiple module SDCDB test case.
8399
8400         * sim/ucsim/cmd.src/cmdset.cc:
8401         Took out debug printfs in ucsim "next" command.
8402
8403         * sim/ucsim/xa.src:
8404         Karl and Johan start ucsim XA support.  Most dissassembly working,
8405         about 75% emulation done(plenty of work remaining).
8406
8407         * sim/ucsim/z80.src:
8408         Add Z80 support to ucsim, add test-ucz80 regression test,
8409         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
8410         Notice z80 compiler fails on examples/test3.c/crc code.
8411
8412 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
8413
8414         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
8415         Added support for --parms-in-bank1
8416
8417         * src/ds390/peeph.def:
8418         added a few more peephole optimzations
8419
8420         * src/ds390/main.c:
8421         1) added __builtin_inp & __builtin_outp used to read in data of given length
8422            from a memory mapped port
8423         2) added __builtin_memcmp
8424         3) added __builtin_swapw swap bytes of a short
8425
8426         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
8427         1) handle multiple send & receives from register bank1
8428         2) ralloc can now allocate DPTR1 to some liveRanges
8429
8430         * src/SDCCsymt.c, src/SDCCsymt.h:
8431         changes to handle multiple sends & receives
8432
8433         * src/SDCCptropt.h:
8434         added some pointer arithmetic optimization
8435
8436         * src/SDCCptropt.c:
8437         added some pointer arithmetic optimizations but not stable yet so not
8438         called from anywhere (will get this working shortly)
8439
8440         * src/SDCCopt.c: fixed for multiple sends & receives
8441
8442         * src/SDCCmain.c:
8443         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
8444         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
8445            set preprocessor defines (depending on options)
8446
8447         * src/SDCCicode.c, src/SDCCicode.h:
8448         changes made to handle multiple sends & receives
8449
8450         * src/SDCCglobl.h:
8451         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
8452
8453         * src/SDCCcse.c, src/SDCCcse.h:
8454         added function findbackward def (to be used in upcoming optimization)
8455
8456         * src/SDCCcflow.c, src/SDCCcflow.h:
8457         added function returnAtEnd - to determine if a basic block terminates with
8458         a RETURN iCode
8459
8460         * src/SDCCast.c, src/SDCCast.h:
8461         added option parms-in-bank1
8462
8463         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
8464         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
8465         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
8466         adjusted for --parms-in-bank1 option
8467
8468         * device/include/string.h:
8469         donot redefine "reentrant" keyword
8470
8471         * device/include/ds80c390.h: Added some more SFRs
8472
8473 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
8474
8475         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
8476
8477 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
8478
8479         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
8480
8481 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
8482
8483         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
8484
8485 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
8486
8487         * Added --xram-movc option
8488
8489 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
8490
8491         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
8492
8493 2002-01-11  Johan Knol
8494
8495         * Added math lib of Jesus Calvino-Fraga
8496
8497 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
8498
8499         * src/SDCCmain.c (processFile): fix processing of ../../src.c
8500         * support/regression/Makefile: new target test-mcs51-stack-auto
8501         * support/regression/ports/mcs51-stack-auto/spec.mk: added
8502
8503 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8504
8505         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
8506
8507 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8508
8509         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
8510
8511 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
8512
8513         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
8514
8515         * src/SDCCglue.h: add definition for printIvalChar()
8516
8517 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8518
8519         * src/SDCCast.c: fix #498138 by Johan
8520
8521         * src/SDCCglue.c: fix #498138 by Johan
8522
8523 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8524
8525         * support/regression/Makefile: fix clean
8526
8527         * support/regression/ports/ds390/support.c: fix transmission of last character
8528
8529 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
8530
8531         * /sdcc/src/ds390/gen.c:
8532         a) improved computing address of stack variable
8533         b) took out some #if 0 code
8534         c) improved parmBytes adjustment
8535         d) improved genPlusIncr & genMinusIncr
8536         e) genCmp could generate bad code (when left assigned to DPTR)
8537         f) Fixed bug in hasInc
8538
8539         * /sdcc/src/ds390/ralloc.c:
8540         a) packRegsForSupport could mess up live information (Fixed)
8541         b) packRegsDPTRuse could be incorrect for left & right shift
8542
8543         * /sdcc/src/mcs51/ralloc.c:
8544         packRegsForSupport could mess up the live information (Fixed)
8545
8546         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
8547
8548         * /sdcc/src/SDCCast.c:
8549         can reverse a loop even if function call is present as long
8550         as the loop control variable is local & is not passed as parameter
8551
8552 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8553
8554         * /sdcc/ChangeLog: *** empty log message ***
8555
8556         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
8557         More builtin function additions for TININative
8558
8559         * /sdcc/src/ds390/ralloc.c:
8560         Had broken the regression testsuite
8561
8562         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
8563
8564         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
8565         Added funcattr hasStackParms will be set for reentrant functions when there
8566         are paramteres on the stack, this helps in minimizing frame pointer generation
8567         typeFromStr can handle function pointers now
8568
8569         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
8570         *** empty log message ***
8571
8572 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8573
8574         * /src/ds390/gen.c, /src/ds390/main.c:
8575         More builtin function additions for TININative
8576
8577         * /src/ds390/ralloc.c:
8578         Had broken the regression testsuite
8579
8580         * /src/SDCCast.c: Fixed a bug in dumptree
8581
8582         * /src/SDCCsymt.c, /src/SDCCsymt.h:
8583         Added funcattr hasStackParms will be set for reentrant functions when there
8584         are paramteres on the stack, this helps in minimizing frame pointer generation
8585         typeFromStr can handle function pointers now
8586
8587         * /doc/builtins.txt, /doc/TININative.txt:
8588         *** empty log message ***
8589
8590
8591 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8592
8593         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
8594         ALPHA version for -mTININative
8595
8596         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
8597         updated to reflect changes in the port structure
8598
8599         * /src/port.h:
8600         added function do_assemble (similar to do_link) if non-null this function
8601         will be called to do assembly (-mTININative) requires a multi command
8602         assembly
8603         added function genAssemblerEnd will be called to generate assembler Epilogue
8604
8605         * /src/SDCCsymt.c:
8606         added _JavaNative to debug info printing
8607
8608         * /src/SDCCmain.c: added option --tini-libid
8609         added port->do_assemble function (-mTININative) has a multi command assemble
8610
8611         * /src/SDCCglue.c: Disabled "constExpr" check
8612         added port->genAssemblerEnd function
8613
8614         * /src/SDCCglobl.h: Added option --tini-libid value
8615
8616         * /src/SDCCast.h:
8617         tookout optimizeCompare from the header (has no external references)
8618
8619         * /src/SDCCast.c: made one more function "static"
8620
8621 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
8622
8623         * src/z80/mappings.i: Added z80asm support.
8624
8625         * src/z80/main.c: Added z80asm support on --asm=z80asm
8626
8627         * src/z80/gen.c: Fixed asm portability issues.
8628
8629         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
8630
8631         * src/SDCCglue.c (printExterns): Added global/extern split.
8632
8633 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
8634
8635         * support/regression/Makefile: added test for mcs51 model large
8636
8637         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
8638
8639         * support/regression/ports/gbz80/spec.mk: added -mgbz80
8640
8641 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
8642
8643         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
8644
8645 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
8646
8647         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
8648
8649         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
8650
8651 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
8652
8653         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
8654
8655         * support/regression/tests/simplefloat.c: Port to mcs51.
8656
8657 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
8658         * support/regression/tests/bug-485362.c: Added.
8659
8660         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
8661
8662         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
8663
8664         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
8665
8666         * src/z80/gen.c (aopDump): Added a dump function.
8667
8668 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
8669         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
8670
8671         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
8672
8673         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
8674
8675         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
8676
8677         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
8678
8679         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
8680
8681         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
8682
8683         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
8684
8685         * support/regression/ports/ds390/support.c: Use tinibios.
8686
8687         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
8688
8689 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
8690
8691         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
8692         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
8693
8694         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
8695
8696         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
8697
8698 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
8699
8700         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
8701
8702         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
8703         (packRegsForIYUse): Created and optimised.
8704
8705 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8706
8707         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
8708 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
8709
8710         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
8711
8712         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
8713
8714         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
8715
8716 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8717
8718         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
8719
8720         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
8721
8722 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8723
8724         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
8725
8726         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
8727
8728         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
8729
8730 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8731
8732         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
8733         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
8734         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
8735
8736         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
8737
8738         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
8739         (genNotFloat): Added.
8740         (genUminusFloat): Added.
8741
8742         * device/lib/z80/Makefile: Added floating pt stubs.
8743
8744         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
8745
8746         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
8747
8748         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
8749
8750 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8751
8752         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
8753
8754         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
8755
8756         * sdcc/support/regression/Makefile: Add port ds390.
8757
8758         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
8759
8760         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
8761
8762         * sdcc/support/regression/ports/ds390/spec.mk: Added.
8763
8764         * sdcc/support/regression/ports/ds390/support.c: Added.
8765
8766         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
8767
8768         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
8769
8770         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
8771
8772 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8773
8774         * device/include/malloc.h: Added z80 and gbz80 support.
8775
8776         * device/lib/gbz80/heap.s: Added.
8777
8778         * device/lib/z80/heap.s: Added.
8779
8780         * device/lib/malloc.c: Added z80 and gbz80 support.
8781
8782         * support/regression/tests/malloc.c (testMalloc): Added.
8783
8784         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
8785
8786         * support/regression/tests/bug-478094.c: Added.
8787
8788         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
8789
8790 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
8791
8792         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
8793
8794         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
8795
8796         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
8797
8798         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
8799
8800         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
8801
8802 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8803
8804         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
8805
8806 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
8807
8808         * support/regression/tests/bug-477927.c: Added.
8809
8810         * src/z80/peeph.def: Added minor rules.
8811
8812         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
8813
8814         * src/z80/peeph.def: Added jump optimisation modification.
8815
8816 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
8817
8818         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
8819
8820 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
8821
8822         * support/regression/tests/funptrs.c: Added.
8823
8824 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
8825
8826         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
8827
8828 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
8829
8830         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
8831
8832         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
8833
8834         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
8835         (movLeft2ResultLong): Created.
8836
8837         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
8838         (joinPushes): Added.  Joins two char pushes into a word push.
8839
8840 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
8841
8842         * support/cpp2/Makefile.in (install): Added creation of dest dir.
8843
8844         * support/makebin/Makefile (install): Added creation of dest dir.
8845
8846 2001-10-24 Karl Bongers <karl AT turbobit.com>
8847
8848         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
8849
8850 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
8851
8852         * src/z80/ralloc.c: Turned off faulty pack for one use.
8853
8854         * src/z80/peeph-gbz80.def: Removed redundent restart options.
8855
8856         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
8857
8858 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
8859
8860         * support/regression/Makefile: Improved clean
8861
8862         * support/regression/ports/gbz80/spec.mk: Added clean
8863
8864         * support/regression/ports/host/spec.mk: Added clean
8865
8866         * support/regression/ports/z80/spec.mk: Added clean
8867
8868         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
8869
8870         * support/regression/ports/mcs51/timeout.c: little improvements
8871
8872 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
8873
8874         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
8875
8876         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
8877
8878         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
8879
8880 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
8881
8882         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
8883
8884         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
8885
8886 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
8887         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
8888
8889         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
8890
8891         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
8892
8893         * src/mcs51/main.c (_linkCmd): Added bin path to command.
8894
8895         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
8896
8897         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
8898
8899         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
8900
8901         * support/regression/tests/longor.c: Added.
8902
8903 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
8904
8905         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
8906
8907         * as/mcs51/aslink.h: define PATH_MAX
8908
8909         * as/mcs51/asm.h: define PATH_MAX
8910
8911         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
8912
8913         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
8914
8915         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
8916
8917         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
8918
8919         * src/SDCCglobl.h: define PATH_MAX
8920
8921         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
8922
8923         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
8924
8925 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
8926
8927         * src/z80/gen.c (gencjneshort): Fixed
8928
8929         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
8930
8931 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
8932
8933         * support/regression/tests/bug-469671.c: Added.
8934
8935         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
8936
8937 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
8938
8939         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
8940
8941         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
8942
8943 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
8944
8945         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
8946
8947         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
8948
8949         * src/device/lib/_mullong.c : removed hint: nooverlay bug
8950
8951         * src/device/lib/_divuint.c : removed hint: nooverlay bug
8952
8953         * src/device/lib/_divulong.c: removed hint: nooverlay bug
8954
8955         * src/device/lib/_moduint.c : removed hint: nooverlay bug
8956
8957         * src/device/lib/_modulong.c: removed hint: nooverlay bug
8958
8959 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
8960
8961         * 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.
8962
8963         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
8964
8965         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
8966
8967 2001-10-07    <johan AT FRIJA>
8968
8969         * device/lib/gets.c (gets): fixed the return value.
8970
8971 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
8972         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
8973
8974         * 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.
8975
8976         * 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.
8977
8978         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
8979
8980         * src/pic/gen.c: Removed Safe_strdup.
8981
8982         * configure.in: Added option to enable libgc support.
8983
8984         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
8985         (bitVectUnion): Optimised.
8986         (bitVectIntersect): Optimised.
8987         (bitVectBitsInCommon): Optimised.
8988         (bitVectCplAnd): Optimised.
8989
8990         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
8991
8992 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8993
8994         * src/SDCCmain.c: distinguish between assembler debug and plain options
8995
8996         * src/avr/main.c:   remove standard assembler options
8997
8998         * src/ds390/main.c: remove standard assembler options
8999
9000         * src/mcs51/main.c: remove standard assembler options
9001
9002         * src/port.h: removed "PENDING" comment
9003
9004 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9005
9006         * src/device/lib/_mulint.c  : new, with assember functions
9007
9008         * src/device/lib/_mullong.c : new, with assember functions
9009
9010         * src/device/lib/_divuint.c : with assember functions
9011
9012         * src/device/lib/_divsint.c : with assember functions
9013
9014         * src/device/lib/_divulong.c: with assember functions
9015
9016         * src/device/lib/_divslong.c: with assember functions
9017
9018         * src/device/lib/_moduint.c : with assember functions
9019
9020         * src/device/lib/_modsint.c : with assember functions
9021
9022         * src/device/lib/_modulong.c: with assember functions
9023
9024         * src/device/lib/_modslong.c: with assember functions
9025
9026         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9027
9028         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9029
9030         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9031                                       replaced _mululong.c and _mulslong.c by _mullong.c
9032
9033 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9034
9035         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9036
9037 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9038
9039         * src/SDCCglue.c: test, if win32api is available for MINGW
9040
9041 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9042
9043         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9044         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9045         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9046         * support/regression/ports/host/spec.mk: removed GENERIC
9047         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9048         * support/regression/ports/z80/spec.mk: removed GENERIC
9049
9050 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9051
9052         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9053
9054         * support/regression/tests/bug-467035.c: Created.
9055
9056 2001-10-01    <johan AT FRIJA>
9057
9058         * src/SDCC.y: fixed bug #466586 part 1
9059
9060 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9061
9062         * SDCCicode.c: z80 has no generic pointers
9063         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9064
9065 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
9066
9067         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9068
9069 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
9070
9071         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9072
9073         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9074
9075 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
9076
9077         * configure.in: Fixed up so that ucsim is only configured once.
9078
9079         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9080
9081         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9082         (getPathDifference): As above.
9083
9084         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
9085
9086         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9087
9088 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
9089         * .version: Updated to 2.3.1
9090
9091         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9092         Added copyright header.
9093
9094         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9095         (assemble): Added support for macro based assembler commands.
9096         (linkEdit): Added support for macro based linker commands.
9097         (preProcess): Changed the pre-processor to use macros.
9098         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9099         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9100
9101         * device/lib/z80/crt0.s: Added module name for debugging.
9102
9103 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
9104
9105         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9106
9107         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9108
9109         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9110
9111         * src/Makefile.in: Added SDCCmacro and SDCCutil
9112
9113 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
9114
9115         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9116
9117 2001-09-16    <johan AT FRIJA>
9118
9119         * 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.
9120
9121 2001-09-15    <johan AT FRIJA>
9122
9123         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9124         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9125
9126 2001-09-11    <johan AT FRIJA>
9127
9128         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9129
9130 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
9131
9132         * support/regression/tests/bug-460444.c: Added test case.
9133
9134         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9135         (genCast): Added justification for all of the asserts.
9136
9137 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
9138
9139         * support/regression/support.c: _xdata replaced by xdata
9140
9141         * support/regression/spec.mk: removed _generic
9142
9143 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
9144
9145         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9146
9147         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9148         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9149
9150         * src/z80/peeph.def: Added a rule to optimise shift then compare.
9151
9152         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9153
9154         * support/regression/tests/bug-460010.c: Added test case.
9155
9156         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9157
9158 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
9159
9160         * support/regression/Makefile: inter-port-clean adjusted for mcs51
9161
9162         * support/regression/testfwk.c: removed workaround for bug #436344
9163
9164         * support/regression/tests/bp.c: use less memory with mcs51
9165
9166         * support/regression/tests/bug-441448.c: use less memory
9167
9168         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9169
9170         * support/regression/collate-results.py: typo
9171
9172 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
9173
9174         * support/regression/tests/fetchoverlap.c: Added new test case.
9175
9176         * support/regression/tests/bp.c: Added new test case.
9177
9178         * support/regression/tests/bug-448984.c: Added new test case.
9179
9180         * support/regression/tests/pow2shifts.c: Added new test case.
9181
9182         * src/z80/gen.c: Turned off the noise it normally generates for the release.
9183         (genlshTwo): Fixed right shift for count > 8.
9184
9185         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9186
9187 2001-09-08    <johan AT FRIJA>
9188
9189         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9190
9191 2001-09-07    <johan AT FRIJA>
9192
9193         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9194
9195         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9196
9197 2001-09-06    <johan AT FRIJA>
9198
9199         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9200         * bernhard noted me at this: "() equals to (void)" (1.38)
9201
9202 2001-09-05    <johan AT FRIJA>
9203
9204         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9205
9206 2001-09-04    <johan AT FRIJA>
9207
9208         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9209
9210
9211 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
9212
9213         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
9214
9215 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
9216
9217         * link/z80/aslink.h: Fixed path for PATH_MAX
9218
9219 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
9220
9221         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9222
9223         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9224
9225         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9226
9227         * 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.
9228
9229 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
9230
9231         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
9232         (genCmp): Fixed up genCmp for the GB with longs.
9233
9234         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
9235
9236         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
9237
9238         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
9239
9240         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
9241
9242 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
9243
9244         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
9245
9246 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
9247
9248         * 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.
9249
9250         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
9251
9252 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
9253
9254         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
9255
9256         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
9257
9258 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
9259
9260   * sim/ucsim/configure:    little improvement of Cygwin-detection
9261   * sim/ucsim/configure.in: little improvement of Cygwin-detection
9262   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
9263   * support/regression/tests/bug-221100.c: small changes for mcs51
9264   * support/regression/tests/bug-221168.c: small changes for mcs51
9265   * support/regression/tests/bug-227710.c: small changes for mcs51
9266   * support/regression/tests/staticinit.c: small changes for mcs51
9267   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
9268   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9269   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9270
9271 $Revision$