* src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
[fw/sdcc] / ChangeLog
1 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4           (aopPutUsesAcc): added to predict accumulator use,
5           (assignResultValue): save acc if necessary,
6           (genMinusDec): store result if indirectly addressed,
7           (genDivOneByte):  save acc if necessary,
8           (movLeft2Result): bugfix if left already in acc,
9           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
10             attention to accumulator use (esp. pdata),
11           (genReceive): receive pdata correctly
12         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
13         * src/SDCCicode.h: added isOperandInPagedSpace prototype
14
15 2005-10-27 Raphael Neider <rneider AT web.de>
16
17         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
18
19 2005-10-27 Raphael Neider <rneider AT web.de>
20
21         * .version: changed version to 2.5.4
22         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
23         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
24           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
25             arithmetics support routines
26         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
27         * device/lib/Makefile.in: also create installdir for pic
28
29         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
30           pic14 port as well
31         * src/pic/device.c (dump_sfr): rewritten to delegate register
32           placement to the linker (use `extern sym' rather than sym EQU addr),
33           (validAddress): fixed to check last specified address
34         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
35           (popGetLit): truncate literal value to 8 bit,
36           (popGet): moved assert to more appropriate place
37           (popGetExternal): create pCode operand from and mark the according
38             symbol as being `extern'
39           (popGetAddr): added sanity check on immediate's offset, provide
40             GPOINTER tag on demand
41           (aopPut): fixed for immediates,
42           (mov2w_op): move operand's address or contents to WREG (depending on
43             operand type), safer variant of mov2w,
44           (movwf,call_libraryfunc): NEW, handy abbreviations,
45           (get_argument_pcop,get_return_val_pcop,pass_argument,
46           get_returnvalue): interface for accessing function parameters and
47             return values,
48           (assignResultValuei,genRet): use new parameter/return value interface
49           (pic14_getDataSize): back to old version handling generic pointers,
50           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
51             provided implementation and/or fixed old one,
52           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
53             calls, removed legacy 8051 reference code
54           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
55           (loadSignToC): NEW, move the operands sign bit to CARRY,
56           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
57             genRightShiftSigned, accepts negative shift counts,
58           (setup_fsr): load FSR and adjust IRP (indirect memory access),
59           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
60             generic pointers, __data pointers and __code pointers,
61           (genUnpackBits,genPackBits): rewritten to work with generic pointers
62             and signed bitfields, limit bitfields to 8 bit,
63           (genDataPointerGet): fixed number of bytes read,
64           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
65           (genPointerGet,genPointerSet): fixed handling of __code pointers,
66             pointers to constant data are no longer assumed to point to __code
67             space, removed invalid pointer types,
68           (bitpatternFromVal): retrieve the PICs representation of an integer
69             or float literal,
70           (genDataPointerSet): fixed assigning to po_immediate operands,
71           (genGenPointerSet): implemented as library call,
72           (genIfx): fixed incorrect condition,
73           (genAddrOf): limit generic pointers' addresses to 2 bytes,
74             provide GPOINTER tag according to destination's storage class,
75           (genCast): added code to handle casting to generic pointers, added
76             sign-/zero extension of the result
77           (aop_isLitLike,op_isLitLike): fixed handling of immediates
78         * src/pic/gen.h: added macros to access IRP bit in STATUS register
79         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
80           extend the result
81         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
82           address/register resides in the shared banks
83           (emitSymbolToFile): improved to handle global and `pinned' symbols,
84             put all variables into separate sections (have the linker arrange
85             them)
86           (picglue): put init code and interrupt handlers in separate sections
87         * src/pic/main.c: added port specific options table, modified to PORT
88           structure to make GPOINTERs 3 byte, added pic14_options
89           (_pic14_do_link): private linking routine (update paths to libraries,
90             add libsdcc.lib by default)
91         * src/pic/main.h: declare pic14_options
92         * src/pic/pcode.c: fixed instructions i/o relations,
93           (RegCond): reverted to correct version,
94           (newpCodeOpLit): truncate literals to 8 bit,
95           (genericPrint): added debug output,
96           (getRegFromInstruction): fixed for various operand types, simplified
97           (BuildFlow): fixed broken handling of isntructions with labels
98           (LinkFlow): start at last instruction in flow (skip trailing comments),
99             pass the flow on to the next instruction after CALL
100           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
101           (insertPCodeInstruction): fixed inserting after a skip instruction,
102           (DoBankSelect): fixed for labeled instructions
103           (OptimizepBlock): honor --nopeep switch
104           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
105         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
106         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
107           (pCodeOptime2pCodes): allow disabling this optimization via
108             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
109             but is still buggy), started implementation of a dataflow based
110             pCode optimization (CSE + dead code elimination)
111           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
112         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
113           names are independant of the stack location and therefore portable across
114           devices
115
116 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
117
118         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
119           (selectSpil): fixed bug 1337835 by not spilling bit variables
120         * support/regression/tests/bug1337835.c: added test for this bug
121         * src/mcs51/peeph.def: restart after rule 3.c,
122           addded rules 263.x to optimize loading constants
123
124 2005-10-26 Raphael Neider <rneider AT web.de>
125
126         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
127         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
128           (genAssign): emit warning when casting literals to generic pointer
129             type, also applies when taking the address of a fixed variable,
130           (genCast): improved casting to generic pointers
131         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
132           extern variables, added verbose error message
133         * device/include/pic16/{string.h,errno.h}: added #pragma library c
134
135 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
136
137         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
138         carry must be complemented too
139         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
140         could be emitted by genMinus
141         * src/SDCCval.c (constVal): fixed bug 1305065
142
143 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
144
145         * src/SDCCast.c (addCast): added promotion for bit variables
146         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
147         promotion casts + optimisation
148         (optimizeGetWord): fix warning 'i' might be used uninitialized
149         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
150         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
151
152 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
153
154         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
155         all chars are promoted to int; promotion should be handled in SDCCast.c
156
157 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
158
159         * device/lib/_strcmp.c: Fixed bug 1326457
160
161 2005-10-11 Raphael Neider <rneider AT web.de>
162
163         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
164         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
165
166 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
167
168         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
169         * support/regression/tests/sfr16.c: added test for the sfr32 bug
170
171 2005-10-04 Raphael Neider <rneider AT web.de>
172
173         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
174           device/lib/pic16/pics.all: added pic18f1320
175         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
176
177 2005-09-30 Raphael Neider <rneider AT web.de>
178
179         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
180         * src/pic16/devices.inc: NEW, provides device descriptions
181         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
182
183 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
184
185         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
186           GETHBIT
187
188 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
189
190         * doc/sdccman.lyx: updated Highest Order Bit documentation,
191           documented Any Order Bit, Higher Order Byte and Higher Order Word
192         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
193         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
194           (optimizeGetAbit): new, to get any bit, not only the high bit,
195           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
196           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
197           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
198           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
199             RIGHT_OP: also try GETBYTE, GETWORD optimization,
200             GETABIT, GETBYTE, GETWORD: decorate them,
201           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
202           (ast_print): added GETABIT, GETBYTE, GETWORD
203         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
204         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
205           (geniCodeBinary): new generic binary icode,
206           (ast2iCode): added GETABIT, GETBYTE, GETWORD
207         * src/port.h: updated comment for PORT.hasExtBitOp
208         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
209           (genGetByte): new, to get a single byte,
210           (genGetWord): new, to get a word from a long,
211           (gen51Code): added GETABIT, GETBYTE, GETWORD
212         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
213
214 2005-09-23 Raphael Neider <rneider AT web.de>
215
216         * configure.in, configure: have device/lib/pic configured
217         * device/lib/Makefile.in: added model-pic14
218         * device/lib/clean.mk: added pic/ to clean rule
219         * device/lib/pic: added rudimentary pic14 library providing support
220           functions for multiplication/division/generic pointer access
221         * src/SDCCopt.c (convilong): mark support functions as extern
222           for pic14 port as well
223         * src/pic/gen.c (genMult): added assertions,
224           (genpic14Code): emit warning on unhandled iCodes
225         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
226         * src/pic/pcode.c (pCodeOpCopy),
227         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
228           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
229           SFR_REGISTER}), made safe for future extensions
230         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
231           instructions even if preceeded by SKIP instructions (also remove
232           them); removed unused code
233         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
234           prevents leaving parts of the structure uninitialized after copying
235
236 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
237
238         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
239           ago by me
240         * support/regression/tests/addsub.c: added test for the bug
241
242 2005-09-21 Raphael Neider <rneider AT web.de>
243
244         * device/include/pic16/pic18f1220.h,
245           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
246         * device/lib/pic16/Makefile.rules: added missing opening paren
247         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
248           are provided in genutils.c,
249           (genUminusFloat,genUminus,genCmpEq): added asserts on different
250           operand/result sizes,
251           (genCmp): assert on NULL pointers first, then check deref'ed values
252         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
253           result size
254
255 2005-09-18 Raphael Neider <rneider AT web.de>
256
257         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
258           as these are now unused,
259           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
260         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
261           local, avoids uninitialized pointer dereference on r->name
262         * src/pic16/ralloc.c (newReg): fixed indentation
263
264 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
265
266         * src/SDCCval.c (constVal): fixed bug 730366
267         * support/Util/SDCCerr.c,
268         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
269
270 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
273
274 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
277
278 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
279
280         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
281           (hex2dec): made hex_digit unsigned char, removed ascii dependance
282         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
283           (hex2dec): made hex_digit unsigned char, removed ascii dependance
284         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
285         * packihx/packihx.c (hexDigit): made c unsigned char
286         * as/mcs51/lklibr.c (fndsym),
287         * link/z80/lkgb.c (gb),
288         * link/z80/lklibr.c (fndsym),
289         * link/z80/lkrloc.c (relr),
290         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
291         * src/SDCC.lex (checkCurrFile, process_pragma),
292         * src/SDCCglue.c (spacesToUnderscores),
293         * src/SDCCmain.c (setParseWithComma, processFile),
294         * src/asm.c (tvsprintf, printCLine),
295         * src/avr/gen.c (emitcode, aopPut),
296         * src/ds390/gen.c (emitcode),
297         * src/hc08/gen.c (emitcode, emitinline),
298         * src/mcs51/gen.c (emitcode, genInline),
299         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
300           tokenizeLineNode),
301         * src/pic/ralloc.c (debugLog),
302         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
303           tokenizeLineNode),
304         * src/pic16/ralloc.c (debugLog),
305         * src/z80/main.c (_process_pragma):
306            made all ctype.h function calls safe
307         * src/SDCCopt.c: include math.h for fabs
308         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
309           and used them throughout the code to make ctype.h function calls safe
310         * src/ds390/main.c (asmLineNodeFromLineNode),
311         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
312         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
313            unsigned char*
314         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
315           (newpCodeAsmDir): made ctype.h function calls safe
316         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
317           pic16_emitcode):  made lbp unsigned char*
318         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
319           (pic16_newpCodeAsmDir): made ctype.h function calls safe
320         * src/xa51/gen.c (emitcode),
321         * src/z80/gen.c (_emit2): made lbp unsigned char*
322         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
323            char*
324
325 2005-09-05 Raphael Neider <rneider AT web.de>
326
327         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
328           access bank splitpoint
329
330 2005-09-05 Raphael Neider <rneider AT web.de>
331
332         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
333
334 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
335
336         * .version: changed to version 2.5.3
337         * doc/sdccman.lyx: changed version to 2.5.3,
338           documented --codeseg and --constseg and pragma codeseg and constseg,
339           documented bit parameters (reentrant) and bit returning
340         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
341            currFunc->recvSize, but is this ok for all ports?
342           (ast2iCode): result of ~ on unsigned char must be cast to int for
343            bool to work
344         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
345           function pointers in bit space
346         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
347           (processFuncArgs): call port.reg_parm() with reentrancy info
348         * src/port.h,
349         * src/avr/main.c,
350         * src/ds390/main.c,
351         * src/hc08/main.c,
352         * src/pic/main.c,
353         * src/pic16/main.c,
354         * src/xa51/main.c,
355         * src/z80/main.c: port.reg_parm prototype extended with
356           "bool reentrant" parameter
357         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
358           options.stackAuto for allocating bit register parameters
359         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
360           (genSend): set BitBankUsed if it is,
361           (selectRegBank): factored out of genCall for use in genPcall,
362           (genCall): removed redundant dtype assignmen, use selectRegBank,
363           (genPcall): handle returning in Carry properly, save in F0 if needed,
364           (genReceive): handle bit register parameters
365         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
366           (mcs51_assignRegisters): enable bit registers for all reentrant
367            functions and don't set BitBankUsed unconditionally
368         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
369         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
370         * support/regression/tests/funptrs.c: added tests for BOOL and for return
371
372 2005-08-27 Borut Razem <borut.razem AT siol.net>
373
374         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
375         ppc-osx (Darwin) does not support -u option. It seems that it is
376         supported only on Linux - GNU cp
377
378 2005-08-25 Borut Razem <borut.razem AT siol.net>
379
380         * sim/ucsim/gui.src/serio.src/Makefile.in,
381           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
382           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
383           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
384           install and strip, since the strip at /usr/ccs/bin should be used
385           on solaris
386
387 2005-08-24 Borut Razem <borut.razem AT siol.net>
388
389         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
390
391 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
392
393         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
394         ffffffffu
395
396 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
397
398         * as/mcs51/aslink.h: completed lkrloc.c prototypes
399         * as/mcs51/lkmain.c (link_main): fixed warning
400         * device/include/stdbool.h: ds390 has no advanced bit support yet
401         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
402         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
403         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
404           and updated their macros
405         * src/SDCCval.c (constVal): updated comment for renamed b_long
406
407 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
408
409         * as/mcs51/asdata.c: changed ctype['['] to BINOP
410         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
411           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
412           (oprio): set priority for '['
413         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
414            and adb_24_bit
415         * as/mcs51/asm.h: added defines R_BIT and S_BIT
416         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
417         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
418         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
419           added overlayable BIT_BANK area
420         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
421           (summary2): explain 'T' in legenda
422         * as/mcs51/lkrloc.c: replaced old K&R style,
423           (relr): added R_BIT processing,
424           (errmsg): added "Bit-addressable relocation error",
425           (adb_bit): added for converting from byte- to bit-addressable space,
426           (adb_24_bit): added for converting from byte- to bit-addressable space
427         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
428            used in reentrant functions now even as return value
429         * device/lib/_gptrput.c (_gptrput): removed obsolete code
430         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
431           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
432         * src/SDCCglobl.h: added indicator BitBankUsed
433         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
434            the bit registers b0-b7
435         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
436           (geniCodeCast): fixed bug 1263853,
437           (geniCodeLogicAndOr): put result in bool or char,
438           (geniCodeReceive): added parameter func for accessing the return type,
439           (geniCodeFunctionBody): pass func to geniCodeReceive
440         * src/SDCCmain.c: added indicator BitBankUsed
441         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
442         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
443           (checkSClass): don't put automatic bool/bit on stack,
444           (checkFunction): removed check on function cannot return bit
445         * src/SDCCsymt.h: added newBoolLink prototype
446         * src/mcs51/gen.c (rb1regs): added bit registers,
447           (movc): created for assigning to carry,
448           (pushReg, popReg): created for pushing registers,
449           (sameRegs): check both AOP_REG and AOP_CRY types,
450           (aopOp): handle bit registers,
451           (aopPut): optimization no self-assign,
452           (saveRegisters): push reg->base (bits) only once for bit registers,
453            and use pushReg,
454           (unsaveRegisters): pop reg->base only once and use popReg,
455           (assignResultValue): added parameter func and return in carry for bits,
456           (genIpush): optimization no reload in A if not changed,
457           (genSend): bit parameters in reentrant functions are passed in bit
458            registers by first assigning to bits in B, then save registers and
459            copy B to bits,
460           (genCall): handle returning in Carry properly, save it in F0 if needed,
461           (genPcall): updated assignResultValue call, this is not safe yet for bit
462            returning function !!!
463           (genFunction): don't generate equ's for bit registers and use pushReg,
464           (genEndFunction): take care of bit returning functions and use popReg,
465           (genRet): return bit in Carry,
466           (genIfx): optimize bit registers and other directly addressable bits,
467           (genReceive): updated assignResultValue call
468         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
469           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
470            registers when using stack-auto
471         * src/mcs51/ralloc.c (_G): added allBitregs,
472           (regs8051): added the bit registers,
473           (createStackSpil): use macro IS_BIT,
474           (getRegBit): added to allocate a bit register, else spill,
475           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
476           (updateRegUsage): factored out to ease stepping while debugging,
477           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
478            also allocate bit registers,
479           (fillGaps): handle bit registers,
480           (findAllBitregs): added to create bit vector with all bit registers,
481           (mcs51_allBitregs): returns this bit vector,
482           (mcs51_assignRegisters): when using stack-auto use bit registers for
483            passing parameters and creating local variables
484         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
485
486 2005-08-22 Borut Razem <borut.razem AT siol.net>
487
488         * device/lib/Makefile.in: replaced find option -or with -o
489           to make it run on solaris
490
491 2005-08-22 Raphael Neider <rneider AT web.de>
492
493         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
494           fixes #1265442 (crash on Solaris)
495
496 2005-08-20 Borut Razem <borut.razem AT siol.net>
497
498         * configure, configure.in: added tests for libsocket and libnsl libraries,
499           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
500           from support/regression/Makefile.in
501         * support/regression/Makefile.in: added
502         * device/lib/pic16/Makefile.common.in: force make to use bash shell
503         * sim/ucsim/libtool: regenerated on sparc-solaris
504         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
505           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
506           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
507           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
508           sparc-solaris, which doesn't use GNU ld linker
509         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
510         * as/Makefile: find on sparc-solaris does not support -maxdepth option
511
512 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
513
514         * src/mcs51/peeph.def: updated comments
515
516 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
517
518         * device/lib/_gptrget.c,
519         * device/lib/_gptrput.c: slightly shorter
520         * doc/sdccman.lyx: incremented version
521         * src/mcs51/peeph.def: moved peephole comments to the line of first
522           change to better keep line correlation, reanimated 186.e
523         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
524
525 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
526
527         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
528           David Saxton with quotes around file name.
529
530 2005-08-15 Borut Razem <borut.razem AT siol.net>
531
532         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
533           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
534           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
535           make tests run on x86_64 platform
536
537 2005-08-13 Raphael Neider <rneider AT web.de>
538
539         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
540           as it might be executed DURING a build (parallel make is wonderful)
541
542 2005-08-13 Raphael Neider <rneider AT web.de>
543
544         * device/lib/Makefile.in (port-specific-objects-pic16):
545           revert to cp $(PORT)/bin/*.* $(PORTDIR)
546         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
547           dependency
548         * device/lib/pic16/Makefile.rules: build subdirs before creating
549           the library, removed builddir rule, create $(builddir) early in
550           recurse rule, use empty recurse rule for leaf directories
551         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
552           mkdir errors (race condition), removed duplicate suffix "hex"
553           from clean rules
554         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
555         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
556           prevents mkdir -p from aborting on Alpha
557
558 2005-08-12 Raphael Neider <rneider AT web.de>
559
560         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
561           db-statements in order to allow for arrays of pointers in code
562           sections to be placed without interspersed 0-padding, fixes
563           bug #1256215
564         * (emitStatistics): fixed division by zero for pic18f1220
565         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
566           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
567         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
568         * (pic16_pCodeConstString): keep track of already emitted string
569           literals to prevent "duplicate definitions of symbol _str_NR"
570         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
571           debug message
572         * device/lib/Makefile.in: ignore failing PIC16 library builds
573         * device/lib/pic16/Makefile: do not build if gputils are missing
574         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
575
576 2005-08-10 Raphael Neider <rneider AT web.de>
577
578         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
579           my last commit)
580
581 2005-08-10 Raphael Neider <rneider AT web.de>
582
583         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
584           Rokas' patch to add the new fixed point type "__fixed16x16"
585         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
586           functions for __fixed16x16 arithmetics
587         * device/lib/pic16: reimplemented the build system to support
588           a separate build directory, better handling of libio (create
589           the library in a separate subdir for each architecture) and
590           easier configuration (centralized in Makefile.common)
591
592 2005-08-07 Raphael Neider <rneider AT web.de>
593
594         * src/pic16/gen.c (genrshTwo): fixed sign extension
595         * src/pic16/device.c: added pic18f2320, 4220 and 4320
596         * device/include/pic16/pic18f2220.h: changed some bit definitions,
597           added T0CONbits
598         * device/include/pic16/pic18f4220.h: NEW, header for
599           pic18f4220 and pic18f4320
600         * device/include/pic16/pic18fregs.h: added new devices,
601           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
602         * device/include/pic16/signal.h: resolved name clashes
603           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
604           to also allow testing for interrupt enable bits, added
605           comments on how to use the macros
606         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
607         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
608           register definitions for the devices
609         * device/lib/pic16/pics.all: added new devices
610         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
611           allocated memory
612         * device/lib/pic16/libc/stdlib/memfree: do not count
613           the block header as free memory
614         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
615           simplified and added missing end-of-blocklist-marker
616           (reported by Peter Onion, fixes #1252814)
617         * (_mergeHeapBlock): fixed loop condition
618         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
619           len==0, restructured code
620         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
621           up a bit, reduced bitfield accesses, prevent endless loops
622           in case of heap corruption
623         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
624           "unreferenced arguments/must return a value" warnings
625         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
626           replaced BAUDREG with SPBRG
627         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
628           device/lib/pic16/debug/gstack/gstack.c: replaced
629           _naked, _asm, _endasm with __naked, __asm, __endasm
630
631 2005-08-05 Raphael Neider <rneider AT web.de>
632
633         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
634           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
635
636 2005-08-05 Borut Razem <borut.razem AT siol.net>
637
638         * device/lib/Makefile.in: added missing ';'
639         * configure: removed ^M characters
640
641 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
642
643         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
644           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
645           License
646
647 2005-08-04 Borut Razem <borut.razem AT siol.net>
648
649         * configure.in: pic16 libraries build 2nd try - enable running
650           configure in device/lib/pic16
651         * configure: regenerated from configure.in
652         * device/lib/Makefile.in: create $(PORT)/bin directory
653
654 2005-08-03 Raphael Neider <rneider AT web.de>
655
656         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
657           to get/set values via pointers
658         * (genUnpackBits,genPackBits): changed detection of
659           ptr->bitfield vs. sym.bitfield, fixed access via generic
660           pointers, removed dead (wrong) code for multibyte bitfields
661         * (genNearPointerGet, genGenPointerGet): removed useless code,
662           fixed bitfield detection, fixes #1250594
663         * (genNearPointerSet): removed useless code
664         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
665           and introduced macro pic16_emitpcode that conditionally emits
666           the origin of the following pCode (useful for debugging SDCC)
667         * src/pic16/pcode.c: changed (and disabled) some debug outputs
668         * (createDefmap): fixed handling of LFSR for --optimize-df
669
670 2005-08-02 Borut Razem <borut.razem AT siol.net>
671
672         * device/lib/Makefile.in: pic16 libraries build enabled since
673           gputils-0.13.2 are now localy installed at sourceforge's compile farm
674
675 2005-08-02 Raphael Neider <rneider AT web.de>
676
677         * src/pic16/gen.c (genPackBits): removed deprecated warning
678         * (genGenPointerSet): fixed bitfield detection
679
680 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
681
682         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
683
684 2005-07-31 Raphael Neider <rneider AT web.de>
685
686         * device/lib/pic16/libdev/pic18f458.c,
687           device/include/pic16/pic18f458.h: added missing T0CONbits
688
689 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
690
691         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
692
693 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
696
697 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
698
699         * device/include/mcs51/at89c51ed2.h: added.
700
701 2005-07-23 Raphael Neider <rneider AT web.de>
702
703         * src/pic/gen.h: added emitpcode macro for debugging
704         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
705           and replace by macro adding debug information on demand
706         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
707         * (gencjne): tried to fix; replaced with correct (slower) code
708         * (gen{Unp,P}ackBits): fixed single bit access
709         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
710         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
711           previous instruction
712         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
713           register has to be handled with care (forbidding movement
714           of assignments/uses, removing assignments completely, ...)
715         * (pCodeOptime2pCodes): make use of regIsSpecial
716         * added lots of debugging output (commented out)
717         * src/pic/rallloc.c (deassignLRs): prevent operand registers
718           from being reused as result UNLESS it is known to work
719
720 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
721
722         * support/Util/dbuf.h: include <stddef.h> for size_t
723         * .version: changed to version 2.5.2
724
725 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
726
727         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
728
729 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
730
731         * src/hc08/gen.c (genMinus): fixed bug #1241835,
732           (genModOneByte): removed needless psha/pula
733
734 2005-07-22 Raphael Neider <rneider AT web.de>
735
736         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
737           have PIC14 handled like PIC16, fixes broken pic14 linker calls
738         * src/pic/gen.c (resolveIfx): do not "invent" labels
739         * (genSkipc): changed to positive logic
740         * (genSkipCond): removed as no longer needed
741         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
742           backport from PIC16
743         * (genLeftShift): check operands are in different registers
744         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
745           INCF does not update CARRY...
746         * src/pic/main.c: fixed _linkCmd
747         * src/pic/pcode.c (unlinkpCode): added inactive code
748         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
749           alive (do not assign result and operand overlapping registers)
750
751 2005-07-22 Raphael Neider <rneider AT web.de>
752
753         * src/pic/device.c (dump_sfr): replaced register declaration with
754           call to emitSymbolToFile() to avoid duplicate symbols
755         * (assignRelocatableRegisters): do not declare external symbols
756         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
757           right (take size of type, not etype)
758         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
759         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
760         * (packRegsForAccUse): disabled assignment of WREG as
761           the result reg to prevent occurence of just fixed #1235003,
762           fixes #1242954
763         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
764           symbols (avoids duplicate symbols in .asm file)
765         * (pic14emitRegularMap): use emitSymbolToFile()
766         * src/pic/gen.c (aopOp): fixed spillLocation handling
767         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
768         * (genDataPointerSet): removed unneccessary variables/output
769
770 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
771
772         * as/mcs51/lkarea.c: enlarged codemap for banked memory
773         * device/lib/mcs51/crtbank.asm: added # to 0x0F
774
775 2005-07-21 Raphael Neider <rneider AT web.de>
776
777         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
778           architecture cannot handle them efficiently, fixes bug #1235003
779         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
780           check for empty sets before using them (fixes bug #1232190)
781
782 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
783
784         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
785           (lnksect2): generate warnings for memory overlap
786         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
787           constseg to set the name of these segments so you can instruct the linker
788           to place them in banks
789         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
790         * src/SDCCglobl.h: added MODEL_HUGE to enum,
791           added code_seg and const_seg to options
792         * src/SDCCglue.c (emitMaps): use options.const_seg,
793           (createInterruptVect): put interrupt vectors in segment HOME,
794           (glue): put HOME before static segment and put the main glue in HOME,
795           (glue): use options.code_seg
796         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
797         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
798           these segments so you can instruct the linker to place them in banks
799           (linkEdit): use code_loc for HOME segment which should be the first
800           segment in code memory now
801         * src/SDCCmem.c: fixed more stuff like bug 1238386
802         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
803           (changePointer): don't change function pointers to code pointers for
804           banked functions,
805           (compareType): added exceptional check for banked function pointers
806         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
807         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
808           after static in code memory
809         * src/mcs51/gen.c: added aopLiteralLong prototype,
810           (aopForSym): use getSize for functions,
811           (genCall): generate banked calls over one trampoline __sdcc_banked_call
812           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
813           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
814           the segment,
815           (genPcall): use call for literal function pointers and generate banked
816           calls over the one trampoline so there's only one place for the user to
817           modify according to his/hers hardware,
818           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
819           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
820         * src/mcs51/main.c: added keyword banked,
821           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
822         * support/Util/SDCCerr.c,
823         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
824           needed for passing the bank and address to the trampoline
825         * device/lib/mcs51/crtbank.asm: added for bankswitching
826         * device/lib/mcs51/Makefile: added crtbank
827
828 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
829
830         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
831           for fields at offset 0 of a struct or union as reported
832           on 2005-07-07 in the developer mailing list.
833
834 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
835
836         * src/SDCCmem.c: fixed bug 1238386
837
838 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
839
840         * src/mcs51/peeph.def: added labelrefcounting for peepholes
841           (patch #1144962), added peephole 300, enabled 259.x
842         * doc/sdccman.lyx: removed screenshot and provided link instead
843
844 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
845
846         * doc/sdccman.lyx: added section about debugging with ddd
847         * doc/figures/ddd_example.eps: screenshot of debugging session
848
849 2005-07-04 Raphael Neider <rneider AT web.de>
850
851         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
852           like CODE pointers, fixes #1115683
853         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
854           call, fixes bugs #1232211, #1228110,
855           fixed wrong casts to pCodeFlow from pCodeInstructions
856
857 2005-07-04 Raphael Neider <rneider AT web.de>
858
859         * src/pic/gen.c (popGet): changed assert to allow for
860           bit operands
861         * (popGetAddr): changed signature to provide
862           an additional index, patched all call sites
863         * (genCmpEq): handle literal-like operands correctly
864         * (genAddrOf): added sanity checks on __code/__data pointers
865         * (genAssign): added handling of symbols from __code section
866         * (gencjne): do not generate code for comparisons whose result
867           is neither stored nor used, fixes bug #1171114
868         * (AccLsh, AccRsh): operate on operand instead of WREG
869         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
870           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
871           by known count
872         * rewrote complete shift-by-literal logic, commented unused
873           functions out
874         * (genConstPointerGet): get multiple bytes (if result size > 1),
875           fixed handling of non-immediate addresses
876         * (genPointerGet): handle CODE pointers like CONST pointers
877         * (genpic14Code): insert C-SRC lines as Cource-pCodes
878         * ({aop,op}_isLitLike): NEW, single place to decide whether an
879           operand is to be treated as a literal or not
880         * (mov2w,genPcall,genCmpEq),
881           src/pic/genarith.c: use aop_isLitLike() to decide between
882           literal/register contents
883         * (addSign): added missing offset
884         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
885           only emit comment in debug-mode,
886           use {aop,op}_isLitLike throughout the file
887         * src/pic/glue.c: fix initializers for pointers (work in progress)
888         * src/pic/pcode.c (get_op): honor index on _const symbols
889         * ({reset,dump}pCodeStatistics): NEW, estimate code size
890         * (dumppBlock): added pCode size estimation
891         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
892           check for IS_SYMOP before OP_SYMBOL'ing
893         * fixed indentation, compacted switch-statements
894         * (allocReg): find free register and allocate it instead of
895           allocating new registers all the time
896         * (deassignLRs): prevent POINTER_GET's from being assigned the same
897           registers as its operands (necessary only for multibyte GETs)
898
899 2005-07-01 Raphael Neider <rneider AT web.de>
900
901         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
902           debugging .asm-output macros FENTRY + FEXIT
903         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
904           way... I wonder...
905         * (emitpComment): NEW, printf to pCode
906         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
907           offset handling
908         * (popGetAddr): NEW, variant of popGet to access an immediates
909           high(er) bytes instead of the n'th byte of memory they reference,
910           replaced popGet with popGetAddr where neccessary
911         * (genDataPointerGet): reactivated and fixed implementation
912         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
913           accesses
914         * (genDataPointerSet): fixed multibyte assignments
915         * (genpic14Code): fixed --i-code-in-asm handling
916         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
917         * (genPlus): fixed index-out-of-bounds error
918         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
919         * src/pic/ralloc.c: added debugging output macro FENTRY2
920         * (spillThis): fixed indentation, enbraced for-body for clarity
921         * (rematStr): commented out as now unused
922         * (regTypeNum): commented out special spill case (overwrites
923           arbitrary values)
924         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
925
926 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
927
928         * doc/sdccman.lyx: documented sfr16/sfr32,
929           added example for using storage class with function pointers
930         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
931
932 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
933
934         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
935         * device/lib/_itoa.c,
936         * device/lib/_ltoa.c: optimized codesize
937         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
938           but don't know how to suppress the double warning.
939         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
940         * support/Util/SDCCerr.c,
941         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
942
943 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
946           fixed old K&R prototypes
947         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
948         * device/lib/_gptrget.c,
949         * device/lib/_gptrgetc.c,
950         * device/lib/_gptrput.c: changed versions for new memory indicator values,
951           also new versions for small generic pointers and banked generic pointers
952         * src/port.h: added const_name
953         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
954         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
955         * src/SDCCcse.c (findPrevIc): check all associative operators
956         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
957         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
958         * src/SDCCmem.c: updated comments,
959           set far-space to 0 for pdata, results in optimized code
960         * src/SDCCmem.h: added macro CONST_NAME
961         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
962           moving the info into the highest bits, see also gptrget/gptrput
963         * src/src.dsp: added sdcc.ico to project files
964         * src/avr/gen.c (genCast): fixed bug 0x%d
965         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
966         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
967           relation between ptr_type and DCL_TYPE,
968           (genCast): fixed bug 0x%d
969         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
970           (CODE)" for const_name
971         * src/hc08/gen.c (genCast): fixed bug 0x%d
972         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
973           (hc08_port): added "CONST (CODE)" for const_name
974         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
975           (aopForRemat, adjustArithmeticResult): disconnected direct relation
976           between ptr_type and DCL_TYPE,
977           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
978           operand* and took AOP() inside function so sfr-ness can be checked,
979           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
980           new prototype,
981           (genFunction, genEndFunction): optimized stack setup,
982           (genMinus): optimized for literals with ending zeroes (in bytes),
983           (genCast): fixed bug 0x%d
984         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
985           (mcs51_port): added "CONST (CODE)" for const_name
986         * src/mcs51/peeph.def: made rule 226 more generic
987         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
988         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
989         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
990         * src/z80/main.c (z80_port): added NULL for const_name,
991           (gbz80_port): added NULL for const_name
992         * support/regression/tests/bug663539.c,
993         * support/regression/tests/sfr16.c: new tests
994
995 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
996
997         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
998
999 2005-06-24 Raphael Neider <rneider AT web.de>
1000
1001         * device/lib/pic16/libdev/pic18f[68][567]20.c:
1002           corrected typos...
1003         * device/include/pic16/signal.h: added USBIF
1004           and SIG_USB
1005
1006 2005-06-24 Raphael Neider <rneider AT web.de>
1007
1008         * device/lib/pic16/libdev/pic18f2455.c,
1009           device/include/pic16/pic18f2455.h: NEW
1010         * device/include/pic16/pic18fregs.h,
1011           device/lib/pic16/pics.all,
1012           src/pic16/device.c: added 18f2455
1013         * device/lib/pic16/libdev/pic18f[68][567]20.c,
1014           device/include/pic16/{pic18f[68][567].h,usart.h}:
1015           replaced MULTIPLE_USARTS define with more relaible
1016           compatibility sfrs (for USART access)
1017
1018 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1019
1020         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1021           and the output asm file line is printed on two lines.
1022
1023 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1024
1025         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1026           BGT, BLE, BHI, and BLS instructions
1027         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1028           genCmpEq): removed
1029         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1030           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1031           fixes bug #1216342
1032         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1033
1034 2005-06-15 Raphael Neider <rneider AT web.de>
1035
1036         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1037         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1038         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1039           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1040           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1041
1042 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1043
1044         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1045           Marcel Telka in bug #1215704
1046
1047 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1048
1049         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1050           located in shared memory bank.
1051
1052 2005-05-31 Raphael Neider <rneider AT web.de>
1053
1054         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1055           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1056           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1057
1058 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1059
1060         * device/lib/_strncpy.c: fixed the fix
1061
1062 2005-05-26 Raphael Neider <rneider AT web.de>
1063
1064         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1065           initializers with \0, bug #1208187
1066         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1067           intializers with \0, bug #1208187
1068
1069 2005-05-26 Raphael Neider <rneider AT web.de>
1070
1071         * src/pic16/glue.c (pic16_printIvalChar): fixed string
1072           initializers with \0, bug #1208187
1073         * src/pic16/main.c (_process_pragma): added sanity checks
1074           for stack position and size, emit warnings when appropriate
1075
1076 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1077
1078         * device/lib/_strncpy.c: fixed not filling with \0
1079
1080 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1081
1082         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1083           createFunction),
1084         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1085           compound_statement),
1086         * src/SDCCsymt.h,
1087         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1088
1089 2005-05-24 Raphael Neider <rneider AT web.de>
1090
1091         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1092
1093 2005-05-24 Raphael Neider <rneider AT web.de>
1094
1095         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1096           TRISE definitions, closes bug #1162453
1097
1098 2005-05-22 Raphael Neider <rneider AT web.de>
1099
1100         * src/pic16/main.c (_process_pragma): check for missing
1101           arguments to pragmas code and udata
1102         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1103           consistency fixes to match other headers (thanks to Jim Paris)
1104         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1105
1106 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1107
1108         * src/SDCCicode.c (isOperandEqual): fixed missing ;
1109
1110 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1111
1112         * support/regression/tests/bug1198642.c: new test
1113         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1114         * src/SDCCcse.c (findPrevIc): added comment, please have a look
1115         * support/scripts/resource.h,
1116         * support/scripts/resource.rc,
1117         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1118         * support/scripts/sdcc.ico: added 32x32 icon
1119
1120 2005-05-18 Raphael Neider <rneider AT web.de>
1121
1122         * device/lib/pic16/libdev/pic18f*.c,
1123         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1124           keywords to "__sfr" and "__at (X)"
1125         * device/include/pic16/pic18fregs.h: added pic18f4520
1126         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
1127           #1203088 (MPLAB compatibility)
1128
1129 2005-05-17 Raphael Neider <rneider AT web.de>
1130
1131         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
1132         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
1133         * device/lib/pic16/pics.all: added new devices
1134         * src/pic16/device.c: added support for pic18f4520
1135
1136 2005-05-16 Raphael Neider <rneider AT web.de>
1137         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
1138         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
1139         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
1140           convenience function for bit access
1141
1142 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1143
1144         * device/lib/printf_large.c: fixed bug 1193299
1145         * support/regression/tests/bug1057979.c: added test %3.3s
1146
1147 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1148
1149         * device/include/mcs51/8051.h,
1150         * device/include/mcs51/8052.h: made parseable with lint
1151         * device/include/mcs51/lint.h: added include file for (sp)lint
1152         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
1153         * doc/cdbfileformat.lyx,
1154         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
1155
1156 2005-05-14 Raphael Neider <rneider AT web.de>
1157
1158         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
1159         * device/lib/pic16/libc/stdlib/itoa.c (new)
1160         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
1161         * device/lib/pic16/libio/Makefile: exclude subdir according to
1162           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
1163         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
1164         * src/pic16/gen.c (genFunction): prevent annoying warning
1165         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
1166           nameclashes on BeOS
1167         * support/cpp2/cppmain.c (cpp_output_string): new
1168         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
1169           fixes bug 1116802
1170
1171 2005-05-13 Borut Razem <borut.razem AT siol.net>
1172
1173         * src/SDCCmain.c (linkEdit): fixed bug 1195202
1174
1175 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1176
1177         * .version: changed to version 2.5.1; back to bleeding edge development
1178
1179 2005-05-11 Borut Razem <borut.razem AT siol.net>
1180
1181         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
1182           generate PDF version 1.3 documents
1183
1184 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1185
1186         * .version: changed to version 2.5.0
1187
1188 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1189
1190         * doc/sdccman.lyx: updated weblinks, index and smaller updates
1191
1192 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1193
1194         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1195         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1196         well as many smaller updates.
1197         * .version: changed to version 2.5.0-pre1
1198
1199 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1200
1201         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1202
1203 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1204
1205         * support/regression/tests/bug1185672.c: added
1206         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1207           bug 1185672
1208         * src/mcs51/gen.c (genCall): added comments, made it look safer
1209         * src/mcs51/gen.c (genEndFunction): simplified
1210
1211 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1212
1213         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1214
1215 2005-04-14 Borut Razem <borut.razem AT siol.net>
1216
1217         * fixed bug 1045046 - SIGSEGV with really simple code?:
1218           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1219           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1220
1221 2005-04-14 Borut Razem <borut.razem AT siol.net>
1222
1223         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1224           src/pic16/device.h: temporarily disabled experimental #inline pragma
1225           for 2.5.0 release
1226
1227 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1228
1229         * device/include/z80/stdio.h,
1230         * device/include/z80/string.h: removed these highly incomplete files so
1231           SDCC can use the default ones in device/include/
1232
1233 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1234
1235         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1236         gcc warning.
1237         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1238         fix sdcpp warnings.
1239
1240 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1241
1242         * device/include/malloc.h: removed redundant __reentrant prototypes
1243         * device/lib/_mullong.c: added working xstack variant in asm (C version
1244           doesn't pass regression tests)
1245         * device/lib/bpx.c: used __data and made bpx char for mcs51
1246         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1247           (createFunction): fixed bug with xstackPtr
1248         * src/SDCCcse.c: corrected comments
1249         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1250           (killDeadCode, eBBlockFromiCode): removed unused code
1251         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1252           corrected comments
1253         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1254           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1255           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1256           (genModOneByte): fixed warning in MSVC
1257         * src/mcs51/main.c (): added comments
1258         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1259
1260 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1261
1262         * src/SDCCmain.c (linkEdit): oops, changed one line too many
1263
1264 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1265
1266         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1267
1268 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1269
1270         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1271         characters arrays of larger size than the declared one.
1272
1273 2005-04-10 Borut Razem <borut.razem AT siol.net>
1274
1275         * src/pic/gen.c (genInline),
1276           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1277           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1278           (findNextInstruction), (findPrevInstruction),
1279           (findInstructionUsingLabel),
1280           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1281         * src/pic/pcode.c (findLabel): added missing '\n'
1282         * src/src.dsp: added SDCCdwarf2.c to the project
1283
1284 2005-04-09 Borut Razem <borut.razem AT siol.net>
1285
1286         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1287
1288 2005-04-08 Raphael Neider <rneider AT web.de>
1289
1290         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1291           into the chain after a given one) and mergeDefmapSymbols (combine
1292           defmap entries for each symbol per pcode)
1293         * (createDefmap): have defmap entries merged in the end
1294         * (defmapReplaceSymRef): split defmap entries covering two accesses to
1295           a symbol before replacing one access type's symbol, merge symbols in
1296           the end (replacement symbol might already have an entry)
1297         * (assignValnums): keep reference to written WREG intact
1298
1299 2005-04-08 Raphael Neider <rneider AT web.de>
1300
1301         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1302           Alpha)
1303
1304 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1305
1306         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1307         bytes
1308
1309 2005-04-07 Raphael Neider <rneider AT web.de>
1310
1311         * device/include/pic16/usart.h: added compatibility defines for
1312           devices with more than one USART
1313         * device/include/pic16/pic18f[68][567]20.h: activated above defines
1314
1315 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * device/lib/Makefile.in: updated for port specific include
1318
1319 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1320
1321         * support/regression/ports/mcs51/spec.mk: added mcs51 include
1322
1323 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1324
1325         * device/include/8051.h,
1326         * device/include/8052.h,
1327         * device/include/at89S8252.h,
1328         * device/include/at89c55.h,
1329         * device/include/at89x051.h,
1330         * device/include/at89x51.h,
1331         * device/include/at89x52.h,
1332         * device/include/mcs51reg.h,
1333         * device/include/reg51.h,
1334         * device/include/reg764.h,
1335         * device/include/regc515c.h,
1336         * device/include/sab80515.h: (re)moved these 12 files
1337         * device/include/mcs51/8051.h,
1338         * device/include/mcs51/8052.h,
1339         * device/include/mcs51/at89S8252.h,
1340         * device/include/mcs51/at89c55.h,
1341         * device/include/mcs51/at89x051.h,
1342         * device/include/mcs51/at89x51.h,
1343         * device/include/mcs51/at89x52.h,
1344         * device/include/mcs51/mcs51reg.h,
1345         * device/include/mcs51/reg51.h,
1346         * device/include/mcs51/reg764.h,
1347         * device/include/mcs51/regc515c.h,
1348         * device/include/mcs51/sab80515.h: and added them here
1349
1350 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1351
1352         * device/include/stdarg.h: changed SDCC specific keywords to double
1353           underlined form.
1354         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1355           mcs51 and ds390.
1356         * device/include/hc08/mc68hc908gp32.h,
1357         * device/include/hc08/mc68hc908jb8.h,
1358         * device/include/hc08/mc68hc908jkjl.h,
1359         * device/include/hc08/mc68hc908qy.h: fixed comments
1360         * device/include/mcs51/README: updated
1361         * device/include/mcs51/c8051f120.h: added PINRSF
1362         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1363         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1364           amidst code. Also inline is not supported.
1365
1366 2005-04-06 Raphael Neider <rneider AT web.de>
1367
1368         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1369         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1370           callers stack/frame pointers
1371
1372 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1373
1374         * device/include/pic16/usart.h: added, missing in previous commit,
1375         * device/include/pic16/adc.h: fixed typo,
1376         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1377         commit,
1378         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1379         <p18fxxx.inc>
1380         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1381         uninitialized because a bug appears with gplink
1382         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1383         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1384         complains for unrecognised option
1385
1386 2005-04-05 Raphael Neider <rneider AT web.de>
1387
1388         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1389           structs as well (using memcpy)
1390         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1391           on ISRs (GOTO has no label)
1392         * src/pic16/device.h: added OF_OPTIMIZE_DF
1393         * src/pic16/main.c: added compiler switch --optimize-df to enable the
1394           new data flow analysis/optimization
1395         * src/pic16/pcode.c: added (prototypes for and implementation of)
1396           dataflow analysis functions, fixed pCodeInstructions' inCond and
1397           outCond values, made RCALL a branch instruction
1398         * (pic16_unlinkpCode): keep C line if possible
1399         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
1400           C line moved if possible
1401         * (pic16_getRegFrompCodeOp): NEW, improved version of...
1402         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
1403           to use new pic16_getRegFrompCodeOp (works for more SFRs)
1404         * (pic16_BuildFlow): fixed skip instructions with label (did not start
1405           new flow)
1406         * (pic16_getJumptabpCode): NEW, needed in...
1407         * (LinkFlow): fixed handling of jumptables, calls and conditional
1408           branches
1409         * (pic16_InsertCommentAfter): NEW
1410         * (pic16_pCodeReplace): made verbose and flow preserving
1411         * (AnalyzeFlow): added call to data flow analysis
1412         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
1413         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
1414         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
1415
1416 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1417
1418         * src/SDCCast.c (decorateType): fixed bug #1105626
1419
1420 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
1421
1422         * device/include/asm/pic16/features.h,
1423         * pic18f*.h headers,
1424         * device/include/pic16/adc.h,
1425         * device/include/pic16/delay.h,
1426         * device/include/pic16/i2c.h,
1427         * device/include/pic16/malloc.h,
1428         * device/include/pic16/stdio.h,
1429         * device/include/pic16/stdlib.h,
1430         * device/include/pic16/string.h,
1431         * device/lib/pic16/libc/stdio/printf_tiny.c,
1432         * device/lib/pic16/libc/stdio/printf_small.c,
1433         * device/lib/pic16/libc/stdio/strmgpsim.c,
1434         * device/lib/pic16/libc/stdio/strmmssp.c,
1435         * device/lib/pic16/libc/stdio/strmusart.c,
1436         * device/lib/pic16/libc/stdio/vfprintf.c,
1437         * device/lib/pic16/libc/stdlib/ltoa.c,
1438         * device/lib/pic16/libc/stdlib/putchar.c,
1439         * device/lib/pic16/libc/stdlib/x_ftoa.c,
1440         * device/lib/pic16/libc/stdlib/memchrpgm.c,
1441         * device/lib/pic16/libc/stdlib/memchrram.c,
1442         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
1443         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
1444         * device/lib/pic16/libio/adc/adcbusy.c,
1445         * device/lib/pic16/libio/adc/adcread.c,
1446         * device/lib/pic16/libio/adc/adcsetch.c,
1447         * device/lib/pic16/libio/usart/ubaud.c,
1448         * device/lib/pic16/libio/usart/ubusy.c,
1449         * device/lib/pic16/libio/usart/udrdy.c,
1450         * device/lib/pic16/libio/usart/uopen.c,
1451         * device/lib/pic16/libio/usart/uputc.c,
1452         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
1453         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
1454         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
1455         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
1456         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
1457         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
1458         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
1459         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
1460         specific keywords to double underlined form,
1461         * device/lib/pic16/libc/Makefile.rules,
1462         * device/lib/pic16/libsdcc/Makefile.rules,
1463         * device/lib/pic16/libm/Makefile,
1464         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
1465         to compile with C standard set in Makefile.common
1466         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
1467         rand.c and crc.c in compilation process,
1468         * device/lib/pic16/libsdcc/int/divuint.c,
1469         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
1470         `c' from signed to unsigned,
1471         * device/lib/pic16/startup/crt0.c,
1472         * device/lib/pic16/startup/crt0i.c,
1473         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
1474         keywords to double underlined form, bug fixes in _do_cinit function
1475         which prevented the correct initialization of the .idata segment,
1476         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
1477         core to enter a infinite loop
1478         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
1479
1480 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1481
1482         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
1483
1484 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485
1486         * device/include/Makefile.in: add support for hc08 subdirectory
1487         * device/include/hc08/: new subdirectory
1488         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
1489         Lucas Loizaga, thanks!
1490         * device/include/hc08/mc68hc908qy.h,
1491         * device/include/hc08/mc68hc908gp32.h,
1492         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
1493         their own directory. Changed internal macro names to use the compiler
1494         reserved namespace. Changed SDCC specific keywords to double
1495         underlined form.
1496         * device/include/math.h,
1497         * device/include/malloc.h,
1498         * device/include/stdarg.h,
1499         * device/include/stdbool.h
1500         * device/include/string.h,
1501         * device/include/tinibios.h,
1502         * device/include/ds400rom.h,
1503         * device/include/8051.h,
1504         * device/include/8052.h,
1505         * device/include/80c51xa.h,
1506         * device/include/at89c55.h,
1507         * device/include/at89S8252.h,
1508         * device/include/at89x51.h,
1509         * device/include/at89x52.h,
1510         * device/include/ds80c390.h,
1511         * device/include/reg764.h,
1512         * device/include/regc515c.h,
1513         * device/include/sab80515.h,
1514         * device/include/mcs51/c8051f000.h,
1515         * device/include/mcs51/c8051f018.h,
1516         * device/include/mcs51/c8051f020.h,
1517         * device/include/mcs51/c8051f040.h,
1518         * device/include/mcs51/c8051f060.h,
1519         * device/include/mcs51/c8051f120.h,
1520         * device/include/mcs51/c8051f300.h,
1521         * device/include/mcs51/c8051f310.h,
1522         * device/include/mcs51/c8051f320.h,
1523         * device/include/mcs51/c8051f330.h,
1524         * device/include/mcs51/c8051f350.h,
1525         * device/include/z180.h: Changed SDCC specific keywords to double
1526         underlined form.
1527
1528 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
1529
1530         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
1531         18F4455,
1532         * (pic16_assignConfigWordValue): disable testing of configuration
1533         register value with config mask,
1534         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
1535         function with port->fun_prefix,
1536         * (genFunction): when generating a naked interrupt function never
1537         create an absolute segment placed in interrupt vector address, place
1538         the actual interrupt function at IVA instead, when an interrupt
1539         function is generated with unspecified interrupt then do not create
1540         the absolute section,
1541         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
1542         code for generating a call to generic pointer get/put function with
1543         a call to function pic16_callGenericPointer(),
1544         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
1545         the call to the generic pointer get/put functions with prefixing the
1546         function name with port->fun_prefix,
1547         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
1548         * src/pic16/main.c (_process_pragma): prefix function with
1549         port->fun_prefix,
1550         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
1551         calling assembler, old 18Fxxxx macro is deprecated,
1552         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
1553         PC_ASMDIR in while condition,
1554         * (findInstruction): add PC_ASMDIR in while condition,
1555         * (buildCallTree): prefix main with port->fun_prefix,
1556         * (pic16_pCode2str): fixed bug that didn't emit the memory access
1557         identifier for variable with banked access in instructions BTFSS,
1558         BTFSC, BCF, BSF, BTG
1559         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
1560         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
1561         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
1562         perform optimization when enviroment variable NO_REG_OPT is set,
1563         * (insideLRBlock): NEW, return 1 if register is inside an
1564         INF_LOCALREGS block,
1565         * (RemoveRegFromLRBlock): remove a register that is completely
1566         eliminated by register optimization, but it is still left in local
1567         register store/restore in/from stack block,
1568         * (Remove2pcodes): after removing register, check to see if it
1569         should be removed from local register store/restore in/from stack
1570         block,
1571         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
1572         DUMMY_READ_VOLATILE,
1573
1574         * device/include/pic16/adc.h: minor prototype modifications and
1575         update,
1576         * device/include/pic16/malloc.h: added GPL notice various
1577         modifications,
1578         * device/include/pic16/stdint.h: NEW, standard header for ints
1579         * device/include/pic16/delay.h: NEW, header for delay functions,
1580         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
1581         delay1mtcy,
1582         * device/include/pic16/signal.h: NEW, header providing helper macros
1583         for implementing signal handlers,
1584         * device/include/pic16/stdio.h: added prototypes for functions,
1585         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
1586         prototypes for stdin and stdout, added macro PUTCHAR to
1587         automatically implement putchar function prototype,
1588         * device/include/pic16/usart.h: modified and updated USART library,
1589         * device/lib/pic16/libio/adc/,
1590         * device/lib/pic16/libio/i2c: some modifications to improve library
1591         performance,
1592         * device/lib/pic16/libc/stdio/: modifications for the new printf*
1593         family of functions,
1594         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
1595         family of functions and other sources,
1596         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
1597         of the PIC18Fxx[28] devices,
1598         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
1599         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
1600         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
1601         _do_cinit function, because the previous failed when local variables
1602         where not placed in the same memory bank,
1603         * device/lib/pic16/libsdcc/char/: various modifications to improve
1604         library performance,
1605         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
1606         information on the new functions of the c library and more...
1607
1608 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1609
1610         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
1611
1612 2005-03-26 Raphael Neider <rneider AT web.de>
1613
1614         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
1615           if condition == CARRY)
1616         * (genCmp): adapted to new genSkipc semantics
1617         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
1618           on rIfx (genCmp was broken)
1619
1620 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1621
1622         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
1623         * src/z80/main.c (_keywords[]),
1624         * src/SDCCglobal.h (struct options),
1625         * src/SDCC.y,
1626         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
1627         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
1628         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
1629         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1630         always available in leading double underscore form. The C99 support is
1631         mostly missing, but it's a start.
1632         * support/regression/tests/bug-227710.c: fixed nonconforming use of
1633         reserved identifier "__data".
1634
1635 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1636
1637         * src/mcs51/peeph.def: fixed bug 1170013
1638
1639 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * device/include/mcs51reg.h: fixed bug 842007
1642
1643 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1644
1645         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1646         last time.
1647
1648 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1649
1650         * src/port.h (struct PORT),
1651         * src/avr/ralloc.c (avr_assignRegisters),
1652         * src/avr/main.c,
1653         * src/ds390/ralloc.c (ds390_assignRegisters),
1654         * src/ds390/main.c,
1655         * src/hc08/ralloc.c (hc08_assignRegisters),
1656         * src/hc08/main.c,
1657         * src/mcs51/ralloc.c (mcs51_assignRegisters),
1658         * src/mcs51/main.c,
1659         * src/pic/ralloc.c (pic14_assignRegisters),
1660         * src/pic/main.c,
1661         * src/pic16/ralloc.c (pic16_assignRegisters),
1662         * src/pic16/main.c,
1663         * src/xa51/ralloc.c (xa51_assignRegisters),
1664         * src/xa51/main.c,
1665         * src/z80/ralloc.c (z80_assignRegisters),
1666         * src/z80/ralloc.h,
1667         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1668         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1669         * src/SDCCcse.h,
1670         * src/SDCCdflow.c (computeDataFlow),
1671         * src/SDCCdflow.h,
1672         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1673         * src/SDCCloop.h,
1674         * src/SDCCcflow.c (*),
1675         * src/SDCCcflow.h,
1676         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1677         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1678         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1679         immedDom() returning wrong block; probably fixes bug #1160833)
1680
1681 2005-03-20 Borut Razem <borut.razem AT siol.net>
1682
1683         * support/scripts/inc2h.pl: WIN32 port
1684
1685 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1686
1687         * device/lib/makefile.in: added abs.c and labs.c
1688
1689 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1690
1691         * device/include/stdint.h: added
1692         * device/lib/abs.c: added
1693         * device/lib/labs.c: added
1694         * device/include/stdlib.h: added abs() and labs() prototypes
1695         * device/lib/libsdcc.lib: added abs and labs
1696         * device/include/float.h,
1697         * device/lib/_fsmul.c,
1698         * device/lib/printf_fast.c,
1699         * device/lib/printf_tiny.c: updated comments
1700
1701 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1702
1703         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1704         bug #1164313
1705
1706 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1707
1708         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1709         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1710
1711 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1712
1713         * device/lib/printf_large.c: removed inline assembly for portability and
1714           readability. Use printf_fast if speed or size are more important.
1715         * src/pic16/gen.c: removed conditions around use of DEBUGpc
1716         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1717
1718 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1719
1720         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1721         prevent compiler warning
1722
1723 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1724
1725         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1726         moved to level 0 and declared as static. Also they are explicit
1727         placed in access bank. This was necessery because some times they
1728         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1729         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1730         optimizations. Currently only compare to unsigned char is implemented,
1731         * src/pic16/gen.c: added fReturnIdx array,
1732         * (struct resolvedIfx) is moved to gen.h and made public,
1733         * (struct _G): added sregsAlloc and sregsAllocSet fields,
1734         * (aopForSym): added an optimization to directly store in stack of
1735         the operand of a SEND iCode,
1736         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1737         but as registers instead (AOP_REG) using the fReturnIdx array,
1738         * (pic16_freeAsmop): remove the freed register from the
1739         _G.sregsAlloc field,
1740         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1741         a compare of 'WREG',
1742         * (pic16_popGetTempRegCond): changed function prototype, now
1743         function takes also a bitVector argument v which holds the current
1744         set of registers that are allocated for stack access by aopForSym,
1745         registers allocated in aopForSym for accessing stack symbols are not
1746         any more part of the functions usedRegs field,
1747         * (genCall): some times aopOp is called for a stack variable to be
1748         send, aopForSym might perform the push, if this is true make sure
1749         that genCall doesn't push the variable twice by testing _G.resDirect,
1750         * (genFunction): changed testing for unspecified interrupt number
1751         from 256 to INTNO_UNSPEC,
1752         * modified selection scheme of frame pointer generation. Previously
1753         if function did use local registers a frame pointer was generated,
1754         now a frame pointer is generated only if function has arguments
1755         (that need PLUSW2 register access), or has stack arguments, or the
1756         compiler is not instructed to omit the frame pointer,
1757         * (genEndFunction): before restoring local registers that were saved
1758         in the function preamble, also restore the registers that *might*
1759         have been allocated for stack access,
1760         * (genRet): removed some old comments,
1761         * (genCmp, the active (RN's) version): added a call to the
1762         pic16_genCmp_special function to perform the compare with a more
1763         robust and optimized way,
1764         * (genInline): a feature has been added in inline code generation,
1765         which allows a wildcard variable substitution when writing inline
1766         assembly. Code is incomplete and experimental therefore undocumented,
1767         * (genCast): changed order of aopOp for result and right to allow
1768         aopForSym to directly load the result if possible,
1769         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1770         perform an optimized compare on some selected special occasions,
1771         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1772         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1773         generate an IVT any more,
1774         * src/pic16/main.c (pic16_optionsTable): added command line option
1775         --optimize-cmp,
1776         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1777         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1778         macros,
1779         * src/pic16/NOTES: Raphael Neider added in list of active developers
1780         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1781         jumptable_end to prevent bug #,
1782         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1783         inCond and outCond fields,
1784         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1785         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1786         turn off register spilling,
1787         * (packRegsForOneUse): synced with other ports' versions although it
1788         is not used currently,
1789         * (pic16_packRegisters): added an optimization while reading
1790         structure bitfields, some registers may be saved (malloc code is
1791         decreased by 80 bytes)
1792
1793 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1794
1795         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1796         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1797         this can be optimized more?
1798
1799 2005-03-10 Raphael Neider <rneider AT web.de>
1800
1801         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1802           genNearPointerGet): (hopefully) fixed access to bitfields via
1803           pointers (p->bitN = x; and x = p->bitN; failed)
1804
1805 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1806
1807         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1808
1809 2005-03-09 Raphael Neider <rneider AT web.de>
1810
1811         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1812
1813 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1814
1815         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1816         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1817           (regTypeNum): set REG_BIT type if necessary
1818         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1819         * support/regression/tests/critical.c: check bug 1144613
1820
1821 2005-03-02 Raphael Neider <rneider AT web.de>
1822
1823         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1824
1825 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1826
1827         * src/avr/ralloc.c (serialRegAssign),
1828         * src/ds390/ralloc.c (serialRegAssign),
1829         * src/hc08/ralloc.c (serialRegAssign),
1830         * src/mcs51/ralloc.c (serialRegAssign),
1831         * src/pic/ralloc.c (serialRegAssign),
1832         * src/pic16/ralloc.c (serialRegAssign),
1833         * src/xa51/ralloc.c (serialRegAssign),
1834         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1835
1836 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1837
1838         * src/SDCCast.c (decorateType): fixed bug 1124787
1839
1840 2005-02-20 Hubert Sack <sack AT digiplan.de>
1841         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1842
1843         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1844         patch #1121755
1845
1846 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1847
1848         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1849         to keep the correct label reference count when adding/removing references
1850         to labels. A peephole file using this is appended to patch #1144962.
1851
1852 2005-02-14 Raphael Neider <rneider AT web.de>
1853
1854         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1855         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1856         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1857           retrievals of result operand's value on assignment
1858
1859 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1860
1861         * device/include/pic16/string.h: modified prototype for memccpy()
1862         to memccpy(void *, void *, char, size_t)
1863         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1864         check whether to omit frame pointer or not,
1865         * (genInline): convert all occurences of "\n" to LF in inline
1866         assembler blocks, this helps formatting the inline text,
1867         * (pic16_loadFSR0): modified prototype,
1868         * (genNearPointerGet, genNearPointerSet): reorganization of code,
1869         removed some 8051 legacy code,
1870         * (genPackBits): enabled handling bitfields exceeding one byte in size,
1871         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1872         before allocating temporary registers in functions,
1873
1874 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1875
1876         * support/regression/tests/bitvars.c: corrected the "fix"
1877
1878 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1879
1880         * support/regression/tests/bitvars.c,
1881         * support/regression/tests/bitwise.c,
1882         * support/regression/tests/rotate.c: "fixed" problems on Alpha
1883
1884 2005-02-10 Raphael Neider <rneider AT web.de>
1885
1886         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1887           different size for Alpha
1888         * src/pic16/gen.c (genCmpEq) : improved compare with 0
1889
1890 2005-02-09 Raphael Neider <rneider AT web.de>
1891
1892         * src/SDCC.lex(doPragma) : save and restore warning options as well
1893           (also added new stack plus clone- and copyAndFreeSDCCERRG())
1894         * have #pragma less_pedantic set the errorlevel to WARNING
1895           (fixes #1117001)
1896         * (cloneOptimize) : fixed wrong malloc's size
1897         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1898           facilitate correct handling of #pragma (save|restore)
1899
1900 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1901
1902         * src/mcs51/gen.c: removed non-standard C nameless struct/union
1903
1904 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1905
1906         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1907
1908 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1909
1910         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1911
1912 2005-02-02 Raphael Neider <rneider AT web.de>
1913
1914         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1915         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1916         * (pic16_storeForReturn): fixed to allow returning function pointers
1917         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1918         * device/include/pic16/{stddef.h,stdbool.h}: added
1919
1920 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1921
1922         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1923
1924 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1925
1926         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1927         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1928          appeared to be required
1929
1930 2005-01-31 Borut Razem <borut.razem AT siol.net>
1931
1932         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1933           include/mcs51 and include/z80 directories to the package
1934
1935 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1936
1937         * src/hc08/gen.c (genFunction): fixed bug #1112752
1938
1939 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1940
1941         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1942
1943 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1944
1945         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1946
1947 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1948
1949         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1950
1951 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1952
1953         * device/include/c8051fxxx.h: removed these 6 files
1954         * device/include/mcs51/c8051fxxx.h: added these 11 new files
1955
1956 2005-01-26 Raphael Neider <rneider AT web.de>
1957
1958         * src/pic16/gen.c (genAssign): fixed assignment from longs
1959           in codespace (were cut to three bytes)
1960         * (genDummyRead): implemented (except for CODESPACE...),
1961           fixed bug #1108575
1962         * src/pic16/glue.c (emitStatistics): beautified
1963         * device/lib/pic16/libm/Makefile: added include path
1964
1965 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1966
1967         * src/z80/gen.c (aopPut): fixed bug #1103902
1968
1969 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1970
1971         * device/lib/expf.c: fixed bug #1095792
1972
1973 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1974
1975         * device/lib/pic16/libm: added Math library sources
1976
1977 2005-01-24 Raphael Neider <rneider AT web.de>
1978
1979         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1980           to enable upcast to pCodeOpReg2 (there is no type tag to
1981           differenciate the two and pic16_popGet2p cast into PCOR2)
1982         * src/pic16/main.c (_process_pragma): fixed another malloc bug
1983           (sizeof(sectNames) changed to sizeof(sectName))
1984           Both patches fix segfaults under MinGW.
1985
1986 2005-01-23 Raphael Neider <rneider AT web.de>
1987
1988         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1989           Safe_[mc]?alloc()'ed variables
1990         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1991           of (byte sized) temporaries (assign them to WREG for now)
1992         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1993           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1994           this might fix SIGSEGVs on MinGW...
1995         * src/SDCCopt.c (killDeadCode): restored original behaviour
1996           (volatile operands might get thrown away though)
1997
1998 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1999
2000         * src/pic16/gen.c: fixed bug #1106975,
2001         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2002         pointer update, INTCON is saved, global interrupts are disabled and
2003         restored after updateing TOS.
2004         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2005         * added function attribute 'shadowregs' to take advantage of shadow
2006         registers,
2007         * added function attribute 'wparam' as an alternative to the wparam
2008         pragma,
2009         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2010         user declares a non-ISR function as 'shadowregs',
2011         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2012
2013 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2014
2015         * .version: bumped version number to 2.4.8
2016         * device/lib/pic16/pics.all: list of PIC18F devices supported by
2017         pic16 port,
2018         * device/lib/pic16/libio/i2c/: I2C module support library,
2019         * device/include/pic16/i2c.h: I2C support library header,
2020         * device/lib/pic16/libc/stdio/: standard IO support sources,
2021         * (printf_small.c): printf_small() source, supports float print,
2022         * (printf_tiny.c): printf_tiny() source, does not support floats,
2023         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2024         enable global optimizations for entire library source, other
2025         Makefiles in the source tree are also modified to reflect this,
2026         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2027         function,
2028         * doc/sdccman.lyx: updated to reflect new changes,
2029         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2030         sym->onStack if-case,
2031         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2032         sbit, idata, _idata, xdata, _xdata,
2033         * added pragma library, to link an external library, (see doc),
2034         * removed command line options, --pomit-config-words, --pomit-ivt,
2035         --pleave-reset-vector,
2036         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2037         when calling assembler to reflect memory model used, also define
2038         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2039         reflect stack model used,
2040         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2041         on stack return NULL,
2042
2043 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2044
2045         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2046           of the operands is volatile. Fixes #1020220
2047
2048 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2049
2050         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2051         * (OptimizeRegUsage): make sure that there is really no other flow where
2052           the first pCode is used
2053
2054 2005-01-22 Raphael Neider <rneider AT web.de>
2055
2056         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2057           to fix #1106967 (pCode->seq are not set up correctly)
2058
2059 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2060
2061         * src/SDCCglue.c (glue): make sure code area is declared before the
2062         static initialization area.
2063
2064 2005-01-21 Raphael Neider <rneider AT web.de>
2065
2066         * device/lib/Makefile.in: fixed test for pic16 install dir
2067         * device/lib/pic16/*/Makefile*: modified compile flags to enable
2068           optimizations
2069         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2070           added --optimize-goto compiler switch and pragma wparam documentation
2071         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2072         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2073           and PRODH closing bug #1071770 (peephole optimizer)
2074
2075 2005-01-19 Raphael Neider <rneider AT web.de>
2076
2077         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2078           cmdLine buffers (used when calling sdcpp...) are large enough
2079           (MAX_PATH=256 truncates arguments leading to system halts when
2080           used in MinGW...)
2081         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2082         * (genUminus): rewritten to for efficiency
2083         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2084           used uninitialized in some cases)
2085         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2086           copy the third byte from the int -- now assumes 0x80 (data memory)
2087         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2088           operands (genAddLit expects the iCode's operands to swapped as
2089           well), fixed leftover bytes (crashed for short left operands)
2090         * (pic16_genMinusDec): performance improvements, removed false
2091           PIC14 emitSKPNCs
2092         * (pic16_genMinus): fixed to cope with differently sized operands
2093         * src/pic16/glue.c (pic16_glue): added new banksel optimization
2094           for --obanksel > 1
2095         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2096         * src/pic16/graph.[ch]: implementation of directed graphs, used by
2097           new banksel optimization
2098         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2099           analysis for temporary registers (segfaults...)
2100         * src/pic16/peeph.def: added rule
2101
2102 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2103
2104         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2105         which converts a float number to its ASCII representation
2106         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2107         functions to convert the fractional and integer part of a float to ASCII,
2108         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2109         realloc.c): added _MALLOC_SPEC to explicit place variables in data
2110         ram
2111         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2112         _STATMEM macros,
2113         * device/include/pic16/adc.h: added GPL info,
2114         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2115         a pCodeOp as tested operand,
2116         * (genNearPointerGet): optimized bit testing, does not use
2117         intermediate register for bit value, test directly instead with
2118         BTFSS, BTFSC, works only for single bits,
2119         * (genpic16Code): dump the name of the iCode in the asm,
2120         * src/pic16/ralloc.c (decodeOp): removed static declaration and
2121         renamed to pic16_decodeOp,
2122         * (serialRegAssign): do not allocate a temporary register for iCode
2123         sequences that test a single bit for 1/0
2124
2125 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
2126
2127         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
2128         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
2129         access stack and frame pointers. They are initially assigned to
2130         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
2131         accessing SFRs. Updated all occurences of modification of stack or
2132         frame pointer in gen.c and pcode.c,
2133         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
2134         assigning of a literal value to pointers,
2135         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
2136         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
2137         selected
2138
2139 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2140
2141         * doc/sdccman.lyx: update documentation about stack pragma, added
2142         some info for stack memory models
2143
2144 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2145
2146         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
2147
2148 2005-01-08 Raphael Neider <rneider AT web.de>
2149
2150         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
2151           udata sections to fix bug #1097823
2152
2153 2005-01-05 Raphael Neider <rneider AT web.de>
2154
2155         * src/pic16/gen.c (genGenericShift): added handling of differently
2156           sized left operand and result
2157
2158 2005-01-04 Raphael Neider <rneider AT web.de>
2159
2160         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
2161         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
2162           to hold the condition bit)
2163         * added new version of genCmp (old code available via #define)
2164         * added new version of genShiftLeft/genShiftRight in a generic
2165           way, now supports shifting by negative values
2166         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
2167           shiftCount (expected by genGenericShift)
2168         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
2169         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
2170           dump
2171         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
2172           is an invalid literal too...)
2173
2174 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
2175
2176         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
2177         from Raphael Neider,
2178         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
2179         for 8-bit literals. This fixes some literal operands which are sign
2180         extended to 16-bits ints when instruction needs only 8-bits.
2181
2182 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
2183
2184         * device/lib/logf.c: added mcs51 assembly version
2185         * device/lib/expf.c: added mcs51 assembly version
2186         * device/lib/_logexpf.c: new shared asm code for expf and logf
2187         * device/include/math.h: add defines for assembly math library
2188         * device/lib/Makefile.in: build new _logexpf.c
2189         * device/lib/libfloat.lib: use new _logexpf.c
2190
2191 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2192
2193         * src/pic/device.c
2194         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2195           device types which have less than 0x7f registers.
2196
2197 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2198
2199         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2200
2201 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2202
2203         * device/lib/printf_fast.c: only build on supported arch.
2204         * device/lib/printf_tiny.c: only build on supported arch.
2205         * device/lib/printf_fast_f.c: only build if asm float lib
2206         * device/lib/_fsget1arg.c: only build if asm float lib
2207         * device/lib/_fsget2args.c: only build if asm float lib
2208         * device/lib/_fsnormalize.c: only build if asm float lib
2209         * device/lib/_fsreturnval.c: only build if asm float lib
2210         * device/lib/_fsrshift.c: only build if asm float lib
2211         * device/lib/_fsswapargs.c: only build if asm float lib
2212         * device/include/stdio.h: don't provide print_fast,
2213           print_fast_f, print_tiny prototypes if --xstack used
2214
2215 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2216
2217         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2218         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2219           to the SOURCES
2220
2221 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2222
2223         * device/lib/printf_fast_f.c: same as printf_fast, but
2224           with floating point enabled
2225         * device/lib/printf_fast.c: minor tweaks
2226         * device/include/stdio.h: add printf_fast_f
2227
2228 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2229
2230         * src/SDCCmain.c: make --float-reent default for mcs51
2231         * device/lib/_fsadd.c: added mcs51 assembly version
2232         * device/lib/_fssub.c: added mcs51 assembly version
2233         * device/lib/_fsmul.c: added mcs51 assembly version
2234         * device/lib/_fsdiv.c: added mcs51 assembly version
2235         * device/lib/_fseq.c: added mcs51 assembly version
2236         * device/lib/_fsneq.c: added mcs51 assembly version
2237         * device/lib/_fsgt.c: added mcs51 assembly version
2238         * device/lib/_fslt.c: added mcs51 assembly version
2239         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2240         * device/lib/Makefile.in: add _fscmp to build
2241         * device/lib/libfloat.lib: add _fscmp to build
2242
2243 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2244
2245         * device/lib/_fs2slong.c: added mcs51 assembly version
2246         * device/lib/_fs2sint.c: added mcs51 assembly version
2247         * device/lib/_fs2schar.c: added mcs51 assembly version
2248         * device/lib/_fs2ulong.c: added mcs51 assembly version
2249         * device/lib/_fs2uint.c: added mcs51 assembly version
2250         * device/lib/_fs2uchar.c: added mcs51 assembly version
2251         * device/lib/_slong2fs.c: added mcs51 assembly version
2252         * device/lib/_sint2fs.c: added mcs51 assembly version
2253         * device/lib/_schar2fs.c: added mcs51 assembly version
2254         * device/lib/_ulong2fs.c: added mcs51 assembly version
2255         * device/lib/_uint2fs.c: added mcs51 assembly version
2256         * device/lib/_uchar2fs.c: added mcs51 assembly version
2257         * device/include/float.h: added #define to select asm vs c
2258
2259 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2260
2261         * device/lib/printf_fast.c: improvements to float output
2262         * device/include/float.h: add defines for assembly float library
2263         * device/lib/_fsget1arg.c: receive 1 float arg
2264         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2265         * device/lib/_fsnormalize.c: normalize a float
2266         * device/lib/_fsreturnval.c: return float, various helper routines
2267         * device/lib/_fsrshift.c: right shift a float's mantissa
2268         * device/lib/_fsswapargs.c: swap 2 floats
2269         * device/lib/Makefile.in: build these 6 new files for mcs51
2270         * device/lib/libfloat.lib: add these 6 files to the library
2271
2272 2004-12-26 Borut Razem <borut.razem AT siol.net>
2273
2274         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2275           built by gcc 3.4.2
2276
2277 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2278
2279         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2280           and fully reentrant and register bank neutral.
2281         * device/lib/printf_fast.c: added float (not enabled by default),
2282           added compact/slower integer (also not enabled by default),
2283           improved size/speed of fast integer code, other minor changes
2284         * device/include/stdio.h, device/lib/Makefile.in,
2285           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2286
2287 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2288
2289         * src/pic16/pcode.c: declaring variables other than at the start of a
2290           block is not supported in C by VC6.
2291
2292 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2293
2294         * applied a previous patch from Raphael Neider that wasn't included
2295         in the previous commits, which fixes infinite loops within jumptable
2296         improvements,
2297         * made some fixes that previous patches introduced
2298
2299 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2300
2301         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2302         that fixes an issue with AOP_PCODE asmop's offset,
2303         * (pic16_popCopyReg): update instance field too,
2304         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2305         function of pic port,
2306         * (genCmp, genAnd, genAssign),
2307         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2308
2309 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2310
2311         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2312         variables initial values to idata section,
2313         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2314         variables in some functions. This utilizes parmBytes field of iCode
2315         structure to hold the offset of the variable in stack. (might be
2316         able to use the stack field too?)
2317         * applied patch from Raphael Neider # ### , # ###
2318         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2319         variable initial values in idata section,
2320         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2321         for static variables with initial value
2322         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2323         applied fix in while loop from Raphael Neider.
2324
2325 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2326
2327         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2328         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2329         * src/ds390/ralloc.c (serialRegAssign): spill bits
2330         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2331         * support/Util/SDCCerr.c,
2332         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2333         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2334         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2335
2336 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2337
2338         * device/include/sdcc-lib.h: inserted LGPL, added includes
2339           asm/ds390/features.h and asm/mcs51/features.h
2340         * device/include/asm/default/features.h,
2341         * device/include/asm/gbz80/features.h,
2342         * device/include/asm/z80/features.h: added empty _AUTOMEM
2343           and _STATMEM
2344         * device/include/asm/ds390/features.h,
2345         * device/include/asm/mcs51/features.h: added files with defines for
2346           _AUTOMEM and _STATMEM indicating automatic and static storage class
2347         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2348         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2349         * src/SDCCicode.c (geniCodeCast),
2350         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2351         * src/SDCCloop.c (loopInduction): removed unused variable lr
2352         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2353           to convertToFcall to include char modulo (RFE 1065037), added check
2354           if left operand is unsigned and use abs of literal value
2355         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2356           as it doesn't work after conversion from peephole.def to peephole.rul
2357         * src/mcs51/gen.c (toBoolean): added check for size,
2358           (genModOneByte): optimized code for signed char modulo a literal
2359           power of 2 (thanks to Hubert Sack),
2360           (genRRC): removed unnecessary "clr c",
2361           (genRLC): replaced "add a,acc" with cheaper "rlc a"
2362         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2363           jump optimization,
2364           swapped rules 256.c and 256.d,
2365           extended 256.d by using new multiple checks (thanks Erik),
2366           added rules 256.e and 256.f,
2367           updated rule 261.a and 261.b to new generated code
2368         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2369
2370 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2371
2372         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2373           induction related bugs, including first part of bug #1074377
2374
2375 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2376
2377         * applied patch from bug-report #1076292,
2378         * applied patches for genAnd and Goto-optimizations for Raphael
2379         Neider,
2380         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2381         dump a less iCode information,
2382         * src/pic16/device.h (pic16_options_t): added field debgen,
2383         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2384         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2385         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2386         puclic,
2387         * (various functions): added macros FENTRY and FENTRY2 to functions,
2388         to emit function prologue,
2389         * (various functions): fixed indentation,
2390         * (genNearPointerGet): fixed loading of FSR0,
2391         * (genPackBits): applied patch from Raphael Neider to fix updating
2392         of FSR0 and touching only the modified bits,
2393         * src/pic16/genarith.c (various functions): added macros FENTRY to
2394         emit function prologue in comments,
2395         * src/pic16/pcode.h: added functions debugf2, debugf3,
2396         * src/pic16/ralloc.c: partial fix for packForPush caused
2397         segmentation fault,
2398
2399 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2400
2401         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
2402           <stsp AT users.sourceforge.net> with reversed byte order
2403         * support/regression/tests/rotate.c: added (ds390 skips some tests)
2404
2405 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2406
2407         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
2408           bug #1074377
2409         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
2410         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
2411
2412 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2413
2414         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
2415
2416 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2417
2418         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
2419           conditions,
2420           (setFromConditionArgs): friendly operand parser for peephole rules,
2421           (operandBaseName, operandsNotRelated): new peephole condition
2422           "operandsNotRelated" -- similar to "operandsNotSame", but takes
2423           architecture specific register naming into account, handles n-way
2424           comparisons, and supports quoted literals
2425         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
2426
2427 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2428
2429         * src/mcs51/peeph.def: fixed bug #1076940
2430
2431 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2432
2433         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
2434
2435 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2436
2437         Adding support for replacing ljmps with sjmps in jumptables
2438         generated for switch statements. For now you need to set the
2439         environment variable SDCC_SJMP_JUMPTABLE to enable this.
2440         Now 4 algorithms for mcs51 jumptable generation are used:
2441         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
2442         addresses loaded pc-relative for up to 112 cases and stack-pushing
2443         target addresses loaded with offset from dptr for up to 256 cases.
2444
2445         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
2446         * src/mcs51/main.c: adapted constants for switch table generation
2447         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
2448
2449 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
2450
2451         * device/lib/printf_large.c (_print_format): fixed bug 1073386
2452         * support/regression/tests/bug1057979.c: added test for bug 1073386
2453
2454 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2455
2456         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
2457         compilers
2458
2459 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2460
2461         * src/pic16/device.h,
2462         * src/pic16/genarith.c,
2463         * src/pic16/glue.c,
2464         * src/pic16/main.c,
2465         * src/pic16/pcode.c: applied patches #1068154 and #1070213
2466
2467 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
2468
2469         Large cummulative patch for pic16 port.
2470         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
2471         to call when a stack overflow occurs,
2472         * (malloc.h): added CVS Id tag,
2473         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
2474         variable,
2475         * added libc directory. The current version of LibC contains string
2476         functions, ctype functions and macros and some functions of the
2477         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
2478         be extensively tested in the future. Standard disclaimer here.
2479         Library is not automatically build yet. But one can build it by
2480         invoking 'make' inside the libc directory.
2481         * added ADC library under libio. Preliminary version yet.
2482
2483         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
2484         * src/pic16/gen.c (aopForRemat): asmop size is filled by
2485         aopForRemat() now and not by pic16_aopOp(),
2486         * (pic16_popGetTempReg): removed warning messgae when allocating
2487         temporary registers, its a buggy feature and will be removed,
2488         * (pic16_popGet): set register instance field in AOP_CRY,
2489         * (pic16_outBitC): fixed for results in size greater than 1,
2490         * (genUminusFloat): fixed for pic16, ported code from mcs51,
2491         * (pic16_storeForReturn): optimized return of 0,
2492         * (genCmp): experimental code for new genCmp which uses PIC18's
2493         special compare&skip instructions. Initial tests fail some times
2494         with variables grater than 1 byte in size, so new code is disabled,
2495         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
2496         a single bit,
2497         * (genCast): began a fix to optimize the casting of a bit to another
2498         bit, now assigning a bitfield to another bitfield will fail, sorry,
2499         * src/pic16/main.c: disabled the use of lr-support feature,
2500         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
2501         * added some function prototypes, added function _debugf prototype,
2502         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
2503         bits with offset (case PO_GPR_BIT),
2504         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
2505         command line,
2506         * (isBankInstruction): modified to return 0 for no banking instruction,
2507         and 1 for banking instruction,
2508         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
2509         caused stop processing pCodes after a inline assembly block,
2510         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
2511         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
2512         registers when it shouldn't,
2513         * src/pic16/ralloc.c (allocReg): add preliminary support for
2514         supporting a limited set of temporary registers,
2515
2516 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2517
2518         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
2519           genDataPointerSet): ensure assignments always copy in MSB to LSB
2520           order,
2521           (loadRegFromAop): recognize CLRH optimization,
2522           (genFunction): optimize RECEIVE iCodes in reentrant functions
2523
2524 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2525
2526         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
2527           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
2528           selected.
2529         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
2530         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
2531           contiguous with data
2532
2533 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2534
2535         * device/lib/_gptrget.c (_gptrget),
2536         * device/lib/_gptrgetc.c (_gptrgetc),
2537         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
2538           instead of sjmp to ret
2539         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
2540           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
2541
2542 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2543
2544         * .version: bumped version to 2.4.7
2545         * device/lib/_gptrget.c (_gptrget): is now _naked
2546         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
2547         * device/lib/_gptrput.c (_gptrput): is now _naked
2548         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
2549           (createFunction): fixed xstack
2550         * src/SDCCglue.c (emitMaps): set allocation required for bit area
2551         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
2552           or bit either,
2553           (geniCodeCritical): store original interrupt state in an iTemp bit
2554           var unless stack-auto
2555         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
2556         * src/SDCCmain.c (setIncludePath): added include/target to search path
2557         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
2558         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
2559           prototype,
2560           (processFuncArgs): put bit vars in bit area
2561         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
2562           unsaveRBank): fixed xstack,
2563           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
2564           (genFunction, genEndFunction): fixed xstack,
2565           (genAssign): optimization don't walk backwards through mem
2566         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
2567         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
2568         * support/regression/Makefile: also make library (for stack-auto) when
2569           making "all" and added "test-mcs51-xstack-auto"
2570         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
2571         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
2572         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
2573         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
2574         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
2575           make-library by MAKE_LIBRARY
2576         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
2577           regression tests for xstack
2578         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
2579         * support/regression/tests/critical.c: test for critical on mcs51
2580
2581 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2582
2583         * support/regression/ports/ucz80/spec.mk: use include and lib files from
2584           built version of sdcc instead of installed version
2585
2586 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
2589         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
2590           vprintf.c now
2591         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
2592         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
2593           WARNING: remove device/lib/build/z80/printf.o by hand when
2594           updating from previous build!
2595         * device/lib/z80/printf.c: updated comment
2596         * support/regression/tests/bug1057979.c: test all ports now
2597         * support/regression/tests/bug1065458.c: file added
2598
2599 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2600
2601         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
2602           *_start and *_end symbols for static functions
2603
2604 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
2607           and search crt0.o in all library paths,
2608           (setIncludePath): proper handling of --nostdinc,
2609           (setLibPath): proper handling of --nostdlib
2610         * support/regression/Makefile,
2611         * support/regression/ports/ds390/spec.mk,
2612         * support/regression/ports/gbz80/spec.mk,
2613         * support/regression/ports/hc08/spec.mk,
2614         * support/regression/ports/mcs51/spec.mk,
2615         * support/regression/ports/mcs51-large/spec.mk,
2616         * support/regression/ports/mcs51-stack-auto/spec.mk,
2617         * support/regression/ports/z80/spec.mk: use include and lib files from
2618           built version of sdcc instead of installed version
2619         * doc/sdccman.lyx: fixed typo in --nostdinc
2620
2621 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
2622
2623         * src/pic/pcode.c,
2624         * src/pic/device.c,
2625         * src/pic/ralloc.c,
2626         * src/pic/gen.c : added support to generate code for struct bit fields.
2627
2628 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * as/xa51/xa_version.h,
2631         * device/include/errno.h,
2632         * device/include/regc515c.h,
2633         * device/lib/_itoa.c,
2634         * device/lib/_ltoa.c,
2635         * device/lib/ser_ir_cts_rts.c,
2636         * sim/ucsim/xa.src/glob.cc,
2637         * sim/ucsim/xa.src/inst_gen.cc,
2638         * sim/ucsim/xa.src/xa_bit.cc,
2639         * sim/ucsim/xa.src/xa_sfr.cc,
2640         * sim/ucsim/z80.src/inst_dd.cc,
2641         * sim/ucsim/z80.src/inst_fdcb.cc,
2642         * support/scripts/keil2sdcc.pl,
2643         * src/pic16/pic16.dsp,
2644         * src/pic16/pic16a.dsp: corrected cvs line endings
2645         * device/lib/printf_large.c: fixed bug 1057979
2646         * src/pic16/gen.c: fixed non-C standard code
2647         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2648         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2649         * support/regression/ports/mcs51/support.c: reload T1 asap
2650         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2651           pdata use and clear idata startup behaviour
2652         * support/regression/tests/bug1057979.c: added
2653
2654 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2655
2656         * device/examples/ds390/ow390/ad26.h,
2657         * device/examples/ds390/ow390/cnt1d.h,
2658         * device/examples/ds390/ow390/crcutil.c,
2659         * device/examples/ds390/ow390/ownet.h,
2660         * device/examples/ds390/ow390/owsesu.c,
2661         * device/examples/ds390/ow390/swt12.h,
2662         * device/examples/ds390/ow390/swtoper.c,
2663         * device/examples/ds390/ow390/temp10.h,
2664         * device/examples/ds390/ow390/thermodl.c,
2665         * device/examples/ds390/tinitalk/tinitalk.dsp,
2666         * device/examples/ds390/tinitalk/tinitalk.dsw,
2667         * device/examples/mcs51/clock/hw.h,
2668         * device/examples/mcs51/simple2/go.bat,
2669         * device/examples/serialcomm/windows/serial.h,
2670         * device/examples/xa51/dummy.c,
2671         * device/examples/xa51/hello.c,
2672         * device/include/80c51xa.h,
2673         * device/include/at89x051.h: corrected cvs line endings
2674
2675 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2676
2677         * src/pic16/main.c (options): added command line --gstack, to trace
2678         stack over/under flows,
2679         * added pragma 'wparam' to allow passing first byte of function
2680         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2681         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2682         call to __gstack_test function and sets up the symbol as extern,
2683         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2684         * popaop): added call to pic16_testStackOverflow,
2685         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2686         wparamList list,
2687         * (genCall, genPcall): now all parameters are passed via stack
2688         except in functions that are pass to wparam pragma in which WREG is
2689         used too,
2690         * (genPcall): REENTRANT flag is checked to see if variable prototype
2691         contains reentrant keyword, don't call a non-reentrant function, via
2692         a reentrant function pointer or vice versa, functions are never
2693         passed via WREG,
2694         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2695         D.Winkler,
2696         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2697         SIGSEGV when accessing a NULL register stucture,
2698         * (pic16_printGPointerType): modified to handle UPPER modifier for
2699         function initializers, changed prototype of function to simpler one,
2700         * (pic16_printIvalFuncPtr): check to see if function is already
2701         added in externs list,
2702         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2703         optimized a move from W to SFR with a move to the same register
2704         later after a CALL,
2705         * device/lib/pic16/debug: NEW directory, contains debug features
2706         which are enabled when linking with libdebug.lib, currently command
2707         line option --gstack enables stack pointer tracing for over/under
2708         flow, corresponding sources are in debug/gstack
2709
2710 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2711
2712         * doc/sdccman.lyx: updated SDCC version,
2713         * (PIC16 port): update list of command line options,
2714         * src/pic16/device.h (structure pic16_options_t): added field gstack
2715         to enable stack overflow tracing on push/pops,
2716         * src/pic16/device.c (statistics structure): added statistics
2717         structure,
2718         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2719         pic16_dump_int_registers): increase statistics counters for each
2720         * variable which is encountered
2721         * (pic16_dump_usection): emit each .udata variable to its own udata
2722         section,
2723         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2724         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2725         parameters via stack, otherwise use old scheme,
2726         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2727         assembler output file,
2728         * src/pic16/main.c: added command line options --gstack to enable
2729         push/pop tracing for stack overflow,
2730         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2731         instructions): added size of each instruction,
2732         * (pic16_countInstruction): estimate size of instructions in
2733         the_pFile list, inline assembly blocks are not counted,
2734         * (pic16_FixRegisterBanking): trace previous register usage, when
2735         banksel optimizations is greater than 0, don't emit a redudant
2736         banksel directive,
2737
2738 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2739
2740         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2741         * src/pic16/ralloc.c : applied same fix for pic16.
2742         * src/pic/gen.c : tidied it up a little.
2743
2744 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2745
2746         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2747         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2748
2749 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2750
2751         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2752
2753 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2754
2755         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2756         non-reentrant function __modsint in the interrupt function (thus
2757         corrupting math operations during serial I/O)
2758         * device/lib/ser_ir.c: as above, changed buffersize
2759         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2760         256.c,d for zeroing
2761         * doc/Makefile: added option -t for rsync
2762
2763 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2764
2765         * src/SDCCast.h (struct ast),
2766         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2767
2768 2004-10-20 Borut Razem <borut.razem AT siol.net>
2769
2770         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2771         package
2772
2773 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2774
2775         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2776         makefile targets,
2777         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2778         support functions to replace long sequences of MOVFF's from access
2779         bank registers to stack and vice versa,
2780         * src/pic16/device.h: added new field opt_flags, where optimization
2781         flags can be set to enable certain features,
2782         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2783         * pBlock, (genFunction, genEndFunction): surroung loop for
2784         saving/loading used registers in stack with PC_INFO pCodes,
2785         INF_LREGS. Code in between can then be optimized by pCode optimizer
2786         to support function calls,
2787         * (genDataPointerSet): fixed bug which loaded float fields in
2788         structures with corrupt data,
2789         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2790         in a standard way debug info on stderr. Feature used for developing
2791         and debugging only,
2792         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2793         obsolete chunks of code,
2794         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2795         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2796         * pic16/src/pcode.c (pic16_newpCodeInfo,
2797         * (pic16_newpCodeOpLocalRegs),
2798         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2799         feature,
2800         * (pic16_pCodeConstString): printing of the initial value of a
2801         symbol as a comment is inhibited since parsing was already done by
2802         copyStr and output is corrupt,
2803         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2804
2805 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2806
2807         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2808
2809 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2810
2811         * as/mcs51/lkarea.c: removed old K&R style,
2812           (lnksect): changed check on boundary error,
2813           (lnksect2): changed check on boundary error,
2814           (lnksect2): extend XSTK to end of page if size = 1
2815         * as/mcs51/lkmain.c: removed old K&R style,
2816           (Areas51): create l_IRAM symbol
2817         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2818         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2819           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2820         * device/lib/_mullong.c: added version to be compiled with xstack
2821         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2822         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2823         * device/lib/mcs51/crtxstack.asm: fixed comment
2824         * src/SDCCglue.c: maxInterrupts defaults to 0,
2825           (emitMaps): added pdata,
2826           (createInterruptVect): (re)moved default,
2827           (glue): added pdata,
2828           (glue): moved __start__xstack to XSTK with default size 1
2829         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2830           and options.float_rent when options.stackAuto is set,
2831           (linkEdit): only write XDATA_NAME if provided on command line
2832         * src/SDCCmem.h,
2833         * src/SDCCmem.c: added pdata
2834         * src/port.h: added pdata_name to PORT
2835         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2836           (saveRegisters, unsaveRegisters): removed usage of B,
2837           (genMinus): fixed accumulator clash,
2838           (genJumpTab): added comment, this needs another look
2839         * src/mcs51/gen.c: added check for "B in use" paranoia,
2840           added pushB() and popB()
2841         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2842           chance
2843         * src/avr/main.c,
2844         * src/ds390/main.c,
2845         * src/hc08/main.c,
2846         * src/mcs51/main.c,
2847         * src/pic/main.c,
2848         * src/pic16/main.c,
2849         * src/xa51/main.c,
2850         * src/z80/main.c: (reset_regparms) made void parameter explicit and
2851           added PSEG (PAG,XDATA) or NULL to port specifier
2852         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2853         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2854           (_mcs51_genInitStartup): removed __start__xstack equ,
2855           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2856         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2857         * src/z80/gen.c (_rleAppend): fixed warnings
2858         * support/regression/tests/zeropad.c: added pdata test
2859         * .version: bumped to 2.4.6
2860
2861 2004-10-17 Borut Razem <borut.razem AT siol.net>
2862
2863         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2864         as a part of nightly build
2865
2866 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2867
2868         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2869         WREG holds the first byte function parameters,
2870         * (aopForSym): take special case for symbols which are in FARSPACE
2871         but in CODESPACE too,
2872         * (assignResultValue): modified to take into account _G.useWreg,
2873         * (genCall): don't use wreg for parameter passing when function is
2874         declared as reentrant, too, added optimization INCF to stack
2875         pointer when stack parameter count is 1,
2876         * (genFunction, genEndFunction): refurnished and fixed to not using
2877         wreg for passing parameters when function has varargs or is
2878         reentrant, fixed bug with symbol name compare for generating
2879         functions in absolute address,
2880         * (pic16_storeForReturn): refurnished,
2881         * (genCmp): began writing a new version of the function, not ready
2882         yet, therefore it is disabled,
2883         * (genAssign): do not read code memory when assigning a function to
2884         a pointer function,
2885         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2886         array of characters, not pointer,
2887         * (pic16initialComments): in debug mode emit an .ident directive for
2888         the assembler,
2889         * (_process_pragma): emit a new warning type (internal to pic16)
2890         when setting stack to default length, emit a similar warning when
2891         placing a function at absolute address and address is not word aligned
2892         * (_pic16_parseOptions): added 'return TRUE' statement,
2893         * (_pic16_linkEdit): if compiling a source, then add the source's
2894         file object, first in the list of objects to link,
2895
2896 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2897
2898         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2899         * src/pic/main.c : removed VC warning.
2900         * src/pic/gen.c : changed comment.
2901
2902 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2903
2904         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2905         reference to a deprecated symbol _GPTRREG was causing failure to
2906         link. Thanks G. M. Gallant for the info.
2907
2908 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2909
2910         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2911         comments for Bugs item #954788.
2912
2913 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2914
2915         * src/pic16/device.c (pic16_dump_gsection,
2916         * pic16_groupRegistersInSection): handle symbols declared to be in
2917         access bank differently,
2918         * src/pic16/gen.c (struct _G): added field resDirect,
2919         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2920         send values read from stack directly to result and don't allocate
2921         temporary values,
2922         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2923         same registers,
2924         * (pic16_sameRegsOfs): NEW,
2925         * (freeAsmop): if _G.resDirect is set then do not mark registers as
2926         free because they were not allocated from temporary pool,
2927         * pic16_popRegFromString): workaround to fix a problem with
2928         allocating variables twice or never,
2929         * (genGenPointerGet): using PRODL instead of FSR0H,
2930         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2931         instead of FSR0H,
2932         * (genAssign): take advantage of the _G.resDirect flag,
2933         * (genCast): around line 11844, use mov2f instead of directly
2934         MOVFF'ing between operands to account for literal values,
2935         * src/pic16/genutils.c: some new debug functions for gpsim have been
2936         added,
2937         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2938         float with integer part only,
2939         * src/pic16/main.c (_process_pragma): handle pragma udata access to
2940         place variables in access bank
2941         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2942         updated sources to reflect recent changes in gen.c
2943
2944 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2945
2946         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2947         sources that searched for headers in installation path, now the
2948         device/include/pic16 is used,
2949         * src/pic16/glue.c (pic16glue),
2950         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2951         .line directives if not in debug mode, this suppresses assembler's
2952         warnings for ignored directives
2953
2954 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * src/port.h: made reset_regparms prototype void parameter explicit.
2957         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2958         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2959         * doc/sdccman.lyx: documented warning disabling and how to use
2960           printf_large to make it print floats.
2961         * device/include/stdbool.h: NEW
2962         * device/lib/_atof.c,
2963         * device/lib/_divuint.c,
2964         * device/lib/_divulong.c,
2965         * device/lib/expf.c,
2966         * device/lib/printf_large.c,
2967         * device/lib/sincosf.c,
2968         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2969         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2970           a completely reentrant lib.
2971
2972 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2973
2974         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2975         * device/include/pic16/stdio.h: fixed bug with colon
2976
2977 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2978
2979         * device/include/pic16/stdio.h,
2980         * device/include/pic16/stdlib.h,
2981         * device/include/pic16/math.h: NEW
2982         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2983         declared as _naked to reduce overhead
2984         * device/lib/Makefile.in (target port-specific-objects-pic16):
2985         changed * to *.* so to ignore the CVS directory,
2986         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2987         stacked variables back in stack,
2988         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2989         corruption
2990
2991 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2992
2993         * .version: bumped version number to 2.4.5
2994         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2995         * support/Util/SDCCerr.c (messages structure): added entry for
2996         W_POSSBUG2
2997
2998         Large cumulative patch for pic16 port and libraries.
2999         * device/include/pic16/sdcc-lib.h,
3000         * device/include/pic16/stdarg.h,
3001         * device/include/asm/pic16/features.h,
3002         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3003         * device/include/pic16/float.h: changes reentrant keyword with
3004         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3005         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3006         updated target build-libraries to include objects from gptr,
3007         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3008         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3009         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3010         all function headings,
3011         * src/SDCCmain.c: added global parameter userIncDirsSet,
3012         * (parseCmdLine): when option -I is encountered add directory to
3013         userIncDirsSet too,
3014         * src/version.awk: added space between control and long,
3015         * src/pic16/NOTES: added some notes for the port,
3016         * src/pic16/gen.c: added prototype for mov2fp function,
3017         * (fReturnpic16[]): properly named return value registers,
3018         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3019         * (aopForSym): added code to handle symbols with onStack flag set,
3020         symbols onStack are allocated PTRSIZE bytes,
3021         * (aopFreeAsmop): handles special case where asmops are stack objects,
3022         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3023         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3024         added argument lock to trace flaws in allocating temporary registers
3025         when developing port,
3026         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3027         * (pic16_popRegFromString): reenabled allocating a direct register
3028         from string,
3029         * (assignResultValue): various beautifications,
3030         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3031         referenced function argument,
3032         * (genIpush): reenabled to allow stacked arguments, handles only
3033         ic->parmPush iCodes,
3034         * (genCall, genPcall): major changes to allow for variable argument
3035         functions, fixed a bug with falsely restoring stack pointer after
3036         returning from call,
3037         * (genFunction): pending code for critical function,
3038         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3039         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3040         * (genNearPointerGet): fixed bug with indirect reading, was always
3041         reading from INDF0
3042         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3043         pointers,
3044         * (genAddrOf): rewrote code to take address of a stacked function parameter
3045         * (genCast): fixed casting to generic pointer type,
3046         * src/pic16/gen.h: added AOP_STA,
3047         * (struct asmop): added field stk,
3048         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3049         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3050         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3051         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3052         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3053         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3054         generic pointers,
3055         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3056         and library paths,
3057         * (pic16_port structure): generic pointer size is set to 3,
3058         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3059         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3060         compiler warning,
3061         * src/pic16/ralloc.c (allocReg): prevent allocating register when
3062         operand is an iTemp,
3063
3064 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3065
3066         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3067         * debugger/mcs51/simi.c: addapt new syntax of s51
3068
3069 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3070
3071         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3072         * src/pic16/pcode.c: commented out some calls to free() in order to
3073         fix bug #989576,
3074
3075 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3076
3077         * src/SDCCicode.h,
3078         * src/SDCCicode.c (isiCodeInFunctionCall),
3079         * src/avr/ralloc.c (selectSpil),
3080         * src/pic/ralloc.c (selectSpil),
3081         * src/pic16/ralloc.c (selectSpil),
3082         * src/ds390/ralloc.c (selectSpil),
3083         * src/hc08/ralloc.c (selectSpil),
3084         * src/xa51/ralloc.c (selectSpil),
3085         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3086         stack in the middle of a function call sequence (fixes bug #1020268)
3087         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3088         costs associated with the minimum switch case.
3089
3090 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3091
3092         * src/SDCC.lex: fixed bug #1030549
3093
3094 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3095
3096         * src/SDCCcse.h (struct cseDef),
3097         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3098         over a function call if the CSE is derived from a symbol whose
3099         address has been taken (fixes bug #1029883)
3100         * support/regression/tests/bug-1029883: a new regression test for
3101         this bug
3102
3103 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3104
3105         * src/hc08/gen.c (emitinline): fixed bug #1029778
3106         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3107         to a cast object is no longer a syntax error ("fixes" bug #1030006,
3108         and starts toward RFE #905167)
3109
3110 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3111
3112         * src/pic16/gen.c (mov2f): New function to move an operand to
3113         another without considering if it is a literal or a register,
3114         * (pic16_sameRegs): don't check if they are both AOP_REG,
3115         * (AccRsh): removed andmask=0 lines,
3116         * (genLeftShift): duplicated to be improved in future versions,
3117         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3118         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3119         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3120         * (pic16initMnemonics): added initialization for POC_INFSNZW,
3121         * (insertBankSwitch): fixed inserting banksel directives algorithm
3122         for instructions that follow a skip instruction, this fixes a report
3123         for broken subtraction code generation,
3124         * src/pic16/ralloc.c (deassignLRs): do not free register if current
3125         iCode is a left op, just in case result and right share the same
3126         registers
3127
3128 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3129
3130         * src/hc08/main.c,
3131         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
3132         preservation of HX
3133         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
3134         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
3135         on 2004-09-12; it was buggy
3136
3137 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3138
3139         * src/SDCCsymt.h: removed RESULT_CHECK
3140         * src/SDCCast.c,
3141         * src/SDCCglue.c,
3142         * src/SDCCval.c,
3143         * src/pic/glue.c,
3144         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
3145
3146 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
3147
3148         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
3149         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
3150         configuration values no more rejected by compiler, they are assigned
3151         to configuration registers with a warning message instead,
3152         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
3153         the for-loop so last conf register is emitted too,
3154         * (_pic16_initPaths): link library libsdcc.lib by default,
3155         * (_hasNativeMulFor): modified test for multiplication according to
3156         Raphael Neider's remarks. Integer multiplication is also done with
3157         support functions,
3158         * device/include/pic16/pic18fregs.h: corrected type error in while
3159         testing and including 18f6720 header file
3160
3161 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
3162
3163         * src/pic16/device.h (pic16_options): removed field use_crt,
3164         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
3165         until an optimization to handle single bits is added,
3166         * (pic16_loadFSR0): moved before genUnpackBits,
3167         * (genAnd): some white lines removed,
3168         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
3169         leave_reset flags in pic16_options when using crt modules,
3170
3171 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
3172
3173         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
3174           for bugs 898889 & 979599. Also used some safer print instructions.
3175
3176 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
3177
3178         * src/pic16/device.h (pic16_options_t): added field use_crt,
3179         crt_name, no_crt,
3180         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
3181         catch a probable future bug,
3182         * src/pic16/gen.c: aopIdx function commented out,
3183         * (genAssign): commented out old code which used aopIdx,
3184         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
3185         code, added if conditionals to take into account the --use-crt
3186         command line options,
3187         * src/pic16/main.c (pic16_optionsTable): added new command line
3188         options, --use-crt= and --no-crt,
3189         * (_pic16_linkEdit): now the proper crt object is added in the
3190         linker command line except than when --no-crt is specified,
3191         * src/pic16/pcode.c,
3192         * src/pic16/pcode.h: added some structures and functions for a new
3193         optimization scheme to compansate for instruction overhead between
3194         same iCodes, this scheme is currently under development and is not
3195         working in any way,
3196         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3197         to && operator,
3198         * device/lib/pic16/startup/crt0i.c,
3199         * device/lib/pic16/startup/crt0iz.c: added global char variable
3200         __uflags to force the generation of an idata section
3201
3202 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3203
3204         * doc/Makefile,
3205         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3206         * doc/sdccman.lyx: updated sdcc version to 2.4.4
3207
3208 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3209
3210         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3211         Frieder) and clarified the default code optimization mode
3212
3213 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3214
3215         * src/SDCC.lex (doPragma, process_pragma),
3216         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3217         "opt_code_size", and "opt_code_balanced"
3218         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3219         regrouped options by category, added support for category headers
3220         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3221         and "--opt-code-size"
3222         * doc/sdccman.lyx: documented these new options and pragmas
3223         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3224         preference into account
3225
3226 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3227
3228         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3229           geniCodePreDec): Fixed bug 904237 by generating a warning
3230         * src/SDCCerr.h,
3231         * src/SDCCerr.c: added warning W_SIZEOF_VOID
3232
3233 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3234
3235         * src/pic/device.c : When no max ram set validate full memory range.
3236         * src/pic/pcode.c,
3237         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3238
3239 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3240
3241         * device/lib/_gptrget.c,
3242         * device/lib/_gptrput.c: updated comment
3243         * device/lib/calloc.c,
3244         * device/lib/free.c,
3245         * device/lib/malloc.c,
3246         * device/lib/realloc.c: added LGPL, made them reentrant-safe
3247         * src/SDCCcse.c (cseBBlock),
3248         * src/SDCCicode.c (printOperand, geniCodeArray),
3249         * src/SDCCicode.h (struct operand): fixed bug 868103
3250         * support/regression/tests/bug-868103.c: added
3251         * src/SDCCast.c (searchLitOp),
3252         * src/SDCCcse.h (struct cseDef),
3253         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3254         * src/SDCCicode.h (struct operand),
3255         * src/SDCCsymt.h (struct sym_link),
3256         * src/avr/gen.c (hasInc),
3257         * src/ds390/gen.c (hasInc),
3258         * src/hc08/gen.c (genPlusIncr, hasInc),
3259         * src/mcs51/gen.c (hasInc),
3260         * src/pic16/glue.c (pic16_printIvalChar),
3261         * src/pic16/ralloc.c (regWithIdx),
3262         * src/xa51/gen.c (hasInc) : removed warnings
3263         * src/SDCCast.c (createBlock): added comment ???
3264         * src/hc08/ralloc.c: updated comments
3265
3266 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3267
3268         * doc/sdccman.lyx: updated section on switch statements, added
3269         section about semaphore locking
3270         * doc/Makefile: added option -info for latex2html
3271         * device/lib/_gptrget.c,
3272         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3273
3274 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3275
3276         * src/pic/device.h,
3277         * src/pic/device.c,
3278         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3279          maxram is less than 0x100.
3280
3281 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3282
3283         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3284
3285 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3286
3287         * src/port.h,
3288         * src/mcs51/main.c,
3289         * src/ds390/main.c,
3290         * src/z80/main.c,
3291         * src/hc08/main.c,
3292         * src/pic/main.c,
3293         * src/pic16/main.c,
3294         * src/avr/main.c,
3295         * src/xa51/main.c
3296         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3297         a jump table is the best form for a switch statement, including
3298         automatic insertion of missing cases to make the case range
3299         continuous. Developed in collaboration with Frieder Ferlemann.
3300
3301 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3302
3303         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3304         accumulator result if it needs sign extension
3305
3306 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3307
3308         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3309
3310 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3311
3312         * device/lib/gbz80/printf.c,
3313         * device/lib/z80/printf.c: removed define for NULL
3314
3315 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3316
3317         * as/xa51/xa_link.c,
3318         * device/examples/ds390/ow390/ad26.c,
3319         * device/examples/ds390/ow390/cnt1d.c,
3320         * device/examples/ds390/ow390/counter.c,
3321         * device/examples/ds390/ow390/ds2480.h,
3322         * device/examples/ds390/ow390/ds2480ut.c,
3323         * device/examples/ds390/ow390/findtype.c,
3324         * device/examples/ds390/ow390/gethumd.c,
3325         * device/examples/ds390/ow390/owllu.c,
3326         * device/examples/ds390/ow390/ownetu.c,
3327         * device/examples/ds390/ow390/swt12.c,
3328         * device/examples/ds390/ow390/swtloop.c,
3329         * device/examples/ds390/ow390/temp.c,
3330         * device/examples/ds390/ow390/temp10.c,
3331         * device/examples/ds390/ow390/thermo21.c,
3332         * device/examples/ds390/ow390/tinilnk.c,
3333         * device/examples/ds390/ow390/tstfind.c,
3334         * device/examples/serialcomm/windows/serial.cpp,
3335         * device/examples/serialcomm/windows/test_serialcomm.cpp,
3336         * device/include/reg51.h: fixed line endings for cvs
3337
3338 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3339
3340         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3341         packRegsForAccUse, packRegisters): new accumulator register
3342         packing algorithm
3343         * support/regression/ports/hc08/support.c (_putchar): suppress
3344         warning of unused variable
3345         * src/SDCCicode.c: added SWAP entry to codeTable
3346
3347 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3348
3349         * device/lib/sprintf.c: forgot to add this file before previous commit
3350
3351 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3352
3353         * src/pic16/gen.c (genPackBits): added operand right in function
3354         parameters, load result directly if p_type is POINTER (that is
3355         called by genNearPointerSet)
3356         * (genUnPackBits): added operand left in function parameters,
3357         * (genNearPointerGet, genNearPointerSet): prevent the loading of
3358         FSR0 if accessing bitfields,
3359
3360 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3361
3362         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3363           _print_format; updated printf, sprintf, vsprintf
3364         * device/include/asm/default/features.h: corrected comment/define
3365         * device/lib/Makefile.in: added sprintf.c
3366         * device/lib/libsdcc.lib: added sprintf module
3367         * device/lib/printf_large.c,
3368         * device/lib/vprintf.c,
3369         * device/lib/sprintf.c: totally refactored printf_large and vprintf
3370           into these 3 files
3371         * support/regression/Makefile: changed ALL_PORTS into a usefull default
3372         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3373         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3374           hc08 test
3375         * support/regression/tests/zeropad.c: define idata as data for hc08
3376
3377 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3378
3379         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3380         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3381         labels are referenced at least once (even if a reference is not found)
3382         * src/hc08/gen.c (emitcode): set isComment flag for comments
3383         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3384         loads), rules 6a..6b (optimize jumps to return)
3385
3386 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3387
3388         * device/lib/acosf.c (acosf),
3389         * device/lib/asinf.c (asinf),
3390         * device/lib/atanf.c (atanf),
3391         * device/lib/ceilf.c (ceilf),
3392         * device/lib/cosf.c (cosf),
3393         * device/lib/coshf.c (coshf),
3394         * device/lib/cotf.c (cotf),
3395         * device/lib/fabsf.c (fabsf),
3396         * device/lib/floorf.c (floorf),
3397         * device/lib/log10f.c (log10f),
3398         * device/lib/logf.c (logf),
3399         * device/lib/sinf.c (sinf),
3400         * device/lib/sinhf.c (sinhf),
3401         * device/lib/sqrtf.c (sqrtf),
3402         * device/lib/tanf.c (tanf),
3403         * device/lib/tanhf.c (tanhf),
3404         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
3405         replaced all instances of "reentrant" in the library functions
3406         defined in math.h with this macro.
3407         * support/regression/tests/float_trans.c: reenabled test for hc08
3408
3409 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
3410
3411         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
3412         erroneously deleted
3413
3414 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3415
3416         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
3417         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
3418         multi-byte volatile operands are used
3419         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
3420         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
3421         initialization to area GSINIT0 so that it would always precede
3422         any static initializers in GSINIT
3423         * support/regression/tests/zeropad.c: fixed idata define for hc08
3424         * support/regression/tests/bug-927659.c,
3425         * support/regression/tests/float_trans.c: disabled tests for hc08
3426         pending missing library routines
3427         * .version: increased version number to 2.4.4 - hc08 port now passes
3428         regression tests
3429
3430
3431 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
3432
3433         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
3434         * Makefile.common.in,
3435         * as/Makefile,
3436         * as/hc08/Makefile.in,
3437         * as/mcs51/Makefile.in,
3438         * as/z80/Makefile.in,
3439         * debugger/mcs51/Makefile.in,
3440         * device/include/Makefile.in,
3441         * device/lib/Makefile.in,
3442         * doc/Makefile,
3443         * link/Makefile,
3444         * link/z80/Makefile.in,
3445         * packihx/Makefile.in,
3446         * sim/ucsim/main_in.mk,
3447         * sim/ucsim/avr.src/Makefile.in,
3448         * sim/ucsim/doc/Makefile.in,
3449         * sim/ucsim/gui.src/serio.src/Makefile.in,
3450         * sim/ucsim/hc08.src/Makefile.in,
3451         * sim/ucsim/s51.src/Makefile.in,
3452         * sim/ucsim/xa.src/Makefile.in,
3453         * sim/ucsim/z80.src/Makefile.in,
3454         * src/Makefile.in,
3455         * support/cpp2/Makefile.in,
3456         * support/librarian/Makefile,
3457         * support/makebin/Makefile: added DESTDIR to the install path proposed
3458         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
3459         * doc/sdccman.lyx: added DESTDIR documentation
3460
3461 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
3462
3463         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
3464         instruction for interrupt handlers, use fast returns when returning
3465         from high priority interrupts
3466
3467 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3468
3469         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
3470         code generation
3471         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
3472         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
3473         bugs, ported much of Bernhard's code from mcs51
3474         * src/mcs51/gen.c (genSend),
3475         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
3476         than one when calling a reentrant function
3477         * device/lib/_mullong.c: defined an alternate struct layout for big
3478         endian ports (hc08)
3479
3480 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3481
3482         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
3483         test
3484
3485 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3486
3487         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
3488         are sane and complete before asking the port its prefered parameter
3489         passing method (fixes bug #1017633)
3490         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
3491         and _ret3
3492
3493 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3494
3495         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
3496         problem in bitfields >= 8 bits.
3497
3498 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3499
3500         * src/SDCCsymt.c: undid changes that were not meant to be committed
3501
3502 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3503
3504         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
3505
3506 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3507
3508         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
3509           copied and wrong bit got inverted
3510
3511 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3512
3513         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
3514         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
3515         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
3516         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
3517         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
3518         assignments to bitfields at known addresses
3519         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
3520         reads from bitfields at known addresses
3521         * src/hc08/ralloc.c (packRegisters),
3522         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
3523         genhc08Code): optimize pointer get values used as conditionals
3524         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
3525         and branch
3526
3527 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3528
3529         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
3530         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
3531         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
3532         as conditionals
3533
3534 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3535
3536         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
3537
3538 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3539
3540         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
3541         related problems
3542
3543 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
3544
3545         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
3546
3547 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3548
3549         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
3550         mcs51 port
3551
3552 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3553
3554         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
3555
3556 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3557
3558         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
3559         cases use more compact code.
3560
3561 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
3562
3563         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
3564
3565 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3566
3567         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
3568
3569 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3570
3571         * src/SDCCsymt.h,
3572         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
3573         parameter of changePointer() from symbol* to sym_link*
3574         * src/SDCCast.c (decorateType): call changePointer() for CAST op
3575         * src/SDCCsymt.c (compareType): void* type is castable to other
3576         pointers, but not necesarily an exact match.
3577         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
3578         is no longer blindly treated as an exact match.
3579         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
3580
3581 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
3582
3583         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
3584
3585 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
3586
3587         * src/pic/gen.c,
3588         * src/pic/pcode.c,
3589         * src/pic/ralloc.h,
3590         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
3591
3592 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
3593
3594         * src/pic/device.c,
3595         * src/pic/device.h,
3596         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
3597
3598 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3599
3600         * src/mcs51/gen.c (emitcode): fixed bug #992819
3601
3602 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
3603
3604         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
3605           there's no need to make it worse
3606
3607 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3608
3609         * src/mcs51/ralloc.c (deassignLR),
3610         * src/ds390/ralloc.c (deassignLR),
3611         * src/hc08/ralloc.c (deassignLR),
3612         * src/z80/ralloc.c (deassignLR),
3613         * src/pic/ralloc.c (deassignLR),
3614         * src/pic16/ralloc.c (deassignLR),
3615         * src/avr/ralloc.c (deassignLR),
3616         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
3617         rlivePoint): fixed another part of bug #971834
3618
3619 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3620
3621         * src/z80/main.c: enabled "critical" keyword
3622         * src/z80/mappings.i,
3623         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
3624         functions (fixes bug #979646)
3625         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
3626
3627 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3628
3629         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3630           such as c:\mydir.
3631
3632 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3633
3634         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3635           doesn't disable too much optimizations
3636
3637 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3638
3639         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3640
3641 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3642
3643         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3644
3645 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3646
3647         * src/pic/gen.c tidied up tabs
3648         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3649         * src/pic/main.c tidied up tabs
3650         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3651         * src/pic/pcoderegs.c tidied up tabs
3652         * src/pic/ralloc.c tidied up tabs
3653
3654 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3655
3656         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3657         to S_FIXED for pic16 port and when symbol is not in level 0,
3658         allocate for S_REGISTER storage class and pic16 port, too,
3659         * src/pic16/device.h: prototype for checkSym,
3660         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3661         * (pic16_assignConfigWordValue): test the value and the mask to
3662         validate that the value is suitable for the configuration word,
3663         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3664         collect extern declared symbols, don't emit symbol twice, check
3665         first if symbol is in publics set first,
3666         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3667         * added command line '--fstack' which enables an experimental
3668         feature for stack access, too buggy to be used yet...
3669         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3670         * (pic16_allocDirReg): when register has storage class S_REGISTER
3671         allocate in pic16_dynAccessRegs,
3672         * device/include/pic16/pic18f????.h: modified configuration word
3673         naming convention, words started as CONFIG0H but should be CONFIG1H
3674
3675 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3676
3677         * device/include/mcs51reg.h: fixed bug 970993
3678
3679 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3680
3681         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3682         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3683         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3684         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3685         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3686         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3687           error/warning numbers,
3688           added function setWarningDisabled()
3689         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3690         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3691           _memcmp.c _memmove.c calloc.c realloc.c free.c
3692         * support/regression/tests/malloc.c: added tests for new functionality
3693         * support/regression/tests/zeropad.c: added tests for truncated initializers
3694           and initialized char arrays starting with '\x0'
3695         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3696
3697 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3698
3699         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3700
3701 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3702
3703         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3704         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3705         peephole 177.e. Thanks to anonymous
3706
3707 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3708
3709         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3710         function isn't used in the source but referenced as a
3711         variable initializer then declare it as extern in .asm file
3712
3713 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3714
3715         * .version: increased version number to 2.4.3
3716
3717         Adding version extension according to ChangeLog CVS revision
3718         * src/Makefile.in (target all): added dependency 'version.h'
3719         * (rule version.h): added rule to create version.h from ChangeLog,
3720         * (rule dep): added dependency version.h,
3721         * src/version.awk: AWK script to create version.h
3722         * src/SDCCdwarf2.c (dwWriteModule),
3723         * src/SDCCglue.c (initialComments),
3724         * src/SDCCmain.c (printVersionInfo): modified to write after
3725         version string the version extension number,
3726         * src/SDCCutil.c: included "version.h"
3727         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3728         number,
3729         * src/SDCCutil.h: added prototype for getBuildNumber
3730
3731         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3732         includeDirsSet, too,
3733         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3734         const char [] is found in function prototype...
3735
3736         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3737         moving to WREG with source is already in WREG,
3738         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3739         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3740         * (aopForSym): stack'ed symbols are partially supported, added
3741         if-clause to support symbols in FARSPACE,
3742         * (sameRegs): added test for AOP_ACC to see if registers are same,
3743         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3744         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3745         * (pic16_popRegFromString): will not allocate a new register if it
3746         doesn't find one by name, bug may have introduced...
3747         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3748         * (genIpush): revived to use pic16 port's stack,
3749         * (genAddrOf): added incomplete case for stack'ed operand,
3750         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3751         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3752         can handle multibyte operands,
3753         * src/pic16/glue.c (pic16_printIval*): some debug info added,
3754         * (pic16initialComments): added message for MPLAB compatibility
3755         mode enabled,
3756         * src/pic16/main.h: prototype for pic16_mplab_comp,
3757         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3758         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3759         * (_pic16_linkEdit): NEW, handles link stage, transferred here
3760         because of increased complexity of procedure,
3761         * (_process_pragma): stack pragma changed to format 'stack pos len',
3762         emit symbol '_stack_end' to conform with gplink,
3763         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3764         to search for register,
3765         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3766         PO_GPR_REGISTER,
3767         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3768         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3769         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3770         case for PO_GPR_REGISTER,
3771         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3772         dies, the new era is ahead !...
3773         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3774         pic16_dynInternalRegs,
3775         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3776         * (pic16_allocDirReg): minor optimizations and bug fixes,
3777         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3778
3779         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3780         load stack and frame pointer with address of 'stack_end' symbol
3781
3782 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3783
3784         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3785         without source code but only variable initializers
3786
3787 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3788
3789         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3790         external are not declared as extern to reduce overhead while linking
3791
3792 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3793
3794         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3795
3796 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3797
3798         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3799           Yee Keat for the patch
3800         * src/SDCCast.c (decorateType): fixed bug #979599
3801         * src/ds390/gen.h: removed local fReturnSizeDS390
3802         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3803         * src/ds390/gen.c (genAnd, genOr, genXor),
3804         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3805
3806 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3807
3808         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3809         add relFilesSet to $3, manipulate $2 to handle linking of object
3810         files without source files in command line,
3811         * device/include/pic16 (all headers): added ID location macros,
3812         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3813         entries for ID location bytes,
3814         * (pic16_assignIdByteValue): NEW,
3815         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3816         added field dumpcalltree to pic16_options_t,
3817         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3818         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3819         emitting rFalseIfx label after check_carry label,
3820         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3821         pic16_emitDIRegs), NEW
3822         * (pic16glue): dump .calltree file when option --calltree found,
3823         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3824         * (_pic16_genAssemblerPreamble): emit ID locations after
3825         configuration registers,
3826         * (pic16_linkCmd): modifications of the link command,
3827         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3828         * (pic16_pCodeInitRegisters): don't init stack registers,
3829         * (pic16_findPrevInstruction): fixed bug,
3830         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3831         bug with immediate registers,
3832         * (buildCallTree): traces stack push and pop,
3833         * (pct2): dump also stack usage for each function,
3834         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3835         * (pic16_allocDirReg): various modifications,
3836         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3837         fixed to 1,
3838
3839 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3840
3841         * src/pic16/pcode.c: removed buggy double colon
3842
3843 2004-07-01 Borut Razem <borut.razem AT siol.net>
3844
3845         * support/scripts/sdcc.nsi: added include/pic16 to setup
3846
3847 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3848
3849         * device/lib/Makefile.in: fixed bug in target objects-pic16,
3850         * device/lib/pic16/Makefile: prefixed with dash (-) command under
3851         target 'clean',
3852         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3853         specific command line arguments. Also added sample lkr script
3854         for placing a variable at a specific memory bank.
3855         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3856         at a specific memory bank,
3857         * (pic16_dump_isection): fixed bug which caused string literals to
3858         be omitted when dumping idata section,
3859         * (pic16_groupRegistersInSection): added code to handle registers
3860         in specific memory banks,
3861         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3862         public, all references are renamed too,
3863         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3864         AOP_DPTR2,
3865         * (pic16_storeForReturn): added case to handle when dest is WREG,
3866         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3867         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3868         pic16_rel_udata, check to see if that register is marked as being
3869         a member of a specific memory bank,
3870         * (pic16_printIvalCharPtr): added code to add string literals either
3871         to code or the idata sections,
3872         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3873         also accept the 'udata' pragma,
3874         * src/pic16/main.h: new structure types sectName and sectSym
3875         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3876         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3877         * (pic16_findPrevInstruction): fixed, it returned nothing,
3878         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3879         instruction combinations,
3880         * (pic16_FixRegisterBanking): heavily reorganised,
3881         * (pic16_AnalyzeBanking): if generating banksel directives is
3882         disabled, then don't call FixRegisterBanking at all,
3883         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3884         completely removed,
3885         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3886
3887 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3888
3889         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3890         Phuah Yee Keat <yk.phuah AT nestac.com>
3891
3892 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3893
3894         * src/pic16/glue.c (pic16createInterruptVect): function now emits
3895         correctly the IVT even if it is relocated to some other location
3896
3897 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3898
3899         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3900         * device/include/pic16/pic18f2220.h: NEW,
3901         * device/lib/pic16/libdev/pic18f2220.c: NEW,
3902         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3903         * src/pic16/device.c (struct Pics16): added info for 18f2220,
3904         * src/pic16/device.h (struct pic16_options): added ivt_loc and
3905         nodefaultlibs, ivt_loc is the location of the interrupt vector
3906         table, and nodefaultlibs signs that default libraries should not be
3907         linked in link stage,
3908         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3909         according to --ivt-loc argument,
3910         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3911         when pragma stack is found,
3912
3913 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3914
3915         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3916         256 (range check), 257 (do while), 258.a-f (bit banging
3917         f.e. on 3-wire SPI bus)
3918
3919 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3920
3921         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3922         variables used exclusively within a loop
3923
3924 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3925
3926         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3927
3928 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3929
3930         * src/SDCClrange.c (computeClash): fixed bug #971834
3931
3932 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3933
3934         * src/mcs51/gen.c (genCmp): fixed bug #975903
3935         * src/hc08/gen.c (operandsEqu),
3936         * src/ds390/gen.c (operandsEqu),
3937         * src/z80/gen.c (operandsEqu),
3938         * src/pic/gen.c (operandsEqu),
3939         * src/pic16/gen.c (operandsEqu),
3940         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3941         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3942
3943 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3944
3945         * src/SDCCcse.c (cseBBlock): fixed bug #966963
3946
3947 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3948
3949         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3950         default case in switch statement,
3951         * glue.c (pic16_initPointer): expr is initialised via decoarteType
3952         to eliminate problem with initialisation of pointers, but problem
3953         still exists,
3954         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3955         * (emitStaticSegment): removed various lines emitting debug info,
3956         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3957         added processor registers for utilizing EEPROM,
3958         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3959         configurable and set 8
3960
3961 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3962
3963         * .version: increased version number to 2.4.2,
3964
3965         Cumulative patch for pic16 port
3966         * src/pic16/device.c: changed scheme to dump initial values for
3967         variables in idata segment, all print_idata* functions were removed,
3968         now the pic16_printIval* will be called,
3969         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3970         * _pic16_printPointerType, pic16_printPointerType,
3971         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3972         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3973         NEW, similar to the respective functions in SDCCglue.c,
3974         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3975         way, emitting hex bytes,
3976         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3977
3978 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3979
3980         * src/avr/ralloc.c (serialRegAssign),
3981         * src/xa51/ralloc.c (serialRegAssign),
3982         * src/pic/ralloc.c (serialRegAssign),
3983         * src/pic16/ralloc.c (serialRegAssign),
3984         * src/hc08/ralloc.c (serialRegAssign),
3985         * src/z80/ralloc.c (serialRegAssign),
3986         * src/ds390/ralloc.c (serialRegAssign),
3987         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3988
3989 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3990
3991         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3992         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3993
3994 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3995
3996         Cumulative patch for pic16 port:
3997         * src/pic16/device.h (typedef PIC16_device) modified fields for
3998         defining microcontrollers,
3999         * src/pic16/device.c: added new info for all devices in Pics16 array,
4000         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4001         to be optimised out by the pCode optimiser,
4002         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4003         specially, bug reported by G.M. Gallant,
4004         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4005         as force'd so that cannot be optimised out by pCode optimiser,
4006         * src/pic16/pcode.c,
4007         * src/pic16/pcodepeeph.c,
4008         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4009         they are disabled by default, but can be enabled explicit with
4010         command argument --denable-peeps, for testing,
4011         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4012         --pomit-ivt in COMPILE_FLAGS
4013
4014 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4015
4016         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4017           compilation on MSVC
4018
4019 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4020
4021         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4022
4023 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4024
4025         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4026         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4027
4028 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4029
4030         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4031         would only assign 0x300001 register.
4032
4033 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4034
4035         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4036         in COMPILE_FLAGS. Thanks to G. Gallant for report.
4037
4038 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4039
4040         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4041         for ds80c400
4042         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4043         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4044         added peephole 254 (left shift), 255 (jump table)
4045
4046 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4047
4048         * device/lib/Makefile.in: removed comment line with model-pic16,
4049         * (target port-specific-objects-pic16): the libraries and objects
4050         are copied to the build directory form the device/lib/pic16/bin
4051         directory
4052
4053         Cumulative patch concerning pic16 port:
4054         * library directory has been re-organized,
4055         * added support for PIC18F1220,
4056         * added headers and library sources for chips 18f1220,18f6520,
4057         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4058
4059         * configuration registers setting has changed, now each supported
4060         device has a complete description of the registers it uses,
4061         * all initialisations are moved to idata sections, these section
4062         can be absolute or relocatable,
4063         * fixed initialisation of codespace variables,
4064         * fixed warning about PCLATU and gpsim,
4065         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4066         * (genAssign): use table reads when assigning from variables in codespace,
4067         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4068         char/int variables placed in codespace,
4069         * (pic16_emitConfigRegs): NEW, emits a list with configuration
4070         registers set in .asm file, no need for --pomit-config-words anymore,
4071         * (pic16glue): some 8051 legacy segments are commented out
4072         (to be removed completely),
4073         * added support for alternative assembler and linker with --asm=
4074         and --link= command line arguments,
4075         * peepholes are disabled automatically in the port, no need to
4076         specify on command line,
4077         * port supports natively char/int/long multiplication, but converts
4078         all divisions to support functions,
4079         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4080         to the file set in variable $2,
4081         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4082         strings in ASCII format and not in hex,
4083         * ralloc.c (serialRegAssign): added a triplet of conditional calls
4084         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4085         allocate proper register if iCodes aren't temporary,
4086
4087 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4090
4091 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4092
4093         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4094         is commented out
4095
4096 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4097
4098         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4099         computed address is reused
4100         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4101         multi-byte bitfields
4102
4103 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4104
4105         * src/z80/gen.c: (genArrayInit): must check for pointers too
4106
4107 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4108
4109         * support/regression/tests/zeropad.c: never meant to commit the
4110           nestedstruct test: removed, added check for GCC version
4111
4112 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4113
4114         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4115         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4116         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4117           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4118           bugs 928906 and 954082 half-empty initializers
4119         * src/SDCCsymt.h,
4120         * src/SDCCsymt.c (getAllocSize): added for above fix
4121         * src/z80/gen.c (genArrayInit): fixed bug 741044
4122         * support/regression/tests/zeropad.c: added tests
4123
4124 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
4125
4126         * src/pic16/device.c (pic16_dump_section): corrected bug which
4127         caused some symbols of the libraries to be misplaced
4128
4129 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4130
4131         * src/pic16/glue.c,
4132         * src/pic16/ralloc.h,
4133         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
4134         to fix conflict with pic port
4135
4136 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4137
4138         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
4139         externs configuration variables,
4140         * src/pic16/ralloc.h,
4141         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
4142         prototype in header, commented out some debug messages
4143
4144 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
4145
4146         * src/pic16/glue.c,
4147         * src/pic16/main.c,
4148         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
4149         for gpasm COFF object generation. Thanks to D. Hawkins for
4150         his patch info
4151
4152 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4153
4154         * src/ds390/main.c,
4155         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
4156         Brock for spotting this)
4157         * src/ds390/gen.c (genEndFunction),
4158         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
4159         interrupt handler and critical. Disable push/pop optimizations when
4160         peephole optimizations disabled.
4161
4162 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4163
4164         Updated pic16 library sources and headers.
4165         * device/lib/pic16/pic18f*/ ,
4166         * device/include/pic16/*.h: modified to handle structured SFR
4167         definitions
4168
4169 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4170
4171         * src/port.h (PORT structure): added hook initPaths, now each
4172         port can declare its own default search paths,
4173         which can been seen with the --print-search-dirs option,
4174         see pic16 port for example,
4175         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
4176         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
4177         * (doPrintSearchDirs): NEW, replaces in a central manner the
4178         printing of search dirs which was split in set*Paths functions,
4179         * (main): added call to port->initPaths and doPrintSearchDirs,
4180         * src/avr/main.c,
4181         * src/ds390/main.c,
4182         * src/hc08/main.c,
4183         * src/izt/i186.c,
4184         * src/izt/tlcs900h.c,
4185         * src/mcs51/main.c,
4186         * src/pic/main.c,
4187         * src/pic16/main.c: modified port structures to reflect addition of
4188         initPaths hook,
4189
4190         * src/pic16/device.c (regCompare): registers are finally sorted by name,
4191         * (pic16_dump_section): for registers in same address reserve memory once,
4192         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4193         to no_banksel,
4194         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4195         result is greater in size than right or left,
4196         * (pic16_genUMult8X8_8): there are some cases where the result can
4197         be 16 bits size, so handle these,
4198         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4199         * (pic16_outBitC): modified to emit pcodes,
4200         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4201         or not,
4202         * (genDivOneByte): implemented algorithm to divide 8-bits,
4203         * (genCmp): uncommented goto, but issues still exist,
4204         * (genAnd): fixed a bug with variables >8bits,
4205         * (genPackBits): optimization added that uses BCF/BSF to change a
4206         single bit,
4207         * (genAssign): fixed bug when assigning floating point literals,
4208         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4209         __sdcc_gsinit_startup label,
4210         * src/pic16/main.c (_pic16_init): removed search directory
4211         initialisations,
4212         * (_pic16_initPaths): NEW, used to initialise search directories,
4213         * (_hasNativeMulFor): support functions for all except char/int
4214         multiplication, and char division,
4215         * (PIC16_port struct): modified entry for native mul support,
4216         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4217         no_banksel option,
4218         * (buildCallTree): call to register_usage is ifdef'ed out,
4219
4220 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4221
4222         * device/include/string.h: applied Stas Sergeev's patch to make this
4223         header file compatible with the preprocessor -Wundef option
4224         * src/SDCCmain.c (main): abort compilation if preprocessor reports
4225         failure (fixes bug #941458)
4226
4227 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4228
4229         * src/SDCCopt.c (killDeadCode): fixed bug #907733
4230         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4231         that the variable, not the function, should be static
4232         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4233         to be consistent with non-literal case
4234
4235 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4236
4237         * src/SDCCast.c (isConformingBody): fixed bug #949967
4238         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4239         convilong): fixed bug #952086
4240
4241 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4242
4243         * src/SDCCmem.c (allocVariables): fixed bug #955321
4244
4245 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4246
4247         * src/hc08/main.c (_hc08_genAssemblerEnd),
4248         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4249         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4250         completely eliminated the use of a temporary file
4251         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4252         when more than one file linked
4253         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4254
4255 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4256
4257         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4258         which fixes bug #543481
4259         * support/regression/tests/bug-751703.c: fixed comments left from a
4260         cut and paste error
4261         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4262         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4263         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4264         scopes
4265         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4266         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4267         are now changed to underscores in moduleName
4268
4269 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4270
4271         * as/mcs51/lkmem.c: better fix for bug #954173
4272
4273 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4274         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4275
4276         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4277         * device/include/c8051f000.h,
4278         * device/include/c8051f120.h,
4279         * device/include/c8051f300.h,
4280         * device/include/c8051f310.h,
4281         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4282         PWM16) and detab'ed
4283
4284 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4285
4286         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4287         and mailing lists, doc'ed --no-peep-comments, removed reference
4288         to knoppix (newest version has no LyX/LaTeX), other minor changes
4289         * src/SDCCglue.c (glue): save 2 bytes stack space with
4290         option --main-return. The ljmp could probably be avoided too
4291
4292 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4293
4294         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4295
4296 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4297
4298         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4299         * src/SDCCopt.c (isLocalWithoutDef),
4300         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4301         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4302         (credit to Maarten Brock for patch #949363, on which this is based)
4303         * support/regression/tests/bug-751703.c: some test cases of extern used
4304         within inner scopes.
4305
4306 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4307
4308         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4309         SPEC_STRUCT
4310         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4311         struct definitions
4312         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4313         dwWriteLabel): fix to create valid debugger symbols even when
4314         the module name has non-alphanumeric symbols in it
4315         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4316         when a variable's allocation has been optimized away
4317
4318
4319 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4320
4321         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4322         * src/hc08/main.c,
4323         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4324         * src/mcs51/main.c,
4325         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4326         * src/ds390/main.c,
4327         * src/z80/gen.c (z80_emitDebuggerSymbol),
4328         * src/z80/main.c,
4329         * src/pic/gen.c (pic14_emitDebuggerSymbol),
4330         * src/pic/main.c,
4331         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4332         * src/pic16/main.c,
4333         * src/avr/gen.c (avr_emitDebuggerSymbol),
4334         * src/avr/main.c,
4335         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4336         * src/xa51/main.c,
4337         * src/SDCCdebug.c (emitDebuggerSymbol),
4338         * src/SDCCdebug.h,
4339         * src/port.h: added a debugger struct to the port struct. Added a
4340         callback for defining debugger symbols
4341
4342         * src/SDCCast.c (createLabel),
4343         * src/SDCC.y (labeled_statement): mark all compiler generated labels
4344         with isitmp = 1
4345         * src/SDCCicode.h,
4346         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4347         iCode back to the ast for the function
4348
4349         * src/hc08/ralloc.c (hc08_assignRegisters),
4350         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4351         unneeded fields from the regs struct.
4352         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4353         pushReg() & pullReg() functions instead of emitcode()
4354
4355         * src/hc08/gen.c (genLabel, genhc08Code),
4356         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4357
4358         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4359         debugger hooks
4360
4361         * src/hc08/gen.c (genEndFunction, genhc08Code),
4362         * src/hc08/gen.h,
4363         * src/mcs51/gen.c (genEndFunction, gen51Code),
4364         * src/mcs51/gen.h,
4365         * src/ds390/gen.c (genEndFunction, gen390Code),
4366         * src/ds390/gen.h,
4367         * src/z80/gen.c (genEndFunction, genZ80Code),
4368         * src/z80/gen.h,
4369         * src/z80/z80.h,
4370         * src/pic/gen.c (genEndFunction, genpic14Code),
4371         * src/pic/gen.h,
4372         * src/pic16/gen.c (genEndFunction, genpic16Code),
4373         * src/pic16/gen.h,
4374         * src/avr/gen.c (genEndFunction, genAVRCode),
4375         * src/avr/gen.h,
4376         * src/xa51/gen.c (genEndFunction, genXA51Code),
4377         * src/xa51/gen.h,
4378         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4379         specific code to cdbFile.c and out of the backend code generators
4380
4381         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4382         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4383         starting address is now 0
4384
4385         * as/hc08/asm.h,
4386         * as/hc08/m08pst.c,
4387         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4388         assembler directive for DWARF support
4389         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4390
4391         * src/src.dsp,
4392         * src/Makefile.in,
4393         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4394
4395 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4396
4397         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
4398         and inappropriate peephole optimization in jump tables
4399
4400 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4401
4402         * as/hc08/m08pst.c,
4403         * src/SDCCglue.c: sdccopt works for the hc08 port now
4404
4405 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
4406
4407         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
4408
4409 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4410
4411         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
4412
4413 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4414
4415         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
4416         rules
4417         * src/SDCCmain.c,
4418         * src/SDCCglobl.h,
4419         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
4420         comments from the peephole optimizer replacement rules
4421         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
4422         symbols
4423         * src/SDCCcse.c (updateSpillLocation),
4424         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
4425         equivalents
4426         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
4427         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
4428         objects far pointers
4429
4430 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4431
4432         * src/SDCCsymt.h: a missing part of my last change
4433         * src/pic/ralloc.c (regTypeNum),
4434         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
4435
4436 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4437
4438         * src/SDCCicode.h,
4439         * src/SDCCicode.c (aggrToPtrDclType),
4440         * src/SDCCptropt.h,
4441         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
4442         ptrPseudoSymConvert),
4443         * src/pic/ralloc.c (regTypeNum),
4444         * src/pic16/ralloc.c (regTypeNum),
4445         * src/hc08/ralloc.c (regTypeNum),
4446         * src/ds390/ralloc.c (regTypeNum),
4447         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
4448         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
4449
4450 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4451
4452         * link/z80/lkmain.c (afile),
4453         * as/hc08/lkmain.c (afile),
4454         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
4455         prevent a pointer problem when a filename has no directory and
4456         no extension specified.
4457
4458 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4459
4460         * link/z80/lkmain.c (afile): allow periods in directory names
4461         * link/z80/lkmain.c (afile),
4462         * as/mcs51/lkmain.c (afile),
4463         * as/hc08/lkmain.c (afile): allow linker script file to have an
4464         extension other than ".lnk"
4465         * link/z80/lklex.c (getfid),
4466         * link/z80/lkmain.c (parse),
4467         * as/mcs51/lklex.c (getfid),
4468         * as/mcs51/lkmain.c (parse),
4469         * as/hc08/lklex.c (getfid),
4470         * as/hc08/lkmain.c (parse): Support comments in the linker script
4471         file on lines by themselves and after filenames
4472
4473 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4474
4475         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
4476
4477 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4478
4479         * src/z80/peeph-z80.def: removed some peephole rules that don't
4480         work with multibyte arithmetic (fixed bug #937126)
4481         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
4482         to registers and not global variables
4483         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
4484         geniCodePreInc, geniCodePostDec, geniCodePreDec,
4485         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
4486         checking for assignments not internally generated (fixed bug #931895)
4487         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
4488         structure member (fixed bug #930072)
4489
4490 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4491
4492         * src/SDCCmain.c (linkEdit),
4493         * src/hc08/main.c (_hc08_parseOptions),
4494         * as/hc08/Makefile.in,
4495         * as/hc08/aslink.h,
4496         * as/hc08/asm.h,
4497         * as/hc08/m08pst.c,
4498         * as/hc08/lkrloc.c (relr, rele),
4499         * as/hc08/lkarea.c (lnkarea)
4500         * as/hc08/lkmain.c (afile, parse),
4501         * as/hc08/lkelf.c: support for ELF output
4502         * as/hc08/lks19.c (s19),
4503         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
4504
4505 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4506
4507         * as/mcs51/lkihx.c: Fixed bug #899105.
4508
4509 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4510
4511         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
4512         .dsp files from Unix to DOS.
4513
4514 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4515
4516         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
4517         function pointers; we have been compliant for several months now.
4518         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
4519         change that was accidently commented out
4520         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
4521         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
4522         bug #922319
4523
4524 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4525
4526         * src/hc08/gen.c: output of all of the internal debugging information
4527         is now controlled by the D() macro; it is disabled by default
4528
4529 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4530
4531         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
4532         harder to keep the same registers during a CAST iCode
4533         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
4534         long via int can be done in a single cast, if the signedness is
4535         correct.
4536         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
4537         putchar() in tinibios.c in ds390's library
4538
4539 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4540
4541         * src/SDCCast.c (decorateType): fixed bug #898889,
4542         cast result of a literal complement too
4543         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
4544         fixed check for bitfields
4545
4546 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
4547
4548         * src/SDCCicode.c (geniCodeLogic): made it static,
4549         (geniCodeLogicAndOr): added in order to fix bug #905492,
4550         (ast2iCode): fixed bug #905492
4551         * support/regression/tests/bug-905492.c: added
4552         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
4553         (processParms): fixed bug #927659: don't copy parms, this will clear
4554         decorated flag
4555         * support/regression/tests/bug-927659.c: added
4556
4557 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4558
4559         * src/SDCCast.c (addCast): don't cast float to char
4560         * device/lib/libsdcc.lib: added _memmove
4561
4562 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
4563
4564         * device/lib/large/Makefile: fixed parallel execution by
4565         replacing `make` by `$(MAKE)`
4566
4567 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4568
4569         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
4570         offsets (fixes bug #923936)
4571
4572 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
4573
4574         * device/lib/small/Makefile: fixed parallel execution by
4575         replacing `make` by `$(MAKE)`
4576
4577 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4578
4579         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
4580
4581 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
4582
4583         * src/pic/gen.c (genCpl): multi-byte complements were not working.
4584         * src/regression/Makefile: Regression test was not running.
4585
4586 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4587
4588         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
4589         complement if possible
4590         * src/SDCCval.c (valComplement),
4591         * src/SDCCicode.c (operandOperation): fixed complement of literal
4592         * support/regression/tests/onebyte.c (testComplement): added
4593
4594 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
4595
4596         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
4597         return an optimized tree; actually replace actParm with the new tree
4598         * src/SDCCast.h: added some parantheses to remove side effects
4599         * support/regression/tests/bug-920866.c
4600
4601 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
4602         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
4603         Bit operands were not being handled properly in the pic14 port.
4604         (now src/regression/add.c passes again).
4605
4606 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4607
4608         * src/SDCC.y (labeled_statement): case and default no longer require
4609         a following statement (RFE #893037)
4610
4611 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4612
4613         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
4614         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
4615         disabled (fixes bug #916294)
4616         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
4617         "mov a,acc"; patch provided by Lenny Story
4618         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
4619
4620 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4621
4622         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
4623         functions
4624         * src/ds390/gen.c (genFunction, genEndFunction),
4625         * src/ds390/ralloc.c (ds390_assignRegisters),
4626         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
4627         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
4628         pushed if there are parameters passed on the stack. Also, a cleaner
4629         way to decide if r0/r1 should be pushed/popped. (Together they fix
4630         bug #918693)
4631
4632 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4633
4634         * doc/sdccman.lyx,
4635         * device/lib/mcs51/crtpagesfr.asm,
4636         * device/lib/mcs51/crtxinit.asm,
4637         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4638         to avoid confusion with Si Lab's SFRPAGE register.
4639
4640 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4641
4642         * src/SDCCglue.c (emitMaps): allow public sfr variables
4643         * src/SDCCglue.c (initialComments): include compiler build date
4644         with compiler version and put the timestamp of the generated
4645         assembly file on a serperate line to be less confusing.
4646         * src/port.h: added genInitStartup hook
4647         * src/avr/main.c,
4648         * src/ds390/main.c,
4649         * src/hc08/main.c,
4650         * src/pic/main.c,
4651         * src/pic16/main.c,
4652         * src/xa51/main.c,
4653         * src/z80/main.c: genInitStartup initialize as NULL (default to
4654         historical behaviour)
4655         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4656         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4657         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4658         library instead of hard coding it into the compiler.
4659         * support/regression/ports/mcs51-stack-auto/spec.mk,
4660         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4661         * device/lib/mcs51/Makefile,
4662         * device/lib/small/Makefile,
4663         * device/lib/large/Makefile,
4664         * device/lib/mcs51/crtpagesfr.asm,
4665         * device/lib/mcs51/crtstart.asm,
4666         * device/lib/mcs51/crtxclear.asm,
4667         * device/lib/mcs51/crtxinit.asm,
4668         * device/lib/mcs51/crtclear.asm,
4669         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4670         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4671         and into user configurable files.
4672         * device/lib/clean.mk: clean mcs51 directory too
4673         * support/regression/tests/longlit.c: added static to T1 declaration
4674         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4675         accesses in the initialization code
4676
4677 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4678
4679         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4680         OSCTRIMVAL as noted in bug #916008
4681
4682 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4683
4684         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4685         in loops with multiple exits (reported as incorrect registers
4686         used by Martin Helmling in Sdcc-user list)
4687
4688 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4689
4690         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4691         made ds390 register extensions look less like error messages
4692
4693 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4694
4695         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4696         reported by Adam Wozniak in Sdcc-user list
4697
4698 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4699
4700         * src/SDCCast.c (decorateType): fixed with bug and promotion in
4701         arithmetic optimizations, added debug output
4702
4703 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4704
4705         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4706         * sdcc.spec: updated and split sdcc into 3 rpms
4707         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4708         needed for literals of LEFT_OP and '+'
4709         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4710         introduced RESULT_TYPE_NOPROM
4711         (geniCodeMultiply): fixed logic for decision if mul is optimized to
4712         left shift
4713         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4714         limited promotion to int only for '*'
4715         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4716
4717 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4718
4719         * src/pic16/gen.c (genSkip),
4720         (genc16bit2lit), (gencjneshort): commented out
4721         (is_LitOp): new helper function, checks operand type
4722         (genCmpEq): rewritten
4723
4724 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4725
4726         * support/regression/tests/bug-908454.c: added
4727
4728 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4729
4730         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4731         * src/SDCCicode.c (usualBinaryConversions): op needs int type
4732         (geniCodeCast): cosmetic, don't preserve bit storage class
4733         (geniCodeLeftShift): added promotion
4734         (geniCodeLogic): fixed regression
4735         * src/SDCCsymt.c (computeTypeOr): accept bits too
4736         (compareType): 2nd part of fix for bug #908454, needed for bitfields
4737
4738 2004-03-07  Borut Razem <borut.razem AT siol.net>
4739
4740         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4741
4742 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4743
4744         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4745         version of pic16_genPackRegisters which does not check if ic is a
4746         CAST operator,
4747         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4748         function cause string1.c regression test fails
4749
4750 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4751
4752         * sim/ucsim/configure.in,
4753         * sim/ucsim/configure,
4754         * sim/ucsim/doc/Makefile.in: use docdir
4755         * src/SDCC.y: fixed sbit atrributes
4756         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4757         * src/SDCCast.c (decorateType): |^& need special promotion handling
4758         * src/SDCCast.h,
4759         * src/SDCCsymt.h: moved definition of RESULT_TYPE
4760         * src/SDCCsymt.h (computeType),
4761         * src/SDCCicode.c: computeType() needs op
4762         * src/SDCCsymt.c (checkTypeSanity),
4763         * doc/sddman.lyx: "plain" bitfields are unsigned
4764         * src/SDCCsymt.c (computeTypeOr): added
4765         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4766         |^& ops
4767         * src/SDCCval.c (val*): computeType() needs op
4768         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4769         * support/regression/tests/onebyte.c: added tests for |^&
4770
4771 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4772
4773         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4774         for writing icode into asm output.
4775
4776 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4777
4778         * src/pic16/device.c: added some debug lines enabled
4779         with macro DEBUG_CHECK,
4780         * src/pic16/genarith.c: more debug in genPlus,
4781         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4782         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4783         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4784         * (aopForSym): onStack symbols are re-placed in data memspace,
4785         and onStack flag is cleared,
4786         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4787         copy temporary pcodeop,
4788         * (genPcall): added warning for not updating PCLATU,
4789         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4790         always true for pic16 port,
4791         * (genMultOneWord): NEW, supports integer multiplication,
4792         * (genMult): modified to call genMultOneWord,
4793         * (ifxForOp): added warning when return NULL,
4794         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4795         flag is set before call to operandFromSymbol for implicit
4796         added structures,
4797         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4798         options.intlong_rent are set by default,
4799         * (_hasNativeMulFor): modified to allow port generation of integer
4800         multiplication,
4801         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4802         set regtype to REG_SFR for all registers, restricting seting the
4803         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4804
4805 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4806
4807         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4808         more than 500 times in the regression tests
4809
4810 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4811
4812         * support/Util/SDCCerr.h,
4813         * support/Util/SDCCerr.c,
4814         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4815         enumerator_list),
4816         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4817         for symbol conflicts.
4818         * support/valdiags/tests/enum.c,
4819         * support/valdiags/tests/tentdecl.c,
4820         * support/valdiags/tests/struct.c: expect possible error messages
4821         referring to original symbol definitions.
4822         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4823         * src/SDCCsymt.h,
4824         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4825
4826 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4827
4828         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4829
4830 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4831
4832         * src/pic16/ralloc.c (newReg): fixed bug #908929
4833
4834 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4835
4836         * src/ds390/gen.c: added missing #include "main.h"
4837
4838 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4839
4840         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4841         checking if symbol is already in set,
4842         * src/pic16/device.h: prototype for checkAddSym,
4843         * src/pic16/gen.c: (_G): added entry interruptvector,
4844         * (assignResultValue): removed some commented out lines,
4845         * (genFunction): check for ISR via sym->type, absolute section for
4846         interrupt code is created via a new pBlock, the goto instruction is
4847         placed now correctly at the interrupt vector position, changed all
4848         references from ivec to _G.interruptvector,
4849         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4850         is the interrupt is a high priority one, same for return from ISR,
4851         * src/pic16/glue.c: changed all calls of addSetHead for publics and
4852         externs to calls of checkAddSym,
4853         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4854         pic16_pcode_verbose flag is set,
4855         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4856         * src/pic16/pcoderegs.c: message about how many registers are saved
4857         will only be emitted if pic16_pcode_verbose flag is set,
4858
4859 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4860
4861         * src/ds390/ralloc.h,
4862         * src/ds390/ralloc.c (ds390_regWithIdx),
4863         * src/ds390/gen.c (emitcode),
4864         * src/ds390/main.h,
4865         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4866         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4867         ds390operandCompare, getRegsRead, getRegsWritten,
4868         initializeAsmLineNode): customized instruction size calculation for
4869         ds390, started basis for some register optimizations
4870         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4871         corresponding assembly output
4872         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4873         missing push/pop of r0/r1. Optimized push/pops
4874
4875 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4876
4877         * src/mcs51/main.c (instructionSize): fixed ACALL size
4878         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4879
4880 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4881
4882         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4883         the sorting of rlist with NULL elements
4884         * (print_idataType, print_idata): NEW to create idata sections
4885         * src/pic16/device.h: idataSymSet new variable
4886         * src/pic16/gen.c (genFunction): fixed some bugs in string
4887         comparing, improved the absolute section creation for ISRs,
4888         added FSR0L/FSR0H in registers that are saved in an ISR,
4889         * (genInline): fixed the processing of inline snippets,
4890         now they undergo no process by the peephole optimizer
4891         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4892         are placed in idataSymSet,
4893         * (pic16emitStaticSeg): extern symbols are added in externs,
4894         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4895         switching when aboslute variables are placed in access bank memory
4896         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4897         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4898         commented out with #if,
4899         * (pic16_packRegisters): reintroduce the check for CAST because some
4900         symbols are not correctly handled,
4901         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4902         pCodeInstruction instead of pCode,
4903         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4904         pCodeAsmDir definition,
4905         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4906         directive, then the argument directive is emitted without the leading
4907         tab, hack for inline labels which must be in the first column,
4908         * (compareLabel,pic16_findNextInstruction),
4909         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4910         * (insertBankSwitch): modified for the new pCodeAsmDir,
4911
4912 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4913         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4914
4915         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4916         instance,
4917         * (pushSide): commented out with #if,
4918         * (assignResultValue): fixed some typos in saving
4919         registers,
4920         * (genPcall): FIXED and sync'ed with genCall,
4921         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4922         * (genNearPointerGet): fixed to handle some more cases,
4923         implementation scheme via table reads,
4924         * (genConstPointerGet): modified to access code memory correct,
4925         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4926         and improved to handle some cases
4927         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4928         instead of "RETLW" for init data
4929         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4930         not IN_DIRSPACE, work around to reduce bank switching when aboslute
4931         variables are placed in access bank memory (<0x80 and >=0xf80),
4932         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4933         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4934         TBLWT_POSTDEC,TBLWT_PREINC
4935         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4936         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4937         directives
4938         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4939         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4940         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4941         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4942
4943 2004-02-29  Borut Razem <borut.razem AT siol.net>
4944
4945         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4946         support/Util/findme.h, support/Util/system.h: enhance binary relative
4947         search for lib and include by using findProgramPath()
4948
4949 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4950
4951         * src/SDCCpeeph.h,
4952         * src/SDCCpeeph.c (pcDistance),
4953         * src/port.h,
4954         * src/mcs51/ralloc.h,
4955         * src/mcs51/ralloc.c (mcs51_regWithIdx),
4956         * src/mcs51/main.h,
4957         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4958         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4959         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4960         size calculation port specific, started basis for some register
4961         optimizations
4962         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4963         missing push/pop of r0/r1. Optimized push/pops
4964         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4965         * device/lib/_modsint.c (_modsint),
4966         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4967         and stack version so regression tests pass
4968
4969 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4970
4971         * src/Makefile.in (dep): include SLIBOBJS in dependency check
4972         * src/SDCCast.c (decorateType): catch another small optimization
4973         with '?' operator
4974         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4975         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4976         modified to finally use computeType() all over SDCC,
4977         see Feature Request #877103
4978         * src/SDCCval.h: cosmetic
4979         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4980         valCompare(); regression tested in muldiv.c
4981         * support/regression/tests/muldiv.c (testMod): mod sign follows
4982         dividend only
4983
4984 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4985
4986         * src/SDCCast.c (decorateType): fixed bug #902362
4987         * doc/INSTALL.txt: fixed install instructions for win32
4988
4989 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4990
4991         * device/include/Makefile.in (install): fixed by replacing spaces
4992         by tabs
4993         * doc/README.txt,
4994         * doc/INSTALL.txt: updated for release
4995         * doc/sdccman.lyx: added warning for --xstack being buggy
4996
4997 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4998
4999         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
5000         to eliminate build warnings.
5001         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5002
5003 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5004            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5005
5006         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5007         removed -penable-stack, added comment for stack pragma, added
5008         warning for not initializing the stack/frame registers, removed
5009         comment at interrupts section
5010
5011         Stack is made permanent, there is no ability to disable stack usage.
5012         * src/pic16/device.h,
5013         * src/pic16/device.c: removed all references to USE_STACK macro,
5014         * src/pic16/device.c (pic16_dump_section): when no elements in
5015         rlist, free rlist before return,
5016         * (pic16_dump_int_registers): NEW, internal registers are a new set
5017         of general purpose registers reused by each function,
5018         * (checkAddReg): returns 1 if registers is added to set,
5019         * (pic16_groupRegistersInSection): when a registers is of type
5020         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5021         * src/pic16/device.h: memRange and Assigned Memory are deleted,
5022         SRCASECMP macro is moved here from device.c
5023         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5024         PO_PCLATU, PO_PRODL, PO_PRODH,
5025         * (pic16_pCodeOpType, genMinus,
5026         changed compares to "a" register, with AOP_ACC,
5027         * (pic16_genPlus): fixed some bugs and indented properly,
5028         * (pic16_addSign): changed size to size+offset in the MOVWF
5029         instruction,
5030         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5031         multiply 8-bit operand by literal, result is 8-bit,
5032         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5033         multiply 2 8-bit operand, result is 8-bit,
5034         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5035         genUMult8X*_16,
5036         * src/pic16/gen.c: changed accUse to contain WREG only,
5037         * (pic16_emitcomment): renamed to pic16_emitpcomment,
5038         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5039         true, do not use immediate addressing any more unless sym is a
5040         pointer in codespace,
5041         * (aopForRemat): do not use immediate addressing when symbol not in
5042         codespace and when symbol's address is requested,
5043         * (aopOp): for-loop in if(sym->accUse) is modified for the new
5044         accUse size (= 1),
5045         * (aopGet): added case for AOP_ACC and don't return "accumulator
5046         bug" but WREG instead,
5047         * (popGetTempReg): pushes contents of temporary register in stack,
5048         * (popReleaseTempReg): pops contents of temporary register from
5049         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5050         * (pic16_popGet): separated case AOP_ACC to return register WREG
5051         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5052         or PO_IMMEDIATE and initializes their instance/offset appropriately,
5053         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5054         the use of immediate pointers to certain cases only.
5055
5056         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5057         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5058         * (assignResultValue, genCall, genRet): modified to use the new
5059         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5060         genPcall is still broken,
5061         * (genFunction): added code to create 'A' type pBlocks when
5062         interrupt functions are generated, code not extensively tested yet,
5063         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5064         * (genEndFunction): modified so ISRs pop stored registers from stack,
5065         * (genMultOneByte): cleanup,
5066         * (AccRsh): added flag andmask, to and result with appropriate mask,
5067         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5068         * (genDataPointerGet): fixed and reenabled its use,
5069         * (genNearDataPointerGet): bugs fixed,
5070         * (genDataPointerSet): bugs fixed,
5071         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5072         pic16_DumpSymbol, pic16_DumpOp,
5073         * src/pic16/genutils.h: function prototypes for the above functions,
5074         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5075         pointers,
5076         * (pic16emitRegularMap): many many many improvements, but needs a
5077         major cleanup,
5078         * src/pic16/main.c: enable_stack in pic16_options is removed,
5079         * (_pic16_parseOptions): removed command line options -penable-stack,
5080         * (_process_pragma): emit stack symbol only when stack pragma is
5081         processed,
5082         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5083         redirected to FSR0L/FSR0H pair,
5084         * (pic16_get_op, pic16_get_op2): modifications and improvements,
5085         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5086         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5087         for immediates,
5088         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5089         * (dumpPicOptype): NEW,
5090         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5091         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5092         with movff instruction,
5093         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5094         added pic16_int_regs, some packRegsFor* functions are commented out,
5095         because produce errors,
5096         * src/pic16/NOTES: minor modifications
5097
5098 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5099
5100         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5101         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5102         --pack-iram.
5103         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5104         * as/mcs51/lkaomf51.c: fixed bug #895763
5105
5106 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5107
5108         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5109
5110 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5111
5112         * doc/sdccman.lyx: added details about the HC08 storage classes and
5113         interrupts, fixed the register usage info for z80 & gbz80
5114
5115 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5116
5117         * doc/sdccman.lyx: added more pic16 port documentation
5118         * device/include/pic16/: added header pic18fregs.h
5119
5120 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5121
5122         * doc/sdccman.lyx: added Vangelis' contribution
5123
5124 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5125
5126         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
5127         extend to the next CALL or PCALL, not just to the next CALL.
5128
5129 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
5130
5131         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
5132
5133 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5134
5135         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
5136         bug #895752 and a better fix for bug #716790
5137
5138 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5139
5140         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
5141
5142 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5143
5144         * doc/sdccman.lyx: minor changes, minor changed
5145
5146 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5147
5148         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
5149         which can't handle SDCC_NEWONEBYTEOPS,
5150         (geniCodeMultiply): removed conversion from mult to shift for pic14
5151         and pic16
5152
5153 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5154
5155         * src/hc08/gen.h,
5156         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
5157         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
5158         thus fixing bug #895406
5159
5160 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
5161
5162         * device/lib/_modsint.c,
5163         * device/lib/_modslong.c: sign follows divisor only
5164         * src/hc08/gen.c (genMultOneByte): if result size is 1,
5165         signs or signedness can be ignored
5166         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
5167         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
5168         added optimization for IFX,
5169         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
5170         arguments;
5171         reenabled optimization for IFX, which was removed on 2004-01-11
5172         * src/SDCCast.h: added return type IFX
5173         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
5174         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
5175         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
5176         SDCC_OLDONEBYTEOPS selects the old behaviour
5177         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
5178         changed again and commented promotion rule
5179         * src/SDCCval.c (valDiv): promotion no longer necessary
5180         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
5181         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
5182         rewritten
5183         * support/regression/tests/onebyte.c: added
5184
5185 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
5186
5187         * gen.c (genInline): reverted to old code for assemnling inline
5188         code because of bug reported James Chadd
5189
5190 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5191
5192         * ralloc.h: missing declarations from previous patch,
5193         seems that patch for ralloc.h was never applied, fixed
5194
5195 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5196            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5197
5198         * pcode.c,
5199         * pcode.h,
5200         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5201         indirect addressing. Marked FSR0 as deprecated
5202         * gen.c (pointerCode): commented out, not needed now
5203         (pic16_popGet2p): new MOVFF helper function
5204         (genGenPointerGet),
5205         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5206         (shiftRLong): removed duplicate debugging info
5207
5208 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5209
5210         * src/ds390/gen.c (genNearPointerGet),
5211         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5212         optimization with bits, but not bitfields.
5213         * src/ds390/ralloc.c (packRegisters),
5214         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5215
5216 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5217
5218         * src/SDCCcse.c (algebraicOpts): copy operands before modification
5219
5220 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5221
5222         * src/SDCCsymt.h,
5223         * src/SDCCicode.c (operandFromSymbol),
5224         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5225         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5226         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5227         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5228         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5229         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5230         bug #892038
5231         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5232         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5233         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5234         * src/SDCCsymt.c (newSymbol),
5235         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5236         enumerator_list),
5237         * src/SDCCval.h,
5238         * src/SDCCval.c (newiList): fixed bug #885705
5239
5240 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5241
5242         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5243         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5244
5245 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5246
5247         * device/include/c8051f120.h,
5248         * device/include/c8051f300.h,
5249         * device/include/c8051f310.h: added/updated header files for Silicon
5250         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5251         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5252         in new section Submitting patches
5253
5254 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5255
5256         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5257         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5258         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5259         genGenPointerSet),
5260         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5261         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5262         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5263         genGenPointerSet),
5264         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5265         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5266         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5267         genGenPointerSet),
5268         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5269         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5270         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5271         genGenPointerSet): fixed bug #892400
5272         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5273         to eliminate build warnings.
5274         * src/SDCCast.c (processParms),
5275         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5276         fixed bug 751859
5277         * support/valdiag/valdiag.py: added GCC to the list of defines active
5278         when compiling with gcc
5279
5280 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5281
5282         * support/Util/SDCCerr.h,
5283         * support/Util/SDCCerr.c,
5284         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5285         with an incomplete type (fixed bug #883734)
5286         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5287
5288 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5289
5290         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5291
5292 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5293
5294         * src/SDCCast.c (decorateType),
5295         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5296         function pointer implementation
5297         * support/regression/tests/funptrs.c: added tests to verify both forms
5298         of function pointers work correctly. Added tests to verify parameters
5299         are passed in the correct order.
5300
5301 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
5302
5303         * device.c (regCompare): registers are sorted by ascending
5304         address and increasing size,
5305         * main.c (_pic16_finaliseOptions): removed the declaration
5306         of compiler macro MCU. Now a macro of the format pic18fxxxx
5307         will be defined from the command line
5308
5309 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5310             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5311
5312         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5313         PCOP_RLCF was overwritten!
5314         * gen.c (genSkip): commented out calls to pic16_emitcode,
5315         * (genCmpEQ): fixed "long" compares, only high word did get compared,
5316         * (genlshTwo),
5317         * (genRRC): added debugging info,
5318         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5319         overwritten while shifting,
5320         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5321         overwritten while shifting,
5322         * (AccLsh),
5323         * (AccRsh),
5324         * (shiftLLeftOrResult),
5325         * (shiftRLeftOrResult),
5326         * (shiftRLong),
5327         * (shiftLLong): Implemented with pic16_emitpcode
5328         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5329         * (genLeftShift): Fixed bug, operand for shift by variable always
5330         was "and"ed with 0x0f,
5331         * (genLeftShiftLiteral),
5332         * (genrshTwo),
5333         * (genRightShiftLiteral): added debugging info,
5334         * (genrshFour): added comment,
5335         * (genRightShift): determined signedness from operand "left"
5336         instead of "result"
5337
5338 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5339
5340         * src/SDCCicode.c (geniCodeParms),
5341         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5342         function pointers, fixed function pointer bugs #861242 and #861896
5343
5344 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5345
5346         * device/include/c8051f000.h,
5347         * device/include/c8051f120.h,
5348         * device/include/c8051f300.h: added header files for Silicon
5349         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5350
5351 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5352
5353         * src/SDCCast.c (processParams): added new type flow and restructured
5354         (gatherAutoInit): added new type flow
5355         (addCast): cosmetic changes
5356         (getLeftResultType): added new type flow for array indices, patch
5357         provided by Stas, see FR #877103
5358         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5359         array index patch by Stas
5360         * src/SDCCast.h: added prototype getResultTypeFromType()
5361         * src/SDCCval.h,
5362         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5363         * src/pic/glue.c (pic14emitStaticSeg),
5364         * src/pic16/glue.c (pic16emitStaticSeg),
5365         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5366         for initialization of symbols
5367         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5368         * support/Util/SDCCerr.h:
5369         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5370         * .version: bumped version number to 2.3.8
5371         * device/include/Makefile.in (install),
5372         * doc/Makefile (install): changed to 'rm `find ...`' construct to
5373         avoid warnings
5374
5375 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5376
5377         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5378         Slade Rich fixed an optimization bug
5379         * src/pic/pcodepeep.c,
5380         * src/pic/pcoderegs.c
5381         * doc/Makefile (install): added test for directory
5382
5383 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5384
5385         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5386         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5387         * src/pic/ralloc.c (getRegPtr, getRegGpr),
5388         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5389         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5390         * as/mcs51/asexpr.c (term),
5391         * as/hc08/asexpr.c (term): fixed bug #887146
5392
5393 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5394
5395         * src/z80/gen.c (genMult): handle single byte result product
5396         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5397         DUMMY_READ_VOLATILE (fixed bug #886367)
5398
5399 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5400
5401         * support/regression/tests/libmullong.c: fixed logic, on little endian
5402         hosts we ended without a mullong_wrapper()
5403
5404 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5405
5406         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
5407         virus/worm forged address usage.
5408
5409 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5410
5411         Fixed promotion, it should be done on AST level:
5412         * src/SDCCast.c (addCast): added promotion to int
5413         (decorateType): updated call to upCast()
5414         * src/SDCCicode.c (geniCodeLeftShift): removed call to
5415         usualUnaryConversions()
5416
5417 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
5418
5419         * support/regression/tests/literalop.c (mulWrapper): Added a
5420         wrapper to remove integer overflow warnings.
5421
5422         * support/regression/tests/float_trans.c: Made work on host.
5423
5424         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
5425         location of sz80.
5426
5427         * support/regression/generate-cases.py (main): Changed from inline
5428         to a main method.
5429
5430         * doc/Makefile (install): Changed to depth first to get rid of
5431         missing directory install warning.
5432
5433         * as/Makefile (install-doc): Made work on Mac.
5434
5435 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
5436
5437         * src/SDCCast.c: added an additional type flow in decorateType() of
5438         opposite direction, see feature request #860006; it's enabled at runtime
5439         by setting the environment variable SDCC_NEWTYPEFLOW
5440         * src/SDCCast.h: changed prototype of decorateType()
5441         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
5442         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
5443         'char' to 'int' can be omitted, if both operands are 'unsigned char';
5444         see feature request #877103
5445         * src/SDCCval.c: updated call of decorateType()
5446         (valBitwise): fixed bug #882876
5447         (valMinus): added promotion
5448         (valLogicAndOr): result is unsigned
5449         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
5450         * src/SDCCsymt.c (computeType),
5451         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
5452         must not cause an unsigned operation
5453         * src/pic/glue (pic14emitRegularMap),
5454         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
5455
5456 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
5457
5458         * src/pic/pcode.c (PCodeID): commented out left over debug code
5459
5460 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5461
5462         * support/valdiag/tests/overflow.c: added shift tests
5463         * src/pic/device.c,
5464         * src/pic/gen.c,
5465         * src/pic/gen.h,
5466         * src/pic/glue.c,
5467         * src/pic/main.c,
5468         * src/pic/pcode.c,
5469         * src/pic/pcode.h,
5470         * src/pic/pcodepeep.c,
5471         * src/pic/pcoderegs.c,
5472         * src/pic/ralloc.c,
5473         * src/pic/ralloc.h: applied patch from Slade Rich;
5474         added support for multiple code pages and multiple RAM banks on the
5475         PIC 14 port. The ASM files now no longer simply assume all the
5476         code / RAM are in the same page / bank. This means the linker can
5477         safely allocate code/RAM of separate ASM files to different pages/banks.
5478         * doc/sdccman.lyx: added Slade's tips
5479         * src/mcs51/peeph.def: fixed bug #880768
5480
5481 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5482
5483         * src/hc08/ralloc.c (rematStr): fixed bug #879282
5484         * src/SDCCast.c (decorateType): fixed bug #880197
5485
5486 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
5487
5488         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
5489         getopt.h.
5490
5491         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
5492         strtof is not part of C89 and isn't included with Mac OS X.
5493
5494 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5495
5496         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
5497         shiftL2Left2Result): fixed bug #879326
5498         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
5499         (genMultOneByte): fixed bug in signed vs unsigned multiplication
5500         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
5501         address fetch for clr instruction
5502         * device/lib/hc08/_mulint.c: created optimized assembly version
5503         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
5504
5505 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5506
5507         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
5508         proposed in FR #877103
5509
5510 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5511
5512         * src/SDCCval.c (cheapestVal): added missing checks
5513         * src/SDCCicode.c (usualBinaryConversions): fixed condition
5514         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
5515
5516 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
5517
5518         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
5519         equal operands
5520
5521 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
5522
5523         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
5524         loaded with the linker search paths (-L arguments) and the libraries
5525         to be linked with the current source (-l arguments). Changes
5526         currently will affect only the pic16 port.
5527         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
5528         include path the port specific paths and port specific libraries,
5529         * gplink command now contains the $3 argument,
5530         * src/pic16/device.h,
5531         * src/pic16/device.c,: structure PIC_device is made public and
5532         renamed to PIC16_device, the same for variable Pics which is renamed
5533         to Pics16. Updated all references to them.
5534         * src/pic16/glue.c (pic16glue): corrected bug with code
5535         initialization which bypassed the variable initializations block.
5536
5537         * device/lib/pic16/Makefile.rules: removed --penable-stack from
5538         COMPILE_FLAGS and added the --nostdinc option
5539
5540 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5541
5542         * device/include/mc68hc908jb8.h: Register defs for another member
5543         of the hc08 family. Contributed by Bjorn Bringert - thanks!
5544
5545 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
5546
5547         Documenting changes from previous commits.
5548         * configure.in (version 1.56),
5549         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
5550         when generating output files to configure the pic16 library,
5551         but now I've commented it out, since gputils aren't installed in the
5552         SF compile farm, so library won't compile
5553
5554         * device/lib/Makefile.in (version 1.56): initially I've added in
5555         target 'all' the prerequestive 'model-pic16' so it compiled the
5556         pic16 library, but now I've commented it out for the same reasons
5557         above,
5558         * added targets 'model-pic16' and 'objects-pic16' to compile the
5559         library
5560         * added target 'port-specific-objects-pic16' to handle the
5561         generated libraries and copy them into the build/ directory
5562         * added target 'clean-intermediate-pic16' to clean intermediate
5563         files into pic16 directory
5564         * in target 'installdirs' added line to create directory pic16 in
5565         the installation path
5566
5567         * device/include/Makefile.in (version 1.11): in target 'install'
5568         added lines to copy all header files to installation path,
5569         * in target 'installdirs' added line create directory for pic16
5570         headers in the installation path
5571
5572 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
5573
5574         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
5575          a function call
5576
5577 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5578
5579         * configure,
5580         * device/lib/configure.in,
5581         * device/lib/configure: fixed for autoconf 2.57
5582
5583 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5584
5585         * src/z80/main.c (_parseOptions): fixed the portmode= command line
5586         option so that it actually works. Made it specific to the z80, since
5587         the gbz80 doesn't have these kinds of I/O ports.
5588
5589 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5590
5591         * device/include/z180.h,
5592         * device/lib/_memcpy.c,
5593         * device/lib/_memmove.c,
5594         * device/lib/_mulint.c,
5595         * device/lib/ser_ir.c,
5596         * device/lib/ser_ir_cts_rts.c,
5597         * device/lib/_strcmp.c,
5598         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
5599         * src/z80/main.c (_process_pragma): add support for pragmas bank and
5600         portmode; added deprecation warning for bank= and protmode= forms.
5601         Also, guard against buffer overflow.
5602         * src/z80/gen.c (aopGet): generate better code for sfr banked read
5603
5604 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5605
5606         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
5607         changed interrupt vector table generation to only emit declared vectors.
5608         * device/include/Makefile.in: added missing backslash
5609         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
5610
5611 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5612
5613         Mainly changes to support compilation of the device libraries
5614         * src/pic16/device.c: stack is allocated via symbol and not
5615         via literal number. The symbol is placed in the corresponding
5616         position of the data ram
5617         * (pic16_dump_section): relocatable and absolute uninitialized
5618         data are now emitted in sorted order to reduce section naming,
5619         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
5620         weren't marked as being in the access bank,
5621
5622 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5623
5624         Added portion of GNU PIC Library under the directory
5625         device/include/pic16 and device/lib/pic16. These files
5626         contain the declarations of SFRs for the PIC18Fxx2 devices.
5627         The directory is initialized via configure from toplevel.
5628
5629 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5630
5631         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5632         the spilllocations to be compared correctly
5633
5634 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5635
5636         * src/SDCCast.c (decorateType): fixed bug introduced today
5637
5638 2004-01-12  Borut Razem <borut.razem AT siol.net>
5639
5640         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5641         doc/sdccman.lyx: upper case pragmas are deprecated
5642
5643 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5644
5645         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
5646         in simpler and even better code
5647
5648 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5649
5650         * src/SDCCicode.c (operandOperation): fixed bug #874819
5651         * src/SDCCast.c (decorateType): fixed
5652         char foo (unsigned long ul) { return ul > 0; }
5653
5654 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5655
5656         * doc/sdccman.lyx: Moved and added some sections, small changes
5657         all over. Telling LaTeX to be less strict with word spacing
5658         to better keep the right margin. Changed some notes about
5659         maintainance of the ports in section 3.2.1 - is it OK like this?
5660
5661 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5662
5663         SDCC source changes:
5664         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5665         convilong): modified to inform the pic16 port that builtin functions
5666         are external
5667
5668         PIC16 PORT specific changes:
5669         * src/pic16/device.c pic16_dump_equates() added,
5670         processor registers declared internally by the port are emitted in
5671         the translation as equates,
5672         * src/pic16/gen.c: inline code is passed unprocessed to the
5673         translation,
5674         * (pic16_popGetLit2): fnuction modified to take second operand as
5675         pCodeOp pointer and not as literal,
5676         * (popRegFromIdx): prefixed with pic16_,
5677         * (pic16_popCombine2): modified to receive already allocated pCode
5678         operands,
5679         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5680         * (genFunction): initializes local stack frame and pushes on stack
5681         all the registers used by this function,
5682         * (genEndFunction): restores all registers from stack and restores
5683         stack frame,
5684         * src/pic16/glue.c (pic16emitRegularMap): various changes and
5685         improvements,
5686         * (pic16glue): changed the program startup sequence,
5687         * added new dbName code 'A' for functions placed in absolute section
5688         * src/pic16/main.c: added function attribute _naked,
5689         * added pragma 'code' to place a fnuction at an absolute address,
5690         * added command line arguments --debug-ralloc and --pcode-verbose,
5691         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5692         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5693         * (pic16_newpCodeOpLit2): modified to take the second operand as
5694         pCodeOp pointer,
5695         * (pic16_printpBlock): modified to emit each function in a separate
5696         section,
5697         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5698         UPPER for immediate operands,
5699         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5700         instruction,
5701         * src/pic16/peeph.def: all peepholes with movff are commented out,
5702         because there is a problem in the pcode peep optimizer,
5703         * src/pic16/ralloc.c: the register allocator can now reuse local
5704         function symbols for another function. This saves register usage.
5705         * src/pic16/ralloc.h: added flag isLocal in structure regs,
5706
5707         Added file src/pic16/NOTES with information about program writing on
5708         the current port version.
5709
5710 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5711
5712         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5713         and peephole 252 (array access)
5714
5715 2004-01-09  Borut Razem <borut.razem AT siol.net>
5716
5717         * src/SDCCmain.c : fixed #872250: -l command line defined library
5718           files are scanned before standard library files
5719
5720 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5721
5722         * src/SDCCast.c (decorateType): fixed bug #874046
5723
5724 2004-01-09  Borut Razem <borut.razem AT siol.net>
5725
5726         * support/scripts/sdcc.nsi: remove previous installation
5727
5728 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5729
5730         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5731         bytes for last interrupt vector (mcs51)
5732         * sdcc.spec: fixed typo
5733
5734 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5735
5736         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5737         gen51Code): more efficient parameter receive for --model-large
5738         ("bug" #845294)
5739
5740 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5741
5742         * src/ds390/main.c,
5743         * src/z80/main.c: added missed needLinkerScript flags (more than
5744         one port structure defined in these file)
5745         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5746         bug #795325
5747
5748 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5749
5750         * src/SDCCmain.c: removed various references to DEFAULT_PORT
5751         * src/port.h: added flag needLinkerScript in port->linker
5752         structure to inform whether to create a .lnk file or not,
5753         * src/avr/main.c,
5754         * src/ds390/main.c,
5755         * src/hc08/main.c,
5756         * src/mcs51/main.c,
5757         * src/pic/main.c,
5758         * src/pic16/main.c,
5759         * src/xa51/main.c,
5760         * src/z80/main.c: changed appropriately to configure
5761         needLinkerScript flag
5762         * src/pic/gen.c,
5763         * src/pic16/gen.c (genAddrOf): fixed bug #863624
5764         * src/pic/glue.c: added variable udata_section_name to
5765         override default uninitialized data segment definition for
5766         devices only with SHAREBANK memory (reported from Erik Epetrich)
5767         * (pic14emitOverlay): modified to emit a commented overlay segment
5768         directive when no overlay data exist
5769         * (picglue): modified to emit uninitialized data segment
5770         according to udata_section_name
5771         * src/pic/main.c (_pic14_parseOptions): added command line
5772         options --udata-section-name=[name] to override default
5773         udata definition name
5774         * modified _linkCmd and _asmCmd to include compiler passed
5775         arguments via -W option
5776         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5777         object file from '.rel' to '.o' in port->linker structure,
5778         changed size of fptr from 2 to 3 in port structure
5779
5780 2004-01-07  Borut Razem <borut.razem AT siol.net>
5781
5782         * support/scripts/sdcc.nsi: update PATH
5783         * support/scripts/sdcc.ico: craeted
5784
5785 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5786
5787         * device/include/Makefile.in: fix install
5788         * doc/Makefile: fix install
5789
5790 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5791
5792         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5793         in bug #860505
5794         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5795         how the function variable allocation summary is displayed; also
5796         include information about variables allocated to the overlay
5797         segment
5798
5799 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5800
5801         * as/mcs51/lkmain.c: Help about -Y option
5802         * as/mcs51/lkarea.c: Fixed gcc warnings
5803
5804 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5805
5806         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5807         fixed warning
5808         * support/valdiag/tests/overflow.c: added
5809         * src/SDCCast.c (decorateType),
5810         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5811         LEFT_OP (left shift)
5812
5813 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5814
5815         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5816         (default behaviour).
5817
5818 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5819
5820         A python script to validate compiler diagnostic messages. It can be
5821         used to verify that sdcc complains about bad c source code and
5822         gives a good location of the error.
5823         * support/valdiag/Makefile,
5824         * support/valdiag/valdiag.py,
5825         * support/valdiag/tests/*
5826
5827 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5828
5829         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5830         * src/SDCCsymt.c (newEnumType),
5831         * src/SDCCsymt.h
5832         * support/Util/SDCCerr.c,
5833         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5834         enum related bugs.
5835         * support/regression/tests/enum.c: added test for enum values that
5836         require at least 2 bytes of storage.
5837
5838 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5839
5840         * src/common.h: added ifndef/define/endif macros
5841         around the header file.
5842         Bug reported from Jesus Calvino-Fraga
5843
5844 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5845
5846         * sdcc.spec: updated
5847         * device/include/Makefile.in: don't install CVS directories
5848         * device/lib/Makefile.in: added removal of CVS directories after install
5849         * doc/Makefile: fixed install, added local_icons
5850         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5851         * src/mcs51/gen.c (genRightShift): fixed bug #870788
5852         * src/ds390/gen.c (genRightShift): fixed bug #870788
5853         * src/SDCCast.c (decorateType): fixed bug #870781
5854
5855 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5856
5857         PIC16 port related changes:
5858         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5859         added variable stackPos,
5860
5861         * gen.c: genCall, assignResultValue: added support for
5862         pushing/retrieving function parameters to/from stack,
5863         genFunction,genEndFunction: setup stack frame for the
5864         generated function,
5865         genAddrOf: will be changed according to bug 863624
5866
5867         * added files genutils.c and genutils.h which contain gen*
5868         debugged and optimised functions extracted from gen.c
5869
5870         * glue.c: added variable 'externs' which holds extern symbols,
5871         pic16emitRegularMap: is modified to properly handle relocatable
5872          symbols under the new scheme,
5873         pic16createInterruptVect: is modified
5874         pic16printPublics: is modified to emit 'global' assembler directives,
5875         added pic16_printExterns to print extern symbols,
5876         pic16glue: initializes stack/frame pointer in the beginning of
5877         the assembly output. Temporary hack, will be corrected later,
5878         because gplink yet does not support stack and SDCC does not
5879         yet support a type of crt0.o object to create the final binary.
5880
5881         * Removed many lines that contain 8051 legacy code.
5882         * The code is finally placed under a 'code' directive.
5883         * Added port specific options.
5884
5885         * _process_pragma: simplified since now we do not need *special*
5886         include file to define SFR registers. But a separate header
5887         will be needed. This will be developed later.
5888         * _pic16_parseOptions: added, parses port specific options:
5889         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5890         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5891         --preplace-udata-with=
5892
5893         * _pic16_setDefaultOptions: modified to initialize section names,
5894         but hack is temporarly out of order since it needs improvement.
5895         * _pic16_genAssemblerPreamble: configuration words are emitted by
5896         their address instead of their name. This part is incomplete and
5897         supports only the 18Fxx2 devices. Other devices will emit an error
5898         during assembly since they do not contain the same set of config
5899         registers
5900         * _pic16_genIVT: is modified,
5901
5902         * pcode.c: added definitions for some hardware registers that are needed
5903         for stack support
5904         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5905         All PCI entries are updated. Now LFSR is supported.
5906         * Removed pic16_pciTRIS is mentioned by mdubuc in source
5907         * added pic16_newpCodeOpLit2 to support instructions with
5908         two literal arguments
5909         * pic16_pCode2str: corrected code that emits assembler instructions
5910         with two literal operands and those that have an access bit modifier
5911         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5912         this fixes a bug which caused some labels to be lost, when an
5913         assembler directive was added, i.e. banksel,
5914         * pic16_FixRegisterBanking: improved logic that causes the insertion
5915         of bank switching,
5916         * InlineFunction: functions that are called once, are not any more
5917         inlined. This can be a port option in the future,
5918
5919         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5920
5921         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5922         hold the corresponding uninitialized symbols,
5923         * pic16_allocProcessorRegister: registers have explicit marked the
5924         accessBank field,
5925         * pic16_allocInternalRegister: registers are explicit marked as
5926         not used,
5927         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5928         processing list, so bit registers were lost,
5929         *
5930
5931         * ralloc.h: added field 'accessBank' and original symbol operand
5932         in register definition,
5933         * removed the field isMapped from register definition,
5934
5935         ** Several functions have been removed from various sources:
5936         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5937         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5938         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5939         pic16_assignRelocatableRegisters
5940
5941         ** others have been introduced:
5942         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5943         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5944
5945 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5946
5947         * support/scripts/inc2h.pl: changed definition of BIT_AT
5948         to emit 'sbit at' instead of 'bit at'. This was a request.
5949
5950         PIC16 port related preliminary changes:
5951         * gen.c: prefixed function popRegFromString with
5952         pic16_ and all references to it corrected
5953         * pcode.c: all pic16_pc_* hardware registers prefixed
5954         with underscore (_),
5955         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5956         * ralloc.c: newReg(): when register is REG_SFR then
5957         set address to rIdx,
5958         pic16_allocProcessorRegister(): marks register wasUsed=0
5959         pic16_writeUsedRegs(): added a call to assign processor
5960         registers via pic16_assignFixedRegisters
5961
5962 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5963
5964         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5965         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5966         variables in unused register banks.  Also the SSEG is placed
5967         wherever there is enough space for it, and IDATA can be anywhere
5968         in internal RAM.  For now compile using -Wl-Y[stack_size].
5969         The mem file is different for this option as well, since it
5970         makes no sense of talking about DSEG lenght.
5971
5972 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5973
5974         * src/SDCClrange.c: fixed bug 869095 that caused segfault
5975         in certain cases, e.g. when ROM assignment, patch provided
5976         from Albert den Haan.
5977
5978 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5979
5980         Many signedness and type propagation fixes:
5981         * src/SDCCicode.c: made geniCodeCast() static
5982         replaced SPEC_ by IS_ (cosmetic)
5983         (operandOperation): fixed div and mod operation
5984         (usualBinaryConversions): added support for promotion of char
5985         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5986         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5987         (geniCodeAdd): an array index will stay unsigned, even if promoted
5988         from char to int
5989         (geniCodeArray): ditto
5990         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5991         * src/SDCCsymt.c (computeType): added more support for char;
5992         promotion of char is selectable by promoteCharToInt, fixed signedness
5993         for all cases
5994         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5995         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5996         * src/SDCCval (val*): replaced signedness calculation by
5997         computeType()
5998         rearranged if-branches (cosmetic)
5999         (valShift): added warning W_SHIFT_CHANGED
6000         (valCompare): fixed problem with different types
6001         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6002         * support/regression/tests/literalop.c: added many cases
6003         * support/regression/tests/ast_constant_folding.c: changed finally to
6004         'unsigned int'
6005         * .version: new year, new version: 2.3.7
6006         * src/SDCCmain.c (main): applied patch #866468
6007         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6008         provided by Scott Bronson
6009         * doc/sdccman.lyx: updated documentation for sdcdb
6010         updated and added chapter tips
6011
6012 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6013
6014         * src/SDCCsymt.h: missing from yesterday's commits
6015
6016 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6017
6018         * src/SDCC.y (struct_or_union_specifier),
6019         * support/Util/SDCCerr.c,
6020         * support/Util/SDCCerr.h: verify that struct & union tags are used
6021         as declared.
6022
6023 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6024
6025         * src/SDCCglobl.h: missing from yesterday's commits
6026
6027 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6028
6029         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6030         sft_attributes, struct_declaration, parameter_declaration,
6031         type_name, start_block, declaration_list),
6032         * src/SDCC.lex (check_type): support redefinition of typedef names
6033
6034 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6035
6036         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6037         aligned xdata arrays. Erik helped me with the if clause.
6038
6039 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6040
6041         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6042         warning
6043
6044 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6045
6046         * src/SDCCast.h,
6047         * src/SDCCast.c (newAst_),
6048         * src/SDCCicode.h,
6049         * src/SDCCicode.c (ast2iCode, newiCode),
6050         * src/SDCCglobl.h,
6051         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6052         expr, statement, expression_statement, selection_statement,
6053         iteration_statement, expr_opt, jump_statement): foundation for tracking
6054         sequence points
6055         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6056         point code too)
6057
6058 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6059
6060         * support/Util/SDCCerr.c,
6061         * src/SDCCast.h,
6062         * src/SDCCast.c (createCase, createDefault, decorateType),
6063         * src/SDCClabel.c (labelUnreach),
6064         * src/SDCC.y (labeled_statement, jump_statement): More improvements
6065         to error messages.
6066         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6067         (with thanks to Stas Sergeev)
6068         * device/include/time.h,
6069         * device/lib/time.c (CheckTime): suppress unreachable code warning
6070
6071 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6072
6073         * src/SDCCast.c (createIvalCharPtr),
6074         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6075         bug #753752)
6076         * support/regression/tests/nullstring.c: tests for these two bugs
6077
6078 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6079
6080         * support/Util/SDCCerr.h,
6081         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6082         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6083         about storage class and 'at' used inside struct or union
6084         * src/SDCCBBlock.c (iCodeFromeBBlock),
6085         * src/SDCCcse.c (ifxOptimize),
6086         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6087         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6088         printIval, emitStaticSeg, emitOverlay),
6089         * src/SDCClabel.c (deleteIfx),
6090         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6091         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6092         gatherAutoInit, processParms),
6093         * support/Util/SDCCerr.h,
6094         * support/Util/SDCCerr.c (werrorfl): Support for better error location
6095         reporting for post-parse errors.
6096
6097 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6098
6099         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6100         implicit casts via union; they don't work on big endian systems
6101         (possible fix for bug #861138)
6102
6103 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6104
6105         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6106         * src/mcs51/main.c: fixed the fix for bug #737001
6107
6108 2003-12-15  Borut Razem <borut.razem AT siol.net>
6109
6110         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6111
6112 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6113
6114         * support/makebin/makebin.c: put output in binary mode
6115
6116 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6117
6118         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6119         xdata and data memory on startup. Set the environment variable
6120         SDCC_NOGENRAMCLEAR to disable this.
6121         * src/mcs51/peephole.def,
6122         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6123         (allows non-interrupt and interrupt code to safely compete for a resource
6124         without the non-interrupt code having to disable interrupts)
6125
6126 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6127
6128         * src/SDCCicode.c (geniCodeAdd),
6129         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
6130         with valFromType if type might be a pointer and host is big endian).
6131         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
6132         types, not just integer types.
6133         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
6134         multiply defined with mismatching "at" address.
6135
6136 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6137
6138         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
6139         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
6140         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
6141         with embedded nulls (fixed bug #753752)
6142
6143 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6144
6145         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
6146         Apparently this did not see much testing (endless loop)
6147
6148 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6149
6150         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
6151
6152 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6153
6154         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
6155         gracefully handle NULL memmap pointers
6156
6157 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6158
6159         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
6160         instead of deleting the iCode when an operand is volatile
6161         * src/z80/gen.c (genDummyRead),
6162         * src/mcs51/gen.c (genDummyRead),
6163         * src/ds390/gen.c (genDummyRead),
6164         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
6165         not just IC_RIGHT
6166         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
6167         * src/SDCC.y: fixed bug #850420
6168
6169 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6170
6171         Applied z80 i/o port patch from Peter Townson and fixed some operators
6172         to better handle operands in A register.
6173         * device/include/z180.h
6174         * src/SDCC.y
6175         * src/SDCCglue.c
6176         * src/z80/gen.c
6177         * src/z80/gen.h
6178         * src/z80/main.c
6179         * src/z80/peeph-z80.def
6180         * src/z80/peeph.def
6181         * src/z80/z80.h
6182
6183 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6184
6185         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
6186
6187 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6188
6189         * device/lib/hc08/_mullong.c: Removed extra #endif
6190
6191 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6192
6193         * sim/ucsim/hc08.src/inst.cc,
6194         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6195         carries from x to h
6196         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6197         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6198         * device/include/stdarg.h: fixed varargs for hc08
6199         * device/lib/Makefile.in,
6200         * device/lib/hc08/Makefile,
6201         * device/lib/hc08/_mulint.c,
6202         * device/lib/hc08/_mullong.c: fixed some endian problems
6203
6204 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6205
6206         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6207         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6208         * device/lib/_gptrget.c,
6209         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6210
6211 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6212
6213         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6214         * src/SDCCast.c (astErrors): fixed bug #846007
6215         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6216
6217 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6218
6219         * src/SDCCast.c (decorateType): disabled a transformation I added in
6220         revision 1.188 (access to fields of a structure at an absolute address);
6221         it breaks with bitfields, extern declarations, and gcse analysis.
6222         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6223         could be assigned through a pointer, so don't complain.
6224         * src/SDCCast.c (astErrors),
6225         * src/SDCCast.h,
6226         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6227
6228 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6229
6230         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6231         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6232         output of __config directives, since gpasm now supports them
6233         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6234         pre-processor macro, i.e. -DMCU=p18f452
6235         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6236         and modified to handle 'cast' icode similarly to '=' icode
6237         * src/pic16/device.h (typedef struct PIC_device): added field
6238         'extMIface' to indicate that chip has external memory interface
6239         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6240         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6241         18F8720
6242
6243 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6244
6245         * src/SDCC.y (pointer): fixed bug #846006
6246         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6247         * src/SDCCast.c (decorateType): fixed bug #846009
6248         * src/ds390/peeph.def,
6249         * src/ds390/gen.c (genAnd, genOr),
6250         * src/mcs51/peeph.def,
6251         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6252
6253 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6254
6255         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6256         * src/SDCCdflow.c
6257         * src/SDCCcse.c
6258         * src/SDCCcse.h
6259         * src/SDCCBBlock.h
6260         * src/SDCCBBlock.c
6261
6262 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6263
6264         fixed bug #845089
6265         * src/SDCCbitv.h,
6266         * src/SDCCbitv.c: added function to free a bitvector
6267         * src/SDCClrange.h,
6268         * src/SDCClrange.c: added function to recompute the liveranges
6269         * src/avr/ralloc.c,
6270         * src/ds390/ralloc.c,
6271         * src/hc08/ralloc.c,
6272         * src/mcs51/ralloc.c,
6273         * src/pic/ralloc.c,
6274         * src/pic16/ralloc.c,
6275         * src/xa51/ralloc.c,
6276         * src/z80/ralloc.c: recompute the liveranges after register packing
6277
6278 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6279
6280         * src/SDCCloop.c (newInduction): fixed bug #845630
6281
6282 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6283
6284         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6285         inadvertantly left behind from my 2003-11-12 change
6286
6287 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6288
6289         Updated headers I neglected to commit yesterday.
6290         * src/SDCClrange.h,
6291         * src/SDCCicode.h
6292
6293 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6294
6295         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6296         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6297         * src/SDCCopt.c (eBBlockFromiCode),
6298         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6299         the creation of the key hash table from the sequencing so it can be used
6300         earlier (for some GCSE bug fixes still pending)
6301
6302 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6303
6304         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6305         * support/regression/tests/addsub.c: testing genPlus shortcut
6306
6307 2003-11-15  Borut Razem <borut.razem AT siol.net>
6308
6309         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6310
6311 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6312
6313         * src/SDCCcse.c (cseBBlock): fixed bug #527779
6314         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6315         ordering is immaterial.
6316         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6317
6318 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6319
6320         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6321         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6322         (SIGSEV) of bug #840381
6323         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6324         unlink new file before rename if new and old filenames are the same)
6325
6326 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6327
6328         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6329         uninitialized variables) for the mcs51. Set environment variable
6330         SDCC_GENRAMCLEAR to test.
6331         xdata initialization slightly shorter
6332
6333 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6334
6335         * src/SDCCsymt.h,
6336         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6337         #838241 & 780691 (basicly the same bug)
6338         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6339         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6340
6341 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6342
6343         * src/SDCCmain.c (linkEdit): "fix" #834252
6344
6345 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6346
6347         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6348         * src/SDCCast.h,
6349         * src/SDCC.y: fixed bug #819403
6350
6351 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6352
6353         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6354         the reentrant attribute.
6355         * src/hc08/gen.c (genPackBits): added missing stack readjustment
6356         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6357         simulation
6358         * src/SDCCast.c (decorateType): fixed bug with storage class not being
6359         updated during pointer dereference; f.e. ~(((char *)1)*) was being
6360         erroneously reduced to a literal.
6361         * src/hc08/ralloc.c (packRegisters, rematStr),
6362         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6363         some cases
6364
6365 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6366
6367         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6368         * doc/sdccman.lyx: changed from 'article' to 'book'
6369         * doc/Makefile: readded test_suite_spec and cdbfileformat
6370
6371 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6372
6373         * device/include/stdlib.h: include malloc.h to comply with ANSI
6374         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6375
6376 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6377
6378         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6379         * doc/clean.mk: also remove *.out files
6380         * doc/sdccman.lyx: some additions, larger top/bottom margins
6381
6382 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6383
6384         * src/SDCC.y: fixed bug #837365
6385         * support/regression/tests/bitopcse.c
6386         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6387         a symbol (might be valop instead)
6388         * device/lib/Makefile.in: added errno.c to HC08SOURCES
6389         * device/lib/clean.mk: added hc08 to the cleaning list
6390
6391 2003-11-04  Borut Razem <borut.razem AT siol.net>
6392
6393         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6394           made 2003-11-04
6395         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6396           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6397           malloc is declared in standard stdlib.h
6398
6399 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6400
6401         * device/lib/hc08/Makefile: need to clean .rel not .o files
6402         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
6403
6404 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6405
6406         * src/port.h,
6407         * src/hc08/main.c,
6408         * src/mcs51/main.c,
6409         * src/ds390/main.c,
6410         * src/z80/main.c,
6411         * src/avr/main.c,
6412         * src/pic/main.c,
6413         * src/pic16/main.c,
6414         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
6415         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
6416         tests (which uses the port's oclsExpense function)
6417         * src/SDCC.y,
6418         * src/SDCCast.c,
6419         * src/SDCCicode.c,
6420         * src/hc08/gen.c,
6421         * src/ds390/gen.c,
6422         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
6423
6424 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6425
6426         * src/SDCCcse.c (ifxOptimize),
6427         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
6428         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
6429         deleting the IFX iCode.
6430         * src/hc08/ralloc.c: reduced unneeded slocs
6431         * src/hc08/gen.c: fixed bug in asmopToBoolean
6432
6433 2003-11-04  Borut Razem <borut.razem AT siol.net>
6434
6435         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
6436           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6437           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
6438           transferred to configure
6439
6440 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
6441
6442         Use headers defined in the C[++] standards:
6443         * sim/ucsim/gui.src/serio.src/fileio.cc
6444         * sim/ucsim/gui.src/serio.src/frontend.cc
6445         * sim/ucsim/gui.src/serio.src/main.cc
6446         * sim/ucsim/gui.src/serio.src/posix_signal.cc
6447         * support/Util/NewAlloc.c
6448         * as/hc08/lklibr.c
6449         * as/mcs51/lklibr.c
6450         * as/z80/aslist.c
6451         * as/z80/assym.c
6452
6453 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6454
6455         * Added MSVC projects for hc08 assembler and linker:
6456         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
6457         /as/hc08/link_hc08.dsp
6458
6459 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
6460
6461         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
6462
6463 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
6464
6465         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
6466
6467 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6468
6469         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
6470
6471 2003-10-31  Borut Razem <borut.razem AT siol.net>
6472
6473         * support/cpp2/cpplib.h,
6474           support/cpp2/cpplib.c,
6475           support/cpp2/cpplex.c,
6476           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
6477           to switch _asm block preprocessing on / off. Default is
6478           #pragma preproc_asm +
6479
6480 2003-10-31  Borut Razem <borut.razem AT siol.net>
6481
6482         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
6483           when outputting comment blocks (when executed with -C option) and
6484           _asm (SDCPP specific) blocks
6485
6486 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6487
6488         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
6489
6490 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
6491
6492         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
6493
6494 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
6495
6496         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
6497         * src/SDCCast.c (decorateType): fixed bug #832664
6498
6499 2003-10-31  Borut Razem <borut.razem AT siol.net>
6500
6501         * support\cpp2\cpplex.c: fixed for SDCPP:
6502           comments(when executed with -C option) and _asm blocks
6503           were included even if they where in skipped #if block.
6504           Applied solution from GCC cpp 3.3.2
6505
6506 2003-10-31  Borut Razem <borut.razem AT siol.net>
6507
6508         * src/SDCC.lex: sdcc now understands both formats:
6509           '# <line_number> <file_name>' and
6510           '#line <line_number> <file_name>'
6511         * support/cpp2/cppmain.c: sdcpp now generates the standard
6512           '# <line_number> <file_name>' instead of former
6513           '#line <line_number> <file_name>'
6514
6515 2003-10-30  Borut Razem <borut.razem AT siol.net>
6516
6517         * support/cpp2/cpphash.h,
6518         * support/cpp2/cpplib.h
6519         * support/cpp2/cpplex.c,
6520         * support/cpp2/cppmain.c,
6521         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
6522
6523 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6524
6525         Fixed a number of problems revealed by bug #827883.
6526         * src/SDCCloop.c (loopInvariants): Spill location of the
6527         result operand should be recomputed if extracted from
6528         a loop. Also, don't extract assignments of an iTemp
6529         from a literal.
6530         * src/SDCCast.c (isConformingBody): loop reversal should
6531         not occur if the control variable is involved with a
6532         relational operator.
6533
6534 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6535
6536         * .version: bumped to 2.3.6 to reflect the big improvements
6537         made by Erik and Klaus. Thanks!
6538
6539 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
6540
6541         Replaced the livrange code.
6542         * src/SDCClrange.c: added new LR code
6543         * src/SDCCloop.c,
6544         * src/SDCCBBlock.h: removed remainig parts from old LR code
6545         * src/ds390/ralloc.c,
6546         * src/ds390/gen.c: minor fixes to make it work with new code
6547
6548 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6549
6550         * as/hc08/asm.h,
6551         * as/hc08/lkrloc.c,
6552         * src/hc08/gen.c,
6553         * src/hc08/ralloc.c: Fix various warnings related to the hc08
6554         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
6555         (tweaked fix for bug #818696)
6556
6557 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6558
6559         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
6560
6561 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6562
6563         * src/SDCCmain.c,
6564         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
6565         * src/mcs51/gen.c (gencjneshort),
6566         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
6567         more efficient (per Scott Bronson's suggestion)
6568
6569 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6570
6571         Extended the semantics of the critical keyword to include
6572         individual statements. See RFE #827755 and #799831
6573         * src/SDCC.y
6574         * src/SDCCicode.c
6575         * src/SDCCopt.c
6576         * src/SDCCast.c
6577         * support/Util/SDCCerr.c
6578         * support/Util/SDCCerr.h
6579         * src/mcs51/gen.c
6580         * src/ds390/gen.c
6581         * src/hc08/gen.c
6582
6583 2003-10-19  Borut Razem <borut.razem AT siol.net>
6584
6585         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
6586
6587 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6588
6589         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
6590         Fixed bug #818696
6591         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
6592         and predecrement operand is displayed
6593
6594 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6595
6596         * src/SDCCval.c (valMinus): fixed bug #826041
6597
6598 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6599
6600         Some hc08 related updates that I missed earlier
6601         * sim/ucsim/stypes.h
6602         * support/regression/ports/hc08/spec.mk
6603
6604 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6605
6606         New target "hc08" for the Motorola 68hc08 family of micros
6607
6608         * configure
6609         * configure.in
6610         * Makefile
6611         * src/hc08/*
6612         * src/SDCCmain.c
6613         * src/port.h
6614         * sim/ucsim/hc08.src/*
6615         * sim/ucsim/configure.in
6616         * src/ucsim/configure
6617         * sim/ucsim/packages_in.mk
6618         * as/hc08/*
6619         * as/Makefile
6620         * device/include/mc68hc908qy.h
6621         * device/lib/hc08/*
6622         * device/lib/Makefile.in
6623         * support/regression/ports/hc08/*
6624         * support/regression/Makefile
6625
6626 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6627
6628         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
6629         regression test
6630         * src/ds390/gen.c (genCast): fixed bug #821957
6631
6632 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6633
6634         * device/lib/logf.c: "fixed" overlay bug
6635         * support/regression/ports/host/spec.mk: added m library
6636         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6637         * support/regression/tests/float_trans: added (for Eric)
6638
6639 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6640
6641         * src/mcs51/gen.c (genCpl): fixed bug
6642         http://sf.net/mailarchive/message.php?msg_id=6263915
6643
6644 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6645
6646         * src/SDCCast.c (decorateType): added extended constant folding
6647         * src/SDCCsymt.c (computeType): cleanup
6648         * src/SDCCval.c (valShift): minor optimization
6649         * support/regression/tests/ast_constant_folding.c: added
6650
6651 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6652
6653         * src/SDCCmain.c: removed some unintended changes
6654
6655 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6656
6657         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6658         * src/z80/gen.c: fixed part of bug #817589
6659         * src/SDCCsymt.c (checkFunction): fixed bug #817895
6660
6661 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6662
6663         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6664         * src/SDCCcflow.c
6665         * src/SDCCcse.c
6666         * src/SDCCdflow.c
6667         * src/SDCClabel.c
6668         * src/SDCClrange.c
6669         * src/SDCCmem.c
6670         * src/SDCCopt.c
6671         * src/SDCCpeeph.c
6672         * src/SDCCset.c
6673         * src/avr/ralloc.c
6674         * src/ds390/ralloc.c
6675         * src/izt/ralloc.c
6676         * src/mcs51/ralloc.c
6677         * src/pic/ralloc.c
6678         * src/pic16/ralloc.c
6679         * src/xa51/ralloc.c
6680         * src/z80/ralloc.c
6681         * src/z80/gen.c: removed unused label "release:"
6682
6683 2003-10-06  Borut Razem <borut.razem AT siol.net>
6684
6685         * src/SDCC.lex: removed definition of unused variables
6686           save_optimize and save_options
6687
6688 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6689
6690         * clean.mk: removed '=' in "-maxdepth=1"
6691         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6692         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6693
6694 2003-10-06  Borut Razem <borut.razem AT siol.net>
6695
6696         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6697           my_unput() replaced by unput()
6698
6699 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6700
6701         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6702         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6703         type-punned pointer will break strict-aliasing rules"
6704         Old LR behaviour is again default; Klaus' LR can be choosen by
6705         defining the environment variable LRKLAUS
6706         * src/SDCCBBlock.h
6707         * src/SDCCloop.c
6708         * src/SDCClrange.c
6709         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6710         * clean.mk: fixed removal of files in bin/CVS/
6711         * device/lib/clean.mk: fixed removal of directories small and large
6712         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6713         * src/SDCCicode.c,
6714         * src/SDCCval.c: removed superflous test for pedantic
6715
6716 2003-10-05  Borut Razem <borut.razem AT siol.net>
6717
6718         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6719           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6720           message "unmatched #pragma SAVE and #pragma RESTORE"
6721
6722 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6723
6724         * doc/sdccman.lyx: various additions and updates (interrupts, inline
6725           assembly, critical functions, atomic, nojtbound)
6726
6727 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6728
6729         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6730         * src/SDCCBBlock.h
6731         * src/SDCCloop.c
6732         * src/SDCCloop.h
6733         * src/SDCClrange.c
6734
6735 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6736
6737         * src/z80/gen.h,
6738         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6739         * src/mcs51/gen.h
6740         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6741         * src/ds390/gen.h
6742         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6743         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6744         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6745
6746 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6747
6748         * src/z80/gen.c (genRet): fixed bug #524753
6749         * src/z80/gen.c (genCast): fixed internal error on cast from
6750         pointer to long
6751         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6752         fix for bug #477835 to the z80
6753         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6754         for tracking iCodes in the peephole optimizer for z80
6755
6756 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6757
6758         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6759         the other part of bug #814548
6760         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6761
6762 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
6763
6764         * src/SDCCcse.c: fixed part of bug #814548
6765
6766 2003-09-28  Borut Razem <borut.razem AT siol.net>
6767
6768         * src/asm.c: rewrite of printILine() to use temporary file instead
6769           a pipe
6770         * src/xa51/main.c: commented out declaration of int rewinds
6771
6772 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6773
6774         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6775
6776 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6777
6778         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6779         * src/asm.c (printILine): Fixed bug #811015
6780
6781 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6782
6783         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6784         freeing.
6785
6786 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6787
6788         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6789         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6790         to correctly handle general case of AOP_PAIRPTR
6791         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6792
6793 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6794
6795         * src/mcs51/ralloc.c (fillGaps),
6796         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6797         register positioning bug)
6798
6799 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6800
6801         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6802
6803 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6804
6805         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6806         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6807         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6808         (ralloc doesn't intentionally do this now, but perhaps later)
6809         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6810         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6811         register positioning bugs (Fixed bug #762602 and #795325)
6812         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6813         (Fixed bug #808779)
6814         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6815         lines that --i-code-in-asm generates
6816
6817 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6818
6819         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6820         trying to fclose a FILE* that was already closed.
6821
6822 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6823
6824         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6825         of const struct should be treated as if const themselves)
6826
6827 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6828
6829         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6830
6831 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6832
6833         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6834         Unix (/n) and DOS (/r/n) line terminations.
6835
6836 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6837
6838         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6839         bug #613775
6840
6841 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6842
6843         * src/mcs51/gen.c (genFunction, genEndFunction),
6844         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6845         and restore of EA so that stack offsets to parameters are
6846         correct when using both critical and reentrant/stack-auto.
6847         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6848         size (can be triggered in error if sloc is shared between
6849         different sized objects)
6850         * device/include/float.h: fixed macros to explicitly use
6851         unsigned long where needed
6852
6853 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         Feature req. 799831: added code to allow nesting of critical functions
6856         * src/mcs51/gen.c (genFunction, genEndFunction)
6857         * src/ds390/gen.c (genFunction, genEndFunction)
6858
6859 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6860
6861         * src/SDCCsymt.c (sclsFromPtr),
6862         * src/SDCCsymt.h,
6863         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6864         support for standard C idiom of memory mapped variables; for
6865         example, *((xdata int*)0x1234) = 1 is now internally equivalent
6866         to xdata int at 0x1234 tempvar = 1.
6867         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6868         provided by Akiya ISHIDA
6869
6870 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
6871
6872         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6873         * src/SDCCval.c (constVal): added reduction from int to char
6874         * src/SDCCval.c (valMult, valDiv): fixed sign handling
6875         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6876         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6877         to ignore the sign
6878         * support/regression/tests/shifts.c: fixed
6879
6880 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6881
6882         * src/z80/gen.c (genXor): Fixed bug #805445
6883
6884 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6885
6886         Fixed bug #621531 (const & volatile confusion in the type chain).
6887         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6888         refer to the const or volatile state of the pointer itself.
6889
6890         * src/SDCCast.c
6891         * src/SDCCglue.c
6892         * src/SDCCicode.c
6893         * src/SDCCsymt.c
6894         * src/SDCCval.c
6895         * src/SDCC.y
6896         * src/SDCCsymt.h
6897         * src/pic/gen.c
6898         * src/pic/ralloc.c
6899         * src/pic16/gen.c
6900         * src/pic16/ralloc.c
6901         * support/regression/tests/const.c
6902
6903 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6904
6905         When checking for duplicated modules, use absolute paths
6906         instead of relative paths.  Files changed:
6907
6908         * as/mcs51/lklib.c
6909         * link/z80/lklib.c
6910
6911 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6912
6913         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6914
6915 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6916
6917         * device/include/string.h: added size_t typedef, changed
6918         prototypes to use size_t, eliminated separate reentrant and
6919         non-reentrant declarations, added _memmove declaration
6920         * device/lib/_memcpy.c: changed to use size_t instead of int,
6921         changed /4 to >>2 to avoid division library call
6922         * device/lib/_memcmp.c,
6923         * device/lib/_memset.c,
6924         * device/lib/_strncat.c,
6925         * device/lib/_strncpy.c,
6926         * device/lib/_strncmp.c: changed to use size_t instead of int
6927         * device/lib/_memmove.c: new file (fixed bug #772294)
6928         * device/lib/Makefile.in: added _memmove.c
6929         * device/lib/z80/asm_strings.s: fixed bug #772290
6930         * support/regression/tests/bitfields.c: attempt to fix host assertion
6931         failure on amd64-unknown-linux2.2
6932
6933 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6934
6935         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6936         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6937         * as/z80/asmain.c (main): fixed bug #801766
6938
6939 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
6940
6941         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6942         compilers
6943
6944 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6945
6946         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6947         reported in bug #800609
6948
6949 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
6950
6951         * Top header beautifications in src/pic16 directory:
6952           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6953           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6954           pcoderegs.h, ralloc.c, ralloc.h
6955         * main.c: added top header and GPL license notice
6956         * pcode.c: fixed the if-conditional warning
6957
6958 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
6959
6960         * device/lib/_mullong.c: replaced int by short for gcc
6961
6962 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6963
6964         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6965         and JUMPTABLE iCodes properly now (worked by accident before)
6966         * src/mcs51/gen.c (leftRightUseAcc),
6967         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6968         iCode properly now. Use getSize instead of nRegs since a & b
6969         aren't part of the nRegs tally.
6970
6971 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
6972
6973         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6974         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6975           before instructions that use the _STATUS register
6976
6977 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
6978
6979         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6980         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6981         fetching of the pointer
6982         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6983         copied from genNearPointerSet()
6984         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6985         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6986         If they pop r0/r1 they must be called in the opposite order than aopOp().
6987         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6988         (resp. --stack-auto), prepared for --xstack
6989
6990 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6991
6992         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6993
6994 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
6995
6996         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6997         these ports have their own __sdcc_external_start()
6998
6999 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
7000
7001         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7002         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7003         type for bits was changed. It resulted in bit variables becoming
7004         global, which is not permitted in PIC 14 assembly output.
7005
7006 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7007
7008         * doc/sdccman.lyx: various additions and updates. Rearranged sections
7009
7010 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7011
7012         Z80 and MCS51 linkers complaint if a public symbol is defined
7013         in more than one library module:
7014
7015         * as/mcs51/lklib.c
7016         * link/z80/lklib.c
7017         * as/mcs51/Makefile.in
7018
7019 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7020
7021         A few small changes that speed up the peephole optimizer.
7022
7023         * src/SDCCpeeph.c
7024
7025 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7026
7027         Try to make the peephole optimizer smarter by maintaining
7028         an association between the assembly source code and the
7029         iCodes that originated them. Put this information to use
7030         with a new peephole rule condition "notVolatile" so that
7031         the rules can be aggressive yet still safe.
7032
7033         * src/SDCCpeeph.c
7034         * src/SDCCpeeph.h
7035         * src/mcs51/gen.c
7036         * src/mcs51/peeph.def
7037
7038 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7039
7040         Fixed bug #741761
7041
7042         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7043         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7044         if the left or right operand symbols have the accuse flag set.
7045
7046 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7047
7048         Changed the type of the result of the ! (NOT) operator to char;
7049         previously it returned the same type as the source. This allows
7050         us to eliminate all the genFloatNot functions (all of its target
7051         implementations were very buggy) since !float can use the same
7052         code as !long now.
7053
7054         * src/SDCCicode.c (ast2iCode): ! returns char
7055         * src/mcs51/gen.c (genNot, genNotFloat),
7056         * src/ds390/gen.c (genNot, genNotFloat),
7057         * src/z80/gen.c (genNot, genNotFloat),
7058         * src/pic/gen.c (genNot, genNotFloat),
7059         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7060
7061 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
7062
7063         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7064         1. Interrupt would not compile properly. Ensure PCLATH register is saved
7065            during interrupts. Ensure WSAVE is located at a shared bank address.
7066         2. Fixed page selection in some places
7067         3. Fixed BTFSS/C to where necessary use registers directly and not simply
7068            the registers name strings.
7069         4. Fixed "signed / unsigned compare" compiler warnings.
7070         5. The PIC port manages its own allocation of the general purpose
7071            registers, but makes no attempt to reuse them. As a result when
7072            compiling it soon runs out of general purpose registers. Some
7073            additional code was added to the files pcode.c and device.c to walk
7074            through the function call tree and rename the registers so that they
7075            get reused.
7076
7077         * src/pic/device.c
7078         * src/pic/gen.c
7079         * src/pic/glue.c
7080         * src/pic/pcode.c
7081         * src/pic/pcode.h
7082         * src/pic/ralloc.c
7083         * src/pic/ralloc.h
7084         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7085         genPlus() & genMinus() when the result is the same as left or right
7086
7087 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7088
7089         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7090
7091 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7092
7093         Made bitfield a distinct type from bit so that bitfields
7094         convert as per ANSI C and bits retain their traditional
7095         boolean style behaviour. Implemented bitfield support in
7096         the z80 port.
7097
7098         * src/SDCCsymt.h,
7099         * src/SDCCsymt.c,
7100         * src/SDCCast.c,
7101         * src/cdbFile.c,
7102         * src/mcs51/gen.c,
7103         * src/ds390/gen.c: bit v bitfield split
7104         * src/z80/gen.c: New support for bitfields
7105         * support/regression/tests/bitfields.c: reenabled z80,
7106         added more tests
7107
7108 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7109
7110         Rules 246.x, 247.x relate to bitfields, the others speed up
7111         access to xdata mapped I/O devices.
7112
7113         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7114
7115 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7116
7117         Cleaned up genPackBits and genUnpackBits and added two helper
7118         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7119         for literal assignments in genPackBits (thanks to Frieder for
7120         reminding me).
7121
7122         * src/mcs51/gen.c
7123         * src/ds390/gen.c
7124
7125 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7126
7127         Fixed bug #748310 (pointer to function type mishandled when the
7128         function name is omitted). Also fixed a SIGSEGV when a function
7129         attribute (reentrant, etc) is used on a non-function or on a
7130         function but misplaced before the parameter list.
7131
7132         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
7133         bug #748310
7134         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
7135         * support/Util/SDCCerr.h,
7136         * support/Util/SDCCerr.c: Added func attr misuse error msg
7137
7138 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7139
7140         Fixed bug #787649 by anonymous
7141         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
7142         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
7143
7144 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7145
7146         Fixed numerous bitfield problems.
7147
7148         * src/SDCC.y: More bitfield related error checking
7149         * src/SDCCsymt.h,
7150         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
7151         * support/Util/SDCCerr.h,
7152         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
7153         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7154         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7155         * support/regression/tests/bitfields.c: tests added
7156
7157 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7158
7159         Made the constant following the "interrupt" keyword optional. If
7160         omitted, the function will not automatically be given an entry
7161         in the interrupt vector table (similar to #pragma NOIV, but
7162         less syntacticly kludgy). The interrupt number is also now
7163         range checked. Also fixed a bug in the high order bit example
7164         in the manual.
7165
7166         * src/SDCC.y
7167         * src/SDCCmem.c
7168         * src/SDCCglue.c
7169         * src/SDCCsymt.h
7170         * support/Util/SDCCerr.c
7171         * support/Util/SDCCerr.h
7172         * doc/sdccman.lyx
7173
7174 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7175
7176         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
7177         * src/SDCCicode.c (operandOperation): rewritten some ops
7178         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
7179         * src/SDCCsymt.c (computeType): literals are handled the same way as any
7180         other type
7181         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
7182         be re-activated by defining REDUCE_LITERALS)
7183         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
7184         unsigned, but are signed by default
7185         * src/SDCCval.c (constVal): rearranged
7186         * src/SDCCval.c (valMod): preliminary fix
7187         * src/SDCCval.c (valCastLiteral): use TYPE_* types
7188         * support/regression/literalop.c: added, work in progress
7189
7190 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7191
7192         Generate warnings for useless declarations like "char data;"
7193         that don't do what new users expect.
7194
7195         * src/SDCC.y
7196         * support/Util/SDCCerr.h
7197         * support/Util/SDCCerr.c
7198
7199 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
7200
7201         * src/SDCCval.c (valMult): fix overflow detection of negative int
7202
7203 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7204
7205         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7206
7207         Changes to support big endian targets:
7208
7209         * src/ports.h
7210         * src/SDCCglue.c
7211         * src/avr/main.c
7212         * src/ds390/main.c
7213         * src/izt/i186.c
7214         * src/mcs51/main.c
7215         * src/pic/main.c
7216         * src/pic16/main.c
7217         * src/xa51/main.c
7218         * src/z80/main.c
7219
7220 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
7221
7222         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7223         * device/lib/time.c: fixed warning "integer overflow in expression"
7224
7225 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7228         * src/SDCCval.c (constVal): changed default to signed; hex and octal
7229         constants are unsigned; added recognition of "u" flag for unsigned
7230         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7231         * src/SDCCval.c (valDiv, valMod): fixed signdness
7232         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7233         signedness of modulo, left and right shift
7234         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7235         * support/Util/SDCCerr.h: added warning W_INT_OVL
7236         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7237         * src/SDCCast.c (ast_print): improved output of constants
7238
7239 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7240
7241         Fixed some warnings when building with MSVC:
7242
7243         * as\mcs51\asdata.c
7244         * as\z80\asdata.c
7245         * as\mcs51\asm.h
7246         * as\z80\asm.h
7247         * link\z80\aslink.h
7248         * link\z80\lkdata.c
7249         * link\z80\lkeval.c
7250         * link\z80\lkgb.c
7251         * link\z80\lkihx.c
7252         * link\z80\lks19.c
7253         * link\z80\lksym.c
7254         * support\cpp2\cpplib.c
7255         * src\ds390\gen.c
7256         * src\mcs51\gen.c
7257
7258 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
7259
7260         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7261
7262 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7263
7264         * support\librarian\clean.mk: Do not remove Makefile.
7265         * support\librarian\Makefile: added.
7266
7267 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7268
7269         Added librarian to MSVC build:
7270         * all.dsp
7271         * sdcc.dsw
7272         * support\librarian\librarian.dsp
7273
7274         'configure' not needed for librarian, removed:
7275         * support\librarian\configure
7276         * support\librarian\configure.in
7277         * support\librarian\config_in.h
7278         * support\librarian\Makefile.in
7279
7280         Hopefully these ones built the librarian and the rest of sdcc properly:
7281         * Makefile
7282         * Makefile.common.in
7283
7284         Messed up 'configure', so revert to previous version:
7285         * configure
7286         * configure.in
7287
7288 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
7289
7290         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7291         there, while the mantissa of a double is "only" 53 bits wide.
7292
7293 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7294
7295         Adding sdcclib to the build.  MSVC project coming soon.
7296         Files added/changed:
7297
7298         * support\librarian\clean.mk
7299         * support\librarian\configure
7300         * support\librarian\configure.in
7301         * support\librarian\config_in.h
7302         * support\librarian\Makefile.bcc
7303         * support\librarian\Makefile.in
7304         * support\librarian\sdcclib.c
7305         * Makefile.bcc
7306         * Makefile
7307         * Makefile.common.in
7308         * configure
7309         * configure.in
7310
7311 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7312
7313         Linker now complaints if linked modules have conflicting options, for
7314         example, one compiled using --model-large and another one compiled with
7315         --model-small.  The following files were modified:
7316
7317         * as\mcs51\asdata.c
7318         * as\mcs51\aslink.h
7319         * as\mcs51\asm.h
7320         * as\mcs51\asmain.c
7321         * as\mcs51\asout.c
7322         * as\mcs51\i51pst.c
7323         * as\mcs51\lkdata.c
7324         * as\mcs51\lklibr.c
7325         * as\mcs51\lkmain.c
7326         * as\z80\asdata.c
7327         * as\z80\asm.h
7328         * as\z80\asmain.c
7329         * as\z80\asout.c
7330         * as\z80\z80pst.c
7331         * link\z80\aslink.h
7332         * link\z80\lkdata.c
7333         * link\z80\lklibr.c
7334         * link\z80\lkmain.c
7335         * src\SDCCglue.c
7336
7337 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7338
7339         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7340         as/mcs51/lklibr.c: Generate a warning when a library is not found.
7341
7342 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
7343
7344         * src/z80/mappings.i: fix _mul[us][int,long] entries
7345
7346 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7347
7348         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7349
7350 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7351
7352         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7353         * support/regression/tests/bitopcse.c: added
7354         fixed warning:
7355         * src/avr/gen.c:
7356         * src/pic/gen.c:
7357         * src/pic16/gen.c:
7358         * src/z80/gen.c:
7359         * src/xa51/gen.c:
7360
7361 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7362
7363         added support for new library format to z80, gbz80 linkers:
7364         *link/z80/aslink.h
7365         *link/z80/lklex.c
7366         *link/z80/lklib.c
7367         *link/z80/lklist.c
7368
7369 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7370
7371         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7372         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7373
7374 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
7375
7376         added DUMMY_READ_VOLATILE:
7377         * src/SDCC.y:
7378         * src/avr/gen.c:
7379         * src/xa51/gen.c:
7380         * src/z80/gen.c:
7381         * src/pic/gen.c:
7382         * src/pic16/gen.c:
7383         * src/mcs51/gen.c:
7384         * src/ds390/gen.c:
7385         * src/SDCCcse.c (algebraicOpts): many improvements
7386         * src/SDCCcse.h: removed algebraicOpts()
7387         * src/SDCCicode.c (picDummyRead): added
7388
7389 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7390
7391         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7392         "Insufficient space in data memory".
7393
7394 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7395
7396         * src/mcs51/gen.c: fixed bug #771358
7397         * src/z80/gen.c: fixed bug #759087
7398
7399 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
7400
7401         * src/pic16/glue.c: minor cleanup by Vangelis
7402
7403 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7404
7405         * device/include/regc515c.h: fixed #758477
7406         * device/lib/_gptrget.c: saving some cycles in generic pointer get
7407         * device/lib/_gptrput.c: saved a few bytes
7408         * my tab spacing is 8, yours too?)
7409         * device/lib/_ser.c: process RX bytes earlier than TX bytes
7410         * device/lib/serial.c: process RX bytes earlier than TX bytes
7411         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
7412
7413 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7414
7415         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
7416
7417 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7418
7419     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
7420
7421 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
7422
7423         * device/lib/Makefile.in: bad fix, reverted to 1.43
7424
7425 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
7426
7427         * device/lib/Makefile.in: added missing z80 object files
7428
7429 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
7430
7431         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
7432         pic16 progress by Vangelis:
7433         * src/SDCCglobl.h:
7434         * src/SDCCmain.c:
7435         * src/pic/Makefile:
7436         * src/pic:
7437         * pic/Makefile:
7438         * pic16/device.c:
7439         * pic16/device.h:
7440         * pic16/gen.c:
7441         * pic16/gen.h:
7442         * pic16/genarith.c:
7443         * pic16/glue.c:
7444         * pic16/main.c:
7445         * pic16/pcode.c:
7446         * pic16/pcode.h:
7447         * pic16/pcodepeep.c:
7448         * pic16/peeph.def:
7449
7450 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7451
7452     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
7453
7454 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7455
7456     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
7457     added gbz80 build to MSVC project.
7458     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
7459     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
7460     from 8051 stuff and setup so it links using a .lnk file.
7461
7462 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7463
7464     * support/librarian/sdcclib.c: sdcc librarian.
7465     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
7466     with sdcclib.
7467
7468 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7469
7470     * as/mcs51/lkmain.c: properly handle extensions in function afile.
7471
7472 2003-07-02  Borut Razem <borut.razem AT siol.net>
7473
7474         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
7475         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
7476         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
7477         src/xa51/main.c, src/z80/main.c:
7478         virtualization of glue() function: each port has it's own glue function,
7479         which is accessed by do_glue function pointer in PORT.general structure
7480
7481 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
7482
7483         * DS800C400 fun, improved ROM interface and tinibios.
7484
7485 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
7486
7487         * More support for DS80C400. Now includes beginning of interface to ROM.
7488
7489 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
7490
7491         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
7492
7493 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7494
7495         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
7496
7497 2003-06-19  Borut Razem <borut.razem AT siol.net>
7498
7499         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
7500
7501 2003-06-19  Borut Razem <borut.razem AT siol.net>
7502
7503         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
7504         fixed Z80 port - crt0.o: cannot open.
7505
7506 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
7507
7508         * support/Util/MySystem.c (merge_command): revert bad fix
7509
7510 2003-06-18  Borut Razem <borut.razem AT siol.net>
7511
7512         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
7513
7514 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7515
7516         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7517         option --use-stdout sends errors to stdout instead of stderr.
7518
7519 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
7520
7521         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
7522
7523 2003-06-15  Borut Razem <borut.razem AT siol.net>
7524
7525         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
7526         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
7527         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
7528         fixed width array of pointers replaced with sets;
7529         multiple include and lib paths ared transferred to preprocessor and linker
7530         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
7531         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
7532         fixed width array of pointers
7533         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
7534         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
7535         fixupPath(), getPathDifference()
7536         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
7537         fixed width array of pointers
7538
7539 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
7540
7541         * src/pic16/ralloc.c: fix warnings
7542         * src/pic16/pcode.c: fix warning
7543
7544 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
7545
7546          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
7547         know all the details, but essentially this set of changes enable
7548         the pic16 port to generate movff instructions and generate assembler
7549         directives,
7550         * src/SDCCmain.c:
7551         * src/pic16/gen.c:
7552         * src/pic16/glue.c:
7553         * src/pic16/pcode.c:
7554         * src/pic16/device.c:
7555         * src/pic16/main.c:
7556         * src/pic16/pcode.h:
7557         * src/pic16/pcoderegs.c:
7558         * src/pic16/ralloc.c:
7559         * src/pic16/ralloc.h:
7560
7561 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7562
7563         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7564         added option --vc, so sdcc errors and warnings are compatible with
7565         Microsoft Visual Studio.
7566
7567 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7568
7569         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
7570           device/lib/libfloat.lib: added atof function.
7571
7572 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
7573
7574         * doc/sdccman.lyx: updated to Lyx 1.3
7575         * doc/cdbfileformat.lyx: updated to Lyx 1.3
7576         * doc/test_suite_spec.lyx: updated to Lyx 1.3
7577         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
7578
7579 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
7580
7581         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
7582
7583 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7584
7585         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
7586           additions to the "related tools/documentation" section
7587
7588 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
7589
7590         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
7591
7592 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
7593
7594         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
7595         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
7596
7597 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
7598
7599         * doc/sdccman.lyx: fix double dash and other minor things
7600         * doc/Makefile: fix double dash
7601
7602 2003-05-28  Karl Bongers(patches from Martin Helmling)
7603         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
7604           condition and ignore commands.
7605
7606 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7607
7608         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
7609           is in parts still quite out of date, I did changes as far as I felt makes sense
7610           for a non-native english speaker.
7611           Please feel free to add to the manual or to correct my changes.
7612         * doc/Makefile: undid touching the date of intermediate tex files.
7613
7614 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7615
7616         * doc/sdccman.lyx: Manual has an index now
7617
7618 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
7619
7620         Finalize muluint/mulsint and mululong/mulslong merging:
7621         * device/lib/_mulint.c
7622         * device/lib/_mullong.c
7623         * device/lib/gbz80/mul.s
7624         * device/lib/gbz80/stubs.s
7625         * device/lib/z80/mul.s
7626         * device/lib/z80/stubs.s
7627         * src/SDCCsymt.c (initCSupport)
7628
7629 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7630
7631         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7632         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7633           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7634           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7635           instead of /Zm500.
7636
7637 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7638
7639         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7640           the regression tests I'm not brave enough to enable 245.b, 245.c
7641         * doc/sdccman.lyx: added latex preamble for hyperref package.
7642           Using pdflatex this will give you a hyperlinked pdf file with
7643           bookmarks. (prepend '%' before /usepackage if this breaks something)
7644
7645 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7646
7647          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7648
7649 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
7650
7651         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7652
7653 2003-05-21    <johan AT balder>
7654
7655         * src/SDCCglue.c (printIval): fixed bug #739934
7656
7657 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7658
7659         Applied patch from bug 737905 (renamed yylineo to mylineno):
7660         * src/altlex.c
7661         * src/SDCCast.c
7662         * src/SDCglobl.h
7663         * src/SDCC.lex
7664         * src/SDCCsymt.c
7665         * src/SDCCval.c
7666         * src/pic16/pcode.c: Cleaned warnings
7667         * src/pic16/pcodeflow.c: Cleaned warnings
7668         * src/pic16/pcoderegs.c: Cleaned warnings
7669
7670 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
7671
7672         * src/pic16/pcode.c: Cleaned warnings
7673         * src/pic16/pcodepeep.c: Cleaned warnings
7674         * src/pic16/ralloc.c: Cleaned warnings
7675
7676 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7677
7678         * doc/sdccman.lyx: fixed bug 739745
7679         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7680
7681 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
7682
7683         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7684         it can be defined with CFLAGS when running configure
7685         * src/SDCCmain.c: fixed compiling + linking with object files
7686
7687 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
7688
7689         * configure.in: configure for pic16 port,
7690             added --disable-pic16-port
7691         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7692         * src/SDCCmain.c: linkOptions is changed to set *,
7693             added if/endif conditional macros to remove options help
7694             messages from optionsTable when a port is not configured, added
7695             support for the PIc16 port in the ports table, when executing
7696             the compiler with no port specified on command line, a default
7697             port is selected with the new macro DEFAULT_PORT which is
7698             defined in port.h, in setDefaultOptions() linkOptions is removed
7699             from initialization assignment, since now it is a set,
7700             parseCmdLine uses setParseWithComma for linkOptions, in
7701             linkEdit() linkOptions are accessed with new function indexSet()
7702             which returns the i'th item of a set variable. See SDCCset.c, in
7703             linkEdit() when calling buildCmdLine(), added linkOptions as
7704             last argument. Now users can pass arguments to gplink via the
7705             -Wl option, main() uses pic16glue() to glue up pic16 programs
7706         * src/SDCCpeeph.c: various changes to support pic16
7707         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
7708             return the i'th item of the set
7709         * src/SDCCset.h: added function prototype for indexSet()
7710         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7711         * src/clean.mk: added pic16 in CLEANALLPORTS variable
7712         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7713             added macro DEFAULT_PORT
7714         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7715         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7716             generated
7717         * src/pic16/glue.c: commented out some error producing lines
7718         * src/pic16/main.c: __config directives are commented out to stop
7719             gpasm complaining and test the linkage with gplink, _linkCmd and
7720             _asmCmd changed to be more gplink and gpasm friendly
7721         * src/pic16/peeph.def: peep rule 3 is commented out, since it
7722             produced an error when parsed, peep rule 12 is added to utilize
7723             movff, but it is commented out since the pCode does not support
7724             yet a command with 2 address arguments
7725
7726 2003-05-18    <johan AT balder>
7727
7728         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7729         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7730 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
7731
7732         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7733   Added feature to script commands from file.
7734
7735 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
7736
7737         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7738         * src/SDCCutil.c: include ctype.h for win32
7739
7740 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
7741
7742         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7743
7744 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
7745
7746         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7747   Fixed so you can set breakpoints prior to run, run does not stop
7748   on entry now.  Add tbreak.  Other enhancements and fixes for use
7749   with ddd.
7750
7751 2003-05-12  Borut Razem <borut.razem AT siol.net>
7752
7753         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7754
7755 2003-05-11  Borut Razem <borut.razem AT siol.net>
7756
7757         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7758         the path of bin directory, so that PATH is the only env. variable, which has to be set
7759         in case of standard installation.
7760         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7761         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7762         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7763
7764 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7765
7766         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7767         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7768         temp files are in the port dir; clean the gen/test directory when
7769         generating new test.c
7770         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7771         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7772         * support/regression/tests/zeropad.c: added
7773
7774 2003-05-09    <johan AT balder>
7775
7776         * src/SDCCglue.c: fixed bug #597940
7777
7778 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7779
7780         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7781   cache sfr, optimize next,step, fix off by one sourceline,
7782   support ddd list function.
7783         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7784
7785 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7786
7787         * support/regression/HTMLgen.py: added compare_s2f()
7788         * support/regression/Makefile: redo 1.27
7789         * support/regression/generate-cases.py: redo 1.5
7790
7791 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7792
7793         * support/regression/tests/float.c: workaround 33 bit hex constant
7794         * support/regression/tests/simplefloat.c: fix division for host
7795
7796 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7797
7798         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7799         that tame's the PIC's over-aggressive optimizer.
7800
7801 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7802
7803          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7804          support for MSVC.
7805
7806 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7807
7808         Initial support for DS80C400. "Hello world" runs on TINIm400
7809         (with polled I/O).
7810
7811 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7812
7813          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7814          * Some notes on ddd usage added in debugger/README
7815          Martin Helmling adding more features and fixes for ddd GUI debugger.
7816          Code added for nexti, stepi, up, down, and other adjustments.
7817
7818 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7819
7820         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7821         * src/pic/peeph.def Added two rules to optimize carry manipulation
7822         * src/pic/* removed debug printfs
7823
7824 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7825
7826         * debugger/mcs51/cmd.c: added header newalloc.h
7827
7828 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7829
7830         * as/Makefile: new EXEEXT
7831         * as/z80/Makefile: remove trailing slash of BUILDIR
7832         * as/z80/clean.mk: new EXEEXT
7833         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7834         * support/cpp2/Makefile.in: new EXEEXT
7835         * src/pic/glue.c (pic14emitRegularMap): fixed warning
7836
7837 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
7838
7839         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7840         EXEEXT was introduced to fix all related problems with targets
7841         "clean", "install" and "uninstall"; a couple of further flaws
7842         especially with "clean" have been fixed too
7843         * as/mcs51/Makefile.in
7844         * as/mcs51/clean.mk
7845         * as/z80/Makefile
7846         * Makefile
7847         * clean.mk
7848         * debugger/mcs51/Makefile.in
7849         * debugger/mcs51/clean.mk
7850         * link/z80/Makefile
7851         * link/z80/Makefile.in
7852         * link/z80/clean.mk
7853         * link/Makefile
7854         * packihx/Makefile.in
7855         * packihx/clean.mk
7856         * sim/ucsim/Makefile
7857         * sim/ucsim/clean.mk
7858         * sim/ucsim/avr.src/Makefile.in
7859         * sim/ucsim/avr.src/clean.mk
7860         * sim/ucsim/s51.src/Makefile.in
7861         * sim/ucsim/s51.src/clean.mk
7862         * sim/ucsim/xa.src/Makefile.in
7863         * sim/ucsim/xa.src/clean.mk
7864         * sim/ucsim/z80.src/Makefile.in
7865         * sim/ucsim/z80.src/clean.mk
7866         * sim/ucsim/main_in.mk
7867         * sim/ucsim/packages_in.mk
7868         * sim/ucsim/gui.src/Makefile.in
7869         * sim/ucsim/gui.src/serio.src/Makefile.in
7870         * sim/ucsim/gui.src/serio.src/clean.mk
7871         * src/Makefile.in
7872         * src/clean.mk
7873         * support/cpp2/Makefile.in
7874         * support/cpp2/clean.mk
7875         * support/makebin/Makefile
7876         * support/makebin/clean.mk
7877         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7878         * doc/sdccman.lyx: --program-suffix no longer needed
7879
7880 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
7881
7882          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7883          Martin Helmling added support for ddd GUI debugger.
7884          Code added to display assembly, set variables, and other commands
7885          to interface to ddd.
7886
7887 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
7888
7889         * as/Makefile: fix target clean
7890         * as/clean.mk: fix target clean
7891         * as/z80/clean.mk: fix target clean
7892
7893 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
7894
7895         * Makefile.common.in: added  AT EXEEXT AT
7896         * configure.in: removed all mingw32 stuff
7897         * configure: rebuilt from configure.in
7898         * doc/sdccman.lyx: updated section "installation"
7899         * support/scripts/sdcc_mingw32: adapted to configure
7900         * support/scripts/sdcc_cygwin_mingw32: added
7901
7902 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
7903
7904         * src/pic Added object file support for the PIC port
7905         * src/pic Applied patch from Craig Franklin (this started the object file support)
7906         * src/regression Updated the PIC regression tests for object files
7907
7908 2003-04-20  Borut Razem <borut.razem AT siol.net>
7909
7910         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7911           lklex.c: In function `getfid':
7912           lklex.c:203: warning: array subscript has type `char'
7913         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7914           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7915         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7916           stack handling macros
7917
7918 2003-04-19  Borut Razem <borut.razem AT siol.net>
7919
7920         * "handling space characters in file path" task:
7921         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7922         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7923         * support/Util/MySystem.h: make it self-sufficient
7924         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7925           src/z80/main.c, sdcc/as/mcs51/lklex.c:
7926           handling space characters in file path
7927         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7928           (it will be used by assemblers, which have their own includes, e.g. gpasm)
7929         * support/Util/MySystem.c: handling space characters in executable's path
7930
7931 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
7932
7933         * as/z80/Makefile: fix permanent rebuild of z80
7934         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7935         * support/regression/tests/bitfields.c: added Johan's bitfields.c
7936
7937 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
7938
7939         * src/SDCCopt.c: add special case optimization to replace modulo by
7940           a power of two with a bitwise AND.
7941
7942 2003-04-18    <johan AT balder>
7943
7944         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7945
7946 2003-04-17    <johan AT balder>
7947
7948         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7949         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7950
7951 2003-04-13  Borut Razem <borut.razem AT siol.net>
7952
7953         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7954         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7955           fixed mingw problem in adl_NORMALIZE_PATH
7956
7957 2003-04-12  Borut Razem <borut.razem AT siol.net>
7958
7959         * fixed "#pragma SAVE/RESTORE can not be nested":
7960         * src/SDCC.lex: reworked pragma handling functions
7961         * sdcc/src/SDCCglobl.h: reworked stack handling macros
7962         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7963
7964 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7965
7966         * src/SDCCutil.c (pathEquivalent): defined but not used
7967         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7968         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7969         * configure: rebuilt from configure.in
7970         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7971         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7972         * device/include/Makefile.in: replace sdcc_datadir
7973         * device/lib/Makefile.in: replace sdcc_datadir
7974         * Makefile.common.in: add LDFLAGS from configure
7975         * packihx/Makefile.in: use LDFLAGS
7976         * src/Makefile.in: use LDFLAGS
7977         * support/cpp2/Makefile.in: add LDFLAGS from configure
7978         * support/makebin/Makefile: use LDFLAGS
7979         * .version: bumped version number to 2.3.5
7980
7981 2003-04-12  Borut Razem <borut.razem AT siol.net>
7982
7983         * completed "different paths" task:
7984         * src/SDCCmacro.c: fixed bug in handling quotes
7985         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7986         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7987
7988 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7989
7990         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7991
7992 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7993
7994         * ds390/gen.c ds390/peeph.def: fix bug 706781
7995
7996 2003-04-11  Borut Razem <borut.razem AT siol.net>
7997
7998         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7999
8000 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
8001
8002         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8003         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8004          set - this bit used to not be set...).
8005         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8006           bad code in PIC Port
8007         * src/regression/and2.c added to test bug 609268
8008         * src/regression/Makefile added and2.c to regression test
8009
8010
8011 2003-04-08    <johan AT CP255758-A>
8012
8013         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8014         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8015         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8016
8017 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
8018
8019         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8020         fix bug #487815
8021         * support/cpp2/Makefile.in: fix bug #487815
8022         * configure: rebuilt from configure.in
8023         * Makefile.common.in: docdir changed, new path suffixes
8024         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8025         * sdcc_vc_in.h: reflect changes from sdccconf.h
8026         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8027         * src/SDCCutil.h: remove BINDIR hack
8028         * doc/sdccman.lyx: update new path hierarchy
8029
8030 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8031
8032         * src/SDCCpeeph.c: added okToRemoveSLOC test
8033
8034 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8035
8036         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8037
8038 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8039
8040         * src/SDCCpeeph.c: added labelIsReturnOnly test
8041         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8042
8043 2003-04-05    <johan AT balder>
8044
8045         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8046         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8047         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8048         * src/SDCCast.c: fixed a warning
8049         * src/SDCCast.h: fixed a warning
8050         * src/SDCCicode.c (operandFromAst): fixed a warning
8051
8052 2003-04-04    <johan AT balder>
8053
8054         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8055         * src/SDCCast.c (decorateType): fixed bug #715076
8056         * src/SDCC.y: fixed bug #702907
8057
8058 2003-04-03    <johan AT balder>
8059
8060         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8061         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8062         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8063         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8064         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8065
8066 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
8067
8068         * _decdptr.c: fix return values
8069         * _gptrget.c: fix return values
8070         * _gptrgetc.c: fix return values
8071         * _gptrput.c: fix return values
8072         * _mulint.c: fix return values
8073         * as/z80/Makefile: fix 'make -j' problem
8074
8075 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
8076
8077         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8078         * configure.in: big cleanup, updated to autoconf 2.5x
8079         * configure: rebuilt from configure.in
8080         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8081         * sdcc_vc_in.h: reflect changes from sdccconf.h
8082         * doc/Makefile: fixed a flaw in "make install"
8083
8084 2003-04-02    <johan AT balder>
8085
8086         * src/ds390/gen.c (genCmp): no comments
8087         * src/mcs51/gen.c (genCmp): no comments
8088         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8089         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8090
8091 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
8092
8093         * support/regression/generate-cases.py: place generated file in given sub directory
8094         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8095         * support/regression/Makefile: improvements for 'make -j';
8096         side effect: it's simpler and faster now
8097
8098 2003-03-31  Borut Razem <borut.razem AT siol.net>
8099
8100         * src/z80/main.c: link-{port} and as-{port} defined without path
8101         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8102
8103 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
8104
8105         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8106
8107 2003-03-30  Borut Razem <borut.razem AT siol.net>
8108
8109         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8110           changed type of list parameter to set
8111         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8112         * src/port.h: changed type of do_assemble() parameter to set
8113         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8114           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8115           definition of "cppoutfilename" macro with NULL value in preProcess()
8116         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8117         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8118         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8119           replaced with set *binPathSet
8120         * shash_add() deallocates the item, if allready exsists, before adding the new one
8121         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8122
8123 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
8124
8125         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
8126           a nested for loop bug in the PIC port
8127         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
8128           for loops
8129
8130 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
8131
8132         * support/Util/dbuf.h: remove C++ stuff to make it portable
8133
8134 2003-03-28  Borut Razem <borut.razem AT siol.net>
8135
8136         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
8137           literal strings in stringLiteral()
8138         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
8139         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
8140           to the project
8141
8142 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
8143
8144         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
8145
8146 2003-03-26    <johan AT balder>
8147
8148         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
8149         * src/ds390/gen.c (saveRegisters): catched symbol abuse
8150         * src/SDCCast.c (decorateType): fixed " -v < 3"
8151
8152 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
8153
8154         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
8155         Added Lenny Story's debug infrastructure changes:
8156         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
8157         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
8158         * src/cdbFile.c: added
8159         * src/SDCCdebug.c: added
8160         * src/SDCCdebug.h: added
8161         * src/SDCCast.c (createFunction)
8162         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
8163         * src/SDCCmain.c (parseCmdLine, main)
8164         * src/SDCCmem.c (redoStackOffsets)
8165         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
8166         * src/SDCCsymt.h
8167         * src/common.h
8168         * src/avr/gen.c (genAVRCode)
8169         * src/ds390/gen.c (gen390Code)
8170         * src/mcs51/gen.c (gen51Code)
8171         * src/pic/gen.c (genpic14Code)
8172         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
8173         * src/xa51/gen.c (genXA51Code)
8174         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
8175
8176 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8177
8178         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
8179         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
8180
8181 2003-03-22    <johan AT balder>
8182
8183         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
8184
8185 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
8186
8187         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
8188         * doc/cdbfileformat.lyx: added, written by Lenny Story
8189         * doc/Makefile: added cdbfileformat.lyx
8190         * doc/clean.mk: added cdbfileformat.lyx
8191
8192 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
8193
8194         * src/mcs51/peeph.def: fix bug #705773
8195
8196 2003-03-20    <johan AT balder>
8197
8198         An sfr/sbit can have an "at #" AND an initializer
8199         * src/SDCCsymt.c (checkSClass):
8200         * src/SDCCmem.c (allocGlobal):
8201         * src/SDCCmem.c (allocLocal):
8202         * src/SDCCast.c (createBlock):
8203
8204 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
8205
8206         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8207
8208 2003-03-16    <johan AT balder>
8209
8210         Undid the hackup of const and volatile, the problem is much bigger
8211         * src/SDCC.y:1.65
8212         * src/SDCCast.c:1.171
8213         * src/SDCCglue.c:1.138
8214         * src/SDCCicode.c:1.146
8215         * src/SDCCsymt.c:1.150
8216         * src/SDCCval.c:1.65
8217
8218 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
8219
8220         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8221         * src/ds390/gen.c (genAddrOf): fixed bug #704087
8222
8223 2003-03-13    <johan AT balder>
8224
8225         Hackup const and volatile modifiers in type chains a bit:
8226         * src/SDCC.y:1.63
8227         * src/SDCCast.c:1.169
8228         * src/SDCCglue.c:1.136
8229         * src/SDCCicode.c:1.143
8230         * src/SDCCsymt.c1.146
8231         * src/SDCCsymt.h1.59
8232         * src/SDCCval.c:1.63
8233
8234 2003-03-12    <johan AT balder>
8235
8236         * src/SDCCBBlock.h: more LRH debugging junk
8237         * src/SDCCcflow.h: more LRH debugging junk
8238         * src/SDCCloop.c: more LRH debugging junk
8239         * src/SDCC.y (struct_declaration): fixed bug #697590
8240         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8241         * src/ds390/gen.c (aopForRemat): fixed bug #700031
8242         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8243
8244 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8245         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8246         test function names must now match exactly).
8247         * src/SDCCcse.c: added special case in findCheaperOp to allow
8248         extending a short integer. Makes less awful code for bug 700121 test case.
8249
8250 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8251
8252         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8253         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8254
8255 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8256
8257         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8258         actually called (operandsNotEqual() was called for all
8259         operandsNotEqualX tests).
8260
8261 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8262
8263         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8264         with shorter literals. Fixes bug 700121.
8265
8266 2003-03-11    <johan AT balder>
8267
8268         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8269
8270 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
8271
8272         * src/SDCCloop.c (mergeRegions): an evil beast is dead
8273         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8274
8275 2003-03-10  Borut Razem <borut.razem AT siol.net>
8276
8277         * src/SDCCmain.c: pipe preprocessor's output
8278         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8279         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8280         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8281         which closes all pipes in pipeSet set
8282         * src/SDCCset.c: free deleted item in function deleteSetItem()
8283         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8284         moved from z80 to src subproject
8285         * .version: increased version number to 2.3.4
8286
8287 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
8288
8289         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8290         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8291         * support/regression/ports/xa51/spec.mk: fix typo
8292
8293 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
8294
8295         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8296
8297 2003-03-09  Borut Razem <borut.razem AT siol.net>
8298
8299         * src/SDCCmain.c: pipe preprocessor's output
8300         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8301         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8302         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8303         which closes all pipes in pipeSet set
8304         * src/SDCCset.c: free deleted item in function deleteSetItem()
8305         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8306         moved from z80 to src subproject
8307
8308 2003-03-09  Borut Razem <borut.razem AT siol.net>
8309
8310         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8311         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8312         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8313         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8314         * src/SDCCglobl.h: unification of WIN32 native definitions
8315
8316 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8317
8318         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8319
8320 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8321
8322         * src/configure.in:   check for endianess (even while cross-compiling)
8323         * src/configure:      check for endianess (even while cross-compiling)
8324         * src/configure_in.h: check for endianess (even while cross-compiling)
8325         * src/avr/gen.c:        remove old endianess stuff
8326         * src/mcs51/gen.c:      remove old endianess stuff
8327         * src/ds390/gen.c:      remove old endianess stuff
8328         * src/pic/gen.c:        remove old endianess stuff
8329         * src/pic/genarith.c:   remove old endianess stuff
8330         * src/pic/glue.c:       fix endianess check
8331         * src/pic16/gen.c:      remove old endianess stuff
8332         * src/pic16/genarith.c: remove old endianess stuff
8333         * src/pic16/glue.c:     fix endianess check
8334         * src/xa51/gen.c:       remove old endianess stuff
8335         * src/z80/gen.c:        fix endianess check
8336         * src/SDCCglue.c:       fix endianess check
8337         * src/ds390/peeph.def: fix bug 700036
8338
8339 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8340
8341         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8342         * src/configure: find appropriate data-types on host for SDCC's int and long
8343         * src/configure.in: find appropriate data-types on host for SDCC's int and long
8344         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8345         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8346
8347 2003-03-07    <johan AT balder>
8348
8349         Just a big NOOP:
8350                 some minor cleanups before the big shot
8351                 OP_DEFS and OP_USES now use Kevin's protection
8352                 new option --nolabelopt
8353
8354         * src/SDCCBBlock.c:
8355         * src/SDCCast.c,:
8356         * src/SDCCcflow.c:
8357         * src/SDCCcse.c:
8358         * src/SDCCicode.c:
8359         * src/SDCCicode.h:
8360         * src/SDCClabel.c:
8361         * src/SDCCloop.c:
8362         * src/SDCCmain.c:
8363         * src/ds390/ralloc.c:
8364         * src/mcs51/ralloc.c:
8365         * src/pic/ralloc.c:
8366         * src/xa51/ralloc.c:
8367         * src/z80/ralloc.c:
8368
8369 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
8370
8371         * src/pic/pcode.c (get_op): fix 64 bit warnings
8372         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8373         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8374         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8375         * support/regression/tests/malloc.c: fix 64 bit warnings
8376
8377 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
8378
8379         * src/mcs51/gen.c (genMinus): fixed bug 696436
8380
8381 2003-03-02  Borut Razem <borut.razem AT siol.net>
8382
8383         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8384
8385 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
8386
8387         * configure.in: test for mkstemp
8388         * sdccconf_in.h: add HAVE_MKSTEMP
8389
8390 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
8391
8392         * device/include/ctype.h: removed warning while using --stack-auto
8393         * device/include/malloc.h: removed warning while using --stack-auto
8394         * device/include/string.h: removed warning while using --stack-auto
8395
8396 2003-02-23  Borut Razem <borut.razem AT siol.net>
8397
8398         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
8399         because NDEBUG is defined (see man assert)
8400         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
8401
8402 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8403
8404         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
8405         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
8406
8407 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8408
8409         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
8410         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
8411
8412 2003-02-18    <johan AT balder>
8413
8414         * as/mcs51/asmain.c (asmbl): module can start with a digit
8415         * as/z80/asmain.c (asmbl): module can start with a digit
8416
8417 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
8418
8419         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
8420         * src/asm.c: fix pipe() for Mingw32
8421
8422 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
8423
8424         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
8425         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
8426         make -V work again; --c1mode reads now from stdin
8427         * doc/sdccman.lyx: added --c1mode
8428         * support/Util/SDCCerr.c: new messages for c1 mode
8429         * support/Util/SDCCerr.h: new messages for c1 mode
8430         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
8431
8432 2003-02-15    <johan AT balder>
8433
8434         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
8435
8436 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
8437
8438         * doc/sdccman.lyx: Environment variables, -o and other minor things
8439
8440 2003-02-14    <johan AT balder>
8441
8442         * src/xa51/main.c: before anyone really tries to use it :)
8443
8444         * Install doc's in share/sdcc/doc
8445         * removed some obsolete files
8446         * Do a proper make distclean and uninstall
8447         M Makefile.common.in
8448         R sdccbuild.sh
8449         M as/Makefile
8450         M device/include/Makefile.in
8451         M device/lib/Makefile.in
8452         M doc/sdccman.lyx
8453         M link/Makefile
8454         M sim/ucsim/doc/Makefile.in
8455         M src/clean.mk
8456         R src/avr/peeph.rul
8457         R src/xa51/peeph.rul
8458         M support/cpp2/Makefile.in
8459         M support/makebin/Makefile
8460
8461
8462 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
8463
8464         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
8465
8466 2003-02-10  Borut Razem <borut.razem AT siol.net>
8467
8468         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
8469         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
8470         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
8471         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
8472         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
8473         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
8474         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
8475         src/z80/Makefile.bcc: Borland Makefile cleanup
8476         * as/z80/Makefile.bcc: Added Borland Makefile
8477         * support/cpp2/borland.h: Removed
8478
8479 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
8480
8481         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
8482         * src/SDCC.lex: new pragma NOIV
8483         * src/SDCCglobl.h: new pragma NOIV
8484         * src/SDCCmem.c: new pragma NOIV
8485
8486 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8487
8488         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
8489
8490 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8491
8492         * src/SDCCmain.c: signal handling is switched off by --debug
8493         * doc/Makefile: small fix for install; use clean.mk again
8494         * doc/clean.mk: clean *.pdf and *.html too
8495
8496 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
8497
8498         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
8499         * device/lib/printfl.c: fix a ds390 bug by making it portable
8500         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
8501         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
8502         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
8503         * debugger/mcs51/cmd.c: converted multi-line string literals
8504         * sim/ucsim/globals.cc: converted multi-line string literals
8505         * src/SDCCmain.c: introduced signal handler to remove temp files
8506         * doc/Makefile: small tweaks, implement clean
8507         * doc: removed generated files
8508
8509 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8510
8511         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
8512         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
8513         Address Record is not correctly generated for DS390."
8514
8515 2003-02-02  Borut Razem <borut.razem AT siol.net>
8516
8517         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
8518         * as/mcs51/asm.h: fixed compilation with Borland C
8519         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
8520         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
8521         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
8522         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
8523         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
8524         src/z80/Makefile.bcc: delete $(LIB) only if exist
8525         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
8526
8527 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
8528
8529         * device/include/malloc.h: introduced NULL
8530         * device/include/string.h: introduced NULL
8531         * device/include/stdlib.h: introduced NULL
8532         * device/lib/_memcpy.c: removed NULL
8533         * device/lib/_strcat.c: removed NULL
8534         * device/lib/_strchr.c: removed NULL
8535         * device/lib/_strcmp.c: removed NULL
8536         * device/lib/_strcpy.c: removed NULL
8537         * device/lib/_strcspn.c: removed NULL
8538         * device/lib/_strlen.c: removed NULL
8539         * device/lib/_strncat.c: removed NULL
8540         * device/lib/_strncmp.c: removed NULL
8541         * device/lib/_strncpy.c: removed NULL
8542         * device/lib/_strpbrk.c: removed NULL
8543         * device/lib/_strrchr.c: removed NULL
8544         * device/lib/_strspn.c: removed NULL
8545         * device/lib/_strstr.c: removed NULL
8546         * device/lib/_strtok.c: removed NULL
8547         * device/lib/malloc.c: removed NULL, include own header
8548
8549 2003-02-02    <johan AT balder>
8550
8551         * 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
8552         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
8553         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
8554         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
8555         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
8556         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
8557
8558 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8559
8560         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
8561         area 'DATA'"
8562
8563 2003-02-01    <johan AT balder>
8564
8565         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
8566
8567 2003-01-31    <johan AT CP255758-A>
8568
8569         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
8570
8571 2003-01-30    <johan AT balder>
8572
8573         * src/SDCCBBlock.c: automatic bug detection
8574         * src/SDCCicode.c: automatic bug detection
8575
8576 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8577
8578         * src/SDCCglobl.h:   now --xram-size 0 works
8579         * src/SDCCmain.c:    now --xram-size 0 works
8580
8581 2003-01-29    <johan AT balder>
8582
8583         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
8584
8585 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8586
8587         * as/mcs51/aslink.h: Added options --xram-size and --code-size
8588         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
8589         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
8590         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
8591         * src/SDCCglobl.h:   Added options --xram-size and --code-size
8592         * src/SDCCmain.c:    Added options --xram-size and --code-size
8593
8594 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
8595
8596         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
8597         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
8598
8599 2003-01-27    <johan AT balder>
8600
8601         * src/SDCC.y: fixed bug #613764
8602
8603 2003-01-26    <johan AT balder>
8604
8605         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
8606         * src/SDCCsymt.h: fixed bug #673374
8607         * src/SDCCglue.c: fixed bug #661910
8608         * src/SDCCast.c: fixed bug #458099 and 673374
8609
8610 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
8611
8612         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
8613         * as/mcs51/strcmpi.h: added
8614         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
8615         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
8616         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
8617         * as/mcs51/assym.c: strcmpi -> as_strcmpi
8618         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
8619         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
8620         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
8621         * as/mcs51/Makefile.aslink: new module strcmpi
8622         * as/mcs51/Makefile.asx8051: new module strcmpi
8623         * as/mcs51/Makefil.bcc: new module strcmpi
8624         * as/mcs51/Makefile.in: new module strcmpi
8625         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
8626
8627 2003-01-26    <johan AT balder>
8628
8629         * src/SDCCglue.c: reverted back to 1.124
8630         * src/SDCCast.c: reverted back to 1.156
8631         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8632
8633 2003-01-25    <johan AT balder>
8634
8635         * src/SDCCglue.c: A better fix for bug #661910
8636         * src/SDCCast.c: A better fix for bug #661910
8637         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8638
8639 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8640
8641         * src/Makefile.in: remove spawn.o
8642         * src/SDCCmain.c: remove spawn.h
8643         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8644         * src/spawn.c: removed
8645         * src/spawn.h: removed
8646         * support/regression/ports/ds390/spec.mk: link with -r
8647
8648 2003-01-24    <johan AT CP255758-A>
8649
8650         * src/ds390/gen.c (aopOp): fixed bug #667458
8651         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8652         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8653         (createIvalCharPtr): an ival doesn't always have a storage class anymore
8654
8655 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8656
8657         * src/mcs51/peeph.def: better assembler identation by Frieder
8658         * src/mcs51/gen.c: better assembler identation by Frieder
8659
8660 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
8661
8662         * as/z80/string.h: removed for gcc 3.2
8663         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8664         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8665
8666 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8667
8668         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8669         * src/SDCCpeeph.c (replaceRule): fix bug #663503
8670         * support/regression/Makefile: separate temp files for ports
8671         * support/regression/generate-cases.py: separate temp files for ports
8672         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8673         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8674
8675 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8676
8677         * moved tinitalk to device/examples/ds390
8678
8679 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
8680
8681         * as/mcs51/lkmem.c: rflag is for DS390
8682         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8683         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8684                          (linkEdit): move mem- and map-files the same way as ihx-files
8685         * src/z80/main.c (_setDefaultOptions): removed --generic
8686         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8687         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8688         * src/pic/glue.c (picglue): --c1mode works again
8689         * src/pic16/glue.c (pic16glue): --c1mode works again
8690         * src/asm.c (printCLine): fix #660034
8691
8692 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
8693
8694         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8695         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8696         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8697         * as/mcs51/lkmem (summary): better fix for sp problem
8698         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8699         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8700         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8701                                               remove --stack-after-data
8702
8703 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
8704
8705         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8706         * src/SDCCutil.c (join): ugly bug: missing '\0'
8707         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8708
8709 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8710
8711         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8712         * src/port.h: typo
8713         * src/pic/main.c (_asmCmd): gpasm supports -o
8714         * src/z80/main.c: more general macros
8715         * device/lib/Makefile.in: remove intermediate files
8716
8717 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8718
8719         * .version: Bumped version number to 2.3.3
8720         * src/SDCCBBlock.c: new option -o
8721         * src/SDCCglobl.h: new option -o
8722         * src/SDCCglue.c: new option -o
8723         * src/SDCCmain.c: new option -o
8724         * src/asm.c: new option -o
8725         * src/ds390/main.c: new option -o
8726         * src/pic/glue.c: new option -o
8727         * src/pic/pcode.c: new option -o
8728         * src/pic/ralloc.c: new option -o
8729         * src/pic16/glue.c: new option -o
8730         * src/pic16/pcode.c: new option -o
8731         * src/pic16/ralloc.c: new option -o
8732         * src/z80/main.c: new option -o
8733         * device/lib/Makefile.in: use -o
8734         * support/regression/ports/ds390/spec.mk: use -o
8735         * support/regression/ports/gbz80/spec.mk: use -o
8736         * support/regression/ports/mcs51/spec.mk: use -o
8737         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8738         * support/regression/ports/z80/spec.mk: use -o
8739         * support/regression/ports/ucz80/spec.mk: use -o
8740         * support/regression/ports/xa51/spec.mk: use -o
8741         * support/regression/fwk/lib/timeout.c: fix usage string
8742
8743 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
8744         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8745
8746 2003-01-07    <johan AT balder>
8747
8748         * src/SDCCast.c (decorateType): fixed bug #600035
8749
8750 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
8751         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8752         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8753         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8754         * src/pic/pcode.c: outcommented unused variable to remove warnings
8755         * src/pic/ralloc.c: outcommented unused variable to remove warnings
8756
8757 2003-01-06    <karl AT turbobit.com>
8758         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8759    regression tests.
8760
8761 2003-01-06    <johan AT balder>
8762
8763         * src/SDCCicode.c: fixed array add
8764
8765 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
8766         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8767         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8768
8769 2003-01-04    <johan AT balder>
8770
8771         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8772
8773 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8774         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8775
8776 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8777         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8778         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8779
8780 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8781         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8782
8783 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8784         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8785
8786 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8787         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8788
8789 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8790
8791     * in \sdcc\as\mcs51\ changed these files in order to create an
8792     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8793     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8794     following files to include the previous two files: aslink.dsp,
8795     Makefile.aslink, Makefile.bcc, and Makefile.in.
8796
8797     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8798     .adb instead of .cdb
8799
8800 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8801
8802         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8803         value from option --iram-size.
8804
8805 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8806
8807         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8808         dram[] array.
8809
8810 2002-09-18    <wiml AT hhhh.org>
8811
8812         * SDCClrange.h: exposed setFromRange() and setToRange()
8813         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8814           packRegsForAccUse() (bug 542397)
8815         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8816           multiple times and emitting the fetch operations more than once
8817           added aopGetUsesAcc() function to allow binary operators to
8818           fetch their operands in the correct order; made genMinus() emit
8819           compact code for X = LITERAL - Y
8820
8821 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8822         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8823         sprintf() in line 1267.
8824
8825 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8826         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8827         like ports.
8828
8829 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8830         Changes to aslink (All the changes are marked with 'JCF'):
8831
8832         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8833         summary().
8834
8835         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8836         area BSEG.  Also moves, if possible, the DATA area down into the internal
8837         ram so more space is available.
8838
8839         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8840         sflag.
8841
8842         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8843         not bytes.  Function summary() which creates a memory usage summary
8844         file with extension .mem.  Reports of overlaping stack and small stack
8845         size.  If the space for the stack is less than 16 bytes aslink trows a
8846         warning.
8847
8848         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8849         the 8051.  Option 'y' for memory summary output file.
8850
8851         Changes to sdcc (All the changes are marked with 'JCF'):
8852
8853         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8854
8855         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
8856         overlaying area for it (uses RegBankUsed[4]).
8857
8858         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8859         bank zero as used by default.  By default aslink locates the stack
8860         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
8861         the creation of the .mem file.  Delegates the allocation of data area
8862         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
8863         the begining of the stack area to aslink.
8864
8865         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
8866         glue() in SDCCglue.c creates an area for it.
8867
8868 2002-09-03  Borut Razem <borut.razem AT siol.net>
8869         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8870         sdcc/src/pic/glue.c:
8871         introduced atexit() handler for teporay files removal in case of
8872         errors, assertions, ...
8873
8874 2002-08-29  Borut Razem <borut.razem AT siol.net>
8875         * sdcc/support/cpp2/auto-host_vc_in.h:
8876         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8877         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8878         Maybe there is a similar problem with BORLANDC? It should be checked!
8879
8880         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8881         corrected improper use of assert: the assignment to clr variable was done inside the assert.
8882         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8883         was not executed, and the compiler (cl) launched a warning:
8884         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8885
8886 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8887         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8888
8889 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8890         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8891
8892         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8893           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8894           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8895           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8896           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8897           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8898           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8899         - added Release configuration in VS projects
8900         - review of compiler an linker options
8901         - VC .exe files are generated in bin_vc directory, not to interfere
8902           with binaries generated from other projects (cygwin, mingw, bcc ...)
8903
8904         * sdcc/src/yacc.dsp: added
8905
8906         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8907         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8908         and insert the version number definitions from .version
8909
8910         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8911
8912         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8913         added - genarate auto-host.h using auto-host_vc_in.h as template
8914
8915         * sdcc/sdcc_vc.h,
8916         removed from CVS, generated automatically
8917
8918 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
8919         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8920
8921 2002-08-11  Borut Razem <borut.razem AT siol.net>
8922         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8923
8924 2002-08-10  Borut Razem <borut.razem AT siol.net>
8925         * src/SDCCmain.c (main):
8926         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8927         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8928         The consequence was that some temporary files were not removed.
8929
8930         * src/SDCCglue.c:
8931         unification of code in functions tempfilename() and tempfile():
8932         function tempnam() is defined in Visual Studio 6.0 and .NET
8933
8934         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8935
8936         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8937           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8938         - removed compiler command line option /WX: Treats all warnings as errors
8939         - update a list of source files, included into the project
8940
8941         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8942           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8943         changed project type to Generic Project so that can be correcly converted to VS.NET project
8944
8945         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8946
8947         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8948
8949         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8950
8951         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8952         added return 0 statements after assert() to make compiler happy
8953
8954         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8955         added newline in the def file to keep MSC compiler satisfied
8956
8957         * sdcc/src/z80/gen.c:
8958         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8959           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8960         - solved MSC error in function aopDump()
8961
8962         * sdcc_vc.h: define PREFIX as "\\sdcc"
8963
8964 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
8965         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8966
8967 2002-06-22  Scott Dattalo <scott AT dattalo.com>
8968         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8969         - Rewrote the register banking algorithm.
8970         - Added pCode live-range analysis to registers (for now, only non-used and
8971         singly-used registers optimized away)
8972
8973         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8974
8975         * 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.
8976
8977 2002-05-10  Scott Dattalo <scott AT dattalo.com>
8978         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8979
8980 2002-04-22  Michael Hope  <michaelh AT vroom>
8981
8982         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8983
8984         * configure.in (DD_COPT): Added include support required for gbdk.
8985
8986         * .version: Bumped version number just to increase it.
8987
8988         * src/SDCCmain.c: Added -nostdinc to the default options.
8989
8990 2002-04-15  Michael Hope  <michaelh AT vroom>
8991
8992         * device/lib/z80/printf.c (sprintf): Added.
8993
8994         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8995
8996         * src/z80/peeph.def: Added transpose redundent load rule.
8997
8998         * src/z80/main.c: Added force callee saves for jaune.
8999
9000         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9001
9002         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9003
9004 2002-03-28  Johan Knol  <johan AT balder>
9005
9006         * src/SDCCval.c: fixed bug #532436
9007
9008 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9009         * /src/port.h:
9010         Added "char *Processor" field to the port structure.
9011
9012         * /src/SDCCmain.c:
9013         Added -p option. Allows port dependent processor to be specified.
9014
9015         * all ports:
9016         Initialized the new field char *Processor field to NULL in all ports
9017
9018         * /src/pic/*:
9019         Compiler generated registers for interrupt context saving
9020         were not getting allocated.
9021
9022 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
9023
9024         * /src/SDCCast.c:
9025         Fixed left shift. Will promote the left side of a left shift
9026         if a) left shifting more than size of operand or b) when assigned
9027         to something size > size of left side
9028
9029 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9030         * src/pic/*
9031         tons of changes. Register allocation has been
9032         rewritten. Added customization for the various PICs. Flow
9033         analysis is restructured. ...
9034
9035         * src/pic/device.h:
9036         Added
9037
9038         * src/pic/device.c:
9039         Added. device.c is a PIC port hack to accomodate variations
9040         in PIC devices.
9041
9042 2002-03-13  Michael Hope  <michaelh AT vroom>
9043
9044         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
9045
9046 2002-03-04  johanknol  <johanknol AT manik>
9047
9048         * /src/SDCCval.c: fixed
9049
9050         const unsigned char arr[][2] = { { 0, 1 } };
9051         t18.c:1: error: Initializer element is not constant
9052
9053 2002-03-04  bela  <bela AT manik>
9054
9055         * /device/include/mcs51reg.h:
9056         ds89c420 register definition update
9057
9058 2002-03-03    <johan AT FRIJA>
9059
9060         * support/Util/SDCCerr.c: did something, but don't no why anymore
9061
9062         * support/regression/tests/bug-524691.c: made it a little less shy
9063
9064         * src/SDCCast.c (decorateType): fixed bug #524697
9065
9066         * src/SDCCast.c: made some lineno improvements
9067
9068         * src/SDCCval.c (getNelements): changed warning to error
9069
9070         * src/SDCCglue.c (printIvalArray): changed warning to error
9071
9072         * src/SDCCicode.c: fixed a warning for mingw
9073
9074         * src/SDCCast.c (decorateType): fixed the << promotion for ops
9075
9076         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9077
9078 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
9079
9080         * src/ds390/peeph.def:
9081         Added some more peephole rules
9082
9083         * src/ds390/gen.c: Various fixes & enhancements
9084
9085         * src/SDCClrange.c, src/SDCClrange.h:
9086         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9087
9088         * src/ds390/ralloc.c:
9089         various fixes & enhancements (ds390) specific
9090
9091         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9092         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9093         from rallocs.
9094
9095         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9096
9097 2002-03-02    <johan AT FRIJA>
9098
9099         * src/SDCCast.c (decorateType): fixed bug #524708
9100
9101         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9102
9103         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9104
9105 2002-03-01  Michael Hope  <michaelh AT vroom>
9106
9107         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9108
9109         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9110
9111 2002-03-01    <johan AT FRIJA>
9112
9113         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9114
9115         * src/SDCCast.c (decorateType): fixed bug #524209
9116
9117         * src/SDCCval.c (valNot): fixed bug #524195
9118
9119 2002-02-26    <johan AT balder>
9120
9121         * src/xa51/gen.c: fixed a warning
9122
9123         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9124
9125         * src/SDCCast.c (decorateType): fixed bug #522534
9126
9127 2002-02-23    <johan AT balder>
9128
9129         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
9130
9131 2002-02-22    <johan AT balder>
9132
9133         * src/SDCCast.c: fixed bug #514865
9134
9135         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
9136
9137 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
9138
9139         * sdcc/src/SDCCloop.c:
9140         Previous fix was not good. basic blocks that have "break" or "return" are
9141         not really partof a loop , but live ranges used in these blocks should
9142         be live thru the entire loop, so set partOfLoop but don't add them to
9143         loop region
9144
9145 2002-02-21    <johan AT FRIJA>
9146
9147         * src/SDCCcse.c: fixed bug #514308
9148
9149 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
9150
9151         * src/SDCCloop.c:
9152         Fixed BUG #519583. If a conditional block ended in a return/break
9153         statement inside a loop, it was not being considered part of the loop.
9154
9155         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
9156
9157 2002-02-10  Karl Bongers <karl AT turbobit.com>
9158
9159         * debugger/*:
9160         Fixed up SDCDB debugger somewhat.  Updated debugger/README
9161         with lots of comments and notes.
9162
9163         * device/examples/test2.c:
9164         Fix bug, "red" variable not being initialized(compiler complained).
9165
9166         * device/examples/Makefile, examples/test3.c:
9167         Add Makefile in device/examples folder, compiles test3.c
9168         for use as a multiple module SDCDB test case.
9169
9170         * sim/ucsim/cmd.src/cmdset.cc:
9171         Took out debug printfs in ucsim "next" command.
9172
9173         * sim/ucsim/xa.src:
9174         Karl and Johan start ucsim XA support.  Most dissassembly working,
9175         about 75% emulation done(plenty of work remaining).
9176
9177         * sim/ucsim/z80.src:
9178         Add Z80 support to ucsim, add test-ucz80 regression test,
9179         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
9180         Notice z80 compiler fails on examples/test3.c/crc code.
9181
9182 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
9183
9184         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
9185         Added support for --parms-in-bank1
9186
9187         * src/ds390/peeph.def:
9188         added a few more peephole optimzations
9189
9190         * src/ds390/main.c:
9191         1) added __builtin_inp & __builtin_outp used to read in data of given length
9192            from a memory mapped port
9193         2) added __builtin_memcmp
9194         3) added __builtin_swapw swap bytes of a short
9195
9196         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9197         1) handle multiple send & receives from register bank1
9198         2) ralloc can now allocate DPTR1 to some liveRanges
9199
9200         * src/SDCCsymt.c, src/SDCCsymt.h:
9201         changes to handle multiple sends & receives
9202
9203         * src/SDCCptropt.h:
9204         added some pointer arithmetic optimization
9205
9206         * src/SDCCptropt.c:
9207         added some pointer arithmetic optimizations but not stable yet so not
9208         called from anywhere (will get this working shortly)
9209
9210         * src/SDCCopt.c: fixed for multiple sends & receives
9211
9212         * src/SDCCmain.c:
9213         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9214         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9215            set preprocessor defines (depending on options)
9216
9217         * src/SDCCicode.c, src/SDCCicode.h:
9218         changes made to handle multiple sends & receives
9219
9220         * src/SDCCglobl.h:
9221         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9222
9223         * src/SDCCcse.c, src/SDCCcse.h:
9224         added function findbackward def (to be used in upcoming optimization)
9225
9226         * src/SDCCcflow.c, src/SDCCcflow.h:
9227         added function returnAtEnd - to determine if a basic block terminates with
9228         a RETURN iCode
9229
9230         * src/SDCCast.c, src/SDCCast.h:
9231         added option parms-in-bank1
9232
9233         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9234         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9235         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9236         adjusted for --parms-in-bank1 option
9237
9238         * device/include/string.h:
9239         donot redefine "reentrant" keyword
9240
9241         * device/include/ds80c390.h: Added some more SFRs
9242
9243 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
9244
9245         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9246
9247 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
9248
9249         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9250
9251 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
9252
9253         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9254
9255 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
9256
9257         * Added --xram-movc option
9258
9259 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
9260
9261         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9262
9263 2002-01-11  Johan Knol
9264
9265         * Added math lib of Jesus Calvino-Fraga
9266
9267 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
9268
9269         * src/SDCCmain.c (processFile): fix processing of ../../src.c
9270         * support/regression/Makefile: new target test-mcs51-stack-auto
9271         * support/regression/ports/mcs51-stack-auto/spec.mk: added
9272
9273 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9274
9275         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9276
9277 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9278
9279         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9280
9281 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
9282
9283         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9284
9285         * src/SDCCglue.h: add definition for printIvalChar()
9286
9287 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9288
9289         * src/SDCCast.c: fix #498138 by Johan
9290
9291         * src/SDCCglue.c: fix #498138 by Johan
9292
9293 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9294
9295         * support/regression/Makefile: fix clean
9296
9297         * support/regression/ports/ds390/support.c: fix transmission of last character
9298
9299 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
9300
9301         * /sdcc/src/ds390/gen.c:
9302         a) improved computing address of stack variable
9303         b) took out some #if 0 code
9304         c) improved parmBytes adjustment
9305         d) improved genPlusIncr & genMinusIncr
9306         e) genCmp could generate bad code (when left assigned to DPTR)
9307         f) Fixed bug in hasInc
9308
9309         * /sdcc/src/ds390/ralloc.c:
9310         a) packRegsForSupport could mess up live information (Fixed)
9311         b) packRegsDPTRuse could be incorrect for left & right shift
9312
9313         * /sdcc/src/mcs51/ralloc.c:
9314         packRegsForSupport could mess up the live information (Fixed)
9315
9316         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9317
9318         * /sdcc/src/SDCCast.c:
9319         can reverse a loop even if function call is present as long
9320         as the loop control variable is local & is not passed as parameter
9321
9322 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9323
9324         * /sdcc/ChangeLog: *** empty log message ***
9325
9326         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9327         More builtin function additions for TININative
9328
9329         * /sdcc/src/ds390/ralloc.c:
9330         Had broken the regression testsuite
9331
9332         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9333
9334         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9335         Added funcattr hasStackParms will be set for reentrant functions when there
9336         are paramteres on the stack, this helps in minimizing frame pointer generation
9337         typeFromStr can handle function pointers now
9338
9339         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9340         *** empty log message ***
9341
9342 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9343
9344         * /src/ds390/gen.c, /src/ds390/main.c:
9345         More builtin function additions for TININative
9346
9347         * /src/ds390/ralloc.c:
9348         Had broken the regression testsuite
9349
9350         * /src/SDCCast.c: Fixed a bug in dumptree
9351
9352         * /src/SDCCsymt.c, /src/SDCCsymt.h:
9353         Added funcattr hasStackParms will be set for reentrant functions when there
9354         are paramteres on the stack, this helps in minimizing frame pointer generation
9355         typeFromStr can handle function pointers now
9356
9357         * /doc/builtins.txt, /doc/TININative.txt:
9358         *** empty log message ***
9359
9360
9361 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9362
9363         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9364         ALPHA version for -mTININative
9365
9366         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9367         updated to reflect changes in the port structure
9368
9369         * /src/port.h:
9370         added function do_assemble (similar to do_link) if non-null this function
9371         will be called to do assembly (-mTININative) requires a multi command
9372         assembly
9373         added function genAssemblerEnd will be called to generate assembler Epilogue
9374
9375         * /src/SDCCsymt.c:
9376         added _JavaNative to debug info printing
9377
9378         * /src/SDCCmain.c: added option --tini-libid
9379         added port->do_assemble function (-mTININative) has a multi command assemble
9380
9381         * /src/SDCCglue.c: Disabled "constExpr" check
9382         added port->genAssemblerEnd function
9383
9384         * /src/SDCCglobl.h: Added option --tini-libid value
9385
9386         * /src/SDCCast.h:
9387         tookout optimizeCompare from the header (has no external references)
9388
9389         * /src/SDCCast.c: made one more function "static"
9390
9391 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
9392
9393         * src/z80/mappings.i: Added z80asm support.
9394
9395         * src/z80/main.c: Added z80asm support on --asm=z80asm
9396
9397         * src/z80/gen.c: Fixed asm portability issues.
9398
9399         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
9400
9401         * src/SDCCglue.c (printExterns): Added global/extern split.
9402
9403 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
9404
9405         * support/regression/Makefile: added test for mcs51 model large
9406
9407         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
9408
9409         * support/regression/ports/gbz80/spec.mk: added -mgbz80
9410
9411 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
9412
9413         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
9414
9415 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
9416
9417         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
9418
9419         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
9420
9421 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
9422
9423         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
9424
9425         * support/regression/tests/simplefloat.c: Port to mcs51.
9426
9427 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
9428         * support/regression/tests/bug-485362.c: Added.
9429
9430         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
9431
9432         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
9433
9434         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
9435
9436         * src/z80/gen.c (aopDump): Added a dump function.
9437
9438 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
9439         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
9440
9441         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
9442
9443         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
9444
9445         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
9446
9447         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
9448
9449         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
9450
9451         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
9452
9453         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
9454
9455         * support/regression/ports/ds390/support.c: Use tinibios.
9456
9457         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
9458
9459 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
9460
9461         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
9462         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
9463
9464         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
9465
9466         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
9467
9468 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
9469
9470         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
9471
9472         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
9473         (packRegsForIYUse): Created and optimised.
9474
9475 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9476
9477         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
9478 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
9479
9480         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
9481
9482         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
9483
9484         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
9485
9486 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9487
9488         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
9489
9490         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
9491
9492 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9493
9494         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
9495
9496         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
9497
9498         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
9499
9500 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9501
9502         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
9503         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
9504         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
9505
9506         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
9507
9508         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
9509         (genNotFloat): Added.
9510         (genUminusFloat): Added.
9511
9512         * device/lib/z80/Makefile: Added floating pt stubs.
9513
9514         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
9515
9516         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
9517
9518         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
9519
9520 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9521
9522         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
9523
9524         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
9525
9526         * sdcc/support/regression/Makefile: Add port ds390.
9527
9528         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
9529
9530         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
9531
9532         * sdcc/support/regression/ports/ds390/spec.mk: Added.
9533
9534         * sdcc/support/regression/ports/ds390/support.c: Added.
9535
9536         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
9537
9538         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
9539
9540         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
9541
9542 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9543
9544         * device/include/malloc.h: Added z80 and gbz80 support.
9545
9546         * device/lib/gbz80/heap.s: Added.
9547
9548         * device/lib/z80/heap.s: Added.
9549
9550         * device/lib/malloc.c: Added z80 and gbz80 support.
9551
9552         * support/regression/tests/malloc.c (testMalloc): Added.
9553
9554         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
9555
9556         * support/regression/tests/bug-478094.c: Added.
9557
9558         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
9559
9560 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
9561
9562         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
9563
9564         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
9565
9566         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
9567
9568         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
9569
9570         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
9571
9572 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9573
9574         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
9575
9576 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
9577
9578         * support/regression/tests/bug-477927.c: Added.
9579
9580         * src/z80/peeph.def: Added minor rules.
9581
9582         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
9583
9584         * src/z80/peeph.def: Added jump optimisation modification.
9585
9586 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
9587
9588         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
9589
9590 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
9591
9592         * support/regression/tests/funptrs.c: Added.
9593
9594 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
9595
9596         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
9597
9598 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
9599
9600         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
9601
9602         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
9603
9604         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
9605         (movLeft2ResultLong): Created.
9606
9607         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
9608         (joinPushes): Added.  Joins two char pushes into a word push.
9609
9610 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
9611
9612         * support/cpp2/Makefile.in (install): Added creation of dest dir.
9613
9614         * support/makebin/Makefile (install): Added creation of dest dir.
9615
9616 2001-10-24 Karl Bongers <karl AT turbobit.com>
9617
9618         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
9619
9620 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
9621
9622         * src/z80/ralloc.c: Turned off faulty pack for one use.
9623
9624         * src/z80/peeph-gbz80.def: Removed redundent restart options.
9625
9626         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
9627
9628 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
9629
9630         * support/regression/Makefile: Improved clean
9631
9632         * support/regression/ports/gbz80/spec.mk: Added clean
9633
9634         * support/regression/ports/host/spec.mk: Added clean
9635
9636         * support/regression/ports/z80/spec.mk: Added clean
9637
9638         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9639
9640         * support/regression/ports/mcs51/timeout.c: little improvements
9641
9642 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
9643
9644         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9645
9646         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9647
9648         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9649
9650 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
9651
9652         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9653
9654         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9655
9656 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
9657         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9658
9659         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9660
9661         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9662
9663         * src/mcs51/main.c (_linkCmd): Added bin path to command.
9664
9665         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9666
9667         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9668
9669         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9670
9671         * support/regression/tests/longor.c: Added.
9672
9673 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
9674
9675         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9676
9677         * as/mcs51/aslink.h: define PATH_MAX
9678
9679         * as/mcs51/asm.h: define PATH_MAX
9680
9681         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9682
9683         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9684
9685         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9686
9687         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9688
9689         * src/SDCCglobl.h: define PATH_MAX
9690
9691         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9692
9693         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9694
9695 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
9696
9697         * src/z80/gen.c (gencjneshort): Fixed
9698
9699         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9700
9701 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
9702
9703         * support/regression/tests/bug-469671.c: Added.
9704
9705         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9706
9707 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
9708
9709         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9710
9711         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
9712
9713 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
9714
9715         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9716
9717         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
9718
9719         * src/device/lib/_mullong.c : removed hint: nooverlay bug
9720
9721         * src/device/lib/_divuint.c : removed hint: nooverlay bug
9722
9723         * src/device/lib/_divulong.c: removed hint: nooverlay bug
9724
9725         * src/device/lib/_moduint.c : removed hint: nooverlay bug
9726
9727         * src/device/lib/_modulong.c: removed hint: nooverlay bug
9728
9729 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
9730
9731         * 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.
9732
9733         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
9734
9735         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9736
9737 2001-10-07    <johan AT FRIJA>
9738
9739         * device/lib/gets.c (gets): fixed the return value.
9740
9741 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
9742         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9743
9744         * 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.
9745
9746         * 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.
9747
9748         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9749
9750         * src/pic/gen.c: Removed Safe_strdup.
9751
9752         * configure.in: Added option to enable libgc support.
9753
9754         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9755         (bitVectUnion): Optimised.
9756         (bitVectIntersect): Optimised.
9757         (bitVectBitsInCommon): Optimised.
9758         (bitVectCplAnd): Optimised.
9759
9760         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
9761
9762 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9763
9764         * src/SDCCmain.c: distinguish between assembler debug and plain options
9765
9766         * src/avr/main.c:   remove standard assembler options
9767
9768         * src/ds390/main.c: remove standard assembler options
9769
9770         * src/mcs51/main.c: remove standard assembler options
9771
9772         * src/port.h: removed "PENDING" comment
9773
9774 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9775
9776         * src/device/lib/_mulint.c  : new, with assember functions
9777
9778         * src/device/lib/_mullong.c : new, with assember functions
9779
9780         * src/device/lib/_divuint.c : with assember functions
9781
9782         * src/device/lib/_divsint.c : with assember functions
9783
9784         * src/device/lib/_divulong.c: with assember functions
9785
9786         * src/device/lib/_divslong.c: with assember functions
9787
9788         * src/device/lib/_moduint.c : with assember functions
9789
9790         * src/device/lib/_modsint.c : with assember functions
9791
9792         * src/device/lib/_modulong.c: with assember functions
9793
9794         * src/device/lib/_modslong.c: with assember functions
9795
9796         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9797
9798         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9799
9800         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9801                                       replaced _mululong.c and _mulslong.c by _mullong.c
9802
9803 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9804
9805         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9806
9807 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9808
9809         * src/SDCCglue.c: test, if win32api is available for MINGW
9810
9811 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9812
9813         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9814         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9815         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9816         * support/regression/ports/host/spec.mk: removed GENERIC
9817         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9818         * support/regression/ports/z80/spec.mk: removed GENERIC
9819
9820 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9821
9822         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9823
9824         * support/regression/tests/bug-467035.c: Created.
9825
9826 2001-10-01    <johan AT FRIJA>
9827
9828         * src/SDCC.y: fixed bug #466586 part 1
9829
9830 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9831
9832         * SDCCicode.c: z80 has no generic pointers
9833         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9834
9835 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
9836
9837         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9838
9839 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
9840
9841         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9842
9843         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9844
9845 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
9846
9847         * configure.in: Fixed up so that ucsim is only configured once.
9848
9849         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9850
9851         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9852         (getPathDifference): As above.
9853
9854         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
9855
9856         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9857
9858 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
9859         * .version: Updated to 2.3.1
9860
9861         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9862         Added copyright header.
9863
9864         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9865         (assemble): Added support for macro based assembler commands.
9866         (linkEdit): Added support for macro based linker commands.
9867         (preProcess): Changed the pre-processor to use macros.
9868         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9869         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9870
9871         * device/lib/z80/crt0.s: Added module name for debugging.
9872
9873 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
9874
9875         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9876
9877         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9878
9879         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9880
9881         * src/Makefile.in: Added SDCCmacro and SDCCutil
9882
9883 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
9884
9885         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9886
9887 2001-09-16    <johan AT FRIJA>
9888
9889         * 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.
9890
9891 2001-09-15    <johan AT FRIJA>
9892
9893         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9894         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9895
9896 2001-09-11    <johan AT FRIJA>
9897
9898         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9899
9900 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
9901
9902         * support/regression/tests/bug-460444.c: Added test case.
9903
9904         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9905         (genCast): Added justification for all of the asserts.
9906
9907 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
9908
9909         * support/regression/support.c: _xdata replaced by xdata
9910
9911         * support/regression/spec.mk: removed _generic
9912
9913 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
9914
9915         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9916
9917         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9918         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9919
9920         * src/z80/peeph.def: Added a rule to optimise shift then compare.
9921
9922         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9923
9924         * support/regression/tests/bug-460010.c: Added test case.
9925
9926         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9927
9928 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
9929
9930         * support/regression/Makefile: inter-port-clean adjusted for mcs51
9931
9932         * support/regression/testfwk.c: removed workaround for bug #436344
9933
9934         * support/regression/tests/bp.c: use less memory with mcs51
9935
9936         * support/regression/tests/bug-441448.c: use less memory
9937
9938         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9939
9940         * support/regression/collate-results.py: typo
9941
9942 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
9943
9944         * support/regression/tests/fetchoverlap.c: Added new test case.
9945
9946         * support/regression/tests/bp.c: Added new test case.
9947
9948         * support/regression/tests/bug-448984.c: Added new test case.
9949
9950         * support/regression/tests/pow2shifts.c: Added new test case.
9951
9952         * src/z80/gen.c: Turned off the noise it normally generates for the release.
9953         (genlshTwo): Fixed right shift for count > 8.
9954
9955         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9956
9957 2001-09-08    <johan AT FRIJA>
9958
9959         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9960
9961 2001-09-07    <johan AT FRIJA>
9962
9963         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9964
9965         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9966
9967 2001-09-06    <johan AT FRIJA>
9968
9969         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9970         * bernhard noted me at this: "() equals to (void)" (1.38)
9971
9972 2001-09-05    <johan AT FRIJA>
9973
9974         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9975
9976 2001-09-04    <johan AT FRIJA>
9977
9978         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9979
9980
9981 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
9982
9983         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
9984
9985 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
9986
9987         * link/z80/aslink.h: Fixed path for PATH_MAX
9988
9989 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
9990
9991         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9992
9993         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9994
9995         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9996
9997         * 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.
9998
9999 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
10000
10001         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10002         (genCmp): Fixed up genCmp for the GB with longs.
10003
10004         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10005
10006         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10007
10008         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10009
10010         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10011
10012 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
10013
10014         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
10015
10016 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
10017
10018         * 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.
10019
10020         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10021
10022 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
10023
10024         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
10025
10026         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10027
10028 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
10029
10030   * sim/ucsim/configure:    little improvement of Cygwin-detection
10031   * sim/ucsim/configure.in: little improvement of Cygwin-detection
10032   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10033   * support/regression/tests/bug-221100.c: small changes for mcs51
10034   * support/regression/tests/bug-221168.c: small changes for mcs51
10035   * support/regression/tests/bug-227710.c: small changes for mcs51
10036   * support/regression/tests/staticinit.c: small changes for mcs51
10037   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10038   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10039   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10040
10041 $Revision$