* device/lib/medium/Makefile: added for new memory model medium
[fw/sdcc] / ChangeLog
1 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * device/lib/medium/Makefile: added for new memory model medium
4         * device/include/asm/mcs51/features.h: updated for medium/pdata
5         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6           added Multiply & Accumulate sbit's and MAC0_PAGE define
7         * device/include/mcs51/c8051f300.h: added sfr16 definitions
8         * device/include/mcs51/c8051f310.h: added sfr16 definitions
9         * device/lib/_mullong.c: update for medium model
10         * device/lib/incl.mk: added medium model
11         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
12         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
13         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
14         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
15           (allocParms): set SCLS and OCLS to pdata for medium model
16         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
17           for pdata,
18           (powof2): return <0 if not power of 2
19         * src/avr/gen.c (genBitWise): use updated powof2
20         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
21           (shiftR2Left2Result): small optimization in setup, save acc when storing,
22           (shiftLLeftOrResult): use B if necessary
23         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
24         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
25         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
26         * support/regression/Makefile.in: added test-mcs51-medium
27         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
28
29 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
30
31         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
32         specifier unsigned
33         * device/lib/time.c (mktime): fixed bug 1334315
34
35 2005-10-28 Raphael Neider <rneider AT web.de>
36
37         * device/include/pic/p16f_common.inc: added common declarations
38         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
39
40 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
41
42         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
43           (aopPutUsesAcc): added to predict accumulator use,
44           (assignResultValue): save acc if necessary,
45           (genMinusDec): store result if indirectly addressed,
46           (genDivOneByte):  save acc if necessary,
47           (movLeft2Result): bugfix if left already in acc,
48           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
49             attention to accumulator use (esp. pdata),
50           (genReceive): receive pdata correctly
51         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
52         * src/SDCCicode.h: added isOperandInPagedSpace prototype
53
54 2005-10-27 Raphael Neider <rneider AT web.de>
55
56         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
57
58 2005-10-27 Raphael Neider <rneider AT web.de>
59
60         * .version: changed version to 2.5.4
61         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
62         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
63           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
64             arithmetics support routines
65         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
66         * device/lib/Makefile.in: also create installdir for pic
67
68         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
69           pic14 port as well
70         * src/pic/device.c (dump_sfr): rewritten to delegate register
71           placement to the linker (use `extern sym' rather than sym EQU addr),
72           (validAddress): fixed to check last specified address
73         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
74           (popGetLit): truncate literal value to 8 bit,
75           (popGet): moved assert to more appropriate place
76           (popGetExternal): create pCode operand from and mark the according
77             symbol as being `extern'
78           (popGetAddr): added sanity check on immediate's offset, provide
79             GPOINTER tag on demand
80           (aopPut): fixed for immediates,
81           (mov2w_op): move operand's address or contents to WREG (depending on
82             operand type), safer variant of mov2w,
83           (movwf,call_libraryfunc): NEW, handy abbreviations,
84           (get_argument_pcop,get_return_val_pcop,pass_argument,
85           get_returnvalue): interface for accessing function parameters and
86             return values,
87           (assignResultValuei,genRet): use new parameter/return value interface
88           (pic14_getDataSize): back to old version handling generic pointers,
89           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
90             provided implementation and/or fixed old one,
91           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
92             calls, removed legacy 8051 reference code
93           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
94           (loadSignToC): NEW, move the operands sign bit to CARRY,
95           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
96             genRightShiftSigned, accepts negative shift counts,
97           (setup_fsr): load FSR and adjust IRP (indirect memory access),
98           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
99             generic pointers, __data pointers and __code pointers,
100           (genUnpackBits,genPackBits): rewritten to work with generic pointers
101             and signed bitfields, limit bitfields to 8 bit,
102           (genDataPointerGet): fixed number of bytes read,
103           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
104           (genPointerGet,genPointerSet): fixed handling of __code pointers,
105             pointers to constant data are no longer assumed to point to __code
106             space, removed invalid pointer types,
107           (bitpatternFromVal): retrieve the PICs representation of an integer
108             or float literal,
109           (genDataPointerSet): fixed assigning to po_immediate operands,
110           (genGenPointerSet): implemented as library call,
111           (genIfx): fixed incorrect condition,
112           (genAddrOf): limit generic pointers' addresses to 2 bytes,
113             provide GPOINTER tag according to destination's storage class,
114           (genCast): added code to handle casting to generic pointers, added
115             sign-/zero extension of the result
116           (aop_isLitLike,op_isLitLike): fixed handling of immediates
117         * src/pic/gen.h: added macros to access IRP bit in STATUS register
118         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
119           extend the result
120         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
121           address/register resides in the shared banks
122           (emitSymbolToFile): improved to handle global and `pinned' symbols,
123             put all variables into separate sections (have the linker arrange
124             them)
125           (picglue): put init code and interrupt handlers in separate sections
126         * src/pic/main.c: added port specific options table, modified to PORT
127           structure to make GPOINTERs 3 byte, added pic14_options
128           (_pic14_do_link): private linking routine (update paths to libraries,
129             add libsdcc.lib by default)
130         * src/pic/main.h: declare pic14_options
131         * src/pic/pcode.c: fixed instructions i/o relations,
132           (RegCond): reverted to correct version,
133           (newpCodeOpLit): truncate literals to 8 bit,
134           (genericPrint): added debug output,
135           (getRegFromInstruction): fixed for various operand types, simplified
136           (BuildFlow): fixed broken handling of isntructions with labels
137           (LinkFlow): start at last instruction in flow (skip trailing comments),
138             pass the flow on to the next instruction after CALL
139           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
140           (insertPCodeInstruction): fixed inserting after a skip instruction,
141           (DoBankSelect): fixed for labeled instructions
142           (OptimizepBlock): honor --nopeep switch
143           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
144         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
145         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
146           (pCodeOptime2pCodes): allow disabling this optimization via
147             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
148             but is still buggy), started implementation of a dataflow based
149             pCode optimization (CSE + dead code elimination)
150           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
151         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
152           names are independant of the stack location and therefore portable across
153           devices
154
155 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
156
157         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
158           (selectSpil): fixed bug 1337835 by not spilling bit variables
159         * support/regression/tests/bug1337835.c: added test for this bug
160         * src/mcs51/peeph.def: restart after rule 3.c,
161           addded rules 263.x to optimize loading constants
162
163 2005-10-26 Raphael Neider <rneider AT web.de>
164
165         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
166         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
167           (genAssign): emit warning when casting literals to generic pointer
168             type, also applies when taking the address of a fixed variable,
169           (genCast): improved casting to generic pointers
170         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
171           extern variables, added verbose error message
172         * device/include/pic16/{string.h,errno.h}: added #pragma library c
173
174 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
175
176         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
177         carry must be complemented too
178         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
179         could be emitted by genMinus
180         * src/SDCCval.c (constVal): fixed bug 1305065
181
182 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
183
184         * src/SDCCast.c (addCast): added promotion for bit variables
185         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
186         promotion casts + optimisation
187         (optimizeGetWord): fix warning 'i' might be used uninitialized
188         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
189         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
190
191 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
192
193         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
194         all chars are promoted to int; promotion should be handled in SDCCast.c
195
196 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
197
198         * device/lib/_strcmp.c: Fixed bug 1326457
199
200 2005-10-11 Raphael Neider <rneider AT web.de>
201
202         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
203         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
204
205 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
206
207         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
208         * support/regression/tests/sfr16.c: added test for the sfr32 bug
209
210 2005-10-04 Raphael Neider <rneider AT web.de>
211
212         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
213           device/lib/pic16/pics.all: added pic18f1320
214         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
215
216 2005-09-30 Raphael Neider <rneider AT web.de>
217
218         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
219         * src/pic16/devices.inc: NEW, provides device descriptions
220         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
221
222 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
223
224         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
225           GETHBIT
226
227 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
228
229         * doc/sdccman.lyx: updated Highest Order Bit documentation,
230           documented Any Order Bit, Higher Order Byte and Higher Order Word
231         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
232         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
233           (optimizeGetAbit): new, to get any bit, not only the high bit,
234           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
235           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
236           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
237           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
238             RIGHT_OP: also try GETBYTE, GETWORD optimization,
239             GETABIT, GETBYTE, GETWORD: decorate them,
240           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
241           (ast_print): added GETABIT, GETBYTE, GETWORD
242         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
243         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
244           (geniCodeBinary): new generic binary icode,
245           (ast2iCode): added GETABIT, GETBYTE, GETWORD
246         * src/port.h: updated comment for PORT.hasExtBitOp
247         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
248           (genGetByte): new, to get a single byte,
249           (genGetWord): new, to get a word from a long,
250           (gen51Code): added GETABIT, GETBYTE, GETWORD
251         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
252
253 2005-09-23 Raphael Neider <rneider AT web.de>
254
255         * configure.in, configure: have device/lib/pic configured
256         * device/lib/Makefile.in: added model-pic14
257         * device/lib/clean.mk: added pic/ to clean rule
258         * device/lib/pic: added rudimentary pic14 library providing support
259           functions for multiplication/division/generic pointer access
260         * src/SDCCopt.c (convilong): mark support functions as extern
261           for pic14 port as well
262         * src/pic/gen.c (genMult): added assertions,
263           (genpic14Code): emit warning on unhandled iCodes
264         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
265         * src/pic/pcode.c (pCodeOpCopy),
266         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
267           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
268           SFR_REGISTER}), made safe for future extensions
269         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
270           instructions even if preceeded by SKIP instructions (also remove
271           them); removed unused code
272         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
273           prevents leaving parts of the structure uninitialized after copying
274
275 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
276
277         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
278           ago by me
279         * support/regression/tests/addsub.c: added test for the bug
280
281 2005-09-21 Raphael Neider <rneider AT web.de>
282
283         * device/include/pic16/pic18f1220.h,
284           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
285         * device/lib/pic16/Makefile.rules: added missing opening paren
286         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
287           are provided in genutils.c,
288           (genUminusFloat,genUminus,genCmpEq): added asserts on different
289           operand/result sizes,
290           (genCmp): assert on NULL pointers first, then check deref'ed values
291         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
292           result size
293
294 2005-09-18 Raphael Neider <rneider AT web.de>
295
296         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
297           as these are now unused,
298           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
299         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
300           local, avoids uninitialized pointer dereference on r->name
301         * src/pic16/ralloc.c (newReg): fixed indentation
302
303 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
304
305         * src/SDCCval.c (constVal): fixed bug 730366
306         * support/Util/SDCCerr.c,
307         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
308
309 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
312
313 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
314
315         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
316
317 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
318
319         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
320           (hex2dec): made hex_digit unsigned char, removed ascii dependance
321         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
322           (hex2dec): made hex_digit unsigned char, removed ascii dependance
323         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
324         * packihx/packihx.c (hexDigit): made c unsigned char
325         * as/mcs51/lklibr.c (fndsym),
326         * link/z80/lkgb.c (gb),
327         * link/z80/lklibr.c (fndsym),
328         * link/z80/lkrloc.c (relr),
329         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
330         * src/SDCC.lex (checkCurrFile, process_pragma),
331         * src/SDCCglue.c (spacesToUnderscores),
332         * src/SDCCmain.c (setParseWithComma, processFile),
333         * src/asm.c (tvsprintf, printCLine),
334         * src/avr/gen.c (emitcode, aopPut),
335         * src/ds390/gen.c (emitcode),
336         * src/hc08/gen.c (emitcode, emitinline),
337         * src/mcs51/gen.c (emitcode, genInline),
338         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
339           tokenizeLineNode),
340         * src/pic/ralloc.c (debugLog),
341         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
342           tokenizeLineNode),
343         * src/pic16/ralloc.c (debugLog),
344         * src/z80/main.c (_process_pragma):
345            made all ctype.h function calls safe
346         * src/SDCCopt.c: include math.h for fabs
347         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
348           and used them throughout the code to make ctype.h function calls safe
349         * src/ds390/main.c (asmLineNodeFromLineNode),
350         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
351         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
352            unsigned char*
353         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
354           (newpCodeAsmDir): made ctype.h function calls safe
355         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
356           pic16_emitcode):  made lbp unsigned char*
357         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
358           (pic16_newpCodeAsmDir): made ctype.h function calls safe
359         * src/xa51/gen.c (emitcode),
360         * src/z80/gen.c (_emit2): made lbp unsigned char*
361         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
362            char*
363
364 2005-09-05 Raphael Neider <rneider AT web.de>
365
366         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
367           access bank splitpoint
368
369 2005-09-05 Raphael Neider <rneider AT web.de>
370
371         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
372
373 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
374
375         * .version: changed to version 2.5.3
376         * doc/sdccman.lyx: changed version to 2.5.3,
377           documented --codeseg and --constseg and pragma codeseg and constseg,
378           documented bit parameters (reentrant) and bit returning
379         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
380            currFunc->recvSize, but is this ok for all ports?
381           (ast2iCode): result of ~ on unsigned char must be cast to int for
382            bool to work
383         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
384           function pointers in bit space
385         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
386           (processFuncArgs): call port.reg_parm() with reentrancy info
387         * src/port.h,
388         * src/avr/main.c,
389         * src/ds390/main.c,
390         * src/hc08/main.c,
391         * src/pic/main.c,
392         * src/pic16/main.c,
393         * src/xa51/main.c,
394         * src/z80/main.c: port.reg_parm prototype extended with
395           "bool reentrant" parameter
396         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
397           options.stackAuto for allocating bit register parameters
398         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
399           (genSend): set BitBankUsed if it is,
400           (selectRegBank): factored out of genCall for use in genPcall,
401           (genCall): removed redundant dtype assignmen, use selectRegBank,
402           (genPcall): handle returning in Carry properly, save in F0 if needed,
403           (genReceive): handle bit register parameters
404         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
405           (mcs51_assignRegisters): enable bit registers for all reentrant
406            functions and don't set BitBankUsed unconditionally
407         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
408         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
409         * support/regression/tests/funptrs.c: added tests for BOOL and for return
410
411 2005-08-27 Borut Razem <borut.razem AT siol.net>
412
413         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
414         ppc-osx (Darwin) does not support -u option. It seems that it is
415         supported only on Linux - GNU cp
416
417 2005-08-25 Borut Razem <borut.razem AT siol.net>
418
419         * sim/ucsim/gui.src/serio.src/Makefile.in,
420           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
421           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
422           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
423           install and strip, since the strip at /usr/ccs/bin should be used
424           on solaris
425
426 2005-08-24 Borut Razem <borut.razem AT siol.net>
427
428         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
429
430 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
431
432         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
433         ffffffffu
434
435 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
436
437         * as/mcs51/aslink.h: completed lkrloc.c prototypes
438         * as/mcs51/lkmain.c (link_main): fixed warning
439         * device/include/stdbool.h: ds390 has no advanced bit support yet
440         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
441         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
442         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
443           and updated their macros
444         * src/SDCCval.c (constVal): updated comment for renamed b_long
445
446 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
447
448         * as/mcs51/asdata.c: changed ctype['['] to BINOP
449         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
450           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
451           (oprio): set priority for '['
452         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
453            and adb_24_bit
454         * as/mcs51/asm.h: added defines R_BIT and S_BIT
455         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
456         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
457         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
458           added overlayable BIT_BANK area
459         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
460           (summary2): explain 'T' in legenda
461         * as/mcs51/lkrloc.c: replaced old K&R style,
462           (relr): added R_BIT processing,
463           (errmsg): added "Bit-addressable relocation error",
464           (adb_bit): added for converting from byte- to bit-addressable space,
465           (adb_24_bit): added for converting from byte- to bit-addressable space
466         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
467            used in reentrant functions now even as return value
468         * device/lib/_gptrput.c (_gptrput): removed obsolete code
469         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
470           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
471         * src/SDCCglobl.h: added indicator BitBankUsed
472         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
473            the bit registers b0-b7
474         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
475           (geniCodeCast): fixed bug 1263853,
476           (geniCodeLogicAndOr): put result in bool or char,
477           (geniCodeReceive): added parameter func for accessing the return type,
478           (geniCodeFunctionBody): pass func to geniCodeReceive
479         * src/SDCCmain.c: added indicator BitBankUsed
480         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
481         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
482           (checkSClass): don't put automatic bool/bit on stack,
483           (checkFunction): removed check on function cannot return bit
484         * src/SDCCsymt.h: added newBoolLink prototype
485         * src/mcs51/gen.c (rb1regs): added bit registers,
486           (movc): created for assigning to carry,
487           (pushReg, popReg): created for pushing registers,
488           (sameRegs): check both AOP_REG and AOP_CRY types,
489           (aopOp): handle bit registers,
490           (aopPut): optimization no self-assign,
491           (saveRegisters): push reg->base (bits) only once for bit registers,
492            and use pushReg,
493           (unsaveRegisters): pop reg->base only once and use popReg,
494           (assignResultValue): added parameter func and return in carry for bits,
495           (genIpush): optimization no reload in A if not changed,
496           (genSend): bit parameters in reentrant functions are passed in bit
497            registers by first assigning to bits in B, then save registers and
498            copy B to bits,
499           (genCall): handle returning in Carry properly, save it in F0 if needed,
500           (genPcall): updated assignResultValue call, this is not safe yet for bit
501            returning function !!!
502           (genFunction): don't generate equ's for bit registers and use pushReg,
503           (genEndFunction): take care of bit returning functions and use popReg,
504           (genRet): return bit in Carry,
505           (genIfx): optimize bit registers and other directly addressable bits,
506           (genReceive): updated assignResultValue call
507         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
508           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
509            registers when using stack-auto
510         * src/mcs51/ralloc.c (_G): added allBitregs,
511           (regs8051): added the bit registers,
512           (createStackSpil): use macro IS_BIT,
513           (getRegBit): added to allocate a bit register, else spill,
514           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
515           (updateRegUsage): factored out to ease stepping while debugging,
516           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
517            also allocate bit registers,
518           (fillGaps): handle bit registers,
519           (findAllBitregs): added to create bit vector with all bit registers,
520           (mcs51_allBitregs): returns this bit vector,
521           (mcs51_assignRegisters): when using stack-auto use bit registers for
522            passing parameters and creating local variables
523         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
524
525 2005-08-22 Borut Razem <borut.razem AT siol.net>
526
527         * device/lib/Makefile.in: replaced find option -or with -o
528           to make it run on solaris
529
530 2005-08-22 Raphael Neider <rneider AT web.de>
531
532         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
533           fixes #1265442 (crash on Solaris)
534
535 2005-08-20 Borut Razem <borut.razem AT siol.net>
536
537         * configure, configure.in: added tests for libsocket and libnsl libraries,
538           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
539           from support/regression/Makefile.in
540         * support/regression/Makefile.in: added
541         * device/lib/pic16/Makefile.common.in: force make to use bash shell
542         * sim/ucsim/libtool: regenerated on sparc-solaris
543         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
544           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
545           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
546           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
547           sparc-solaris, which doesn't use GNU ld linker
548         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
549         * as/Makefile: find on sparc-solaris does not support -maxdepth option
550
551 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
552
553         * src/mcs51/peeph.def: updated comments
554
555 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
556
557         * device/lib/_gptrget.c,
558         * device/lib/_gptrput.c: slightly shorter
559         * doc/sdccman.lyx: incremented version
560         * src/mcs51/peeph.def: moved peephole comments to the line of first
561           change to better keep line correlation, reanimated 186.e
562         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
563
564 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
565
566         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
567           David Saxton with quotes around file name.
568
569 2005-08-15 Borut Razem <borut.razem AT siol.net>
570
571         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
572           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
573           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
574           make tests run on x86_64 platform
575
576 2005-08-13 Raphael Neider <rneider AT web.de>
577
578         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
579           as it might be executed DURING a build (parallel make is wonderful)
580
581 2005-08-13 Raphael Neider <rneider AT web.de>
582
583         * device/lib/Makefile.in (port-specific-objects-pic16):
584           revert to cp $(PORT)/bin/*.* $(PORTDIR)
585         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
586           dependency
587         * device/lib/pic16/Makefile.rules: build subdirs before creating
588           the library, removed builddir rule, create $(builddir) early in
589           recurse rule, use empty recurse rule for leaf directories
590         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
591           mkdir errors (race condition), removed duplicate suffix "hex"
592           from clean rules
593         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
594         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
595           prevents mkdir -p from aborting on Alpha
596
597 2005-08-12 Raphael Neider <rneider AT web.de>
598
599         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
600           db-statements in order to allow for arrays of pointers in code
601           sections to be placed without interspersed 0-padding, fixes
602           bug #1256215
603         * (emitStatistics): fixed division by zero for pic18f1220
604         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
605           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
606         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
607         * (pic16_pCodeConstString): keep track of already emitted string
608           literals to prevent "duplicate definitions of symbol _str_NR"
609         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
610           debug message
611         * device/lib/Makefile.in: ignore failing PIC16 library builds
612         * device/lib/pic16/Makefile: do not build if gputils are missing
613         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
614
615 2005-08-10 Raphael Neider <rneider AT web.de>
616
617         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
618           my last commit)
619
620 2005-08-10 Raphael Neider <rneider AT web.de>
621
622         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
623           Rokas' patch to add the new fixed point type "__fixed16x16"
624         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
625           functions for __fixed16x16 arithmetics
626         * device/lib/pic16: reimplemented the build system to support
627           a separate build directory, better handling of libio (create
628           the library in a separate subdir for each architecture) and
629           easier configuration (centralized in Makefile.common)
630
631 2005-08-07 Raphael Neider <rneider AT web.de>
632
633         * src/pic16/gen.c (genrshTwo): fixed sign extension
634         * src/pic16/device.c: added pic18f2320, 4220 and 4320
635         * device/include/pic16/pic18f2220.h: changed some bit definitions,
636           added T0CONbits
637         * device/include/pic16/pic18f4220.h: NEW, header for
638           pic18f4220 and pic18f4320
639         * device/include/pic16/pic18fregs.h: added new devices,
640           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
641         * device/include/pic16/signal.h: resolved name clashes
642           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
643           to also allow testing for interrupt enable bits, added
644           comments on how to use the macros
645         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
646         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
647           register definitions for the devices
648         * device/lib/pic16/pics.all: added new devices
649         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
650           allocated memory
651         * device/lib/pic16/libc/stdlib/memfree: do not count
652           the block header as free memory
653         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
654           simplified and added missing end-of-blocklist-marker
655           (reported by Peter Onion, fixes #1252814)
656         * (_mergeHeapBlock): fixed loop condition
657         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
658           len==0, restructured code
659         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
660           up a bit, reduced bitfield accesses, prevent endless loops
661           in case of heap corruption
662         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
663           "unreferenced arguments/must return a value" warnings
664         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
665           replaced BAUDREG with SPBRG
666         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
667           device/lib/pic16/debug/gstack/gstack.c: replaced
668           _naked, _asm, _endasm with __naked, __asm, __endasm
669
670 2005-08-05 Raphael Neider <rneider AT web.de>
671
672         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
673           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
674
675 2005-08-05 Borut Razem <borut.razem AT siol.net>
676
677         * device/lib/Makefile.in: added missing ';'
678         * configure: removed ^M characters
679
680 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
681
682         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
683           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
684           License
685
686 2005-08-04 Borut Razem <borut.razem AT siol.net>
687
688         * configure.in: pic16 libraries build 2nd try - enable running
689           configure in device/lib/pic16
690         * configure: regenerated from configure.in
691         * device/lib/Makefile.in: create $(PORT)/bin directory
692
693 2005-08-03 Raphael Neider <rneider AT web.de>
694
695         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
696           to get/set values via pointers
697         * (genUnpackBits,genPackBits): changed detection of
698           ptr->bitfield vs. sym.bitfield, fixed access via generic
699           pointers, removed dead (wrong) code for multibyte bitfields
700         * (genNearPointerGet, genGenPointerGet): removed useless code,
701           fixed bitfield detection, fixes #1250594
702         * (genNearPointerSet): removed useless code
703         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
704           and introduced macro pic16_emitpcode that conditionally emits
705           the origin of the following pCode (useful for debugging SDCC)
706         * src/pic16/pcode.c: changed (and disabled) some debug outputs
707         * (createDefmap): fixed handling of LFSR for --optimize-df
708
709 2005-08-02 Borut Razem <borut.razem AT siol.net>
710
711         * device/lib/Makefile.in: pic16 libraries build enabled since
712           gputils-0.13.2 are now localy installed at sourceforge's compile farm
713
714 2005-08-02 Raphael Neider <rneider AT web.de>
715
716         * src/pic16/gen.c (genPackBits): removed deprecated warning
717         * (genGenPointerSet): fixed bitfield detection
718
719 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
720
721         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
722
723 2005-07-31 Raphael Neider <rneider AT web.de>
724
725         * device/lib/pic16/libdev/pic18f458.c,
726           device/include/pic16/pic18f458.h: added missing T0CONbits
727
728 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
729
730         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
731
732 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
733
734         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
735
736 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
737
738         * device/include/mcs51/at89c51ed2.h: added.
739
740 2005-07-23 Raphael Neider <rneider AT web.de>
741
742         * src/pic/gen.h: added emitpcode macro for debugging
743         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
744           and replace by macro adding debug information on demand
745         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
746         * (gencjne): tried to fix; replaced with correct (slower) code
747         * (gen{Unp,P}ackBits): fixed single bit access
748         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
749         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
750           previous instruction
751         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
752           register has to be handled with care (forbidding movement
753           of assignments/uses, removing assignments completely, ...)
754         * (pCodeOptime2pCodes): make use of regIsSpecial
755         * added lots of debugging output (commented out)
756         * src/pic/rallloc.c (deassignLRs): prevent operand registers
757           from being reused as result UNLESS it is known to work
758
759 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
760
761         * support/Util/dbuf.h: include <stddef.h> for size_t
762         * .version: changed to version 2.5.2
763
764 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
765
766         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
767
768 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
769
770         * src/hc08/gen.c (genMinus): fixed bug #1241835,
771           (genModOneByte): removed needless psha/pula
772
773 2005-07-22 Raphael Neider <rneider AT web.de>
774
775         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
776           have PIC14 handled like PIC16, fixes broken pic14 linker calls
777         * src/pic/gen.c (resolveIfx): do not "invent" labels
778         * (genSkipc): changed to positive logic
779         * (genSkipCond): removed as no longer needed
780         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
781           backport from PIC16
782         * (genLeftShift): check operands are in different registers
783         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
784           INCF does not update CARRY...
785         * src/pic/main.c: fixed _linkCmd
786         * src/pic/pcode.c (unlinkpCode): added inactive code
787         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
788           alive (do not assign result and operand overlapping registers)
789
790 2005-07-22 Raphael Neider <rneider AT web.de>
791
792         * src/pic/device.c (dump_sfr): replaced register declaration with
793           call to emitSymbolToFile() to avoid duplicate symbols
794         * (assignRelocatableRegisters): do not declare external symbols
795         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
796           right (take size of type, not etype)
797         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
798         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
799         * (packRegsForAccUse): disabled assignment of WREG as
800           the result reg to prevent occurence of just fixed #1235003,
801           fixes #1242954
802         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
803           symbols (avoids duplicate symbols in .asm file)
804         * (pic14emitRegularMap): use emitSymbolToFile()
805         * src/pic/gen.c (aopOp): fixed spillLocation handling
806         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
807         * (genDataPointerSet): removed unneccessary variables/output
808
809 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
810
811         * as/mcs51/lkarea.c: enlarged codemap for banked memory
812         * device/lib/mcs51/crtbank.asm: added # to 0x0F
813
814 2005-07-21 Raphael Neider <rneider AT web.de>
815
816         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
817           architecture cannot handle them efficiently, fixes bug #1235003
818         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
819           check for empty sets before using them (fixes bug #1232190)
820
821 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
822
823         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
824           (lnksect2): generate warnings for memory overlap
825         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
826           constseg to set the name of these segments so you can instruct the linker
827           to place them in banks
828         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
829         * src/SDCCglobl.h: added MODEL_HUGE to enum,
830           added code_seg and const_seg to options
831         * src/SDCCglue.c (emitMaps): use options.const_seg,
832           (createInterruptVect): put interrupt vectors in segment HOME,
833           (glue): put HOME before static segment and put the main glue in HOME,
834           (glue): use options.code_seg
835         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
836         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
837           these segments so you can instruct the linker to place them in banks
838           (linkEdit): use code_loc for HOME segment which should be the first
839           segment in code memory now
840         * src/SDCCmem.c: fixed more stuff like bug 1238386
841         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
842           (changePointer): don't change function pointers to code pointers for
843           banked functions,
844           (compareType): added exceptional check for banked function pointers
845         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
846         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
847           after static in code memory
848         * src/mcs51/gen.c: added aopLiteralLong prototype,
849           (aopForSym): use getSize for functions,
850           (genCall): generate banked calls over one trampoline __sdcc_banked_call
851           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
852           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
853           the segment,
854           (genPcall): use call for literal function pointers and generate banked
855           calls over the one trampoline so there's only one place for the user to
856           modify according to his/hers hardware,
857           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
858           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
859         * src/mcs51/main.c: added keyword banked,
860           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
861         * support/Util/SDCCerr.c,
862         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
863           needed for passing the bank and address to the trampoline
864         * device/lib/mcs51/crtbank.asm: added for bankswitching
865         * device/lib/mcs51/Makefile: added crtbank
866
867 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
868
869         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
870           for fields at offset 0 of a struct or union as reported
871           on 2005-07-07 in the developer mailing list.
872
873 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
874
875         * src/SDCCmem.c: fixed bug 1238386
876
877 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
878
879         * src/mcs51/peeph.def: added labelrefcounting for peepholes
880           (patch #1144962), added peephole 300, enabled 259.x
881         * doc/sdccman.lyx: removed screenshot and provided link instead
882
883 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
884
885         * doc/sdccman.lyx: added section about debugging with ddd
886         * doc/figures/ddd_example.eps: screenshot of debugging session
887
888 2005-07-04 Raphael Neider <rneider AT web.de>
889
890         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
891           like CODE pointers, fixes #1115683
892         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
893           call, fixes bugs #1232211, #1228110,
894           fixed wrong casts to pCodeFlow from pCodeInstructions
895
896 2005-07-04 Raphael Neider <rneider AT web.de>
897
898         * src/pic/gen.c (popGet): changed assert to allow for
899           bit operands
900         * (popGetAddr): changed signature to provide
901           an additional index, patched all call sites
902         * (genCmpEq): handle literal-like operands correctly
903         * (genAddrOf): added sanity checks on __code/__data pointers
904         * (genAssign): added handling of symbols from __code section
905         * (gencjne): do not generate code for comparisons whose result
906           is neither stored nor used, fixes bug #1171114
907         * (AccLsh, AccRsh): operate on operand instead of WREG
908         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
909           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
910           by known count
911         * rewrote complete shift-by-literal logic, commented unused
912           functions out
913         * (genConstPointerGet): get multiple bytes (if result size > 1),
914           fixed handling of non-immediate addresses
915         * (genPointerGet): handle CODE pointers like CONST pointers
916         * (genpic14Code): insert C-SRC lines as Cource-pCodes
917         * ({aop,op}_isLitLike): NEW, single place to decide whether an
918           operand is to be treated as a literal or not
919         * (mov2w,genPcall,genCmpEq),
920           src/pic/genarith.c: use aop_isLitLike() to decide between
921           literal/register contents
922         * (addSign): added missing offset
923         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
924           only emit comment in debug-mode,
925           use {aop,op}_isLitLike throughout the file
926         * src/pic/glue.c: fix initializers for pointers (work in progress)
927         * src/pic/pcode.c (get_op): honor index on _const symbols
928         * ({reset,dump}pCodeStatistics): NEW, estimate code size
929         * (dumppBlock): added pCode size estimation
930         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
931           check for IS_SYMOP before OP_SYMBOL'ing
932         * fixed indentation, compacted switch-statements
933         * (allocReg): find free register and allocate it instead of
934           allocating new registers all the time
935         * (deassignLRs): prevent POINTER_GET's from being assigned the same
936           registers as its operands (necessary only for multibyte GETs)
937
938 2005-07-01 Raphael Neider <rneider AT web.de>
939
940         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
941           debugging .asm-output macros FENTRY + FEXIT
942         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
943           way... I wonder...
944         * (emitpComment): NEW, printf to pCode
945         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
946           offset handling
947         * (popGetAddr): NEW, variant of popGet to access an immediates
948           high(er) bytes instead of the n'th byte of memory they reference,
949           replaced popGet with popGetAddr where neccessary
950         * (genDataPointerGet): reactivated and fixed implementation
951         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
952           accesses
953         * (genDataPointerSet): fixed multibyte assignments
954         * (genpic14Code): fixed --i-code-in-asm handling
955         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
956         * (genPlus): fixed index-out-of-bounds error
957         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
958         * src/pic/ralloc.c: added debugging output macro FENTRY2
959         * (spillThis): fixed indentation, enbraced for-body for clarity
960         * (rematStr): commented out as now unused
961         * (regTypeNum): commented out special spill case (overwrites
962           arbitrary values)
963         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
964
965 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
966
967         * doc/sdccman.lyx: documented sfr16/sfr32,
968           added example for using storage class with function pointers
969         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
970
971 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
972
973         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
974         * device/lib/_itoa.c,
975         * device/lib/_ltoa.c: optimized codesize
976         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
977           but don't know how to suppress the double warning.
978         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
979         * support/Util/SDCCerr.c,
980         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
981
982 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
983
984         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
985           fixed old K&R prototypes
986         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
987         * device/lib/_gptrget.c,
988         * device/lib/_gptrgetc.c,
989         * device/lib/_gptrput.c: changed versions for new memory indicator values,
990           also new versions for small generic pointers and banked generic pointers
991         * src/port.h: added const_name
992         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
993         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
994         * src/SDCCcse.c (findPrevIc): check all associative operators
995         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
996         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
997         * src/SDCCmem.c: updated comments,
998           set far-space to 0 for pdata, results in optimized code
999         * src/SDCCmem.h: added macro CONST_NAME
1000         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1001           moving the info into the highest bits, see also gptrget/gptrput
1002         * src/src.dsp: added sdcc.ico to project files
1003         * src/avr/gen.c (genCast): fixed bug 0x%d
1004         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1005         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1006           relation between ptr_type and DCL_TYPE,
1007           (genCast): fixed bug 0x%d
1008         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1009           (CODE)" for const_name
1010         * src/hc08/gen.c (genCast): fixed bug 0x%d
1011         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1012           (hc08_port): added "CONST (CODE)" for const_name
1013         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1014           (aopForRemat, adjustArithmeticResult): disconnected direct relation
1015           between ptr_type and DCL_TYPE,
1016           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1017           operand* and took AOP() inside function so sfr-ness can be checked,
1018           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1019           new prototype,
1020           (genFunction, genEndFunction): optimized stack setup,
1021           (genMinus): optimized for literals with ending zeroes (in bytes),
1022           (genCast): fixed bug 0x%d
1023         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1024           (mcs51_port): added "CONST (CODE)" for const_name
1025         * src/mcs51/peeph.def: made rule 226 more generic
1026         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1027         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1028         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1029         * src/z80/main.c (z80_port): added NULL for const_name,
1030           (gbz80_port): added NULL for const_name
1031         * support/regression/tests/bug663539.c,
1032         * support/regression/tests/sfr16.c: new tests
1033
1034 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1035
1036         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1037
1038 2005-06-24 Raphael Neider <rneider AT web.de>
1039
1040         * device/lib/pic16/libdev/pic18f[68][567]20.c:
1041           corrected typos...
1042         * device/include/pic16/signal.h: added USBIF
1043           and SIG_USB
1044
1045 2005-06-24 Raphael Neider <rneider AT web.de>
1046
1047         * device/lib/pic16/libdev/pic18f2455.c,
1048           device/include/pic16/pic18f2455.h: NEW
1049         * device/include/pic16/pic18fregs.h,
1050           device/lib/pic16/pics.all,
1051           src/pic16/device.c: added 18f2455
1052         * device/lib/pic16/libdev/pic18f[68][567]20.c,
1053           device/include/pic16/{pic18f[68][567].h,usart.h}:
1054           replaced MULTIPLE_USARTS define with more relaible
1055           compatibility sfrs (for USART access)
1056
1057 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1058
1059         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1060           and the output asm file line is printed on two lines.
1061
1062 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1063
1064         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1065           BGT, BLE, BHI, and BLS instructions
1066         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1067           genCmpEq): removed
1068         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1069           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1070           fixes bug #1216342
1071         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1072
1073 2005-06-15 Raphael Neider <rneider AT web.de>
1074
1075         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1076         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1077         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1078           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1079           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1080
1081 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1082
1083         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1084           Marcel Telka in bug #1215704
1085
1086 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1087
1088         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1089           located in shared memory bank.
1090
1091 2005-05-31 Raphael Neider <rneider AT web.de>
1092
1093         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1094           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1095           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1096
1097 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1098
1099         * device/lib/_strncpy.c: fixed the fix
1100
1101 2005-05-26 Raphael Neider <rneider AT web.de>
1102
1103         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1104           initializers with \0, bug #1208187
1105         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1106           intializers with \0, bug #1208187
1107
1108 2005-05-26 Raphael Neider <rneider AT web.de>
1109
1110         * src/pic16/glue.c (pic16_printIvalChar): fixed string
1111           initializers with \0, bug #1208187
1112         * src/pic16/main.c (_process_pragma): added sanity checks
1113           for stack position and size, emit warnings when appropriate
1114
1115 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1116
1117         * device/lib/_strncpy.c: fixed not filling with \0
1118
1119 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1120
1121         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1122           createFunction),
1123         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1124           compound_statement),
1125         * src/SDCCsymt.h,
1126         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1127
1128 2005-05-24 Raphael Neider <rneider AT web.de>
1129
1130         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1131
1132 2005-05-24 Raphael Neider <rneider AT web.de>
1133
1134         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1135           TRISE definitions, closes bug #1162453
1136
1137 2005-05-22 Raphael Neider <rneider AT web.de>
1138
1139         * src/pic16/main.c (_process_pragma): check for missing
1140           arguments to pragmas code and udata
1141         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1142           consistency fixes to match other headers (thanks to Jim Paris)
1143         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1144
1145 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1146
1147         * src/SDCCicode.c (isOperandEqual): fixed missing ;
1148
1149 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1150
1151         * support/regression/tests/bug1198642.c: new test
1152         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1153         * src/SDCCcse.c (findPrevIc): added comment, please have a look
1154         * support/scripts/resource.h,
1155         * support/scripts/resource.rc,
1156         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1157         * support/scripts/sdcc.ico: added 32x32 icon
1158
1159 2005-05-18 Raphael Neider <rneider AT web.de>
1160
1161         * device/lib/pic16/libdev/pic18f*.c,
1162         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1163           keywords to "__sfr" and "__at (X)"
1164         * device/include/pic16/pic18fregs.h: added pic18f4520
1165         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
1166           #1203088 (MPLAB compatibility)
1167
1168 2005-05-17 Raphael Neider <rneider AT web.de>
1169
1170         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
1171         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
1172         * device/lib/pic16/pics.all: added new devices
1173         * src/pic16/device.c: added support for pic18f4520
1174
1175 2005-05-16 Raphael Neider <rneider AT web.de>
1176         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
1177         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
1178         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
1179           convenience function for bit access
1180
1181 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * device/lib/printf_large.c: fixed bug 1193299
1184         * support/regression/tests/bug1057979.c: added test %3.3s
1185
1186 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1187
1188         * device/include/mcs51/8051.h,
1189         * device/include/mcs51/8052.h: made parseable with lint
1190         * device/include/mcs51/lint.h: added include file for (sp)lint
1191         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
1192         * doc/cdbfileformat.lyx,
1193         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
1194
1195 2005-05-14 Raphael Neider <rneider AT web.de>
1196
1197         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
1198         * device/lib/pic16/libc/stdlib/itoa.c (new)
1199         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
1200         * device/lib/pic16/libio/Makefile: exclude subdir according to
1201           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
1202         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
1203         * src/pic16/gen.c (genFunction): prevent annoying warning
1204         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
1205           nameclashes on BeOS
1206         * support/cpp2/cppmain.c (cpp_output_string): new
1207         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
1208           fixes bug 1116802
1209
1210 2005-05-13 Borut Razem <borut.razem AT siol.net>
1211
1212         * src/SDCCmain.c (linkEdit): fixed bug 1195202
1213
1214 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1215
1216         * .version: changed to version 2.5.1; back to bleeding edge development
1217
1218 2005-05-11 Borut Razem <borut.razem AT siol.net>
1219
1220         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
1221           generate PDF version 1.3 documents
1222
1223 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1224
1225         * .version: changed to version 2.5.0
1226
1227 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1228
1229         * doc/sdccman.lyx: updated weblinks, index and smaller updates
1230
1231 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1232
1233         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1234         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1235         well as many smaller updates.
1236         * .version: changed to version 2.5.0-pre1
1237
1238 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1239
1240         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1241
1242 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1243
1244         * support/regression/tests/bug1185672.c: added
1245         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1246           bug 1185672
1247         * src/mcs51/gen.c (genCall): added comments, made it look safer
1248         * src/mcs51/gen.c (genEndFunction): simplified
1249
1250 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1251
1252         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1253
1254 2005-04-14 Borut Razem <borut.razem AT siol.net>
1255
1256         * fixed bug 1045046 - SIGSEGV with really simple code?:
1257           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1258           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1259
1260 2005-04-14 Borut Razem <borut.razem AT siol.net>
1261
1262         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1263           src/pic16/device.h: temporarily disabled experimental #inline pragma
1264           for 2.5.0 release
1265
1266 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1267
1268         * device/include/z80/stdio.h,
1269         * device/include/z80/string.h: removed these highly incomplete files so
1270           SDCC can use the default ones in device/include/
1271
1272 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1273
1274         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1275         gcc warning.
1276         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1277         fix sdcpp warnings.
1278
1279 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1280
1281         * device/include/malloc.h: removed redundant __reentrant prototypes
1282         * device/lib/_mullong.c: added working xstack variant in asm (C version
1283           doesn't pass regression tests)
1284         * device/lib/bpx.c: used __data and made bpx char for mcs51
1285         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1286           (createFunction): fixed bug with xstackPtr
1287         * src/SDCCcse.c: corrected comments
1288         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1289           (killDeadCode, eBBlockFromiCode): removed unused code
1290         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1291           corrected comments
1292         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1293           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1294           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1295           (genModOneByte): fixed warning in MSVC
1296         * src/mcs51/main.c (): added comments
1297         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1298
1299 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1300
1301         * src/SDCCmain.c (linkEdit): oops, changed one line too many
1302
1303 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1304
1305         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1306
1307 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1308
1309         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1310         characters arrays of larger size than the declared one.
1311
1312 2005-04-10 Borut Razem <borut.razem AT siol.net>
1313
1314         * src/pic/gen.c (genInline),
1315           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1316           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1317           (findNextInstruction), (findPrevInstruction),
1318           (findInstructionUsingLabel),
1319           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1320         * src/pic/pcode.c (findLabel): added missing '\n'
1321         * src/src.dsp: added SDCCdwarf2.c to the project
1322
1323 2005-04-09 Borut Razem <borut.razem AT siol.net>
1324
1325         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1326
1327 2005-04-08 Raphael Neider <rneider AT web.de>
1328
1329         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1330           into the chain after a given one) and mergeDefmapSymbols (combine
1331           defmap entries for each symbol per pcode)
1332         * (createDefmap): have defmap entries merged in the end
1333         * (defmapReplaceSymRef): split defmap entries covering two accesses to
1334           a symbol before replacing one access type's symbol, merge symbols in
1335           the end (replacement symbol might already have an entry)
1336         * (assignValnums): keep reference to written WREG intact
1337
1338 2005-04-08 Raphael Neider <rneider AT web.de>
1339
1340         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1341           Alpha)
1342
1343 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1344
1345         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1346         bytes
1347
1348 2005-04-07 Raphael Neider <rneider AT web.de>
1349
1350         * device/include/pic16/usart.h: added compatibility defines for
1351           devices with more than one USART
1352         * device/include/pic16/pic18f[68][567]20.h: activated above defines
1353
1354 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1355
1356         * device/lib/Makefile.in: updated for port specific include
1357
1358 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1359
1360         * support/regression/ports/mcs51/spec.mk: added mcs51 include
1361
1362 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1363
1364         * device/include/8051.h,
1365         * device/include/8052.h,
1366         * device/include/at89S8252.h,
1367         * device/include/at89c55.h,
1368         * device/include/at89x051.h,
1369         * device/include/at89x51.h,
1370         * device/include/at89x52.h,
1371         * device/include/mcs51reg.h,
1372         * device/include/reg51.h,
1373         * device/include/reg764.h,
1374         * device/include/regc515c.h,
1375         * device/include/sab80515.h: (re)moved these 12 files
1376         * device/include/mcs51/8051.h,
1377         * device/include/mcs51/8052.h,
1378         * device/include/mcs51/at89S8252.h,
1379         * device/include/mcs51/at89c55.h,
1380         * device/include/mcs51/at89x051.h,
1381         * device/include/mcs51/at89x51.h,
1382         * device/include/mcs51/at89x52.h,
1383         * device/include/mcs51/mcs51reg.h,
1384         * device/include/mcs51/reg51.h,
1385         * device/include/mcs51/reg764.h,
1386         * device/include/mcs51/regc515c.h,
1387         * device/include/mcs51/sab80515.h: and added them here
1388
1389 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1390
1391         * device/include/stdarg.h: changed SDCC specific keywords to double
1392           underlined form.
1393         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1394           mcs51 and ds390.
1395         * device/include/hc08/mc68hc908gp32.h,
1396         * device/include/hc08/mc68hc908jb8.h,
1397         * device/include/hc08/mc68hc908jkjl.h,
1398         * device/include/hc08/mc68hc908qy.h: fixed comments
1399         * device/include/mcs51/README: updated
1400         * device/include/mcs51/c8051f120.h: added PINRSF
1401         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1402         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1403           amidst code. Also inline is not supported.
1404
1405 2005-04-06 Raphael Neider <rneider AT web.de>
1406
1407         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1408         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1409           callers stack/frame pointers
1410
1411 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1412
1413         * device/include/pic16/usart.h: added, missing in previous commit,
1414         * device/include/pic16/adc.h: fixed typo,
1415         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1416         commit,
1417         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1418         <p18fxxx.inc>
1419         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1420         uninitialized because a bug appears with gplink
1421         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1422         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1423         complains for unrecognised option
1424
1425 2005-04-05 Raphael Neider <rneider AT web.de>
1426
1427         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1428           structs as well (using memcpy)
1429         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1430           on ISRs (GOTO has no label)
1431         * src/pic16/device.h: added OF_OPTIMIZE_DF
1432         * src/pic16/main.c: added compiler switch --optimize-df to enable the
1433           new data flow analysis/optimization
1434         * src/pic16/pcode.c: added (prototypes for and implementation of)
1435           dataflow analysis functions, fixed pCodeInstructions' inCond and
1436           outCond values, made RCALL a branch instruction
1437         * (pic16_unlinkpCode): keep C line if possible
1438         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
1439           C line moved if possible
1440         * (pic16_getRegFrompCodeOp): NEW, improved version of...
1441         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
1442           to use new pic16_getRegFrompCodeOp (works for more SFRs)
1443         * (pic16_BuildFlow): fixed skip instructions with label (did not start
1444           new flow)
1445         * (pic16_getJumptabpCode): NEW, needed in...
1446         * (LinkFlow): fixed handling of jumptables, calls and conditional
1447           branches
1448         * (pic16_InsertCommentAfter): NEW
1449         * (pic16_pCodeReplace): made verbose and flow preserving
1450         * (AnalyzeFlow): added call to data flow analysis
1451         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
1452         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
1453         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
1454
1455 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1456
1457         * src/SDCCast.c (decorateType): fixed bug #1105626
1458
1459 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
1460
1461         * device/include/asm/pic16/features.h,
1462         * pic18f*.h headers,
1463         * device/include/pic16/adc.h,
1464         * device/include/pic16/delay.h,
1465         * device/include/pic16/i2c.h,
1466         * device/include/pic16/malloc.h,
1467         * device/include/pic16/stdio.h,
1468         * device/include/pic16/stdlib.h,
1469         * device/include/pic16/string.h,
1470         * device/lib/pic16/libc/stdio/printf_tiny.c,
1471         * device/lib/pic16/libc/stdio/printf_small.c,
1472         * device/lib/pic16/libc/stdio/strmgpsim.c,
1473         * device/lib/pic16/libc/stdio/strmmssp.c,
1474         * device/lib/pic16/libc/stdio/strmusart.c,
1475         * device/lib/pic16/libc/stdio/vfprintf.c,
1476         * device/lib/pic16/libc/stdlib/ltoa.c,
1477         * device/lib/pic16/libc/stdlib/putchar.c,
1478         * device/lib/pic16/libc/stdlib/x_ftoa.c,
1479         * device/lib/pic16/libc/stdlib/memchrpgm.c,
1480         * device/lib/pic16/libc/stdlib/memchrram.c,
1481         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
1482         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
1483         * device/lib/pic16/libio/adc/adcbusy.c,
1484         * device/lib/pic16/libio/adc/adcread.c,
1485         * device/lib/pic16/libio/adc/adcsetch.c,
1486         * device/lib/pic16/libio/usart/ubaud.c,
1487         * device/lib/pic16/libio/usart/ubusy.c,
1488         * device/lib/pic16/libio/usart/udrdy.c,
1489         * device/lib/pic16/libio/usart/uopen.c,
1490         * device/lib/pic16/libio/usart/uputc.c,
1491         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
1492         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
1493         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
1494         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
1495         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
1496         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
1497         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
1498         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
1499         specific keywords to double underlined form,
1500         * device/lib/pic16/libc/Makefile.rules,
1501         * device/lib/pic16/libsdcc/Makefile.rules,
1502         * device/lib/pic16/libm/Makefile,
1503         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
1504         to compile with C standard set in Makefile.common
1505         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
1506         rand.c and crc.c in compilation process,
1507         * device/lib/pic16/libsdcc/int/divuint.c,
1508         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
1509         `c' from signed to unsigned,
1510         * device/lib/pic16/startup/crt0.c,
1511         * device/lib/pic16/startup/crt0i.c,
1512         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
1513         keywords to double underlined form, bug fixes in _do_cinit function
1514         which prevented the correct initialization of the .idata segment,
1515         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
1516         core to enter a infinite loop
1517         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
1518
1519 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1520
1521         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
1522
1523 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1524
1525         * device/include/Makefile.in: add support for hc08 subdirectory
1526         * device/include/hc08/: new subdirectory
1527         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
1528         Lucas Loizaga, thanks!
1529         * device/include/hc08/mc68hc908qy.h,
1530         * device/include/hc08/mc68hc908gp32.h,
1531         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
1532         their own directory. Changed internal macro names to use the compiler
1533         reserved namespace. Changed SDCC specific keywords to double
1534         underlined form.
1535         * device/include/math.h,
1536         * device/include/malloc.h,
1537         * device/include/stdarg.h,
1538         * device/include/stdbool.h
1539         * device/include/string.h,
1540         * device/include/tinibios.h,
1541         * device/include/ds400rom.h,
1542         * device/include/8051.h,
1543         * device/include/8052.h,
1544         * device/include/80c51xa.h,
1545         * device/include/at89c55.h,
1546         * device/include/at89S8252.h,
1547         * device/include/at89x51.h,
1548         * device/include/at89x52.h,
1549         * device/include/ds80c390.h,
1550         * device/include/reg764.h,
1551         * device/include/regc515c.h,
1552         * device/include/sab80515.h,
1553         * device/include/mcs51/c8051f000.h,
1554         * device/include/mcs51/c8051f018.h,
1555         * device/include/mcs51/c8051f020.h,
1556         * device/include/mcs51/c8051f040.h,
1557         * device/include/mcs51/c8051f060.h,
1558         * device/include/mcs51/c8051f120.h,
1559         * device/include/mcs51/c8051f300.h,
1560         * device/include/mcs51/c8051f310.h,
1561         * device/include/mcs51/c8051f320.h,
1562         * device/include/mcs51/c8051f330.h,
1563         * device/include/mcs51/c8051f350.h,
1564         * device/include/z180.h: Changed SDCC specific keywords to double
1565         underlined form.
1566
1567 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
1568
1569         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
1570         18F4455,
1571         * (pic16_assignConfigWordValue): disable testing of configuration
1572         register value with config mask,
1573         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
1574         function with port->fun_prefix,
1575         * (genFunction): when generating a naked interrupt function never
1576         create an absolute segment placed in interrupt vector address, place
1577         the actual interrupt function at IVA instead, when an interrupt
1578         function is generated with unspecified interrupt then do not create
1579         the absolute section,
1580         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
1581         code for generating a call to generic pointer get/put function with
1582         a call to function pic16_callGenericPointer(),
1583         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
1584         the call to the generic pointer get/put functions with prefixing the
1585         function name with port->fun_prefix,
1586         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
1587         * src/pic16/main.c (_process_pragma): prefix function with
1588         port->fun_prefix,
1589         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
1590         calling assembler, old 18Fxxxx macro is deprecated,
1591         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
1592         PC_ASMDIR in while condition,
1593         * (findInstruction): add PC_ASMDIR in while condition,
1594         * (buildCallTree): prefix main with port->fun_prefix,
1595         * (pic16_pCode2str): fixed bug that didn't emit the memory access
1596         identifier for variable with banked access in instructions BTFSS,
1597         BTFSC, BCF, BSF, BTG
1598         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
1599         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
1600         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
1601         perform optimization when enviroment variable NO_REG_OPT is set,
1602         * (insideLRBlock): NEW, return 1 if register is inside an
1603         INF_LOCALREGS block,
1604         * (RemoveRegFromLRBlock): remove a register that is completely
1605         eliminated by register optimization, but it is still left in local
1606         register store/restore in/from stack block,
1607         * (Remove2pcodes): after removing register, check to see if it
1608         should be removed from local register store/restore in/from stack
1609         block,
1610         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
1611         DUMMY_READ_VOLATILE,
1612
1613         * device/include/pic16/adc.h: minor prototype modifications and
1614         update,
1615         * device/include/pic16/malloc.h: added GPL notice various
1616         modifications,
1617         * device/include/pic16/stdint.h: NEW, standard header for ints
1618         * device/include/pic16/delay.h: NEW, header for delay functions,
1619         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
1620         delay1mtcy,
1621         * device/include/pic16/signal.h: NEW, header providing helper macros
1622         for implementing signal handlers,
1623         * device/include/pic16/stdio.h: added prototypes for functions,
1624         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
1625         prototypes for stdin and stdout, added macro PUTCHAR to
1626         automatically implement putchar function prototype,
1627         * device/include/pic16/usart.h: modified and updated USART library,
1628         * device/lib/pic16/libio/adc/,
1629         * device/lib/pic16/libio/i2c: some modifications to improve library
1630         performance,
1631         * device/lib/pic16/libc/stdio/: modifications for the new printf*
1632         family of functions,
1633         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
1634         family of functions and other sources,
1635         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
1636         of the PIC18Fxx[28] devices,
1637         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
1638         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
1639         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
1640         _do_cinit function, because the previous failed when local variables
1641         where not placed in the same memory bank,
1642         * device/lib/pic16/libsdcc/char/: various modifications to improve
1643         library performance,
1644         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
1645         information on the new functions of the c library and more...
1646
1647 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1648
1649         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
1650
1651 2005-03-26 Raphael Neider <rneider AT web.de>
1652
1653         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
1654           if condition == CARRY)
1655         * (genCmp): adapted to new genSkipc semantics
1656         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
1657           on rIfx (genCmp was broken)
1658
1659 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1660
1661         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
1662         * src/z80/main.c (_keywords[]),
1663         * src/SDCCglobal.h (struct options),
1664         * src/SDCC.y,
1665         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
1666         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
1667         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
1668         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1669         always available in leading double underscore form. The C99 support is
1670         mostly missing, but it's a start.
1671         * support/regression/tests/bug-227710.c: fixed nonconforming use of
1672         reserved identifier "__data".
1673
1674 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1675
1676         * src/mcs51/peeph.def: fixed bug 1170013
1677
1678 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1679
1680         * device/include/mcs51reg.h: fixed bug 842007
1681
1682 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1683
1684         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1685         last time.
1686
1687 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1688
1689         * src/port.h (struct PORT),
1690         * src/avr/ralloc.c (avr_assignRegisters),
1691         * src/avr/main.c,
1692         * src/ds390/ralloc.c (ds390_assignRegisters),
1693         * src/ds390/main.c,
1694         * src/hc08/ralloc.c (hc08_assignRegisters),
1695         * src/hc08/main.c,
1696         * src/mcs51/ralloc.c (mcs51_assignRegisters),
1697         * src/mcs51/main.c,
1698         * src/pic/ralloc.c (pic14_assignRegisters),
1699         * src/pic/main.c,
1700         * src/pic16/ralloc.c (pic16_assignRegisters),
1701         * src/pic16/main.c,
1702         * src/xa51/ralloc.c (xa51_assignRegisters),
1703         * src/xa51/main.c,
1704         * src/z80/ralloc.c (z80_assignRegisters),
1705         * src/z80/ralloc.h,
1706         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1707         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1708         * src/SDCCcse.h,
1709         * src/SDCCdflow.c (computeDataFlow),
1710         * src/SDCCdflow.h,
1711         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1712         * src/SDCCloop.h,
1713         * src/SDCCcflow.c (*),
1714         * src/SDCCcflow.h,
1715         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1716         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1717         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1718         immedDom() returning wrong block; probably fixes bug #1160833)
1719
1720 2005-03-20 Borut Razem <borut.razem AT siol.net>
1721
1722         * support/scripts/inc2h.pl: WIN32 port
1723
1724 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1725
1726         * device/lib/makefile.in: added abs.c and labs.c
1727
1728 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1729
1730         * device/include/stdint.h: added
1731         * device/lib/abs.c: added
1732         * device/lib/labs.c: added
1733         * device/include/stdlib.h: added abs() and labs() prototypes
1734         * device/lib/libsdcc.lib: added abs and labs
1735         * device/include/float.h,
1736         * device/lib/_fsmul.c,
1737         * device/lib/printf_fast.c,
1738         * device/lib/printf_tiny.c: updated comments
1739
1740 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1741
1742         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1743         bug #1164313
1744
1745 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1746
1747         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1748         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1749
1750 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1751
1752         * device/lib/printf_large.c: removed inline assembly for portability and
1753           readability. Use printf_fast if speed or size are more important.
1754         * src/pic16/gen.c: removed conditions around use of DEBUGpc
1755         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1756
1757 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1758
1759         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1760         prevent compiler warning
1761
1762 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1763
1764         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1765         moved to level 0 and declared as static. Also they are explicit
1766         placed in access bank. This was necessery because some times they
1767         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1768         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1769         optimizations. Currently only compare to unsigned char is implemented,
1770         * src/pic16/gen.c: added fReturnIdx array,
1771         * (struct resolvedIfx) is moved to gen.h and made public,
1772         * (struct _G): added sregsAlloc and sregsAllocSet fields,
1773         * (aopForSym): added an optimization to directly store in stack of
1774         the operand of a SEND iCode,
1775         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1776         but as registers instead (AOP_REG) using the fReturnIdx array,
1777         * (pic16_freeAsmop): remove the freed register from the
1778         _G.sregsAlloc field,
1779         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1780         a compare of 'WREG',
1781         * (pic16_popGetTempRegCond): changed function prototype, now
1782         function takes also a bitVector argument v which holds the current
1783         set of registers that are allocated for stack access by aopForSym,
1784         registers allocated in aopForSym for accessing stack symbols are not
1785         any more part of the functions usedRegs field,
1786         * (genCall): some times aopOp is called for a stack variable to be
1787         send, aopForSym might perform the push, if this is true make sure
1788         that genCall doesn't push the variable twice by testing _G.resDirect,
1789         * (genFunction): changed testing for unspecified interrupt number
1790         from 256 to INTNO_UNSPEC,
1791         * modified selection scheme of frame pointer generation. Previously
1792         if function did use local registers a frame pointer was generated,
1793         now a frame pointer is generated only if function has arguments
1794         (that need PLUSW2 register access), or has stack arguments, or the
1795         compiler is not instructed to omit the frame pointer,
1796         * (genEndFunction): before restoring local registers that were saved
1797         in the function preamble, also restore the registers that *might*
1798         have been allocated for stack access,
1799         * (genRet): removed some old comments,
1800         * (genCmp, the active (RN's) version): added a call to the
1801         pic16_genCmp_special function to perform the compare with a more
1802         robust and optimized way,
1803         * (genInline): a feature has been added in inline code generation,
1804         which allows a wildcard variable substitution when writing inline
1805         assembly. Code is incomplete and experimental therefore undocumented,
1806         * (genCast): changed order of aopOp for result and right to allow
1807         aopForSym to directly load the result if possible,
1808         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1809         perform an optimized compare on some selected special occasions,
1810         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1811         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1812         generate an IVT any more,
1813         * src/pic16/main.c (pic16_optionsTable): added command line option
1814         --optimize-cmp,
1815         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1816         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1817         macros,
1818         * src/pic16/NOTES: Raphael Neider added in list of active developers
1819         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1820         jumptable_end to prevent bug #,
1821         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1822         inCond and outCond fields,
1823         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1824         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1825         turn off register spilling,
1826         * (packRegsForOneUse): synced with other ports' versions although it
1827         is not used currently,
1828         * (pic16_packRegisters): added an optimization while reading
1829         structure bitfields, some registers may be saved (malloc code is
1830         decreased by 80 bytes)
1831
1832 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1833
1834         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1835         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1836         this can be optimized more?
1837
1838 2005-03-10 Raphael Neider <rneider AT web.de>
1839
1840         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1841           genNearPointerGet): (hopefully) fixed access to bitfields via
1842           pointers (p->bitN = x; and x = p->bitN; failed)
1843
1844 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1845
1846         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1847
1848 2005-03-09 Raphael Neider <rneider AT web.de>
1849
1850         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1851
1852 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1853
1854         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1855         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1856           (regTypeNum): set REG_BIT type if necessary
1857         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1858         * support/regression/tests/critical.c: check bug 1144613
1859
1860 2005-03-02 Raphael Neider <rneider AT web.de>
1861
1862         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1863
1864 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1865
1866         * src/avr/ralloc.c (serialRegAssign),
1867         * src/ds390/ralloc.c (serialRegAssign),
1868         * src/hc08/ralloc.c (serialRegAssign),
1869         * src/mcs51/ralloc.c (serialRegAssign),
1870         * src/pic/ralloc.c (serialRegAssign),
1871         * src/pic16/ralloc.c (serialRegAssign),
1872         * src/xa51/ralloc.c (serialRegAssign),
1873         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1874
1875 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1876
1877         * src/SDCCast.c (decorateType): fixed bug 1124787
1878
1879 2005-02-20 Hubert Sack <sack AT digiplan.de>
1880         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1881
1882         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1883         patch #1121755
1884
1885 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1886
1887         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1888         to keep the correct label reference count when adding/removing references
1889         to labels. A peephole file using this is appended to patch #1144962.
1890
1891 2005-02-14 Raphael Neider <rneider AT web.de>
1892
1893         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1894         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1895         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1896           retrievals of result operand's value on assignment
1897
1898 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1899
1900         * device/include/pic16/string.h: modified prototype for memccpy()
1901         to memccpy(void *, void *, char, size_t)
1902         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1903         check whether to omit frame pointer or not,
1904         * (genInline): convert all occurences of "\n" to LF in inline
1905         assembler blocks, this helps formatting the inline text,
1906         * (pic16_loadFSR0): modified prototype,
1907         * (genNearPointerGet, genNearPointerSet): reorganization of code,
1908         removed some 8051 legacy code,
1909         * (genPackBits): enabled handling bitfields exceeding one byte in size,
1910         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1911         before allocating temporary registers in functions,
1912
1913 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1914
1915         * support/regression/tests/bitvars.c: corrected the "fix"
1916
1917 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1918
1919         * support/regression/tests/bitvars.c,
1920         * support/regression/tests/bitwise.c,
1921         * support/regression/tests/rotate.c: "fixed" problems on Alpha
1922
1923 2005-02-10 Raphael Neider <rneider AT web.de>
1924
1925         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1926           different size for Alpha
1927         * src/pic16/gen.c (genCmpEq) : improved compare with 0
1928
1929 2005-02-09 Raphael Neider <rneider AT web.de>
1930
1931         * src/SDCC.lex(doPragma) : save and restore warning options as well
1932           (also added new stack plus clone- and copyAndFreeSDCCERRG())
1933         * have #pragma less_pedantic set the errorlevel to WARNING
1934           (fixes #1117001)
1935         * (cloneOptimize) : fixed wrong malloc's size
1936         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1937           facilitate correct handling of #pragma (save|restore)
1938
1939 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1940
1941         * src/mcs51/gen.c: removed non-standard C nameless struct/union
1942
1943 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1944
1945         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1946
1947 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1948
1949         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1950
1951 2005-02-02 Raphael Neider <rneider AT web.de>
1952
1953         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1954         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1955         * (pic16_storeForReturn): fixed to allow returning function pointers
1956         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1957         * device/include/pic16/{stddef.h,stdbool.h}: added
1958
1959 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1960
1961         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1962
1963 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1964
1965         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1966         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1967          appeared to be required
1968
1969 2005-01-31 Borut Razem <borut.razem AT siol.net>
1970
1971         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1972           include/mcs51 and include/z80 directories to the package
1973
1974 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1975
1976         * src/hc08/gen.c (genFunction): fixed bug #1112752
1977
1978 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1979
1980         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1981
1982 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1983
1984         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1985
1986 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1987
1988         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1989
1990 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1991
1992         * device/include/c8051fxxx.h: removed these 6 files
1993         * device/include/mcs51/c8051fxxx.h: added these 11 new files
1994
1995 2005-01-26 Raphael Neider <rneider AT web.de>
1996
1997         * src/pic16/gen.c (genAssign): fixed assignment from longs
1998           in codespace (were cut to three bytes)
1999         * (genDummyRead): implemented (except for CODESPACE...),
2000           fixed bug #1108575
2001         * src/pic16/glue.c (emitStatistics): beautified
2002         * device/lib/pic16/libm/Makefile: added include path
2003
2004 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2005
2006         * src/z80/gen.c (aopPut): fixed bug #1103902
2007
2008 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2009
2010         * device/lib/expf.c: fixed bug #1095792
2011
2012 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2013
2014         * device/lib/pic16/libm: added Math library sources
2015
2016 2005-01-24 Raphael Neider <rneider AT web.de>
2017
2018         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2019           to enable upcast to pCodeOpReg2 (there is no type tag to
2020           differenciate the two and pic16_popGet2p cast into PCOR2)
2021         * src/pic16/main.c (_process_pragma): fixed another malloc bug
2022           (sizeof(sectNames) changed to sizeof(sectName))
2023           Both patches fix segfaults under MinGW.
2024
2025 2005-01-23 Raphael Neider <rneider AT web.de>
2026
2027         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2028           Safe_[mc]?alloc()'ed variables
2029         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2030           of (byte sized) temporaries (assign them to WREG for now)
2031         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2032           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2033           this might fix SIGSEGVs on MinGW...
2034         * src/SDCCopt.c (killDeadCode): restored original behaviour
2035           (volatile operands might get thrown away though)
2036
2037 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2038
2039         * src/pic16/gen.c: fixed bug #1106975,
2040         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2041         pointer update, INTCON is saved, global interrupts are disabled and
2042         restored after updateing TOS.
2043         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2044         * added function attribute 'shadowregs' to take advantage of shadow
2045         registers,
2046         * added function attribute 'wparam' as an alternative to the wparam
2047         pragma,
2048         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2049         user declares a non-ISR function as 'shadowregs',
2050         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2051
2052 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2053
2054         * .version: bumped version number to 2.4.8
2055         * device/lib/pic16/pics.all: list of PIC18F devices supported by
2056         pic16 port,
2057         * device/lib/pic16/libio/i2c/: I2C module support library,
2058         * device/include/pic16/i2c.h: I2C support library header,
2059         * device/lib/pic16/libc/stdio/: standard IO support sources,
2060         * (printf_small.c): printf_small() source, supports float print,
2061         * (printf_tiny.c): printf_tiny() source, does not support floats,
2062         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2063         enable global optimizations for entire library source, other
2064         Makefiles in the source tree are also modified to reflect this,
2065         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2066         function,
2067         * doc/sdccman.lyx: updated to reflect new changes,
2068         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2069         sym->onStack if-case,
2070         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2071         sbit, idata, _idata, xdata, _xdata,
2072         * added pragma library, to link an external library, (see doc),
2073         * removed command line options, --pomit-config-words, --pomit-ivt,
2074         --pleave-reset-vector,
2075         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2076         when calling assembler to reflect memory model used, also define
2077         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2078         reflect stack model used,
2079         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2080         on stack return NULL,
2081
2082 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2083
2084         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2085           of the operands is volatile. Fixes #1020220
2086
2087 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2088
2089         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2090         * (OptimizeRegUsage): make sure that there is really no other flow where
2091           the first pCode is used
2092
2093 2005-01-22 Raphael Neider <rneider AT web.de>
2094
2095         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2096           to fix #1106967 (pCode->seq are not set up correctly)
2097
2098 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2099
2100         * src/SDCCglue.c (glue): make sure code area is declared before the
2101         static initialization area.
2102
2103 2005-01-21 Raphael Neider <rneider AT web.de>
2104
2105         * device/lib/Makefile.in: fixed test for pic16 install dir
2106         * device/lib/pic16/*/Makefile*: modified compile flags to enable
2107           optimizations
2108         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2109           added --optimize-goto compiler switch and pragma wparam documentation
2110         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2111         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2112           and PRODH closing bug #1071770 (peephole optimizer)
2113
2114 2005-01-19 Raphael Neider <rneider AT web.de>
2115
2116         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2117           cmdLine buffers (used when calling sdcpp...) are large enough
2118           (MAX_PATH=256 truncates arguments leading to system halts when
2119           used in MinGW...)
2120         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2121         * (genUminus): rewritten to for efficiency
2122         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2123           used uninitialized in some cases)
2124         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2125           copy the third byte from the int -- now assumes 0x80 (data memory)
2126         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2127           operands (genAddLit expects the iCode's operands to swapped as
2128           well), fixed leftover bytes (crashed for short left operands)
2129         * (pic16_genMinusDec): performance improvements, removed false
2130           PIC14 emitSKPNCs
2131         * (pic16_genMinus): fixed to cope with differently sized operands
2132         * src/pic16/glue.c (pic16_glue): added new banksel optimization
2133           for --obanksel > 1
2134         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2135         * src/pic16/graph.[ch]: implementation of directed graphs, used by
2136           new banksel optimization
2137         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2138           analysis for temporary registers (segfaults...)
2139         * src/pic16/peeph.def: added rule
2140
2141 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2142
2143         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2144         which converts a float number to its ASCII representation
2145         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2146         functions to convert the fractional and integer part of a float to ASCII,
2147         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2148         realloc.c): added _MALLOC_SPEC to explicit place variables in data
2149         ram
2150         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2151         _STATMEM macros,
2152         * device/include/pic16/adc.h: added GPL info,
2153         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2154         a pCodeOp as tested operand,
2155         * (genNearPointerGet): optimized bit testing, does not use
2156         intermediate register for bit value, test directly instead with
2157         BTFSS, BTFSC, works only for single bits,
2158         * (genpic16Code): dump the name of the iCode in the asm,
2159         * src/pic16/ralloc.c (decodeOp): removed static declaration and
2160         renamed to pic16_decodeOp,
2161         * (serialRegAssign): do not allocate a temporary register for iCode
2162         sequences that test a single bit for 1/0
2163
2164 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
2165
2166         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
2167         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
2168         access stack and frame pointers. They are initially assigned to
2169         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
2170         accessing SFRs. Updated all occurences of modification of stack or
2171         frame pointer in gen.c and pcode.c,
2172         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
2173         assigning of a literal value to pointers,
2174         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
2175         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
2176         selected
2177
2178 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2179
2180         * doc/sdccman.lyx: update documentation about stack pragma, added
2181         some info for stack memory models
2182
2183 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2184
2185         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
2186
2187 2005-01-08 Raphael Neider <rneider AT web.de>
2188
2189         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
2190           udata sections to fix bug #1097823
2191
2192 2005-01-05 Raphael Neider <rneider AT web.de>
2193
2194         * src/pic16/gen.c (genGenericShift): added handling of differently
2195           sized left operand and result
2196
2197 2005-01-04 Raphael Neider <rneider AT web.de>
2198
2199         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
2200         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
2201           to hold the condition bit)
2202         * added new version of genCmp (old code available via #define)
2203         * added new version of genShiftLeft/genShiftRight in a generic
2204           way, now supports shifting by negative values
2205         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
2206           shiftCount (expected by genGenericShift)
2207         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
2208         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
2209           dump
2210         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
2211           is an invalid literal too...)
2212
2213 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
2214
2215         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
2216         from Raphael Neider,
2217         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
2218         for 8-bit literals. This fixes some literal operands which are sign
2219         extended to 16-bits ints when instruction needs only 8-bits.
2220
2221 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
2222
2223         * device/lib/logf.c: added mcs51 assembly version
2224         * device/lib/expf.c: added mcs51 assembly version
2225         * device/lib/_logexpf.c: new shared asm code for expf and logf
2226         * device/include/math.h: add defines for assembly math library
2227         * device/lib/Makefile.in: build new _logexpf.c
2228         * device/lib/libfloat.lib: use new _logexpf.c
2229
2230 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2231
2232         * src/pic/device.c
2233         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2234           device types which have less than 0x7f registers.
2235
2236 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2237
2238         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2239
2240 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2241
2242         * device/lib/printf_fast.c: only build on supported arch.
2243         * device/lib/printf_tiny.c: only build on supported arch.
2244         * device/lib/printf_fast_f.c: only build if asm float lib
2245         * device/lib/_fsget1arg.c: only build if asm float lib
2246         * device/lib/_fsget2args.c: only build if asm float lib
2247         * device/lib/_fsnormalize.c: only build if asm float lib
2248         * device/lib/_fsreturnval.c: only build if asm float lib
2249         * device/lib/_fsrshift.c: only build if asm float lib
2250         * device/lib/_fsswapargs.c: only build if asm float lib
2251         * device/include/stdio.h: don't provide print_fast,
2252           print_fast_f, print_tiny prototypes if --xstack used
2253
2254 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2255
2256         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2257         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2258           to the SOURCES
2259
2260 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2261
2262         * device/lib/printf_fast_f.c: same as printf_fast, but
2263           with floating point enabled
2264         * device/lib/printf_fast.c: minor tweaks
2265         * device/include/stdio.h: add printf_fast_f
2266
2267 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2268
2269         * src/SDCCmain.c: make --float-reent default for mcs51
2270         * device/lib/_fsadd.c: added mcs51 assembly version
2271         * device/lib/_fssub.c: added mcs51 assembly version
2272         * device/lib/_fsmul.c: added mcs51 assembly version
2273         * device/lib/_fsdiv.c: added mcs51 assembly version
2274         * device/lib/_fseq.c: added mcs51 assembly version
2275         * device/lib/_fsneq.c: added mcs51 assembly version
2276         * device/lib/_fsgt.c: added mcs51 assembly version
2277         * device/lib/_fslt.c: added mcs51 assembly version
2278         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2279         * device/lib/Makefile.in: add _fscmp to build
2280         * device/lib/libfloat.lib: add _fscmp to build
2281
2282 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2283
2284         * device/lib/_fs2slong.c: added mcs51 assembly version
2285         * device/lib/_fs2sint.c: added mcs51 assembly version
2286         * device/lib/_fs2schar.c: added mcs51 assembly version
2287         * device/lib/_fs2ulong.c: added mcs51 assembly version
2288         * device/lib/_fs2uint.c: added mcs51 assembly version
2289         * device/lib/_fs2uchar.c: added mcs51 assembly version
2290         * device/lib/_slong2fs.c: added mcs51 assembly version
2291         * device/lib/_sint2fs.c: added mcs51 assembly version
2292         * device/lib/_schar2fs.c: added mcs51 assembly version
2293         * device/lib/_ulong2fs.c: added mcs51 assembly version
2294         * device/lib/_uint2fs.c: added mcs51 assembly version
2295         * device/lib/_uchar2fs.c: added mcs51 assembly version
2296         * device/include/float.h: added #define to select asm vs c
2297
2298 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2299
2300         * device/lib/printf_fast.c: improvements to float output
2301         * device/include/float.h: add defines for assembly float library
2302         * device/lib/_fsget1arg.c: receive 1 float arg
2303         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2304         * device/lib/_fsnormalize.c: normalize a float
2305         * device/lib/_fsreturnval.c: return float, various helper routines
2306         * device/lib/_fsrshift.c: right shift a float's mantissa
2307         * device/lib/_fsswapargs.c: swap 2 floats
2308         * device/lib/Makefile.in: build these 6 new files for mcs51
2309         * device/lib/libfloat.lib: add these 6 files to the library
2310
2311 2004-12-26 Borut Razem <borut.razem AT siol.net>
2312
2313         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2314           built by gcc 3.4.2
2315
2316 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2317
2318         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2319           and fully reentrant and register bank neutral.
2320         * device/lib/printf_fast.c: added float (not enabled by default),
2321           added compact/slower integer (also not enabled by default),
2322           improved size/speed of fast integer code, other minor changes
2323         * device/include/stdio.h, device/lib/Makefile.in,
2324           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2325
2326 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2327
2328         * src/pic16/pcode.c: declaring variables other than at the start of a
2329           block is not supported in C by VC6.
2330
2331 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2332
2333         * applied a previous patch from Raphael Neider that wasn't included
2334         in the previous commits, which fixes infinite loops within jumptable
2335         improvements,
2336         * made some fixes that previous patches introduced
2337
2338 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2339
2340         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2341         that fixes an issue with AOP_PCODE asmop's offset,
2342         * (pic16_popCopyReg): update instance field too,
2343         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2344         function of pic port,
2345         * (genCmp, genAnd, genAssign),
2346         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2347
2348 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2349
2350         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2351         variables initial values to idata section,
2352         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2353         variables in some functions. This utilizes parmBytes field of iCode
2354         structure to hold the offset of the variable in stack. (might be
2355         able to use the stack field too?)
2356         * applied patch from Raphael Neider # ### , # ###
2357         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2358         variable initial values in idata section,
2359         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2360         for static variables with initial value
2361         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2362         applied fix in while loop from Raphael Neider.
2363
2364 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2365
2366         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2367         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2368         * src/ds390/ralloc.c (serialRegAssign): spill bits
2369         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2370         * support/Util/SDCCerr.c,
2371         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2372         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2373         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2374
2375 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2376
2377         * device/include/sdcc-lib.h: inserted LGPL, added includes
2378           asm/ds390/features.h and asm/mcs51/features.h
2379         * device/include/asm/default/features.h,
2380         * device/include/asm/gbz80/features.h,
2381         * device/include/asm/z80/features.h: added empty _AUTOMEM
2382           and _STATMEM
2383         * device/include/asm/ds390/features.h,
2384         * device/include/asm/mcs51/features.h: added files with defines for
2385           _AUTOMEM and _STATMEM indicating automatic and static storage class
2386         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2387         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2388         * src/SDCCicode.c (geniCodeCast),
2389         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2390         * src/SDCCloop.c (loopInduction): removed unused variable lr
2391         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2392           to convertToFcall to include char modulo (RFE 1065037), added check
2393           if left operand is unsigned and use abs of literal value
2394         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2395           as it doesn't work after conversion from peephole.def to peephole.rul
2396         * src/mcs51/gen.c (toBoolean): added check for size,
2397           (genModOneByte): optimized code for signed char modulo a literal
2398           power of 2 (thanks to Hubert Sack),
2399           (genRRC): removed unnecessary "clr c",
2400           (genRLC): replaced "add a,acc" with cheaper "rlc a"
2401         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2402           jump optimization,
2403           swapped rules 256.c and 256.d,
2404           extended 256.d by using new multiple checks (thanks Erik),
2405           added rules 256.e and 256.f,
2406           updated rule 261.a and 261.b to new generated code
2407         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2408
2409 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2410
2411         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2412           induction related bugs, including first part of bug #1074377
2413
2414 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2415
2416         * applied patch from bug-report #1076292,
2417         * applied patches for genAnd and Goto-optimizations for Raphael
2418         Neider,
2419         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2420         dump a less iCode information,
2421         * src/pic16/device.h (pic16_options_t): added field debgen,
2422         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2423         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2424         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2425         puclic,
2426         * (various functions): added macros FENTRY and FENTRY2 to functions,
2427         to emit function prologue,
2428         * (various functions): fixed indentation,
2429         * (genNearPointerGet): fixed loading of FSR0,
2430         * (genPackBits): applied patch from Raphael Neider to fix updating
2431         of FSR0 and touching only the modified bits,
2432         * src/pic16/genarith.c (various functions): added macros FENTRY to
2433         emit function prologue in comments,
2434         * src/pic16/pcode.h: added functions debugf2, debugf3,
2435         * src/pic16/ralloc.c: partial fix for packForPush caused
2436         segmentation fault,
2437
2438 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2439
2440         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
2441           <stsp AT users.sourceforge.net> with reversed byte order
2442         * support/regression/tests/rotate.c: added (ds390 skips some tests)
2443
2444 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2445
2446         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
2447           bug #1074377
2448         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
2449         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
2450
2451 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2452
2453         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
2454
2455 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2456
2457         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
2458           conditions,
2459           (setFromConditionArgs): friendly operand parser for peephole rules,
2460           (operandBaseName, operandsNotRelated): new peephole condition
2461           "operandsNotRelated" -- similar to "operandsNotSame", but takes
2462           architecture specific register naming into account, handles n-way
2463           comparisons, and supports quoted literals
2464         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
2465
2466 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2467
2468         * src/mcs51/peeph.def: fixed bug #1076940
2469
2470 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2471
2472         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
2473
2474 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2475
2476         Adding support for replacing ljmps with sjmps in jumptables
2477         generated for switch statements. For now you need to set the
2478         environment variable SDCC_SJMP_JUMPTABLE to enable this.
2479         Now 4 algorithms for mcs51 jumptable generation are used:
2480         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
2481         addresses loaded pc-relative for up to 112 cases and stack-pushing
2482         target addresses loaded with offset from dptr for up to 256 cases.
2483
2484         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
2485         * src/mcs51/main.c: adapted constants for switch table generation
2486         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
2487
2488 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
2489
2490         * device/lib/printf_large.c (_print_format): fixed bug 1073386
2491         * support/regression/tests/bug1057979.c: added test for bug 1073386
2492
2493 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2494
2495         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
2496         compilers
2497
2498 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2499
2500         * src/pic16/device.h,
2501         * src/pic16/genarith.c,
2502         * src/pic16/glue.c,
2503         * src/pic16/main.c,
2504         * src/pic16/pcode.c: applied patches #1068154 and #1070213
2505
2506 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
2507
2508         Large cummulative patch for pic16 port.
2509         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
2510         to call when a stack overflow occurs,
2511         * (malloc.h): added CVS Id tag,
2512         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
2513         variable,
2514         * added libc directory. The current version of LibC contains string
2515         functions, ctype functions and macros and some functions of the
2516         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
2517         be extensively tested in the future. Standard disclaimer here.
2518         Library is not automatically build yet. But one can build it by
2519         invoking 'make' inside the libc directory.
2520         * added ADC library under libio. Preliminary version yet.
2521
2522         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
2523         * src/pic16/gen.c (aopForRemat): asmop size is filled by
2524         aopForRemat() now and not by pic16_aopOp(),
2525         * (pic16_popGetTempReg): removed warning messgae when allocating
2526         temporary registers, its a buggy feature and will be removed,
2527         * (pic16_popGet): set register instance field in AOP_CRY,
2528         * (pic16_outBitC): fixed for results in size greater than 1,
2529         * (genUminusFloat): fixed for pic16, ported code from mcs51,
2530         * (pic16_storeForReturn): optimized return of 0,
2531         * (genCmp): experimental code for new genCmp which uses PIC18's
2532         special compare&skip instructions. Initial tests fail some times
2533         with variables grater than 1 byte in size, so new code is disabled,
2534         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
2535         a single bit,
2536         * (genCast): began a fix to optimize the casting of a bit to another
2537         bit, now assigning a bitfield to another bitfield will fail, sorry,
2538         * src/pic16/main.c: disabled the use of lr-support feature,
2539         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
2540         * added some function prototypes, added function _debugf prototype,
2541         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
2542         bits with offset (case PO_GPR_BIT),
2543         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
2544         command line,
2545         * (isBankInstruction): modified to return 0 for no banking instruction,
2546         and 1 for banking instruction,
2547         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
2548         caused stop processing pCodes after a inline assembly block,
2549         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
2550         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
2551         registers when it shouldn't,
2552         * src/pic16/ralloc.c (allocReg): add preliminary support for
2553         supporting a limited set of temporary registers,
2554
2555 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2556
2557         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
2558           genDataPointerSet): ensure assignments always copy in MSB to LSB
2559           order,
2560           (loadRegFromAop): recognize CLRH optimization,
2561           (genFunction): optimize RECEIVE iCodes in reentrant functions
2562
2563 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2564
2565         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
2566           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
2567           selected.
2568         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
2569         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
2570           contiguous with data
2571
2572 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2573
2574         * device/lib/_gptrget.c (_gptrget),
2575         * device/lib/_gptrgetc.c (_gptrgetc),
2576         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
2577           instead of sjmp to ret
2578         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
2579           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
2580
2581 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2582
2583         * .version: bumped version to 2.4.7
2584         * device/lib/_gptrget.c (_gptrget): is now _naked
2585         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
2586         * device/lib/_gptrput.c (_gptrput): is now _naked
2587         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
2588           (createFunction): fixed xstack
2589         * src/SDCCglue.c (emitMaps): set allocation required for bit area
2590         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
2591           or bit either,
2592           (geniCodeCritical): store original interrupt state in an iTemp bit
2593           var unless stack-auto
2594         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
2595         * src/SDCCmain.c (setIncludePath): added include/target to search path
2596         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
2597         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
2598           prototype,
2599           (processFuncArgs): put bit vars in bit area
2600         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
2601           unsaveRBank): fixed xstack,
2602           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
2603           (genFunction, genEndFunction): fixed xstack,
2604           (genAssign): optimization don't walk backwards through mem
2605         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
2606         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
2607         * support/regression/Makefile: also make library (for stack-auto) when
2608           making "all" and added "test-mcs51-xstack-auto"
2609         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
2610         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
2611         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
2612         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
2613         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
2614           make-library by MAKE_LIBRARY
2615         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
2616           regression tests for xstack
2617         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
2618         * support/regression/tests/critical.c: test for critical on mcs51
2619
2620 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2621
2622         * support/regression/ports/ucz80/spec.mk: use include and lib files from
2623           built version of sdcc instead of installed version
2624
2625 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
2628         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
2629           vprintf.c now
2630         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
2631         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
2632           WARNING: remove device/lib/build/z80/printf.o by hand when
2633           updating from previous build!
2634         * device/lib/z80/printf.c: updated comment
2635         * support/regression/tests/bug1057979.c: test all ports now
2636         * support/regression/tests/bug1065458.c: file added
2637
2638 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2639
2640         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
2641           *_start and *_end symbols for static functions
2642
2643 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2644
2645         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
2646           and search crt0.o in all library paths,
2647           (setIncludePath): proper handling of --nostdinc,
2648           (setLibPath): proper handling of --nostdlib
2649         * support/regression/Makefile,
2650         * support/regression/ports/ds390/spec.mk,
2651         * support/regression/ports/gbz80/spec.mk,
2652         * support/regression/ports/hc08/spec.mk,
2653         * support/regression/ports/mcs51/spec.mk,
2654         * support/regression/ports/mcs51-large/spec.mk,
2655         * support/regression/ports/mcs51-stack-auto/spec.mk,
2656         * support/regression/ports/z80/spec.mk: use include and lib files from
2657           built version of sdcc instead of installed version
2658         * doc/sdccman.lyx: fixed typo in --nostdinc
2659
2660 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
2661
2662         * src/pic/pcode.c,
2663         * src/pic/device.c,
2664         * src/pic/ralloc.c,
2665         * src/pic/gen.c : added support to generate code for struct bit fields.
2666
2667 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2668
2669         * as/xa51/xa_version.h,
2670         * device/include/errno.h,
2671         * device/include/regc515c.h,
2672         * device/lib/_itoa.c,
2673         * device/lib/_ltoa.c,
2674         * device/lib/ser_ir_cts_rts.c,
2675         * sim/ucsim/xa.src/glob.cc,
2676         * sim/ucsim/xa.src/inst_gen.cc,
2677         * sim/ucsim/xa.src/xa_bit.cc,
2678         * sim/ucsim/xa.src/xa_sfr.cc,
2679         * sim/ucsim/z80.src/inst_dd.cc,
2680         * sim/ucsim/z80.src/inst_fdcb.cc,
2681         * support/scripts/keil2sdcc.pl,
2682         * src/pic16/pic16.dsp,
2683         * src/pic16/pic16a.dsp: corrected cvs line endings
2684         * device/lib/printf_large.c: fixed bug 1057979
2685         * src/pic16/gen.c: fixed non-C standard code
2686         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2687         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2688         * support/regression/ports/mcs51/support.c: reload T1 asap
2689         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2690           pdata use and clear idata startup behaviour
2691         * support/regression/tests/bug1057979.c: added
2692
2693 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * device/examples/ds390/ow390/ad26.h,
2696         * device/examples/ds390/ow390/cnt1d.h,
2697         * device/examples/ds390/ow390/crcutil.c,
2698         * device/examples/ds390/ow390/ownet.h,
2699         * device/examples/ds390/ow390/owsesu.c,
2700         * device/examples/ds390/ow390/swt12.h,
2701         * device/examples/ds390/ow390/swtoper.c,
2702         * device/examples/ds390/ow390/temp10.h,
2703         * device/examples/ds390/ow390/thermodl.c,
2704         * device/examples/ds390/tinitalk/tinitalk.dsp,
2705         * device/examples/ds390/tinitalk/tinitalk.dsw,
2706         * device/examples/mcs51/clock/hw.h,
2707         * device/examples/mcs51/simple2/go.bat,
2708         * device/examples/serialcomm/windows/serial.h,
2709         * device/examples/xa51/dummy.c,
2710         * device/examples/xa51/hello.c,
2711         * device/include/80c51xa.h,
2712         * device/include/at89x051.h: corrected cvs line endings
2713
2714 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2715
2716         * src/pic16/main.c (options): added command line --gstack, to trace
2717         stack over/under flows,
2718         * added pragma 'wparam' to allow passing first byte of function
2719         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2720         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2721         call to __gstack_test function and sets up the symbol as extern,
2722         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2723         * popaop): added call to pic16_testStackOverflow,
2724         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2725         wparamList list,
2726         * (genCall, genPcall): now all parameters are passed via stack
2727         except in functions that are pass to wparam pragma in which WREG is
2728         used too,
2729         * (genPcall): REENTRANT flag is checked to see if variable prototype
2730         contains reentrant keyword, don't call a non-reentrant function, via
2731         a reentrant function pointer or vice versa, functions are never
2732         passed via WREG,
2733         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2734         D.Winkler,
2735         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2736         SIGSEGV when accessing a NULL register stucture,
2737         * (pic16_printGPointerType): modified to handle UPPER modifier for
2738         function initializers, changed prototype of function to simpler one,
2739         * (pic16_printIvalFuncPtr): check to see if function is already
2740         added in externs list,
2741         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2742         optimized a move from W to SFR with a move to the same register
2743         later after a CALL,
2744         * device/lib/pic16/debug: NEW directory, contains debug features
2745         which are enabled when linking with libdebug.lib, currently command
2746         line option --gstack enables stack pointer tracing for over/under
2747         flow, corresponding sources are in debug/gstack
2748
2749 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2750
2751         * doc/sdccman.lyx: updated SDCC version,
2752         * (PIC16 port): update list of command line options,
2753         * src/pic16/device.h (structure pic16_options_t): added field gstack
2754         to enable stack overflow tracing on push/pops,
2755         * src/pic16/device.c (statistics structure): added statistics
2756         structure,
2757         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2758         pic16_dump_int_registers): increase statistics counters for each
2759         * variable which is encountered
2760         * (pic16_dump_usection): emit each .udata variable to its own udata
2761         section,
2762         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2763         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2764         parameters via stack, otherwise use old scheme,
2765         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2766         assembler output file,
2767         * src/pic16/main.c: added command line options --gstack to enable
2768         push/pop tracing for stack overflow,
2769         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2770         instructions): added size of each instruction,
2771         * (pic16_countInstruction): estimate size of instructions in
2772         the_pFile list, inline assembly blocks are not counted,
2773         * (pic16_FixRegisterBanking): trace previous register usage, when
2774         banksel optimizations is greater than 0, don't emit a redudant
2775         banksel directive,
2776
2777 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2778
2779         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2780         * src/pic16/ralloc.c : applied same fix for pic16.
2781         * src/pic/gen.c : tidied it up a little.
2782
2783 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2784
2785         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2786         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2787
2788 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2789
2790         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2791
2792 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2793
2794         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2795         non-reentrant function __modsint in the interrupt function (thus
2796         corrupting math operations during serial I/O)
2797         * device/lib/ser_ir.c: as above, changed buffersize
2798         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2799         256.c,d for zeroing
2800         * doc/Makefile: added option -t for rsync
2801
2802 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2803
2804         * src/SDCCast.h (struct ast),
2805         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2806
2807 2004-10-20 Borut Razem <borut.razem AT siol.net>
2808
2809         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2810         package
2811
2812 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2813
2814         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2815         makefile targets,
2816         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2817         support functions to replace long sequences of MOVFF's from access
2818         bank registers to stack and vice versa,
2819         * src/pic16/device.h: added new field opt_flags, where optimization
2820         flags can be set to enable certain features,
2821         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2822         * pBlock, (genFunction, genEndFunction): surroung loop for
2823         saving/loading used registers in stack with PC_INFO pCodes,
2824         INF_LREGS. Code in between can then be optimized by pCode optimizer
2825         to support function calls,
2826         * (genDataPointerSet): fixed bug which loaded float fields in
2827         structures with corrupt data,
2828         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2829         in a standard way debug info on stderr. Feature used for developing
2830         and debugging only,
2831         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2832         obsolete chunks of code,
2833         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2834         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2835         * pic16/src/pcode.c (pic16_newpCodeInfo,
2836         * (pic16_newpCodeOpLocalRegs),
2837         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2838         feature,
2839         * (pic16_pCodeConstString): printing of the initial value of a
2840         symbol as a comment is inhibited since parsing was already done by
2841         copyStr and output is corrupt,
2842         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2843
2844 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2845
2846         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2847
2848 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2849
2850         * as/mcs51/lkarea.c: removed old K&R style,
2851           (lnksect): changed check on boundary error,
2852           (lnksect2): changed check on boundary error,
2853           (lnksect2): extend XSTK to end of page if size = 1
2854         * as/mcs51/lkmain.c: removed old K&R style,
2855           (Areas51): create l_IRAM symbol
2856         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2857         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2858           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2859         * device/lib/_mullong.c: added version to be compiled with xstack
2860         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2861         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2862         * device/lib/mcs51/crtxstack.asm: fixed comment
2863         * src/SDCCglue.c: maxInterrupts defaults to 0,
2864           (emitMaps): added pdata,
2865           (createInterruptVect): (re)moved default,
2866           (glue): added pdata,
2867           (glue): moved __start__xstack to XSTK with default size 1
2868         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2869           and options.float_rent when options.stackAuto is set,
2870           (linkEdit): only write XDATA_NAME if provided on command line
2871         * src/SDCCmem.h,
2872         * src/SDCCmem.c: added pdata
2873         * src/port.h: added pdata_name to PORT
2874         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2875           (saveRegisters, unsaveRegisters): removed usage of B,
2876           (genMinus): fixed accumulator clash,
2877           (genJumpTab): added comment, this needs another look
2878         * src/mcs51/gen.c: added check for "B in use" paranoia,
2879           added pushB() and popB()
2880         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2881           chance
2882         * src/avr/main.c,
2883         * src/ds390/main.c,
2884         * src/hc08/main.c,
2885         * src/mcs51/main.c,
2886         * src/pic/main.c,
2887         * src/pic16/main.c,
2888         * src/xa51/main.c,
2889         * src/z80/main.c: (reset_regparms) made void parameter explicit and
2890           added PSEG (PAG,XDATA) or NULL to port specifier
2891         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2892         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2893           (_mcs51_genInitStartup): removed __start__xstack equ,
2894           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2895         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2896         * src/z80/gen.c (_rleAppend): fixed warnings
2897         * support/regression/tests/zeropad.c: added pdata test
2898         * .version: bumped to 2.4.6
2899
2900 2004-10-17 Borut Razem <borut.razem AT siol.net>
2901
2902         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2903         as a part of nightly build
2904
2905 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2906
2907         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2908         WREG holds the first byte function parameters,
2909         * (aopForSym): take special case for symbols which are in FARSPACE
2910         but in CODESPACE too,
2911         * (assignResultValue): modified to take into account _G.useWreg,
2912         * (genCall): don't use wreg for parameter passing when function is
2913         declared as reentrant, too, added optimization INCF to stack
2914         pointer when stack parameter count is 1,
2915         * (genFunction, genEndFunction): refurnished and fixed to not using
2916         wreg for passing parameters when function has varargs or is
2917         reentrant, fixed bug with symbol name compare for generating
2918         functions in absolute address,
2919         * (pic16_storeForReturn): refurnished,
2920         * (genCmp): began writing a new version of the function, not ready
2921         yet, therefore it is disabled,
2922         * (genAssign): do not read code memory when assigning a function to
2923         a pointer function,
2924         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2925         array of characters, not pointer,
2926         * (pic16initialComments): in debug mode emit an .ident directive for
2927         the assembler,
2928         * (_process_pragma): emit a new warning type (internal to pic16)
2929         when setting stack to default length, emit a similar warning when
2930         placing a function at absolute address and address is not word aligned
2931         * (_pic16_parseOptions): added 'return TRUE' statement,
2932         * (_pic16_linkEdit): if compiling a source, then add the source's
2933         file object, first in the list of objects to link,
2934
2935 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2936
2937         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2938         * src/pic/main.c : removed VC warning.
2939         * src/pic/gen.c : changed comment.
2940
2941 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2942
2943         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2944         reference to a deprecated symbol _GPTRREG was causing failure to
2945         link. Thanks G. M. Gallant for the info.
2946
2947 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2948
2949         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2950         comments for Bugs item #954788.
2951
2952 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2953
2954         * src/pic16/device.c (pic16_dump_gsection,
2955         * pic16_groupRegistersInSection): handle symbols declared to be in
2956         access bank differently,
2957         * src/pic16/gen.c (struct _G): added field resDirect,
2958         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2959         send values read from stack directly to result and don't allocate
2960         temporary values,
2961         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2962         same registers,
2963         * (pic16_sameRegsOfs): NEW,
2964         * (freeAsmop): if _G.resDirect is set then do not mark registers as
2965         free because they were not allocated from temporary pool,
2966         * pic16_popRegFromString): workaround to fix a problem with
2967         allocating variables twice or never,
2968         * (genGenPointerGet): using PRODL instead of FSR0H,
2969         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2970         instead of FSR0H,
2971         * (genAssign): take advantage of the _G.resDirect flag,
2972         * (genCast): around line 11844, use mov2f instead of directly
2973         MOVFF'ing between operands to account for literal values,
2974         * src/pic16/genutils.c: some new debug functions for gpsim have been
2975         added,
2976         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2977         float with integer part only,
2978         * src/pic16/main.c (_process_pragma): handle pragma udata access to
2979         place variables in access bank
2980         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2981         updated sources to reflect recent changes in gen.c
2982
2983 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2984
2985         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2986         sources that searched for headers in installation path, now the
2987         device/include/pic16 is used,
2988         * src/pic16/glue.c (pic16glue),
2989         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2990         .line directives if not in debug mode, this suppresses assembler's
2991         warnings for ignored directives
2992
2993 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2994
2995         * src/port.h: made reset_regparms prototype void parameter explicit.
2996         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2997         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2998         * doc/sdccman.lyx: documented warning disabling and how to use
2999           printf_large to make it print floats.
3000         * device/include/stdbool.h: NEW
3001         * device/lib/_atof.c,
3002         * device/lib/_divuint.c,
3003         * device/lib/_divulong.c,
3004         * device/lib/expf.c,
3005         * device/lib/printf_large.c,
3006         * device/lib/sincosf.c,
3007         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3008         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3009           a completely reentrant lib.
3010
3011 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3012
3013         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3014         * device/include/pic16/stdio.h: fixed bug with colon
3015
3016 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3017
3018         * device/include/pic16/stdio.h,
3019         * device/include/pic16/stdlib.h,
3020         * device/include/pic16/math.h: NEW
3021         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3022         declared as _naked to reduce overhead
3023         * device/lib/Makefile.in (target port-specific-objects-pic16):
3024         changed * to *.* so to ignore the CVS directory,
3025         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3026         stacked variables back in stack,
3027         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3028         corruption
3029
3030 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3031
3032         * .version: bumped version number to 2.4.5
3033         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3034         * support/Util/SDCCerr.c (messages structure): added entry for
3035         W_POSSBUG2
3036
3037         Large cumulative patch for pic16 port and libraries.
3038         * device/include/pic16/sdcc-lib.h,
3039         * device/include/pic16/stdarg.h,
3040         * device/include/asm/pic16/features.h,
3041         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3042         * device/include/pic16/float.h: changes reentrant keyword with
3043         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3044         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3045         updated target build-libraries to include objects from gptr,
3046         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3047         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3048         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3049         all function headings,
3050         * src/SDCCmain.c: added global parameter userIncDirsSet,
3051         * (parseCmdLine): when option -I is encountered add directory to
3052         userIncDirsSet too,
3053         * src/version.awk: added space between control and long,
3054         * src/pic16/NOTES: added some notes for the port,
3055         * src/pic16/gen.c: added prototype for mov2fp function,
3056         * (fReturnpic16[]): properly named return value registers,
3057         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3058         * (aopForSym): added code to handle symbols with onStack flag set,
3059         symbols onStack are allocated PTRSIZE bytes,
3060         * (aopFreeAsmop): handles special case where asmops are stack objects,
3061         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3062         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3063         added argument lock to trace flaws in allocating temporary registers
3064         when developing port,
3065         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3066         * (pic16_popRegFromString): reenabled allocating a direct register
3067         from string,
3068         * (assignResultValue): various beautifications,
3069         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3070         referenced function argument,
3071         * (genIpush): reenabled to allow stacked arguments, handles only
3072         ic->parmPush iCodes,
3073         * (genCall, genPcall): major changes to allow for variable argument
3074         functions, fixed a bug with falsely restoring stack pointer after
3075         returning from call,
3076         * (genFunction): pending code for critical function,
3077         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3078         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3079         * (genNearPointerGet): fixed bug with indirect reading, was always
3080         reading from INDF0
3081         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3082         pointers,
3083         * (genAddrOf): rewrote code to take address of a stacked function parameter
3084         * (genCast): fixed casting to generic pointer type,
3085         * src/pic16/gen.h: added AOP_STA,
3086         * (struct asmop): added field stk,
3087         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3088         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3089         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3090         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3091         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3092         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3093         generic pointers,
3094         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3095         and library paths,
3096         * (pic16_port structure): generic pointer size is set to 3,
3097         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3098         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3099         compiler warning,
3100         * src/pic16/ralloc.c (allocReg): prevent allocating register when
3101         operand is an iTemp,
3102
3103 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3104
3105         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3106         * debugger/mcs51/simi.c: addapt new syntax of s51
3107
3108 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3109
3110         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3111         * src/pic16/pcode.c: commented out some calls to free() in order to
3112         fix bug #989576,
3113
3114 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3115
3116         * src/SDCCicode.h,
3117         * src/SDCCicode.c (isiCodeInFunctionCall),
3118         * src/avr/ralloc.c (selectSpil),
3119         * src/pic/ralloc.c (selectSpil),
3120         * src/pic16/ralloc.c (selectSpil),
3121         * src/ds390/ralloc.c (selectSpil),
3122         * src/hc08/ralloc.c (selectSpil),
3123         * src/xa51/ralloc.c (selectSpil),
3124         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3125         stack in the middle of a function call sequence (fixes bug #1020268)
3126         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3127         costs associated with the minimum switch case.
3128
3129 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3130
3131         * src/SDCC.lex: fixed bug #1030549
3132
3133 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3134
3135         * src/SDCCcse.h (struct cseDef),
3136         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3137         over a function call if the CSE is derived from a symbol whose
3138         address has been taken (fixes bug #1029883)
3139         * support/regression/tests/bug-1029883: a new regression test for
3140         this bug
3141
3142 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3143
3144         * src/hc08/gen.c (emitinline): fixed bug #1029778
3145         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3146         to a cast object is no longer a syntax error ("fixes" bug #1030006,
3147         and starts toward RFE #905167)
3148
3149 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3150
3151         * src/pic16/gen.c (mov2f): New function to move an operand to
3152         another without considering if it is a literal or a register,
3153         * (pic16_sameRegs): don't check if they are both AOP_REG,
3154         * (AccRsh): removed andmask=0 lines,
3155         * (genLeftShift): duplicated to be improved in future versions,
3156         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3157         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3158         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3159         * (pic16initMnemonics): added initialization for POC_INFSNZW,
3160         * (insertBankSwitch): fixed inserting banksel directives algorithm
3161         for instructions that follow a skip instruction, this fixes a report
3162         for broken subtraction code generation,
3163         * src/pic16/ralloc.c (deassignLRs): do not free register if current
3164         iCode is a left op, just in case result and right share the same
3165         registers
3166
3167 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3168
3169         * src/hc08/main.c,
3170         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
3171         preservation of HX
3172         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
3173         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
3174         on 2004-09-12; it was buggy
3175
3176 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3177
3178         * src/SDCCsymt.h: removed RESULT_CHECK
3179         * src/SDCCast.c,
3180         * src/SDCCglue.c,
3181         * src/SDCCval.c,
3182         * src/pic/glue.c,
3183         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
3184
3185 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
3186
3187         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
3188         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
3189         configuration values no more rejected by compiler, they are assigned
3190         to configuration registers with a warning message instead,
3191         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
3192         the for-loop so last conf register is emitted too,
3193         * (_pic16_initPaths): link library libsdcc.lib by default,
3194         * (_hasNativeMulFor): modified test for multiplication according to
3195         Raphael Neider's remarks. Integer multiplication is also done with
3196         support functions,
3197         * device/include/pic16/pic18fregs.h: corrected type error in while
3198         testing and including 18f6720 header file
3199
3200 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
3201
3202         * src/pic16/device.h (pic16_options): removed field use_crt,
3203         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
3204         until an optimization to handle single bits is added,
3205         * (pic16_loadFSR0): moved before genUnpackBits,
3206         * (genAnd): some white lines removed,
3207         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
3208         leave_reset flags in pic16_options when using crt modules,
3209
3210 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
3211
3212         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
3213           for bugs 898889 & 979599. Also used some safer print instructions.
3214
3215 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
3216
3217         * src/pic16/device.h (pic16_options_t): added field use_crt,
3218         crt_name, no_crt,
3219         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
3220         catch a probable future bug,
3221         * src/pic16/gen.c: aopIdx function commented out,
3222         * (genAssign): commented out old code which used aopIdx,
3223         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
3224         code, added if conditionals to take into account the --use-crt
3225         command line options,
3226         * src/pic16/main.c (pic16_optionsTable): added new command line
3227         options, --use-crt= and --no-crt,
3228         * (_pic16_linkEdit): now the proper crt object is added in the
3229         linker command line except than when --no-crt is specified,
3230         * src/pic16/pcode.c,
3231         * src/pic16/pcode.h: added some structures and functions for a new
3232         optimization scheme to compansate for instruction overhead between
3233         same iCodes, this scheme is currently under development and is not
3234         working in any way,
3235         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3236         to && operator,
3237         * device/lib/pic16/startup/crt0i.c,
3238         * device/lib/pic16/startup/crt0iz.c: added global char variable
3239         __uflags to force the generation of an idata section
3240
3241 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3242
3243         * doc/Makefile,
3244         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3245         * doc/sdccman.lyx: updated sdcc version to 2.4.4
3246
3247 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3248
3249         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3250         Frieder) and clarified the default code optimization mode
3251
3252 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3253
3254         * src/SDCC.lex (doPragma, process_pragma),
3255         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3256         "opt_code_size", and "opt_code_balanced"
3257         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3258         regrouped options by category, added support for category headers
3259         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3260         and "--opt-code-size"
3261         * doc/sdccman.lyx: documented these new options and pragmas
3262         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3263         preference into account
3264
3265 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3266
3267         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3268           geniCodePreDec): Fixed bug 904237 by generating a warning
3269         * src/SDCCerr.h,
3270         * src/SDCCerr.c: added warning W_SIZEOF_VOID
3271
3272 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3273
3274         * src/pic/device.c : When no max ram set validate full memory range.
3275         * src/pic/pcode.c,
3276         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3277
3278 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3279
3280         * device/lib/_gptrget.c,
3281         * device/lib/_gptrput.c: updated comment
3282         * device/lib/calloc.c,
3283         * device/lib/free.c,
3284         * device/lib/malloc.c,
3285         * device/lib/realloc.c: added LGPL, made them reentrant-safe
3286         * src/SDCCcse.c (cseBBlock),
3287         * src/SDCCicode.c (printOperand, geniCodeArray),
3288         * src/SDCCicode.h (struct operand): fixed bug 868103
3289         * support/regression/tests/bug-868103.c: added
3290         * src/SDCCast.c (searchLitOp),
3291         * src/SDCCcse.h (struct cseDef),
3292         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3293         * src/SDCCicode.h (struct operand),
3294         * src/SDCCsymt.h (struct sym_link),
3295         * src/avr/gen.c (hasInc),
3296         * src/ds390/gen.c (hasInc),
3297         * src/hc08/gen.c (genPlusIncr, hasInc),
3298         * src/mcs51/gen.c (hasInc),
3299         * src/pic16/glue.c (pic16_printIvalChar),
3300         * src/pic16/ralloc.c (regWithIdx),
3301         * src/xa51/gen.c (hasInc) : removed warnings
3302         * src/SDCCast.c (createBlock): added comment ???
3303         * src/hc08/ralloc.c: updated comments
3304
3305 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3306
3307         * doc/sdccman.lyx: updated section on switch statements, added
3308         section about semaphore locking
3309         * doc/Makefile: added option -info for latex2html
3310         * device/lib/_gptrget.c,
3311         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3312
3313 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3314
3315         * src/pic/device.h,
3316         * src/pic/device.c,
3317         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3318          maxram is less than 0x100.
3319
3320 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3321
3322         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3323
3324 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3325
3326         * src/port.h,
3327         * src/mcs51/main.c,
3328         * src/ds390/main.c,
3329         * src/z80/main.c,
3330         * src/hc08/main.c,
3331         * src/pic/main.c,
3332         * src/pic16/main.c,
3333         * src/avr/main.c,
3334         * src/xa51/main.c
3335         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3336         a jump table is the best form for a switch statement, including
3337         automatic insertion of missing cases to make the case range
3338         continuous. Developed in collaboration with Frieder Ferlemann.
3339
3340 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3341
3342         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3343         accumulator result if it needs sign extension
3344
3345 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3346
3347         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3348
3349 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3350
3351         * device/lib/gbz80/printf.c,
3352         * device/lib/z80/printf.c: removed define for NULL
3353
3354 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3355
3356         * as/xa51/xa_link.c,
3357         * device/examples/ds390/ow390/ad26.c,
3358         * device/examples/ds390/ow390/cnt1d.c,
3359         * device/examples/ds390/ow390/counter.c,
3360         * device/examples/ds390/ow390/ds2480.h,
3361         * device/examples/ds390/ow390/ds2480ut.c,
3362         * device/examples/ds390/ow390/findtype.c,
3363         * device/examples/ds390/ow390/gethumd.c,
3364         * device/examples/ds390/ow390/owllu.c,
3365         * device/examples/ds390/ow390/ownetu.c,
3366         * device/examples/ds390/ow390/swt12.c,
3367         * device/examples/ds390/ow390/swtloop.c,
3368         * device/examples/ds390/ow390/temp.c,
3369         * device/examples/ds390/ow390/temp10.c,
3370         * device/examples/ds390/ow390/thermo21.c,
3371         * device/examples/ds390/ow390/tinilnk.c,
3372         * device/examples/ds390/ow390/tstfind.c,
3373         * device/examples/serialcomm/windows/serial.cpp,
3374         * device/examples/serialcomm/windows/test_serialcomm.cpp,
3375         * device/include/reg51.h: fixed line endings for cvs
3376
3377 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3378
3379         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3380         packRegsForAccUse, packRegisters): new accumulator register
3381         packing algorithm
3382         * support/regression/ports/hc08/support.c (_putchar): suppress
3383         warning of unused variable
3384         * src/SDCCicode.c: added SWAP entry to codeTable
3385
3386 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3387
3388         * device/lib/sprintf.c: forgot to add this file before previous commit
3389
3390 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3391
3392         * src/pic16/gen.c (genPackBits): added operand right in function
3393         parameters, load result directly if p_type is POINTER (that is
3394         called by genNearPointerSet)
3395         * (genUnPackBits): added operand left in function parameters,
3396         * (genNearPointerGet, genNearPointerSet): prevent the loading of
3397         FSR0 if accessing bitfields,
3398
3399 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3400
3401         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3402           _print_format; updated printf, sprintf, vsprintf
3403         * device/include/asm/default/features.h: corrected comment/define
3404         * device/lib/Makefile.in: added sprintf.c
3405         * device/lib/libsdcc.lib: added sprintf module
3406         * device/lib/printf_large.c,
3407         * device/lib/vprintf.c,
3408         * device/lib/sprintf.c: totally refactored printf_large and vprintf
3409           into these 3 files
3410         * support/regression/Makefile: changed ALL_PORTS into a usefull default
3411         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3412         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3413           hc08 test
3414         * support/regression/tests/zeropad.c: define idata as data for hc08
3415
3416 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3417
3418         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3419         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3420         labels are referenced at least once (even if a reference is not found)
3421         * src/hc08/gen.c (emitcode): set isComment flag for comments
3422         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3423         loads), rules 6a..6b (optimize jumps to return)
3424
3425 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3426
3427         * device/lib/acosf.c (acosf),
3428         * device/lib/asinf.c (asinf),
3429         * device/lib/atanf.c (atanf),
3430         * device/lib/ceilf.c (ceilf),
3431         * device/lib/cosf.c (cosf),
3432         * device/lib/coshf.c (coshf),
3433         * device/lib/cotf.c (cotf),
3434         * device/lib/fabsf.c (fabsf),
3435         * device/lib/floorf.c (floorf),
3436         * device/lib/log10f.c (log10f),
3437         * device/lib/logf.c (logf),
3438         * device/lib/sinf.c (sinf),
3439         * device/lib/sinhf.c (sinhf),
3440         * device/lib/sqrtf.c (sqrtf),
3441         * device/lib/tanf.c (tanf),
3442         * device/lib/tanhf.c (tanhf),
3443         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
3444         replaced all instances of "reentrant" in the library functions
3445         defined in math.h with this macro.
3446         * support/regression/tests/float_trans.c: reenabled test for hc08
3447
3448 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
3449
3450         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
3451         erroneously deleted
3452
3453 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3454
3455         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
3456         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
3457         multi-byte volatile operands are used
3458         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
3459         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
3460         initialization to area GSINIT0 so that it would always precede
3461         any static initializers in GSINIT
3462         * support/regression/tests/zeropad.c: fixed idata define for hc08
3463         * support/regression/tests/bug-927659.c,
3464         * support/regression/tests/float_trans.c: disabled tests for hc08
3465         pending missing library routines
3466         * .version: increased version number to 2.4.4 - hc08 port now passes
3467         regression tests
3468
3469
3470 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
3471
3472         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
3473         * Makefile.common.in,
3474         * as/Makefile,
3475         * as/hc08/Makefile.in,
3476         * as/mcs51/Makefile.in,
3477         * as/z80/Makefile.in,
3478         * debugger/mcs51/Makefile.in,
3479         * device/include/Makefile.in,
3480         * device/lib/Makefile.in,
3481         * doc/Makefile,
3482         * link/Makefile,
3483         * link/z80/Makefile.in,
3484         * packihx/Makefile.in,
3485         * sim/ucsim/main_in.mk,
3486         * sim/ucsim/avr.src/Makefile.in,
3487         * sim/ucsim/doc/Makefile.in,
3488         * sim/ucsim/gui.src/serio.src/Makefile.in,
3489         * sim/ucsim/hc08.src/Makefile.in,
3490         * sim/ucsim/s51.src/Makefile.in,
3491         * sim/ucsim/xa.src/Makefile.in,
3492         * sim/ucsim/z80.src/Makefile.in,
3493         * src/Makefile.in,
3494         * support/cpp2/Makefile.in,
3495         * support/librarian/Makefile,
3496         * support/makebin/Makefile: added DESTDIR to the install path proposed
3497         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
3498         * doc/sdccman.lyx: added DESTDIR documentation
3499
3500 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
3501
3502         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
3503         instruction for interrupt handlers, use fast returns when returning
3504         from high priority interrupts
3505
3506 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3507
3508         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
3509         code generation
3510         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
3511         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
3512         bugs, ported much of Bernhard's code from mcs51
3513         * src/mcs51/gen.c (genSend),
3514         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
3515         than one when calling a reentrant function
3516         * device/lib/_mullong.c: defined an alternate struct layout for big
3517         endian ports (hc08)
3518
3519 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3520
3521         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
3522         test
3523
3524 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3525
3526         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
3527         are sane and complete before asking the port its prefered parameter
3528         passing method (fixes bug #1017633)
3529         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
3530         and _ret3
3531
3532 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3533
3534         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
3535         problem in bitfields >= 8 bits.
3536
3537 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3538
3539         * src/SDCCsymt.c: undid changes that were not meant to be committed
3540
3541 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3542
3543         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
3544
3545 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3546
3547         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
3548           copied and wrong bit got inverted
3549
3550 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3551
3552         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
3553         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
3554         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
3555         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
3556         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
3557         assignments to bitfields at known addresses
3558         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
3559         reads from bitfields at known addresses
3560         * src/hc08/ralloc.c (packRegisters),
3561         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
3562         genhc08Code): optimize pointer get values used as conditionals
3563         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
3564         and branch
3565
3566 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3567
3568         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
3569         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
3570         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
3571         as conditionals
3572
3573 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3574
3575         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
3576
3577 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3578
3579         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
3580         related problems
3581
3582 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
3583
3584         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
3585
3586 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3587
3588         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
3589         mcs51 port
3590
3591 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3592
3593         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
3594
3595 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3596
3597         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
3598         cases use more compact code.
3599
3600 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
3601
3602         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
3603
3604 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3605
3606         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
3607
3608 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3609
3610         * src/SDCCsymt.h,
3611         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
3612         parameter of changePointer() from symbol* to sym_link*
3613         * src/SDCCast.c (decorateType): call changePointer() for CAST op
3614         * src/SDCCsymt.c (compareType): void* type is castable to other
3615         pointers, but not necesarily an exact match.
3616         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
3617         is no longer blindly treated as an exact match.
3618         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
3619
3620 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
3621
3622         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
3623
3624 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
3625
3626         * src/pic/gen.c,
3627         * src/pic/pcode.c,
3628         * src/pic/ralloc.h,
3629         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
3630
3631 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
3632
3633         * src/pic/device.c,
3634         * src/pic/device.h,
3635         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
3636
3637 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3638
3639         * src/mcs51/gen.c (emitcode): fixed bug #992819
3640
3641 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
3642
3643         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
3644           there's no need to make it worse
3645
3646 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3647
3648         * src/mcs51/ralloc.c (deassignLR),
3649         * src/ds390/ralloc.c (deassignLR),
3650         * src/hc08/ralloc.c (deassignLR),
3651         * src/z80/ralloc.c (deassignLR),
3652         * src/pic/ralloc.c (deassignLR),
3653         * src/pic16/ralloc.c (deassignLR),
3654         * src/avr/ralloc.c (deassignLR),
3655         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
3656         rlivePoint): fixed another part of bug #971834
3657
3658 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3659
3660         * src/z80/main.c: enabled "critical" keyword
3661         * src/z80/mappings.i,
3662         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
3663         functions (fixes bug #979646)
3664         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
3665
3666 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3667
3668         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3669           such as c:\mydir.
3670
3671 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3672
3673         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3674           doesn't disable too much optimizations
3675
3676 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3677
3678         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3679
3680 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3681
3682         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3683
3684 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3685
3686         * src/pic/gen.c tidied up tabs
3687         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3688         * src/pic/main.c tidied up tabs
3689         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3690         * src/pic/pcoderegs.c tidied up tabs
3691         * src/pic/ralloc.c tidied up tabs
3692
3693 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3694
3695         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3696         to S_FIXED for pic16 port and when symbol is not in level 0,
3697         allocate for S_REGISTER storage class and pic16 port, too,
3698         * src/pic16/device.h: prototype for checkSym,
3699         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3700         * (pic16_assignConfigWordValue): test the value and the mask to
3701         validate that the value is suitable for the configuration word,
3702         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3703         collect extern declared symbols, don't emit symbol twice, check
3704         first if symbol is in publics set first,
3705         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3706         * added command line '--fstack' which enables an experimental
3707         feature for stack access, too buggy to be used yet...
3708         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3709         * (pic16_allocDirReg): when register has storage class S_REGISTER
3710         allocate in pic16_dynAccessRegs,
3711         * device/include/pic16/pic18f????.h: modified configuration word
3712         naming convention, words started as CONFIG0H but should be CONFIG1H
3713
3714 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3715
3716         * device/include/mcs51reg.h: fixed bug 970993
3717
3718 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3719
3720         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3721         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3722         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3723         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3724         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3725         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3726           error/warning numbers,
3727           added function setWarningDisabled()
3728         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3729         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3730           _memcmp.c _memmove.c calloc.c realloc.c free.c
3731         * support/regression/tests/malloc.c: added tests for new functionality
3732         * support/regression/tests/zeropad.c: added tests for truncated initializers
3733           and initialized char arrays starting with '\x0'
3734         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3735
3736 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3737
3738         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3739
3740 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3741
3742         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3743         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3744         peephole 177.e. Thanks to anonymous
3745
3746 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3747
3748         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3749         function isn't used in the source but referenced as a
3750         variable initializer then declare it as extern in .asm file
3751
3752 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3753
3754         * .version: increased version number to 2.4.3
3755
3756         Adding version extension according to ChangeLog CVS revision
3757         * src/Makefile.in (target all): added dependency 'version.h'
3758         * (rule version.h): added rule to create version.h from ChangeLog,
3759         * (rule dep): added dependency version.h,
3760         * src/version.awk: AWK script to create version.h
3761         * src/SDCCdwarf2.c (dwWriteModule),
3762         * src/SDCCglue.c (initialComments),
3763         * src/SDCCmain.c (printVersionInfo): modified to write after
3764         version string the version extension number,
3765         * src/SDCCutil.c: included "version.h"
3766         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3767         number,
3768         * src/SDCCutil.h: added prototype for getBuildNumber
3769
3770         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3771         includeDirsSet, too,
3772         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3773         const char [] is found in function prototype...
3774
3775         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3776         moving to WREG with source is already in WREG,
3777         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3778         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3779         * (aopForSym): stack'ed symbols are partially supported, added
3780         if-clause to support symbols in FARSPACE,
3781         * (sameRegs): added test for AOP_ACC to see if registers are same,
3782         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3783         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3784         * (pic16_popRegFromString): will not allocate a new register if it
3785         doesn't find one by name, bug may have introduced...
3786         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3787         * (genIpush): revived to use pic16 port's stack,
3788         * (genAddrOf): added incomplete case for stack'ed operand,
3789         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3790         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3791         can handle multibyte operands,
3792         * src/pic16/glue.c (pic16_printIval*): some debug info added,
3793         * (pic16initialComments): added message for MPLAB compatibility
3794         mode enabled,
3795         * src/pic16/main.h: prototype for pic16_mplab_comp,
3796         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3797         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3798         * (_pic16_linkEdit): NEW, handles link stage, transferred here
3799         because of increased complexity of procedure,
3800         * (_process_pragma): stack pragma changed to format 'stack pos len',
3801         emit symbol '_stack_end' to conform with gplink,
3802         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3803         to search for register,
3804         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3805         PO_GPR_REGISTER,
3806         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3807         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3808         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3809         case for PO_GPR_REGISTER,
3810         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3811         dies, the new era is ahead !...
3812         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3813         pic16_dynInternalRegs,
3814         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3815         * (pic16_allocDirReg): minor optimizations and bug fixes,
3816         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3817
3818         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3819         load stack and frame pointer with address of 'stack_end' symbol
3820
3821 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3822
3823         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3824         without source code but only variable initializers
3825
3826 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3827
3828         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3829         external are not declared as extern to reduce overhead while linking
3830
3831 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3832
3833         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3834
3835 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3836
3837         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3838           Yee Keat for the patch
3839         * src/SDCCast.c (decorateType): fixed bug #979599
3840         * src/ds390/gen.h: removed local fReturnSizeDS390
3841         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3842         * src/ds390/gen.c (genAnd, genOr, genXor),
3843         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3844
3845 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3846
3847         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3848         add relFilesSet to $3, manipulate $2 to handle linking of object
3849         files without source files in command line,
3850         * device/include/pic16 (all headers): added ID location macros,
3851         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3852         entries for ID location bytes,
3853         * (pic16_assignIdByteValue): NEW,
3854         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3855         added field dumpcalltree to pic16_options_t,
3856         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3857         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3858         emitting rFalseIfx label after check_carry label,
3859         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3860         pic16_emitDIRegs), NEW
3861         * (pic16glue): dump .calltree file when option --calltree found,
3862         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3863         * (_pic16_genAssemblerPreamble): emit ID locations after
3864         configuration registers,
3865         * (pic16_linkCmd): modifications of the link command,
3866         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3867         * (pic16_pCodeInitRegisters): don't init stack registers,
3868         * (pic16_findPrevInstruction): fixed bug,
3869         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3870         bug with immediate registers,
3871         * (buildCallTree): traces stack push and pop,
3872         * (pct2): dump also stack usage for each function,
3873         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3874         * (pic16_allocDirReg): various modifications,
3875         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3876         fixed to 1,
3877
3878 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3879
3880         * src/pic16/pcode.c: removed buggy double colon
3881
3882 2004-07-01 Borut Razem <borut.razem AT siol.net>
3883
3884         * support/scripts/sdcc.nsi: added include/pic16 to setup
3885
3886 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3887
3888         * device/lib/Makefile.in: fixed bug in target objects-pic16,
3889         * device/lib/pic16/Makefile: prefixed with dash (-) command under
3890         target 'clean',
3891         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3892         specific command line arguments. Also added sample lkr script
3893         for placing a variable at a specific memory bank.
3894         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3895         at a specific memory bank,
3896         * (pic16_dump_isection): fixed bug which caused string literals to
3897         be omitted when dumping idata section,
3898         * (pic16_groupRegistersInSection): added code to handle registers
3899         in specific memory banks,
3900         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3901         public, all references are renamed too,
3902         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3903         AOP_DPTR2,
3904         * (pic16_storeForReturn): added case to handle when dest is WREG,
3905         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3906         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3907         pic16_rel_udata, check to see if that register is marked as being
3908         a member of a specific memory bank,
3909         * (pic16_printIvalCharPtr): added code to add string literals either
3910         to code or the idata sections,
3911         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3912         also accept the 'udata' pragma,
3913         * src/pic16/main.h: new structure types sectName and sectSym
3914         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3915         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3916         * (pic16_findPrevInstruction): fixed, it returned nothing,
3917         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3918         instruction combinations,
3919         * (pic16_FixRegisterBanking): heavily reorganised,
3920         * (pic16_AnalyzeBanking): if generating banksel directives is
3921         disabled, then don't call FixRegisterBanking at all,
3922         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3923         completely removed,
3924         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3925
3926 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3927
3928         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3929         Phuah Yee Keat <yk.phuah AT nestac.com>
3930
3931 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3932
3933         * src/pic16/glue.c (pic16createInterruptVect): function now emits
3934         correctly the IVT even if it is relocated to some other location
3935
3936 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3937
3938         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3939         * device/include/pic16/pic18f2220.h: NEW,
3940         * device/lib/pic16/libdev/pic18f2220.c: NEW,
3941         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3942         * src/pic16/device.c (struct Pics16): added info for 18f2220,
3943         * src/pic16/device.h (struct pic16_options): added ivt_loc and
3944         nodefaultlibs, ivt_loc is the location of the interrupt vector
3945         table, and nodefaultlibs signs that default libraries should not be
3946         linked in link stage,
3947         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3948         according to --ivt-loc argument,
3949         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3950         when pragma stack is found,
3951
3952 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3953
3954         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3955         256 (range check), 257 (do while), 258.a-f (bit banging
3956         f.e. on 3-wire SPI bus)
3957
3958 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3959
3960         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3961         variables used exclusively within a loop
3962
3963 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3964
3965         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3966
3967 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3968
3969         * src/SDCClrange.c (computeClash): fixed bug #971834
3970
3971 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3972
3973         * src/mcs51/gen.c (genCmp): fixed bug #975903
3974         * src/hc08/gen.c (operandsEqu),
3975         * src/ds390/gen.c (operandsEqu),
3976         * src/z80/gen.c (operandsEqu),
3977         * src/pic/gen.c (operandsEqu),
3978         * src/pic16/gen.c (operandsEqu),
3979         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3980         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3981
3982 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3983
3984         * src/SDCCcse.c (cseBBlock): fixed bug #966963
3985
3986 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3987
3988         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3989         default case in switch statement,
3990         * glue.c (pic16_initPointer): expr is initialised via decoarteType
3991         to eliminate problem with initialisation of pointers, but problem
3992         still exists,
3993         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3994         * (emitStaticSegment): removed various lines emitting debug info,
3995         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3996         added processor registers for utilizing EEPROM,
3997         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3998         configurable and set 8
3999
4000 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4001
4002         * .version: increased version number to 2.4.2,
4003
4004         Cumulative patch for pic16 port
4005         * src/pic16/device.c: changed scheme to dump initial values for
4006         variables in idata segment, all print_idata* functions were removed,
4007         now the pic16_printIval* will be called,
4008         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4009         * _pic16_printPointerType, pic16_printPointerType,
4010         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4011         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4012         NEW, similar to the respective functions in SDCCglue.c,
4013         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4014         way, emitting hex bytes,
4015         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4016
4017 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4018
4019         * src/avr/ralloc.c (serialRegAssign),
4020         * src/xa51/ralloc.c (serialRegAssign),
4021         * src/pic/ralloc.c (serialRegAssign),
4022         * src/pic16/ralloc.c (serialRegAssign),
4023         * src/hc08/ralloc.c (serialRegAssign),
4024         * src/z80/ralloc.c (serialRegAssign),
4025         * src/ds390/ralloc.c (serialRegAssign),
4026         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4027
4028 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4029
4030         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4031         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4032
4033 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4034
4035         Cumulative patch for pic16 port:
4036         * src/pic16/device.h (typedef PIC16_device) modified fields for
4037         defining microcontrollers,
4038         * src/pic16/device.c: added new info for all devices in Pics16 array,
4039         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4040         to be optimised out by the pCode optimiser,
4041         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4042         specially, bug reported by G.M. Gallant,
4043         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4044         as force'd so that cannot be optimised out by pCode optimiser,
4045         * src/pic16/pcode.c,
4046         * src/pic16/pcodepeeph.c,
4047         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4048         they are disabled by default, but can be enabled explicit with
4049         command argument --denable-peeps, for testing,
4050         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4051         --pomit-ivt in COMPILE_FLAGS
4052
4053 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4054
4055         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4056           compilation on MSVC
4057
4058 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4059
4060         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4061
4062 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4063
4064         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4065         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4066
4067 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4068
4069         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4070         would only assign 0x300001 register.
4071
4072 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4073
4074         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4075         in COMPILE_FLAGS. Thanks to G. Gallant for report.
4076
4077 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4078
4079         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4080         for ds80c400
4081         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4082         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4083         added peephole 254 (left shift), 255 (jump table)
4084
4085 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4086
4087         * device/lib/Makefile.in: removed comment line with model-pic16,
4088         * (target port-specific-objects-pic16): the libraries and objects
4089         are copied to the build directory form the device/lib/pic16/bin
4090         directory
4091
4092         Cumulative patch concerning pic16 port:
4093         * library directory has been re-organized,
4094         * added support for PIC18F1220,
4095         * added headers and library sources for chips 18f1220,18f6520,
4096         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4097
4098         * configuration registers setting has changed, now each supported
4099         device has a complete description of the registers it uses,
4100         * all initialisations are moved to idata sections, these section
4101         can be absolute or relocatable,
4102         * fixed initialisation of codespace variables,
4103         * fixed warning about PCLATU and gpsim,
4104         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4105         * (genAssign): use table reads when assigning from variables in codespace,
4106         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4107         char/int variables placed in codespace,
4108         * (pic16_emitConfigRegs): NEW, emits a list with configuration
4109         registers set in .asm file, no need for --pomit-config-words anymore,
4110         * (pic16glue): some 8051 legacy segments are commented out
4111         (to be removed completely),
4112         * added support for alternative assembler and linker with --asm=
4113         and --link= command line arguments,
4114         * peepholes are disabled automatically in the port, no need to
4115         specify on command line,
4116         * port supports natively char/int/long multiplication, but converts
4117         all divisions to support functions,
4118         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4119         to the file set in variable $2,
4120         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4121         strings in ASCII format and not in hex,
4122         * ralloc.c (serialRegAssign): added a triplet of conditional calls
4123         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4124         allocate proper register if iCodes aren't temporary,
4125
4126 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4127
4128         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4129
4130 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4131
4132         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4133         is commented out
4134
4135 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4136
4137         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4138         computed address is reused
4139         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4140         multi-byte bitfields
4141
4142 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4143
4144         * src/z80/gen.c: (genArrayInit): must check for pointers too
4145
4146 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4147
4148         * support/regression/tests/zeropad.c: never meant to commit the
4149           nestedstruct test: removed, added check for GCC version
4150
4151 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4152
4153         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4154         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4155         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4156           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4157           bugs 928906 and 954082 half-empty initializers
4158         * src/SDCCsymt.h,
4159         * src/SDCCsymt.c (getAllocSize): added for above fix
4160         * src/z80/gen.c (genArrayInit): fixed bug 741044
4161         * support/regression/tests/zeropad.c: added tests
4162
4163 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
4164
4165         * src/pic16/device.c (pic16_dump_section): corrected bug which
4166         caused some symbols of the libraries to be misplaced
4167
4168 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4169
4170         * src/pic16/glue.c,
4171         * src/pic16/ralloc.h,
4172         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
4173         to fix conflict with pic port
4174
4175 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4176
4177         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
4178         externs configuration variables,
4179         * src/pic16/ralloc.h,
4180         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
4181         prototype in header, commented out some debug messages
4182
4183 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
4184
4185         * src/pic16/glue.c,
4186         * src/pic16/main.c,
4187         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
4188         for gpasm COFF object generation. Thanks to D. Hawkins for
4189         his patch info
4190
4191 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4192
4193         * src/ds390/main.c,
4194         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
4195         Brock for spotting this)
4196         * src/ds390/gen.c (genEndFunction),
4197         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
4198         interrupt handler and critical. Disable push/pop optimizations when
4199         peephole optimizations disabled.
4200
4201 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4202
4203         Updated pic16 library sources and headers.
4204         * device/lib/pic16/pic18f*/ ,
4205         * device/include/pic16/*.h: modified to handle structured SFR
4206         definitions
4207
4208 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4209
4210         * src/port.h (PORT structure): added hook initPaths, now each
4211         port can declare its own default search paths,
4212         which can been seen with the --print-search-dirs option,
4213         see pic16 port for example,
4214         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
4215         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
4216         * (doPrintSearchDirs): NEW, replaces in a central manner the
4217         printing of search dirs which was split in set*Paths functions,
4218         * (main): added call to port->initPaths and doPrintSearchDirs,
4219         * src/avr/main.c,
4220         * src/ds390/main.c,
4221         * src/hc08/main.c,
4222         * src/izt/i186.c,
4223         * src/izt/tlcs900h.c,
4224         * src/mcs51/main.c,
4225         * src/pic/main.c,
4226         * src/pic16/main.c: modified port structures to reflect addition of
4227         initPaths hook,
4228
4229         * src/pic16/device.c (regCompare): registers are finally sorted by name,
4230         * (pic16_dump_section): for registers in same address reserve memory once,
4231         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4232         to no_banksel,
4233         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4234         result is greater in size than right or left,
4235         * (pic16_genUMult8X8_8): there are some cases where the result can
4236         be 16 bits size, so handle these,
4237         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4238         * (pic16_outBitC): modified to emit pcodes,
4239         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4240         or not,
4241         * (genDivOneByte): implemented algorithm to divide 8-bits,
4242         * (genCmp): uncommented goto, but issues still exist,
4243         * (genAnd): fixed a bug with variables >8bits,
4244         * (genPackBits): optimization added that uses BCF/BSF to change a
4245         single bit,
4246         * (genAssign): fixed bug when assigning floating point literals,
4247         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4248         __sdcc_gsinit_startup label,
4249         * src/pic16/main.c (_pic16_init): removed search directory
4250         initialisations,
4251         * (_pic16_initPaths): NEW, used to initialise search directories,
4252         * (_hasNativeMulFor): support functions for all except char/int
4253         multiplication, and char division,
4254         * (PIC16_port struct): modified entry for native mul support,
4255         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4256         no_banksel option,
4257         * (buildCallTree): call to register_usage is ifdef'ed out,
4258
4259 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4260
4261         * device/include/string.h: applied Stas Sergeev's patch to make this
4262         header file compatible with the preprocessor -Wundef option
4263         * src/SDCCmain.c (main): abort compilation if preprocessor reports
4264         failure (fixes bug #941458)
4265
4266 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4267
4268         * src/SDCCopt.c (killDeadCode): fixed bug #907733
4269         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4270         that the variable, not the function, should be static
4271         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4272         to be consistent with non-literal case
4273
4274 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4275
4276         * src/SDCCast.c (isConformingBody): fixed bug #949967
4277         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4278         convilong): fixed bug #952086
4279
4280 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4281
4282         * src/SDCCmem.c (allocVariables): fixed bug #955321
4283
4284 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4285
4286         * src/hc08/main.c (_hc08_genAssemblerEnd),
4287         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4288         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4289         completely eliminated the use of a temporary file
4290         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4291         when more than one file linked
4292         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4293
4294 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4295
4296         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4297         which fixes bug #543481
4298         * support/regression/tests/bug-751703.c: fixed comments left from a
4299         cut and paste error
4300         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4301         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4302         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4303         scopes
4304         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4305         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4306         are now changed to underscores in moduleName
4307
4308 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4309
4310         * as/mcs51/lkmem.c: better fix for bug #954173
4311
4312 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4313         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4314
4315         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4316         * device/include/c8051f000.h,
4317         * device/include/c8051f120.h,
4318         * device/include/c8051f300.h,
4319         * device/include/c8051f310.h,
4320         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4321         PWM16) and detab'ed
4322
4323 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4324
4325         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4326         and mailing lists, doc'ed --no-peep-comments, removed reference
4327         to knoppix (newest version has no LyX/LaTeX), other minor changes
4328         * src/SDCCglue.c (glue): save 2 bytes stack space with
4329         option --main-return. The ljmp could probably be avoided too
4330
4331 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4332
4333         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4334
4335 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4336
4337         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4338         * src/SDCCopt.c (isLocalWithoutDef),
4339         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4340         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4341         (credit to Maarten Brock for patch #949363, on which this is based)
4342         * support/regression/tests/bug-751703.c: some test cases of extern used
4343         within inner scopes.
4344
4345 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4346
4347         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4348         SPEC_STRUCT
4349         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4350         struct definitions
4351         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4352         dwWriteLabel): fix to create valid debugger symbols even when
4353         the module name has non-alphanumeric symbols in it
4354         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4355         when a variable's allocation has been optimized away
4356
4357
4358 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4359
4360         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4361         * src/hc08/main.c,
4362         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4363         * src/mcs51/main.c,
4364         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4365         * src/ds390/main.c,
4366         * src/z80/gen.c (z80_emitDebuggerSymbol),
4367         * src/z80/main.c,
4368         * src/pic/gen.c (pic14_emitDebuggerSymbol),
4369         * src/pic/main.c,
4370         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4371         * src/pic16/main.c,
4372         * src/avr/gen.c (avr_emitDebuggerSymbol),
4373         * src/avr/main.c,
4374         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4375         * src/xa51/main.c,
4376         * src/SDCCdebug.c (emitDebuggerSymbol),
4377         * src/SDCCdebug.h,
4378         * src/port.h: added a debugger struct to the port struct. Added a
4379         callback for defining debugger symbols
4380
4381         * src/SDCCast.c (createLabel),
4382         * src/SDCC.y (labeled_statement): mark all compiler generated labels
4383         with isitmp = 1
4384         * src/SDCCicode.h,
4385         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4386         iCode back to the ast for the function
4387
4388         * src/hc08/ralloc.c (hc08_assignRegisters),
4389         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4390         unneeded fields from the regs struct.
4391         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4392         pushReg() & pullReg() functions instead of emitcode()
4393
4394         * src/hc08/gen.c (genLabel, genhc08Code),
4395         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4396
4397         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4398         debugger hooks
4399
4400         * src/hc08/gen.c (genEndFunction, genhc08Code),
4401         * src/hc08/gen.h,
4402         * src/mcs51/gen.c (genEndFunction, gen51Code),
4403         * src/mcs51/gen.h,
4404         * src/ds390/gen.c (genEndFunction, gen390Code),
4405         * src/ds390/gen.h,
4406         * src/z80/gen.c (genEndFunction, genZ80Code),
4407         * src/z80/gen.h,
4408         * src/z80/z80.h,
4409         * src/pic/gen.c (genEndFunction, genpic14Code),
4410         * src/pic/gen.h,
4411         * src/pic16/gen.c (genEndFunction, genpic16Code),
4412         * src/pic16/gen.h,
4413         * src/avr/gen.c (genEndFunction, genAVRCode),
4414         * src/avr/gen.h,
4415         * src/xa51/gen.c (genEndFunction, genXA51Code),
4416         * src/xa51/gen.h,
4417         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4418         specific code to cdbFile.c and out of the backend code generators
4419
4420         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4421         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4422         starting address is now 0
4423
4424         * as/hc08/asm.h,
4425         * as/hc08/m08pst.c,
4426         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4427         assembler directive for DWARF support
4428         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4429
4430         * src/src.dsp,
4431         * src/Makefile.in,
4432         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4433
4434 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4435
4436         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
4437         and inappropriate peephole optimization in jump tables
4438
4439 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4440
4441         * as/hc08/m08pst.c,
4442         * src/SDCCglue.c: sdccopt works for the hc08 port now
4443
4444 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
4445
4446         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
4447
4448 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4449
4450         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
4451
4452 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453
4454         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
4455         rules
4456         * src/SDCCmain.c,
4457         * src/SDCCglobl.h,
4458         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
4459         comments from the peephole optimizer replacement rules
4460         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
4461         symbols
4462         * src/SDCCcse.c (updateSpillLocation),
4463         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
4464         equivalents
4465         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
4466         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
4467         objects far pointers
4468
4469 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4470
4471         * src/SDCCsymt.h: a missing part of my last change
4472         * src/pic/ralloc.c (regTypeNum),
4473         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
4474
4475 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4476
4477         * src/SDCCicode.h,
4478         * src/SDCCicode.c (aggrToPtrDclType),
4479         * src/SDCCptropt.h,
4480         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
4481         ptrPseudoSymConvert),
4482         * src/pic/ralloc.c (regTypeNum),
4483         * src/pic16/ralloc.c (regTypeNum),
4484         * src/hc08/ralloc.c (regTypeNum),
4485         * src/ds390/ralloc.c (regTypeNum),
4486         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
4487         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
4488
4489 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4490
4491         * link/z80/lkmain.c (afile),
4492         * as/hc08/lkmain.c (afile),
4493         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
4494         prevent a pointer problem when a filename has no directory and
4495         no extension specified.
4496
4497 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4498
4499         * link/z80/lkmain.c (afile): allow periods in directory names
4500         * link/z80/lkmain.c (afile),
4501         * as/mcs51/lkmain.c (afile),
4502         * as/hc08/lkmain.c (afile): allow linker script file to have an
4503         extension other than ".lnk"
4504         * link/z80/lklex.c (getfid),
4505         * link/z80/lkmain.c (parse),
4506         * as/mcs51/lklex.c (getfid),
4507         * as/mcs51/lkmain.c (parse),
4508         * as/hc08/lklex.c (getfid),
4509         * as/hc08/lkmain.c (parse): Support comments in the linker script
4510         file on lines by themselves and after filenames
4511
4512 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4513
4514         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
4515
4516 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4517
4518         * src/z80/peeph-z80.def: removed some peephole rules that don't
4519         work with multibyte arithmetic (fixed bug #937126)
4520         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
4521         to registers and not global variables
4522         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
4523         geniCodePreInc, geniCodePostDec, geniCodePreDec,
4524         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
4525         checking for assignments not internally generated (fixed bug #931895)
4526         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
4527         structure member (fixed bug #930072)
4528
4529 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4530
4531         * src/SDCCmain.c (linkEdit),
4532         * src/hc08/main.c (_hc08_parseOptions),
4533         * as/hc08/Makefile.in,
4534         * as/hc08/aslink.h,
4535         * as/hc08/asm.h,
4536         * as/hc08/m08pst.c,
4537         * as/hc08/lkrloc.c (relr, rele),
4538         * as/hc08/lkarea.c (lnkarea)
4539         * as/hc08/lkmain.c (afile, parse),
4540         * as/hc08/lkelf.c: support for ELF output
4541         * as/hc08/lks19.c (s19),
4542         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
4543
4544 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4545
4546         * as/mcs51/lkihx.c: Fixed bug #899105.
4547
4548 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4549
4550         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
4551         .dsp files from Unix to DOS.
4552
4553 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4554
4555         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
4556         function pointers; we have been compliant for several months now.
4557         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
4558         change that was accidently commented out
4559         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
4560         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
4561         bug #922319
4562
4563 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4564
4565         * src/hc08/gen.c: output of all of the internal debugging information
4566         is now controlled by the D() macro; it is disabled by default
4567
4568 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4569
4570         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
4571         harder to keep the same registers during a CAST iCode
4572         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
4573         long via int can be done in a single cast, if the signedness is
4574         correct.
4575         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
4576         putchar() in tinibios.c in ds390's library
4577
4578 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4579
4580         * src/SDCCast.c (decorateType): fixed bug #898889,
4581         cast result of a literal complement too
4582         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
4583         fixed check for bitfields
4584
4585 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
4586
4587         * src/SDCCicode.c (geniCodeLogic): made it static,
4588         (geniCodeLogicAndOr): added in order to fix bug #905492,
4589         (ast2iCode): fixed bug #905492
4590         * support/regression/tests/bug-905492.c: added
4591         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
4592         (processParms): fixed bug #927659: don't copy parms, this will clear
4593         decorated flag
4594         * support/regression/tests/bug-927659.c: added
4595
4596 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4597
4598         * src/SDCCast.c (addCast): don't cast float to char
4599         * device/lib/libsdcc.lib: added _memmove
4600
4601 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
4602
4603         * device/lib/large/Makefile: fixed parallel execution by
4604         replacing `make` by `$(MAKE)`
4605
4606 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4607
4608         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
4609         offsets (fixes bug #923936)
4610
4611 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
4612
4613         * device/lib/small/Makefile: fixed parallel execution by
4614         replacing `make` by `$(MAKE)`
4615
4616 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4617
4618         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
4619
4620 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
4621
4622         * src/pic/gen.c (genCpl): multi-byte complements were not working.
4623         * src/regression/Makefile: Regression test was not running.
4624
4625 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4626
4627         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
4628         complement if possible
4629         * src/SDCCval.c (valComplement),
4630         * src/SDCCicode.c (operandOperation): fixed complement of literal
4631         * support/regression/tests/onebyte.c (testComplement): added
4632
4633 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
4634
4635         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
4636         return an optimized tree; actually replace actParm with the new tree
4637         * src/SDCCast.h: added some parantheses to remove side effects
4638         * support/regression/tests/bug-920866.c
4639
4640 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
4641         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
4642         Bit operands were not being handled properly in the pic14 port.
4643         (now src/regression/add.c passes again).
4644
4645 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4646
4647         * src/SDCC.y (labeled_statement): case and default no longer require
4648         a following statement (RFE #893037)
4649
4650 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4651
4652         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
4653         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
4654         disabled (fixes bug #916294)
4655         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
4656         "mov a,acc"; patch provided by Lenny Story
4657         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
4658
4659 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4660
4661         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
4662         functions
4663         * src/ds390/gen.c (genFunction, genEndFunction),
4664         * src/ds390/ralloc.c (ds390_assignRegisters),
4665         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
4666         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
4667         pushed if there are parameters passed on the stack. Also, a cleaner
4668         way to decide if r0/r1 should be pushed/popped. (Together they fix
4669         bug #918693)
4670
4671 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4672
4673         * doc/sdccman.lyx,
4674         * device/lib/mcs51/crtpagesfr.asm,
4675         * device/lib/mcs51/crtxinit.asm,
4676         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4677         to avoid confusion with Si Lab's SFRPAGE register.
4678
4679 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4680
4681         * src/SDCCglue.c (emitMaps): allow public sfr variables
4682         * src/SDCCglue.c (initialComments): include compiler build date
4683         with compiler version and put the timestamp of the generated
4684         assembly file on a serperate line to be less confusing.
4685         * src/port.h: added genInitStartup hook
4686         * src/avr/main.c,
4687         * src/ds390/main.c,
4688         * src/hc08/main.c,
4689         * src/pic/main.c,
4690         * src/pic16/main.c,
4691         * src/xa51/main.c,
4692         * src/z80/main.c: genInitStartup initialize as NULL (default to
4693         historical behaviour)
4694         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4695         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4696         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4697         library instead of hard coding it into the compiler.
4698         * support/regression/ports/mcs51-stack-auto/spec.mk,
4699         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4700         * device/lib/mcs51/Makefile,
4701         * device/lib/small/Makefile,
4702         * device/lib/large/Makefile,
4703         * device/lib/mcs51/crtpagesfr.asm,
4704         * device/lib/mcs51/crtstart.asm,
4705         * device/lib/mcs51/crtxclear.asm,
4706         * device/lib/mcs51/crtxinit.asm,
4707         * device/lib/mcs51/crtclear.asm,
4708         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4709         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4710         and into user configurable files.
4711         * device/lib/clean.mk: clean mcs51 directory too
4712         * support/regression/tests/longlit.c: added static to T1 declaration
4713         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4714         accesses in the initialization code
4715
4716 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4717
4718         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4719         OSCTRIMVAL as noted in bug #916008
4720
4721 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4722
4723         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4724         in loops with multiple exits (reported as incorrect registers
4725         used by Martin Helmling in Sdcc-user list)
4726
4727 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4728
4729         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4730         made ds390 register extensions look less like error messages
4731
4732 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4733
4734         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4735         reported by Adam Wozniak in Sdcc-user list
4736
4737 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4738
4739         * src/SDCCast.c (decorateType): fixed with bug and promotion in
4740         arithmetic optimizations, added debug output
4741
4742 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4743
4744         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4745         * sdcc.spec: updated and split sdcc into 3 rpms
4746         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4747         needed for literals of LEFT_OP and '+'
4748         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4749         introduced RESULT_TYPE_NOPROM
4750         (geniCodeMultiply): fixed logic for decision if mul is optimized to
4751         left shift
4752         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4753         limited promotion to int only for '*'
4754         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4755
4756 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4757
4758         * src/pic16/gen.c (genSkip),
4759         (genc16bit2lit), (gencjneshort): commented out
4760         (is_LitOp): new helper function, checks operand type
4761         (genCmpEq): rewritten
4762
4763 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4764
4765         * support/regression/tests/bug-908454.c: added
4766
4767 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4768
4769         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4770         * src/SDCCicode.c (usualBinaryConversions): op needs int type
4771         (geniCodeCast): cosmetic, don't preserve bit storage class
4772         (geniCodeLeftShift): added promotion
4773         (geniCodeLogic): fixed regression
4774         * src/SDCCsymt.c (computeTypeOr): accept bits too
4775         (compareType): 2nd part of fix for bug #908454, needed for bitfields
4776
4777 2004-03-07  Borut Razem <borut.razem AT siol.net>
4778
4779         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4780
4781 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4782
4783         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4784         version of pic16_genPackRegisters which does not check if ic is a
4785         CAST operator,
4786         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4787         function cause string1.c regression test fails
4788
4789 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4790
4791         * sim/ucsim/configure.in,
4792         * sim/ucsim/configure,
4793         * sim/ucsim/doc/Makefile.in: use docdir
4794         * src/SDCC.y: fixed sbit atrributes
4795         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4796         * src/SDCCast.c (decorateType): |^& need special promotion handling
4797         * src/SDCCast.h,
4798         * src/SDCCsymt.h: moved definition of RESULT_TYPE
4799         * src/SDCCsymt.h (computeType),
4800         * src/SDCCicode.c: computeType() needs op
4801         * src/SDCCsymt.c (checkTypeSanity),
4802         * doc/sddman.lyx: "plain" bitfields are unsigned
4803         * src/SDCCsymt.c (computeTypeOr): added
4804         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4805         |^& ops
4806         * src/SDCCval.c (val*): computeType() needs op
4807         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4808         * support/regression/tests/onebyte.c: added tests for |^&
4809
4810 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4811
4812         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4813         for writing icode into asm output.
4814
4815 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4816
4817         * src/pic16/device.c: added some debug lines enabled
4818         with macro DEBUG_CHECK,
4819         * src/pic16/genarith.c: more debug in genPlus,
4820         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4821         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4822         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4823         * (aopForSym): onStack symbols are re-placed in data memspace,
4824         and onStack flag is cleared,
4825         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4826         copy temporary pcodeop,
4827         * (genPcall): added warning for not updating PCLATU,
4828         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4829         always true for pic16 port,
4830         * (genMultOneWord): NEW, supports integer multiplication,
4831         * (genMult): modified to call genMultOneWord,
4832         * (ifxForOp): added warning when return NULL,
4833         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4834         flag is set before call to operandFromSymbol for implicit
4835         added structures,
4836         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4837         options.intlong_rent are set by default,
4838         * (_hasNativeMulFor): modified to allow port generation of integer
4839         multiplication,
4840         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4841         set regtype to REG_SFR for all registers, restricting seting the
4842         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4843
4844 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4845
4846         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4847         more than 500 times in the regression tests
4848
4849 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4850
4851         * support/Util/SDCCerr.h,
4852         * support/Util/SDCCerr.c,
4853         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4854         enumerator_list),
4855         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4856         for symbol conflicts.
4857         * support/valdiags/tests/enum.c,
4858         * support/valdiags/tests/tentdecl.c,
4859         * support/valdiags/tests/struct.c: expect possible error messages
4860         referring to original symbol definitions.
4861         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4862         * src/SDCCsymt.h,
4863         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4864
4865 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4866
4867         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4868
4869 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4870
4871         * src/pic16/ralloc.c (newReg): fixed bug #908929
4872
4873 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4874
4875         * src/ds390/gen.c: added missing #include "main.h"
4876
4877 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4878
4879         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4880         checking if symbol is already in set,
4881         * src/pic16/device.h: prototype for checkAddSym,
4882         * src/pic16/gen.c: (_G): added entry interruptvector,
4883         * (assignResultValue): removed some commented out lines,
4884         * (genFunction): check for ISR via sym->type, absolute section for
4885         interrupt code is created via a new pBlock, the goto instruction is
4886         placed now correctly at the interrupt vector position, changed all
4887         references from ivec to _G.interruptvector,
4888         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4889         is the interrupt is a high priority one, same for return from ISR,
4890         * src/pic16/glue.c: changed all calls of addSetHead for publics and
4891         externs to calls of checkAddSym,
4892         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4893         pic16_pcode_verbose flag is set,
4894         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4895         * src/pic16/pcoderegs.c: message about how many registers are saved
4896         will only be emitted if pic16_pcode_verbose flag is set,
4897
4898 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4899
4900         * src/ds390/ralloc.h,
4901         * src/ds390/ralloc.c (ds390_regWithIdx),
4902         * src/ds390/gen.c (emitcode),
4903         * src/ds390/main.h,
4904         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4905         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4906         ds390operandCompare, getRegsRead, getRegsWritten,
4907         initializeAsmLineNode): customized instruction size calculation for
4908         ds390, started basis for some register optimizations
4909         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4910         corresponding assembly output
4911         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4912         missing push/pop of r0/r1. Optimized push/pops
4913
4914 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4915
4916         * src/mcs51/main.c (instructionSize): fixed ACALL size
4917         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4918
4919 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4920
4921         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4922         the sorting of rlist with NULL elements
4923         * (print_idataType, print_idata): NEW to create idata sections
4924         * src/pic16/device.h: idataSymSet new variable
4925         * src/pic16/gen.c (genFunction): fixed some bugs in string
4926         comparing, improved the absolute section creation for ISRs,
4927         added FSR0L/FSR0H in registers that are saved in an ISR,
4928         * (genInline): fixed the processing of inline snippets,
4929         now they undergo no process by the peephole optimizer
4930         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4931         are placed in idataSymSet,
4932         * (pic16emitStaticSeg): extern symbols are added in externs,
4933         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4934         switching when aboslute variables are placed in access bank memory
4935         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4936         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4937         commented out with #if,
4938         * (pic16_packRegisters): reintroduce the check for CAST because some
4939         symbols are not correctly handled,
4940         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4941         pCodeInstruction instead of pCode,
4942         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4943         pCodeAsmDir definition,
4944         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4945         directive, then the argument directive is emitted without the leading
4946         tab, hack for inline labels which must be in the first column,
4947         * (compareLabel,pic16_findNextInstruction),
4948         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4949         * (insertBankSwitch): modified for the new pCodeAsmDir,
4950
4951 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4952         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4953
4954         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4955         instance,
4956         * (pushSide): commented out with #if,
4957         * (assignResultValue): fixed some typos in saving
4958         registers,
4959         * (genPcall): FIXED and sync'ed with genCall,
4960         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4961         * (genNearPointerGet): fixed to handle some more cases,
4962         implementation scheme via table reads,
4963         * (genConstPointerGet): modified to access code memory correct,
4964         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4965         and improved to handle some cases
4966         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4967         instead of "RETLW" for init data
4968         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4969         not IN_DIRSPACE, work around to reduce bank switching when aboslute
4970         variables are placed in access bank memory (<0x80 and >=0xf80),
4971         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4972         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4973         TBLWT_POSTDEC,TBLWT_PREINC
4974         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4975         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4976         directives
4977         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4978         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4979         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4980         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4981
4982 2004-02-29  Borut Razem <borut.razem AT siol.net>
4983
4984         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4985         support/Util/findme.h, support/Util/system.h: enhance binary relative
4986         search for lib and include by using findProgramPath()
4987
4988 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4989
4990         * src/SDCCpeeph.h,
4991         * src/SDCCpeeph.c (pcDistance),
4992         * src/port.h,
4993         * src/mcs51/ralloc.h,
4994         * src/mcs51/ralloc.c (mcs51_regWithIdx),
4995         * src/mcs51/main.h,
4996         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4997         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4998         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4999         size calculation port specific, started basis for some register
5000         optimizations
5001         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5002         missing push/pop of r0/r1. Optimized push/pops
5003         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5004         * device/lib/_modsint.c (_modsint),
5005         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5006         and stack version so regression tests pass
5007
5008 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5009
5010         * src/Makefile.in (dep): include SLIBOBJS in dependency check
5011         * src/SDCCast.c (decorateType): catch another small optimization
5012         with '?' operator
5013         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5014         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5015         modified to finally use computeType() all over SDCC,
5016         see Feature Request #877103
5017         * src/SDCCval.h: cosmetic
5018         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5019         valCompare(); regression tested in muldiv.c
5020         * support/regression/tests/muldiv.c (testMod): mod sign follows
5021         dividend only
5022
5023 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5024
5025         * src/SDCCast.c (decorateType): fixed bug #902362
5026         * doc/INSTALL.txt: fixed install instructions for win32
5027
5028 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5029
5030         * device/include/Makefile.in (install): fixed by replacing spaces
5031         by tabs
5032         * doc/README.txt,
5033         * doc/INSTALL.txt: updated for release
5034         * doc/sdccman.lyx: added warning for --xstack being buggy
5035
5036 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5037
5038         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
5039         to eliminate build warnings.
5040         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5041
5042 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5043            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5044
5045         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5046         removed -penable-stack, added comment for stack pragma, added
5047         warning for not initializing the stack/frame registers, removed
5048         comment at interrupts section
5049
5050         Stack is made permanent, there is no ability to disable stack usage.
5051         * src/pic16/device.h,
5052         * src/pic16/device.c: removed all references to USE_STACK macro,
5053         * src/pic16/device.c (pic16_dump_section): when no elements in
5054         rlist, free rlist before return,
5055         * (pic16_dump_int_registers): NEW, internal registers are a new set
5056         of general purpose registers reused by each function,
5057         * (checkAddReg): returns 1 if registers is added to set,
5058         * (pic16_groupRegistersInSection): when a registers is of type
5059         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5060         * src/pic16/device.h: memRange and Assigned Memory are deleted,
5061         SRCASECMP macro is moved here from device.c
5062         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5063         PO_PCLATU, PO_PRODL, PO_PRODH,
5064         * (pic16_pCodeOpType, genMinus,
5065         changed compares to "a" register, with AOP_ACC,
5066         * (pic16_genPlus): fixed some bugs and indented properly,
5067         * (pic16_addSign): changed size to size+offset in the MOVWF
5068         instruction,
5069         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5070         multiply 8-bit operand by literal, result is 8-bit,
5071         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5072         multiply 2 8-bit operand, result is 8-bit,
5073         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5074         genUMult8X*_16,
5075         * src/pic16/gen.c: changed accUse to contain WREG only,
5076         * (pic16_emitcomment): renamed to pic16_emitpcomment,
5077         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5078         true, do not use immediate addressing any more unless sym is a
5079         pointer in codespace,
5080         * (aopForRemat): do not use immediate addressing when symbol not in
5081         codespace and when symbol's address is requested,
5082         * (aopOp): for-loop in if(sym->accUse) is modified for the new
5083         accUse size (= 1),
5084         * (aopGet): added case for AOP_ACC and don't return "accumulator
5085         bug" but WREG instead,
5086         * (popGetTempReg): pushes contents of temporary register in stack,
5087         * (popReleaseTempReg): pops contents of temporary register from
5088         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5089         * (pic16_popGet): separated case AOP_ACC to return register WREG
5090         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5091         or PO_IMMEDIATE and initializes their instance/offset appropriately,
5092         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5093         the use of immediate pointers to certain cases only.
5094
5095         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5096         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5097         * (assignResultValue, genCall, genRet): modified to use the new
5098         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5099         genPcall is still broken,
5100         * (genFunction): added code to create 'A' type pBlocks when
5101         interrupt functions are generated, code not extensively tested yet,
5102         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5103         * (genEndFunction): modified so ISRs pop stored registers from stack,
5104         * (genMultOneByte): cleanup,
5105         * (AccRsh): added flag andmask, to and result with appropriate mask,
5106         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5107         * (genDataPointerGet): fixed and reenabled its use,
5108         * (genNearDataPointerGet): bugs fixed,
5109         * (genDataPointerSet): bugs fixed,
5110         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5111         pic16_DumpSymbol, pic16_DumpOp,
5112         * src/pic16/genutils.h: function prototypes for the above functions,
5113         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5114         pointers,
5115         * (pic16emitRegularMap): many many many improvements, but needs a
5116         major cleanup,
5117         * src/pic16/main.c: enable_stack in pic16_options is removed,
5118         * (_pic16_parseOptions): removed command line options -penable-stack,
5119         * (_process_pragma): emit stack symbol only when stack pragma is
5120         processed,
5121         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5122         redirected to FSR0L/FSR0H pair,
5123         * (pic16_get_op, pic16_get_op2): modifications and improvements,
5124         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5125         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5126         for immediates,
5127         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5128         * (dumpPicOptype): NEW,
5129         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5130         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5131         with movff instruction,
5132         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5133         added pic16_int_regs, some packRegsFor* functions are commented out,
5134         because produce errors,
5135         * src/pic16/NOTES: minor modifications
5136
5137 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5138
5139         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5140         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5141         --pack-iram.
5142         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5143         * as/mcs51/lkaomf51.c: fixed bug #895763
5144
5145 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5146
5147         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5148
5149 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5150
5151         * doc/sdccman.lyx: added details about the HC08 storage classes and
5152         interrupts, fixed the register usage info for z80 & gbz80
5153
5154 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5155
5156         * doc/sdccman.lyx: added more pic16 port documentation
5157         * device/include/pic16/: added header pic18fregs.h
5158
5159 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5160
5161         * doc/sdccman.lyx: added Vangelis' contribution
5162
5163 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5164
5165         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
5166         extend to the next CALL or PCALL, not just to the next CALL.
5167
5168 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
5169
5170         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
5171
5172 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5173
5174         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
5175         bug #895752 and a better fix for bug #716790
5176
5177 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5178
5179         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
5180
5181 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5182
5183         * doc/sdccman.lyx: minor changes, minor changed
5184
5185 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5186
5187         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
5188         which can't handle SDCC_NEWONEBYTEOPS,
5189         (geniCodeMultiply): removed conversion from mult to shift for pic14
5190         and pic16
5191
5192 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5193
5194         * src/hc08/gen.h,
5195         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
5196         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
5197         thus fixing bug #895406
5198
5199 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
5200
5201         * device/lib/_modsint.c,
5202         * device/lib/_modslong.c: sign follows divisor only
5203         * src/hc08/gen.c (genMultOneByte): if result size is 1,
5204         signs or signedness can be ignored
5205         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
5206         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
5207         added optimization for IFX,
5208         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
5209         arguments;
5210         reenabled optimization for IFX, which was removed on 2004-01-11
5211         * src/SDCCast.h: added return type IFX
5212         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
5213         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
5214         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
5215         SDCC_OLDONEBYTEOPS selects the old behaviour
5216         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
5217         changed again and commented promotion rule
5218         * src/SDCCval.c (valDiv): promotion no longer necessary
5219         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
5220         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
5221         rewritten
5222         * support/regression/tests/onebyte.c: added
5223
5224 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
5225
5226         * gen.c (genInline): reverted to old code for assemnling inline
5227         code because of bug reported James Chadd
5228
5229 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5230
5231         * ralloc.h: missing declarations from previous patch,
5232         seems that patch for ralloc.h was never applied, fixed
5233
5234 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5235            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5236
5237         * pcode.c,
5238         * pcode.h,
5239         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5240         indirect addressing. Marked FSR0 as deprecated
5241         * gen.c (pointerCode): commented out, not needed now
5242         (pic16_popGet2p): new MOVFF helper function
5243         (genGenPointerGet),
5244         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5245         (shiftRLong): removed duplicate debugging info
5246
5247 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5248
5249         * src/ds390/gen.c (genNearPointerGet),
5250         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5251         optimization with bits, but not bitfields.
5252         * src/ds390/ralloc.c (packRegisters),
5253         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5254
5255 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5256
5257         * src/SDCCcse.c (algebraicOpts): copy operands before modification
5258
5259 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5260
5261         * src/SDCCsymt.h,
5262         * src/SDCCicode.c (operandFromSymbol),
5263         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5264         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5265         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5266         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5267         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5268         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5269         bug #892038
5270         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5271         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5272         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5273         * src/SDCCsymt.c (newSymbol),
5274         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5275         enumerator_list),
5276         * src/SDCCval.h,
5277         * src/SDCCval.c (newiList): fixed bug #885705
5278
5279 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5280
5281         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5282         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5283
5284 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5285
5286         * device/include/c8051f120.h,
5287         * device/include/c8051f300.h,
5288         * device/include/c8051f310.h: added/updated header files for Silicon
5289         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5290         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5291         in new section Submitting patches
5292
5293 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5294
5295         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5296         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5297         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5298         genGenPointerSet),
5299         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5300         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5301         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5302         genGenPointerSet),
5303         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5304         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5305         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5306         genGenPointerSet),
5307         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5308         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5309         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5310         genGenPointerSet): fixed bug #892400
5311         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5312         to eliminate build warnings.
5313         * src/SDCCast.c (processParms),
5314         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5315         fixed bug 751859
5316         * support/valdiag/valdiag.py: added GCC to the list of defines active
5317         when compiling with gcc
5318
5319 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5320
5321         * support/Util/SDCCerr.h,
5322         * support/Util/SDCCerr.c,
5323         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5324         with an incomplete type (fixed bug #883734)
5325         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5326
5327 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5328
5329         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5330
5331 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5332
5333         * src/SDCCast.c (decorateType),
5334         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5335         function pointer implementation
5336         * support/regression/tests/funptrs.c: added tests to verify both forms
5337         of function pointers work correctly. Added tests to verify parameters
5338         are passed in the correct order.
5339
5340 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
5341
5342         * device.c (regCompare): registers are sorted by ascending
5343         address and increasing size,
5344         * main.c (_pic16_finaliseOptions): removed the declaration
5345         of compiler macro MCU. Now a macro of the format pic18fxxxx
5346         will be defined from the command line
5347
5348 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5349             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5350
5351         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5352         PCOP_RLCF was overwritten!
5353         * gen.c (genSkip): commented out calls to pic16_emitcode,
5354         * (genCmpEQ): fixed "long" compares, only high word did get compared,
5355         * (genlshTwo),
5356         * (genRRC): added debugging info,
5357         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5358         overwritten while shifting,
5359         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5360         overwritten while shifting,
5361         * (AccLsh),
5362         * (AccRsh),
5363         * (shiftLLeftOrResult),
5364         * (shiftRLeftOrResult),
5365         * (shiftRLong),
5366         * (shiftLLong): Implemented with pic16_emitpcode
5367         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5368         * (genLeftShift): Fixed bug, operand for shift by variable always
5369         was "and"ed with 0x0f,
5370         * (genLeftShiftLiteral),
5371         * (genrshTwo),
5372         * (genRightShiftLiteral): added debugging info,
5373         * (genrshFour): added comment,
5374         * (genRightShift): determined signedness from operand "left"
5375         instead of "result"
5376
5377 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5378
5379         * src/SDCCicode.c (geniCodeParms),
5380         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5381         function pointers, fixed function pointer bugs #861242 and #861896
5382
5383 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5384
5385         * device/include/c8051f000.h,
5386         * device/include/c8051f120.h,
5387         * device/include/c8051f300.h: added header files for Silicon
5388         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5389
5390 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5391
5392         * src/SDCCast.c (processParams): added new type flow and restructured
5393         (gatherAutoInit): added new type flow
5394         (addCast): cosmetic changes
5395         (getLeftResultType): added new type flow for array indices, patch
5396         provided by Stas, see FR #877103
5397         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5398         array index patch by Stas
5399         * src/SDCCast.h: added prototype getResultTypeFromType()
5400         * src/SDCCval.h,
5401         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5402         * src/pic/glue.c (pic14emitStaticSeg),
5403         * src/pic16/glue.c (pic16emitStaticSeg),
5404         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5405         for initialization of symbols
5406         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5407         * support/Util/SDCCerr.h:
5408         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5409         * .version: bumped version number to 2.3.8
5410         * device/include/Makefile.in (install),
5411         * doc/Makefile (install): changed to 'rm `find ...`' construct to
5412         avoid warnings
5413
5414 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5415
5416         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5417         Slade Rich fixed an optimization bug
5418         * src/pic/pcodepeep.c,
5419         * src/pic/pcoderegs.c
5420         * doc/Makefile (install): added test for directory
5421
5422 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5423
5424         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5425         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5426         * src/pic/ralloc.c (getRegPtr, getRegGpr),
5427         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5428         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5429         * as/mcs51/asexpr.c (term),
5430         * as/hc08/asexpr.c (term): fixed bug #887146
5431
5432 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5433
5434         * src/z80/gen.c (genMult): handle single byte result product
5435         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5436         DUMMY_READ_VOLATILE (fixed bug #886367)
5437
5438 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5439
5440         * support/regression/tests/libmullong.c: fixed logic, on little endian
5441         hosts we ended without a mullong_wrapper()
5442
5443 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5444
5445         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
5446         virus/worm forged address usage.
5447
5448 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5449
5450         Fixed promotion, it should be done on AST level:
5451         * src/SDCCast.c (addCast): added promotion to int
5452         (decorateType): updated call to upCast()
5453         * src/SDCCicode.c (geniCodeLeftShift): removed call to
5454         usualUnaryConversions()
5455
5456 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
5457
5458         * support/regression/tests/literalop.c (mulWrapper): Added a
5459         wrapper to remove integer overflow warnings.
5460
5461         * support/regression/tests/float_trans.c: Made work on host.
5462
5463         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
5464         location of sz80.
5465
5466         * support/regression/generate-cases.py (main): Changed from inline
5467         to a main method.
5468
5469         * doc/Makefile (install): Changed to depth first to get rid of
5470         missing directory install warning.
5471
5472         * as/Makefile (install-doc): Made work on Mac.
5473
5474 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
5475
5476         * src/SDCCast.c: added an additional type flow in decorateType() of
5477         opposite direction, see feature request #860006; it's enabled at runtime
5478         by setting the environment variable SDCC_NEWTYPEFLOW
5479         * src/SDCCast.h: changed prototype of decorateType()
5480         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
5481         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
5482         'char' to 'int' can be omitted, if both operands are 'unsigned char';
5483         see feature request #877103
5484         * src/SDCCval.c: updated call of decorateType()
5485         (valBitwise): fixed bug #882876
5486         (valMinus): added promotion
5487         (valLogicAndOr): result is unsigned
5488         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
5489         * src/SDCCsymt.c (computeType),
5490         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
5491         must not cause an unsigned operation
5492         * src/pic/glue (pic14emitRegularMap),
5493         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
5494
5495 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
5496
5497         * src/pic/pcode.c (PCodeID): commented out left over debug code
5498
5499 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5500
5501         * support/valdiag/tests/overflow.c: added shift tests
5502         * src/pic/device.c,
5503         * src/pic/gen.c,
5504         * src/pic/gen.h,
5505         * src/pic/glue.c,
5506         * src/pic/main.c,
5507         * src/pic/pcode.c,
5508         * src/pic/pcode.h,
5509         * src/pic/pcodepeep.c,
5510         * src/pic/pcoderegs.c,
5511         * src/pic/ralloc.c,
5512         * src/pic/ralloc.h: applied patch from Slade Rich;
5513         added support for multiple code pages and multiple RAM banks on the
5514         PIC 14 port. The ASM files now no longer simply assume all the
5515         code / RAM are in the same page / bank. This means the linker can
5516         safely allocate code/RAM of separate ASM files to different pages/banks.
5517         * doc/sdccman.lyx: added Slade's tips
5518         * src/mcs51/peeph.def: fixed bug #880768
5519
5520 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5521
5522         * src/hc08/ralloc.c (rematStr): fixed bug #879282
5523         * src/SDCCast.c (decorateType): fixed bug #880197
5524
5525 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
5526
5527         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
5528         getopt.h.
5529
5530         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
5531         strtof is not part of C89 and isn't included with Mac OS X.
5532
5533 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5534
5535         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
5536         shiftL2Left2Result): fixed bug #879326
5537         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
5538         (genMultOneByte): fixed bug in signed vs unsigned multiplication
5539         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
5540         address fetch for clr instruction
5541         * device/lib/hc08/_mulint.c: created optimized assembly version
5542         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
5543
5544 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5545
5546         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
5547         proposed in FR #877103
5548
5549 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5550
5551         * src/SDCCval.c (cheapestVal): added missing checks
5552         * src/SDCCicode.c (usualBinaryConversions): fixed condition
5553         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
5554
5555 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
5556
5557         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
5558         equal operands
5559
5560 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
5561
5562         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
5563         loaded with the linker search paths (-L arguments) and the libraries
5564         to be linked with the current source (-l arguments). Changes
5565         currently will affect only the pic16 port.
5566         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
5567         include path the port specific paths and port specific libraries,
5568         * gplink command now contains the $3 argument,
5569         * src/pic16/device.h,
5570         * src/pic16/device.c,: structure PIC_device is made public and
5571         renamed to PIC16_device, the same for variable Pics which is renamed
5572         to Pics16. Updated all references to them.
5573         * src/pic16/glue.c (pic16glue): corrected bug with code
5574         initialization which bypassed the variable initializations block.
5575
5576         * device/lib/pic16/Makefile.rules: removed --penable-stack from
5577         COMPILE_FLAGS and added the --nostdinc option
5578
5579 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5580
5581         * device/include/mc68hc908jb8.h: Register defs for another member
5582         of the hc08 family. Contributed by Bjorn Bringert - thanks!
5583
5584 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
5585
5586         Documenting changes from previous commits.
5587         * configure.in (version 1.56),
5588         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
5589         when generating output files to configure the pic16 library,
5590         but now I've commented it out, since gputils aren't installed in the
5591         SF compile farm, so library won't compile
5592
5593         * device/lib/Makefile.in (version 1.56): initially I've added in
5594         target 'all' the prerequestive 'model-pic16' so it compiled the
5595         pic16 library, but now I've commented it out for the same reasons
5596         above,
5597         * added targets 'model-pic16' and 'objects-pic16' to compile the
5598         library
5599         * added target 'port-specific-objects-pic16' to handle the
5600         generated libraries and copy them into the build/ directory
5601         * added target 'clean-intermediate-pic16' to clean intermediate
5602         files into pic16 directory
5603         * in target 'installdirs' added line to create directory pic16 in
5604         the installation path
5605
5606         * device/include/Makefile.in (version 1.11): in target 'install'
5607         added lines to copy all header files to installation path,
5608         * in target 'installdirs' added line create directory for pic16
5609         headers in the installation path
5610
5611 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
5612
5613         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
5614          a function call
5615
5616 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5617
5618         * configure,
5619         * device/lib/configure.in,
5620         * device/lib/configure: fixed for autoconf 2.57
5621
5622 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5623
5624         * src/z80/main.c (_parseOptions): fixed the portmode= command line
5625         option so that it actually works. Made it specific to the z80, since
5626         the gbz80 doesn't have these kinds of I/O ports.
5627
5628 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5629
5630         * device/include/z180.h,
5631         * device/lib/_memcpy.c,
5632         * device/lib/_memmove.c,
5633         * device/lib/_mulint.c,
5634         * device/lib/ser_ir.c,
5635         * device/lib/ser_ir_cts_rts.c,
5636         * device/lib/_strcmp.c,
5637         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
5638         * src/z80/main.c (_process_pragma): add support for pragmas bank and
5639         portmode; added deprecation warning for bank= and protmode= forms.
5640         Also, guard against buffer overflow.
5641         * src/z80/gen.c (aopGet): generate better code for sfr banked read
5642
5643 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5644
5645         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
5646         changed interrupt vector table generation to only emit declared vectors.
5647         * device/include/Makefile.in: added missing backslash
5648         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
5649
5650 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5651
5652         Mainly changes to support compilation of the device libraries
5653         * src/pic16/device.c: stack is allocated via symbol and not
5654         via literal number. The symbol is placed in the corresponding
5655         position of the data ram
5656         * (pic16_dump_section): relocatable and absolute uninitialized
5657         data are now emitted in sorted order to reduce section naming,
5658         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
5659         weren't marked as being in the access bank,
5660
5661 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5662
5663         Added portion of GNU PIC Library under the directory
5664         device/include/pic16 and device/lib/pic16. These files
5665         contain the declarations of SFRs for the PIC18Fxx2 devices.
5666         The directory is initialized via configure from toplevel.
5667
5668 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5669
5670         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5671         the spilllocations to be compared correctly
5672
5673 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5674
5675         * src/SDCCast.c (decorateType): fixed bug introduced today
5676
5677 2004-01-12  Borut Razem <borut.razem AT siol.net>
5678
5679         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5680         doc/sdccman.lyx: upper case pragmas are deprecated
5681
5682 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5683
5684         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
5685         in simpler and even better code
5686
5687 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5688
5689         * src/SDCCicode.c (operandOperation): fixed bug #874819
5690         * src/SDCCast.c (decorateType): fixed
5691         char foo (unsigned long ul) { return ul > 0; }
5692
5693 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5694
5695         * doc/sdccman.lyx: Moved and added some sections, small changes
5696         all over. Telling LaTeX to be less strict with word spacing
5697         to better keep the right margin. Changed some notes about
5698         maintainance of the ports in section 3.2.1 - is it OK like this?
5699
5700 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5701
5702         SDCC source changes:
5703         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5704         convilong): modified to inform the pic16 port that builtin functions
5705         are external
5706
5707         PIC16 PORT specific changes:
5708         * src/pic16/device.c pic16_dump_equates() added,
5709         processor registers declared internally by the port are emitted in
5710         the translation as equates,
5711         * src/pic16/gen.c: inline code is passed unprocessed to the
5712         translation,
5713         * (pic16_popGetLit2): fnuction modified to take second operand as
5714         pCodeOp pointer and not as literal,
5715         * (popRegFromIdx): prefixed with pic16_,
5716         * (pic16_popCombine2): modified to receive already allocated pCode
5717         operands,
5718         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5719         * (genFunction): initializes local stack frame and pushes on stack
5720         all the registers used by this function,
5721         * (genEndFunction): restores all registers from stack and restores
5722         stack frame,
5723         * src/pic16/glue.c (pic16emitRegularMap): various changes and
5724         improvements,
5725         * (pic16glue): changed the program startup sequence,
5726         * added new dbName code 'A' for functions placed in absolute section
5727         * src/pic16/main.c: added function attribute _naked,
5728         * added pragma 'code' to place a fnuction at an absolute address,
5729         * added command line arguments --debug-ralloc and --pcode-verbose,
5730         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5731         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5732         * (pic16_newpCodeOpLit2): modified to take the second operand as
5733         pCodeOp pointer,
5734         * (pic16_printpBlock): modified to emit each function in a separate
5735         section,
5736         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5737         UPPER for immediate operands,
5738         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5739         instruction,
5740         * src/pic16/peeph.def: all peepholes with movff are commented out,
5741         because there is a problem in the pcode peep optimizer,
5742         * src/pic16/ralloc.c: the register allocator can now reuse local
5743         function symbols for another function. This saves register usage.
5744         * src/pic16/ralloc.h: added flag isLocal in structure regs,
5745
5746         Added file src/pic16/NOTES with information about program writing on
5747         the current port version.
5748
5749 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5750
5751         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5752         and peephole 252 (array access)
5753
5754 2004-01-09  Borut Razem <borut.razem AT siol.net>
5755
5756         * src/SDCCmain.c : fixed #872250: -l command line defined library
5757           files are scanned before standard library files
5758
5759 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5760
5761         * src/SDCCast.c (decorateType): fixed bug #874046
5762
5763 2004-01-09  Borut Razem <borut.razem AT siol.net>
5764
5765         * support/scripts/sdcc.nsi: remove previous installation
5766
5767 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5768
5769         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5770         bytes for last interrupt vector (mcs51)
5771         * sdcc.spec: fixed typo
5772
5773 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5774
5775         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5776         gen51Code): more efficient parameter receive for --model-large
5777         ("bug" #845294)
5778
5779 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5780
5781         * src/ds390/main.c,
5782         * src/z80/main.c: added missed needLinkerScript flags (more than
5783         one port structure defined in these file)
5784         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5785         bug #795325
5786
5787 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5788
5789         * src/SDCCmain.c: removed various references to DEFAULT_PORT
5790         * src/port.h: added flag needLinkerScript in port->linker
5791         structure to inform whether to create a .lnk file or not,
5792         * src/avr/main.c,
5793         * src/ds390/main.c,
5794         * src/hc08/main.c,
5795         * src/mcs51/main.c,
5796         * src/pic/main.c,
5797         * src/pic16/main.c,
5798         * src/xa51/main.c,
5799         * src/z80/main.c: changed appropriately to configure
5800         needLinkerScript flag
5801         * src/pic/gen.c,
5802         * src/pic16/gen.c (genAddrOf): fixed bug #863624
5803         * src/pic/glue.c: added variable udata_section_name to
5804         override default uninitialized data segment definition for
5805         devices only with SHAREBANK memory (reported from Erik Epetrich)
5806         * (pic14emitOverlay): modified to emit a commented overlay segment
5807         directive when no overlay data exist
5808         * (picglue): modified to emit uninitialized data segment
5809         according to udata_section_name
5810         * src/pic/main.c (_pic14_parseOptions): added command line
5811         options --udata-section-name=[name] to override default
5812         udata definition name
5813         * modified _linkCmd and _asmCmd to include compiler passed
5814         arguments via -W option
5815         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5816         object file from '.rel' to '.o' in port->linker structure,
5817         changed size of fptr from 2 to 3 in port structure
5818
5819 2004-01-07  Borut Razem <borut.razem AT siol.net>
5820
5821         * support/scripts/sdcc.nsi: update PATH
5822         * support/scripts/sdcc.ico: craeted
5823
5824 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5825
5826         * device/include/Makefile.in: fix install
5827         * doc/Makefile: fix install
5828
5829 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5830
5831         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5832         in bug #860505
5833         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5834         how the function variable allocation summary is displayed; also
5835         include information about variables allocated to the overlay
5836         segment
5837
5838 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5839
5840         * as/mcs51/lkmain.c: Help about -Y option
5841         * as/mcs51/lkarea.c: Fixed gcc warnings
5842
5843 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5844
5845         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5846         fixed warning
5847         * support/valdiag/tests/overflow.c: added
5848         * src/SDCCast.c (decorateType),
5849         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5850         LEFT_OP (left shift)
5851
5852 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5853
5854         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5855         (default behaviour).
5856
5857 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5858
5859         A python script to validate compiler diagnostic messages. It can be
5860         used to verify that sdcc complains about bad c source code and
5861         gives a good location of the error.
5862         * support/valdiag/Makefile,
5863         * support/valdiag/valdiag.py,
5864         * support/valdiag/tests/*
5865
5866 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5867
5868         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5869         * src/SDCCsymt.c (newEnumType),
5870         * src/SDCCsymt.h
5871         * support/Util/SDCCerr.c,
5872         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5873         enum related bugs.
5874         * support/regression/tests/enum.c: added test for enum values that
5875         require at least 2 bytes of storage.
5876
5877 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5878
5879         * src/common.h: added ifndef/define/endif macros
5880         around the header file.
5881         Bug reported from Jesus Calvino-Fraga
5882
5883 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5884
5885         * sdcc.spec: updated
5886         * device/include/Makefile.in: don't install CVS directories
5887         * device/lib/Makefile.in: added removal of CVS directories after install
5888         * doc/Makefile: fixed install, added local_icons
5889         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5890         * src/mcs51/gen.c (genRightShift): fixed bug #870788
5891         * src/ds390/gen.c (genRightShift): fixed bug #870788
5892         * src/SDCCast.c (decorateType): fixed bug #870781
5893
5894 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5895
5896         PIC16 port related changes:
5897         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5898         added variable stackPos,
5899
5900         * gen.c: genCall, assignResultValue: added support for
5901         pushing/retrieving function parameters to/from stack,
5902         genFunction,genEndFunction: setup stack frame for the
5903         generated function,
5904         genAddrOf: will be changed according to bug 863624
5905
5906         * added files genutils.c and genutils.h which contain gen*
5907         debugged and optimised functions extracted from gen.c
5908
5909         * glue.c: added variable 'externs' which holds extern symbols,
5910         pic16emitRegularMap: is modified to properly handle relocatable
5911          symbols under the new scheme,
5912         pic16createInterruptVect: is modified
5913         pic16printPublics: is modified to emit 'global' assembler directives,
5914         added pic16_printExterns to print extern symbols,
5915         pic16glue: initializes stack/frame pointer in the beginning of
5916         the assembly output. Temporary hack, will be corrected later,
5917         because gplink yet does not support stack and SDCC does not
5918         yet support a type of crt0.o object to create the final binary.
5919
5920         * Removed many lines that contain 8051 legacy code.
5921         * The code is finally placed under a 'code' directive.
5922         * Added port specific options.
5923
5924         * _process_pragma: simplified since now we do not need *special*
5925         include file to define SFR registers. But a separate header
5926         will be needed. This will be developed later.
5927         * _pic16_parseOptions: added, parses port specific options:
5928         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5929         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5930         --preplace-udata-with=
5931
5932         * _pic16_setDefaultOptions: modified to initialize section names,
5933         but hack is temporarly out of order since it needs improvement.
5934         * _pic16_genAssemblerPreamble: configuration words are emitted by
5935         their address instead of their name. This part is incomplete and
5936         supports only the 18Fxx2 devices. Other devices will emit an error
5937         during assembly since they do not contain the same set of config
5938         registers
5939         * _pic16_genIVT: is modified,
5940
5941         * pcode.c: added definitions for some hardware registers that are needed
5942         for stack support
5943         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5944         All PCI entries are updated. Now LFSR is supported.
5945         * Removed pic16_pciTRIS is mentioned by mdubuc in source
5946         * added pic16_newpCodeOpLit2 to support instructions with
5947         two literal arguments
5948         * pic16_pCode2str: corrected code that emits assembler instructions
5949         with two literal operands and those that have an access bit modifier
5950         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5951         this fixes a bug which caused some labels to be lost, when an
5952         assembler directive was added, i.e. banksel,
5953         * pic16_FixRegisterBanking: improved logic that causes the insertion
5954         of bank switching,
5955         * InlineFunction: functions that are called once, are not any more
5956         inlined. This can be a port option in the future,
5957
5958         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5959
5960         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5961         hold the corresponding uninitialized symbols,
5962         * pic16_allocProcessorRegister: registers have explicit marked the
5963         accessBank field,
5964         * pic16_allocInternalRegister: registers are explicit marked as
5965         not used,
5966         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5967         processing list, so bit registers were lost,
5968         *
5969
5970         * ralloc.h: added field 'accessBank' and original symbol operand
5971         in register definition,
5972         * removed the field isMapped from register definition,
5973
5974         ** Several functions have been removed from various sources:
5975         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5976         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5977         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5978         pic16_assignRelocatableRegisters
5979
5980         ** others have been introduced:
5981         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5982         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5983
5984 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5985
5986         * support/scripts/inc2h.pl: changed definition of BIT_AT
5987         to emit 'sbit at' instead of 'bit at'. This was a request.
5988
5989         PIC16 port related preliminary changes:
5990         * gen.c: prefixed function popRegFromString with
5991         pic16_ and all references to it corrected
5992         * pcode.c: all pic16_pc_* hardware registers prefixed
5993         with underscore (_),
5994         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5995         * ralloc.c: newReg(): when register is REG_SFR then
5996         set address to rIdx,
5997         pic16_allocProcessorRegister(): marks register wasUsed=0
5998         pic16_writeUsedRegs(): added a call to assign processor
5999         registers via pic16_assignFixedRegisters
6000
6001 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6002
6003         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6004         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6005         variables in unused register banks.  Also the SSEG is placed
6006         wherever there is enough space for it, and IDATA can be anywhere
6007         in internal RAM.  For now compile using -Wl-Y[stack_size].
6008         The mem file is different for this option as well, since it
6009         makes no sense of talking about DSEG lenght.
6010
6011 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6012
6013         * src/SDCClrange.c: fixed bug 869095 that caused segfault
6014         in certain cases, e.g. when ROM assignment, patch provided
6015         from Albert den Haan.
6016
6017 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6018
6019         Many signedness and type propagation fixes:
6020         * src/SDCCicode.c: made geniCodeCast() static
6021         replaced SPEC_ by IS_ (cosmetic)
6022         (operandOperation): fixed div and mod operation
6023         (usualBinaryConversions): added support for promotion of char
6024         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6025         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6026         (geniCodeAdd): an array index will stay unsigned, even if promoted
6027         from char to int
6028         (geniCodeArray): ditto
6029         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6030         * src/SDCCsymt.c (computeType): added more support for char;
6031         promotion of char is selectable by promoteCharToInt, fixed signedness
6032         for all cases
6033         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6034         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6035         * src/SDCCval (val*): replaced signedness calculation by
6036         computeType()
6037         rearranged if-branches (cosmetic)
6038         (valShift): added warning W_SHIFT_CHANGED
6039         (valCompare): fixed problem with different types
6040         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6041         * support/regression/tests/literalop.c: added many cases
6042         * support/regression/tests/ast_constant_folding.c: changed finally to
6043         'unsigned int'
6044         * .version: new year, new version: 2.3.7
6045         * src/SDCCmain.c (main): applied patch #866468
6046         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6047         provided by Scott Bronson
6048         * doc/sdccman.lyx: updated documentation for sdcdb
6049         updated and added chapter tips
6050
6051 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6052
6053         * src/SDCCsymt.h: missing from yesterday's commits
6054
6055 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6056
6057         * src/SDCC.y (struct_or_union_specifier),
6058         * support/Util/SDCCerr.c,
6059         * support/Util/SDCCerr.h: verify that struct & union tags are used
6060         as declared.
6061
6062 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6063
6064         * src/SDCCglobl.h: missing from yesterday's commits
6065
6066 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6067
6068         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6069         sft_attributes, struct_declaration, parameter_declaration,
6070         type_name, start_block, declaration_list),
6071         * src/SDCC.lex (check_type): support redefinition of typedef names
6072
6073 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6074
6075         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6076         aligned xdata arrays. Erik helped me with the if clause.
6077
6078 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6079
6080         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6081         warning
6082
6083 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6084
6085         * src/SDCCast.h,
6086         * src/SDCCast.c (newAst_),
6087         * src/SDCCicode.h,
6088         * src/SDCCicode.c (ast2iCode, newiCode),
6089         * src/SDCCglobl.h,
6090         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6091         expr, statement, expression_statement, selection_statement,
6092         iteration_statement, expr_opt, jump_statement): foundation for tracking
6093         sequence points
6094         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6095         point code too)
6096
6097 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6098
6099         * support/Util/SDCCerr.c,
6100         * src/SDCCast.h,
6101         * src/SDCCast.c (createCase, createDefault, decorateType),
6102         * src/SDCClabel.c (labelUnreach),
6103         * src/SDCC.y (labeled_statement, jump_statement): More improvements
6104         to error messages.
6105         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6106         (with thanks to Stas Sergeev)
6107         * device/include/time.h,
6108         * device/lib/time.c (CheckTime): suppress unreachable code warning
6109
6110 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6111
6112         * src/SDCCast.c (createIvalCharPtr),
6113         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6114         bug #753752)
6115         * support/regression/tests/nullstring.c: tests for these two bugs
6116
6117 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6118
6119         * support/Util/SDCCerr.h,
6120         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6121         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6122         about storage class and 'at' used inside struct or union
6123         * src/SDCCBBlock.c (iCodeFromeBBlock),
6124         * src/SDCCcse.c (ifxOptimize),
6125         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6126         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6127         printIval, emitStaticSeg, emitOverlay),
6128         * src/SDCClabel.c (deleteIfx),
6129         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6130         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6131         gatherAutoInit, processParms),
6132         * support/Util/SDCCerr.h,
6133         * support/Util/SDCCerr.c (werrorfl): Support for better error location
6134         reporting for post-parse errors.
6135
6136 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6137
6138         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6139         implicit casts via union; they don't work on big endian systems
6140         (possible fix for bug #861138)
6141
6142 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6143
6144         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6145         * src/mcs51/main.c: fixed the fix for bug #737001
6146
6147 2003-12-15  Borut Razem <borut.razem AT siol.net>
6148
6149         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6150
6151 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6152
6153         * support/makebin/makebin.c: put output in binary mode
6154
6155 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6156
6157         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6158         xdata and data memory on startup. Set the environment variable
6159         SDCC_NOGENRAMCLEAR to disable this.
6160         * src/mcs51/peephole.def,
6161         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6162         (allows non-interrupt and interrupt code to safely compete for a resource
6163         without the non-interrupt code having to disable interrupts)
6164
6165 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6166
6167         * src/SDCCicode.c (geniCodeAdd),
6168         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
6169         with valFromType if type might be a pointer and host is big endian).
6170         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
6171         types, not just integer types.
6172         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
6173         multiply defined with mismatching "at" address.
6174
6175 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6176
6177         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
6178         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
6179         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
6180         with embedded nulls (fixed bug #753752)
6181
6182 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6183
6184         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
6185         Apparently this did not see much testing (endless loop)
6186
6187 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6188
6189         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
6190
6191 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6192
6193         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
6194         gracefully handle NULL memmap pointers
6195
6196 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6197
6198         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
6199         instead of deleting the iCode when an operand is volatile
6200         * src/z80/gen.c (genDummyRead),
6201         * src/mcs51/gen.c (genDummyRead),
6202         * src/ds390/gen.c (genDummyRead),
6203         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
6204         not just IC_RIGHT
6205         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
6206         * src/SDCC.y: fixed bug #850420
6207
6208 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6209
6210         Applied z80 i/o port patch from Peter Townson and fixed some operators
6211         to better handle operands in A register.
6212         * device/include/z180.h
6213         * src/SDCC.y
6214         * src/SDCCglue.c
6215         * src/z80/gen.c
6216         * src/z80/gen.h
6217         * src/z80/main.c
6218         * src/z80/peeph-z80.def
6219         * src/z80/peeph.def
6220         * src/z80/z80.h
6221
6222 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6223
6224         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
6225
6226 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6227
6228         * device/lib/hc08/_mullong.c: Removed extra #endif
6229
6230 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6231
6232         * sim/ucsim/hc08.src/inst.cc,
6233         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6234         carries from x to h
6235         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6236         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6237         * device/include/stdarg.h: fixed varargs for hc08
6238         * device/lib/Makefile.in,
6239         * device/lib/hc08/Makefile,
6240         * device/lib/hc08/_mulint.c,
6241         * device/lib/hc08/_mullong.c: fixed some endian problems
6242
6243 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6244
6245         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6246         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6247         * device/lib/_gptrget.c,
6248         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6249
6250 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6251
6252         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6253         * src/SDCCast.c (astErrors): fixed bug #846007
6254         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6255
6256 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6257
6258         * src/SDCCast.c (decorateType): disabled a transformation I added in
6259         revision 1.188 (access to fields of a structure at an absolute address);
6260         it breaks with bitfields, extern declarations, and gcse analysis.
6261         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6262         could be assigned through a pointer, so don't complain.
6263         * src/SDCCast.c (astErrors),
6264         * src/SDCCast.h,
6265         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6266
6267 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6268
6269         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6270         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6271         output of __config directives, since gpasm now supports them
6272         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6273         pre-processor macro, i.e. -DMCU=p18f452
6274         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6275         and modified to handle 'cast' icode similarly to '=' icode
6276         * src/pic16/device.h (typedef struct PIC_device): added field
6277         'extMIface' to indicate that chip has external memory interface
6278         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6279         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6280         18F8720
6281
6282 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6283
6284         * src/SDCC.y (pointer): fixed bug #846006
6285         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6286         * src/SDCCast.c (decorateType): fixed bug #846009
6287         * src/ds390/peeph.def,
6288         * src/ds390/gen.c (genAnd, genOr),
6289         * src/mcs51/peeph.def,
6290         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6291
6292 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6293
6294         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6295         * src/SDCCdflow.c
6296         * src/SDCCcse.c
6297         * src/SDCCcse.h
6298         * src/SDCCBBlock.h
6299         * src/SDCCBBlock.c
6300
6301 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6302
6303         fixed bug #845089
6304         * src/SDCCbitv.h,
6305         * src/SDCCbitv.c: added function to free a bitvector
6306         * src/SDCClrange.h,
6307         * src/SDCClrange.c: added function to recompute the liveranges
6308         * src/avr/ralloc.c,
6309         * src/ds390/ralloc.c,
6310         * src/hc08/ralloc.c,
6311         * src/mcs51/ralloc.c,
6312         * src/pic/ralloc.c,
6313         * src/pic16/ralloc.c,
6314         * src/xa51/ralloc.c,
6315         * src/z80/ralloc.c: recompute the liveranges after register packing
6316
6317 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6318
6319         * src/SDCCloop.c (newInduction): fixed bug #845630
6320
6321 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6322
6323         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6324         inadvertantly left behind from my 2003-11-12 change
6325
6326 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6327
6328         Updated headers I neglected to commit yesterday.
6329         * src/SDCClrange.h,
6330         * src/SDCCicode.h
6331
6332 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6333
6334         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6335         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6336         * src/SDCCopt.c (eBBlockFromiCode),
6337         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6338         the creation of the key hash table from the sequencing so it can be used
6339         earlier (for some GCSE bug fixes still pending)
6340
6341 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6342
6343         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6344         * support/regression/tests/addsub.c: testing genPlus shortcut
6345
6346 2003-11-15  Borut Razem <borut.razem AT siol.net>
6347
6348         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6349
6350 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6351
6352         * src/SDCCcse.c (cseBBlock): fixed bug #527779
6353         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6354         ordering is immaterial.
6355         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6356
6357 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6358
6359         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6360         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6361         (SIGSEV) of bug #840381
6362         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6363         unlink new file before rename if new and old filenames are the same)
6364
6365 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6366
6367         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6368         uninitialized variables) for the mcs51. Set environment variable
6369         SDCC_GENRAMCLEAR to test.
6370         xdata initialization slightly shorter
6371
6372 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6373
6374         * src/SDCCsymt.h,
6375         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6376         #838241 & 780691 (basicly the same bug)
6377         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6378         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6379
6380 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6381
6382         * src/SDCCmain.c (linkEdit): "fix" #834252
6383
6384 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6385
6386         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6387         * src/SDCCast.h,
6388         * src/SDCC.y: fixed bug #819403
6389
6390 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6391
6392         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6393         the reentrant attribute.
6394         * src/hc08/gen.c (genPackBits): added missing stack readjustment
6395         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6396         simulation
6397         * src/SDCCast.c (decorateType): fixed bug with storage class not being
6398         updated during pointer dereference; f.e. ~(((char *)1)*) was being
6399         erroneously reduced to a literal.
6400         * src/hc08/ralloc.c (packRegisters, rematStr),
6401         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6402         some cases
6403
6404 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6405
6406         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6407         * doc/sdccman.lyx: changed from 'article' to 'book'
6408         * doc/Makefile: readded test_suite_spec and cdbfileformat
6409
6410 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6411
6412         * device/include/stdlib.h: include malloc.h to comply with ANSI
6413         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6414
6415 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6416
6417         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6418         * doc/clean.mk: also remove *.out files
6419         * doc/sdccman.lyx: some additions, larger top/bottom margins
6420
6421 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6422
6423         * src/SDCC.y: fixed bug #837365
6424         * support/regression/tests/bitopcse.c
6425         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6426         a symbol (might be valop instead)
6427         * device/lib/Makefile.in: added errno.c to HC08SOURCES
6428         * device/lib/clean.mk: added hc08 to the cleaning list
6429
6430 2003-11-04  Borut Razem <borut.razem AT siol.net>
6431
6432         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6433           made 2003-11-04
6434         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6435           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6436           malloc is declared in standard stdlib.h
6437
6438 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6439
6440         * device/lib/hc08/Makefile: need to clean .rel not .o files
6441         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
6442
6443 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6444
6445         * src/port.h,
6446         * src/hc08/main.c,
6447         * src/mcs51/main.c,
6448         * src/ds390/main.c,
6449         * src/z80/main.c,
6450         * src/avr/main.c,
6451         * src/pic/main.c,
6452         * src/pic16/main.c,
6453         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
6454         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
6455         tests (which uses the port's oclsExpense function)
6456         * src/SDCC.y,
6457         * src/SDCCast.c,
6458         * src/SDCCicode.c,
6459         * src/hc08/gen.c,
6460         * src/ds390/gen.c,
6461         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
6462
6463 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6464
6465         * src/SDCCcse.c (ifxOptimize),
6466         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
6467         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
6468         deleting the IFX iCode.
6469         * src/hc08/ralloc.c: reduced unneeded slocs
6470         * src/hc08/gen.c: fixed bug in asmopToBoolean
6471
6472 2003-11-04  Borut Razem <borut.razem AT siol.net>
6473
6474         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
6475           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6476           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
6477           transferred to configure
6478
6479 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
6480
6481         Use headers defined in the C[++] standards:
6482         * sim/ucsim/gui.src/serio.src/fileio.cc
6483         * sim/ucsim/gui.src/serio.src/frontend.cc
6484         * sim/ucsim/gui.src/serio.src/main.cc
6485         * sim/ucsim/gui.src/serio.src/posix_signal.cc
6486         * support/Util/NewAlloc.c
6487         * as/hc08/lklibr.c
6488         * as/mcs51/lklibr.c
6489         * as/z80/aslist.c
6490         * as/z80/assym.c
6491
6492 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6493
6494         * Added MSVC projects for hc08 assembler and linker:
6495         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
6496         /as/hc08/link_hc08.dsp
6497
6498 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
6499
6500         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
6501
6502 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
6503
6504         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
6505
6506 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6507
6508         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
6509
6510 2003-10-31  Borut Razem <borut.razem AT siol.net>
6511
6512         * support/cpp2/cpplib.h,
6513           support/cpp2/cpplib.c,
6514           support/cpp2/cpplex.c,
6515           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
6516           to switch _asm block preprocessing on / off. Default is
6517           #pragma preproc_asm +
6518
6519 2003-10-31  Borut Razem <borut.razem AT siol.net>
6520
6521         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
6522           when outputting comment blocks (when executed with -C option) and
6523           _asm (SDCPP specific) blocks
6524
6525 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6526
6527         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
6528
6529 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
6530
6531         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
6532
6533 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
6534
6535         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
6536         * src/SDCCast.c (decorateType): fixed bug #832664
6537
6538 2003-10-31  Borut Razem <borut.razem AT siol.net>
6539
6540         * support\cpp2\cpplex.c: fixed for SDCPP:
6541           comments(when executed with -C option) and _asm blocks
6542           were included even if they where in skipped #if block.
6543           Applied solution from GCC cpp 3.3.2
6544
6545 2003-10-31  Borut Razem <borut.razem AT siol.net>
6546
6547         * src/SDCC.lex: sdcc now understands both formats:
6548           '# <line_number> <file_name>' and
6549           '#line <line_number> <file_name>'
6550         * support/cpp2/cppmain.c: sdcpp now generates the standard
6551           '# <line_number> <file_name>' instead of former
6552           '#line <line_number> <file_name>'
6553
6554 2003-10-30  Borut Razem <borut.razem AT siol.net>
6555
6556         * support/cpp2/cpphash.h,
6557         * support/cpp2/cpplib.h
6558         * support/cpp2/cpplex.c,
6559         * support/cpp2/cppmain.c,
6560         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
6561
6562 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6563
6564         Fixed a number of problems revealed by bug #827883.
6565         * src/SDCCloop.c (loopInvariants): Spill location of the
6566         result operand should be recomputed if extracted from
6567         a loop. Also, don't extract assignments of an iTemp
6568         from a literal.
6569         * src/SDCCast.c (isConformingBody): loop reversal should
6570         not occur if the control variable is involved with a
6571         relational operator.
6572
6573 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6574
6575         * .version: bumped to 2.3.6 to reflect the big improvements
6576         made by Erik and Klaus. Thanks!
6577
6578 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
6579
6580         Replaced the livrange code.
6581         * src/SDCClrange.c: added new LR code
6582         * src/SDCCloop.c,
6583         * src/SDCCBBlock.h: removed remainig parts from old LR code
6584         * src/ds390/ralloc.c,
6585         * src/ds390/gen.c: minor fixes to make it work with new code
6586
6587 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6588
6589         * as/hc08/asm.h,
6590         * as/hc08/lkrloc.c,
6591         * src/hc08/gen.c,
6592         * src/hc08/ralloc.c: Fix various warnings related to the hc08
6593         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
6594         (tweaked fix for bug #818696)
6595
6596 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6597
6598         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
6599
6600 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6601
6602         * src/SDCCmain.c,
6603         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
6604         * src/mcs51/gen.c (gencjneshort),
6605         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
6606         more efficient (per Scott Bronson's suggestion)
6607
6608 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6609
6610         Extended the semantics of the critical keyword to include
6611         individual statements. See RFE #827755 and #799831
6612         * src/SDCC.y
6613         * src/SDCCicode.c
6614         * src/SDCCopt.c
6615         * src/SDCCast.c
6616         * support/Util/SDCCerr.c
6617         * support/Util/SDCCerr.h
6618         * src/mcs51/gen.c
6619         * src/ds390/gen.c
6620         * src/hc08/gen.c
6621
6622 2003-10-19  Borut Razem <borut.razem AT siol.net>
6623
6624         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
6625
6626 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6627
6628         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
6629         Fixed bug #818696
6630         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
6631         and predecrement operand is displayed
6632
6633 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6634
6635         * src/SDCCval.c (valMinus): fixed bug #826041
6636
6637 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6638
6639         Some hc08 related updates that I missed earlier
6640         * sim/ucsim/stypes.h
6641         * support/regression/ports/hc08/spec.mk
6642
6643 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6644
6645         New target "hc08" for the Motorola 68hc08 family of micros
6646
6647         * configure
6648         * configure.in
6649         * Makefile
6650         * src/hc08/*
6651         * src/SDCCmain.c
6652         * src/port.h
6653         * sim/ucsim/hc08.src/*
6654         * sim/ucsim/configure.in
6655         * src/ucsim/configure
6656         * sim/ucsim/packages_in.mk
6657         * as/hc08/*
6658         * as/Makefile
6659         * device/include/mc68hc908qy.h
6660         * device/lib/hc08/*
6661         * device/lib/Makefile.in
6662         * support/regression/ports/hc08/*
6663         * support/regression/Makefile
6664
6665 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6666
6667         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
6668         regression test
6669         * src/ds390/gen.c (genCast): fixed bug #821957
6670
6671 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6672
6673         * device/lib/logf.c: "fixed" overlay bug
6674         * support/regression/ports/host/spec.mk: added m library
6675         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6676         * support/regression/tests/float_trans: added (for Eric)
6677
6678 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6679
6680         * src/mcs51/gen.c (genCpl): fixed bug
6681         http://sf.net/mailarchive/message.php?msg_id=6263915
6682
6683 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6684
6685         * src/SDCCast.c (decorateType): added extended constant folding
6686         * src/SDCCsymt.c (computeType): cleanup
6687         * src/SDCCval.c (valShift): minor optimization
6688         * support/regression/tests/ast_constant_folding.c: added
6689
6690 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6691
6692         * src/SDCCmain.c: removed some unintended changes
6693
6694 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6695
6696         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6697         * src/z80/gen.c: fixed part of bug #817589
6698         * src/SDCCsymt.c (checkFunction): fixed bug #817895
6699
6700 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6701
6702         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6703         * src/SDCCcflow.c
6704         * src/SDCCcse.c
6705         * src/SDCCdflow.c
6706         * src/SDCClabel.c
6707         * src/SDCClrange.c
6708         * src/SDCCmem.c
6709         * src/SDCCopt.c
6710         * src/SDCCpeeph.c
6711         * src/SDCCset.c
6712         * src/avr/ralloc.c
6713         * src/ds390/ralloc.c
6714         * src/izt/ralloc.c
6715         * src/mcs51/ralloc.c
6716         * src/pic/ralloc.c
6717         * src/pic16/ralloc.c
6718         * src/xa51/ralloc.c
6719         * src/z80/ralloc.c
6720         * src/z80/gen.c: removed unused label "release:"
6721
6722 2003-10-06  Borut Razem <borut.razem AT siol.net>
6723
6724         * src/SDCC.lex: removed definition of unused variables
6725           save_optimize and save_options
6726
6727 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6728
6729         * clean.mk: removed '=' in "-maxdepth=1"
6730         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6731         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6732
6733 2003-10-06  Borut Razem <borut.razem AT siol.net>
6734
6735         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6736           my_unput() replaced by unput()
6737
6738 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6739
6740         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6741         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6742         type-punned pointer will break strict-aliasing rules"
6743         Old LR behaviour is again default; Klaus' LR can be choosen by
6744         defining the environment variable LRKLAUS
6745         * src/SDCCBBlock.h
6746         * src/SDCCloop.c
6747         * src/SDCClrange.c
6748         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6749         * clean.mk: fixed removal of files in bin/CVS/
6750         * device/lib/clean.mk: fixed removal of directories small and large
6751         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6752         * src/SDCCicode.c,
6753         * src/SDCCval.c: removed superflous test for pedantic
6754
6755 2003-10-05  Borut Razem <borut.razem AT siol.net>
6756
6757         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6758           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6759           message "unmatched #pragma SAVE and #pragma RESTORE"
6760
6761 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6762
6763         * doc/sdccman.lyx: various additions and updates (interrupts, inline
6764           assembly, critical functions, atomic, nojtbound)
6765
6766 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6767
6768         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6769         * src/SDCCBBlock.h
6770         * src/SDCCloop.c
6771         * src/SDCCloop.h
6772         * src/SDCClrange.c
6773
6774 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6775
6776         * src/z80/gen.h,
6777         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6778         * src/mcs51/gen.h
6779         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6780         * src/ds390/gen.h
6781         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6782         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6783         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6784
6785 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6786
6787         * src/z80/gen.c (genRet): fixed bug #524753
6788         * src/z80/gen.c (genCast): fixed internal error on cast from
6789         pointer to long
6790         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6791         fix for bug #477835 to the z80
6792         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6793         for tracking iCodes in the peephole optimizer for z80
6794
6795 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6796
6797         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6798         the other part of bug #814548
6799         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6800
6801 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
6802
6803         * src/SDCCcse.c: fixed part of bug #814548
6804
6805 2003-09-28  Borut Razem <borut.razem AT siol.net>
6806
6807         * src/asm.c: rewrite of printILine() to use temporary file instead
6808           a pipe
6809         * src/xa51/main.c: commented out declaration of int rewinds
6810
6811 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6812
6813         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6814
6815 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6816
6817         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6818         * src/asm.c (printILine): Fixed bug #811015
6819
6820 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6821
6822         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6823         freeing.
6824
6825 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6826
6827         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6828         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6829         to correctly handle general case of AOP_PAIRPTR
6830         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6831
6832 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6833
6834         * src/mcs51/ralloc.c (fillGaps),
6835         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6836         register positioning bug)
6837
6838 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6839
6840         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6841
6842 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6843
6844         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6845         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6846         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6847         (ralloc doesn't intentionally do this now, but perhaps later)
6848         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6849         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6850         register positioning bugs (Fixed bug #762602 and #795325)
6851         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6852         (Fixed bug #808779)
6853         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6854         lines that --i-code-in-asm generates
6855
6856 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6857
6858         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6859         trying to fclose a FILE* that was already closed.
6860
6861 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6862
6863         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6864         of const struct should be treated as if const themselves)
6865
6866 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6867
6868         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6869
6870 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6871
6872         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6873         Unix (/n) and DOS (/r/n) line terminations.
6874
6875 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6876
6877         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6878         bug #613775
6879
6880 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6881
6882         * src/mcs51/gen.c (genFunction, genEndFunction),
6883         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6884         and restore of EA so that stack offsets to parameters are
6885         correct when using both critical and reentrant/stack-auto.
6886         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6887         size (can be triggered in error if sloc is shared between
6888         different sized objects)
6889         * device/include/float.h: fixed macros to explicitly use
6890         unsigned long where needed
6891
6892 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
6893
6894         Feature req. 799831: added code to allow nesting of critical functions
6895         * src/mcs51/gen.c (genFunction, genEndFunction)
6896         * src/ds390/gen.c (genFunction, genEndFunction)
6897
6898 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6899
6900         * src/SDCCsymt.c (sclsFromPtr),
6901         * src/SDCCsymt.h,
6902         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6903         support for standard C idiom of memory mapped variables; for
6904         example, *((xdata int*)0x1234) = 1 is now internally equivalent
6905         to xdata int at 0x1234 tempvar = 1.
6906         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6907         provided by Akiya ISHIDA
6908
6909 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
6910
6911         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6912         * src/SDCCval.c (constVal): added reduction from int to char
6913         * src/SDCCval.c (valMult, valDiv): fixed sign handling
6914         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6915         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6916         to ignore the sign
6917         * support/regression/tests/shifts.c: fixed
6918
6919 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6920
6921         * src/z80/gen.c (genXor): Fixed bug #805445
6922
6923 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6924
6925         Fixed bug #621531 (const & volatile confusion in the type chain).
6926         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6927         refer to the const or volatile state of the pointer itself.
6928
6929         * src/SDCCast.c
6930         * src/SDCCglue.c
6931         * src/SDCCicode.c
6932         * src/SDCCsymt.c
6933         * src/SDCCval.c
6934         * src/SDCC.y
6935         * src/SDCCsymt.h
6936         * src/pic/gen.c
6937         * src/pic/ralloc.c
6938         * src/pic16/gen.c
6939         * src/pic16/ralloc.c
6940         * support/regression/tests/const.c
6941
6942 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6943
6944         When checking for duplicated modules, use absolute paths
6945         instead of relative paths.  Files changed:
6946
6947         * as/mcs51/lklib.c
6948         * link/z80/lklib.c
6949
6950 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6951
6952         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6953
6954 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6955
6956         * device/include/string.h: added size_t typedef, changed
6957         prototypes to use size_t, eliminated separate reentrant and
6958         non-reentrant declarations, added _memmove declaration
6959         * device/lib/_memcpy.c: changed to use size_t instead of int,
6960         changed /4 to >>2 to avoid division library call
6961         * device/lib/_memcmp.c,
6962         * device/lib/_memset.c,
6963         * device/lib/_strncat.c,
6964         * device/lib/_strncpy.c,
6965         * device/lib/_strncmp.c: changed to use size_t instead of int
6966         * device/lib/_memmove.c: new file (fixed bug #772294)
6967         * device/lib/Makefile.in: added _memmove.c
6968         * device/lib/z80/asm_strings.s: fixed bug #772290
6969         * support/regression/tests/bitfields.c: attempt to fix host assertion
6970         failure on amd64-unknown-linux2.2
6971
6972 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6973
6974         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6975         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6976         * as/z80/asmain.c (main): fixed bug #801766
6977
6978 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
6979
6980         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6981         compilers
6982
6983 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6984
6985         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6986         reported in bug #800609
6987
6988 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
6989
6990         * Top header beautifications in src/pic16 directory:
6991           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6992           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6993           pcoderegs.h, ralloc.c, ralloc.h
6994         * main.c: added top header and GPL license notice
6995         * pcode.c: fixed the if-conditional warning
6996
6997 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
6998
6999         * device/lib/_mullong.c: replaced int by short for gcc
7000
7001 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7002
7003         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7004         and JUMPTABLE iCodes properly now (worked by accident before)
7005         * src/mcs51/gen.c (leftRightUseAcc),
7006         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7007         iCode properly now. Use getSize instead of nRegs since a & b
7008         aren't part of the nRegs tally.
7009
7010 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
7011
7012         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7013         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7014           before instructions that use the _STATUS register
7015
7016 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
7017
7018         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7019         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7020         fetching of the pointer
7021         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7022         copied from genNearPointerSet()
7023         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7024         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7025         If they pop r0/r1 they must be called in the opposite order than aopOp().
7026         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7027         (resp. --stack-auto), prepared for --xstack
7028
7029 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7030
7031         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7032
7033 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
7034
7035         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7036         these ports have their own __sdcc_external_start()
7037
7038 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
7039
7040         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7041         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7042         type for bits was changed. It resulted in bit variables becoming
7043         global, which is not permitted in PIC 14 assembly output.
7044
7045 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7046
7047         * doc/sdccman.lyx: various additions and updates. Rearranged sections
7048
7049 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7050
7051         Z80 and MCS51 linkers complaint if a public symbol is defined
7052         in more than one library module:
7053
7054         * as/mcs51/lklib.c
7055         * link/z80/lklib.c
7056         * as/mcs51/Makefile.in
7057
7058 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7059
7060         A few small changes that speed up the peephole optimizer.
7061
7062         * src/SDCCpeeph.c
7063
7064 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7065
7066         Try to make the peephole optimizer smarter by maintaining
7067         an association between the assembly source code and the
7068         iCodes that originated them. Put this information to use
7069         with a new peephole rule condition "notVolatile" so that
7070         the rules can be aggressive yet still safe.
7071
7072         * src/SDCCpeeph.c
7073         * src/SDCCpeeph.h
7074         * src/mcs51/gen.c
7075         * src/mcs51/peeph.def
7076
7077 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7078
7079         Fixed bug #741761
7080
7081         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7082         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7083         if the left or right operand symbols have the accuse flag set.
7084
7085 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7086
7087         Changed the type of the result of the ! (NOT) operator to char;
7088         previously it returned the same type as the source. This allows
7089         us to eliminate all the genFloatNot functions (all of its target
7090         implementations were very buggy) since !float can use the same
7091         code as !long now.
7092
7093         * src/SDCCicode.c (ast2iCode): ! returns char
7094         * src/mcs51/gen.c (genNot, genNotFloat),
7095         * src/ds390/gen.c (genNot, genNotFloat),
7096         * src/z80/gen.c (genNot, genNotFloat),
7097         * src/pic/gen.c (genNot, genNotFloat),
7098         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7099
7100 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
7101
7102         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7103         1. Interrupt would not compile properly. Ensure PCLATH register is saved
7104            during interrupts. Ensure WSAVE is located at a shared bank address.
7105         2. Fixed page selection in some places
7106         3. Fixed BTFSS/C to where necessary use registers directly and not simply
7107            the registers name strings.
7108         4. Fixed "signed / unsigned compare" compiler warnings.
7109         5. The PIC port manages its own allocation of the general purpose
7110            registers, but makes no attempt to reuse them. As a result when
7111            compiling it soon runs out of general purpose registers. Some
7112            additional code was added to the files pcode.c and device.c to walk
7113            through the function call tree and rename the registers so that they
7114            get reused.
7115
7116         * src/pic/device.c
7117         * src/pic/gen.c
7118         * src/pic/glue.c
7119         * src/pic/pcode.c
7120         * src/pic/pcode.h
7121         * src/pic/ralloc.c
7122         * src/pic/ralloc.h
7123         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7124         genPlus() & genMinus() when the result is the same as left or right
7125
7126 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127
7128         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7129
7130 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7131
7132         Made bitfield a distinct type from bit so that bitfields
7133         convert as per ANSI C and bits retain their traditional
7134         boolean style behaviour. Implemented bitfield support in
7135         the z80 port.
7136
7137         * src/SDCCsymt.h,
7138         * src/SDCCsymt.c,
7139         * src/SDCCast.c,
7140         * src/cdbFile.c,
7141         * src/mcs51/gen.c,
7142         * src/ds390/gen.c: bit v bitfield split
7143         * src/z80/gen.c: New support for bitfields
7144         * support/regression/tests/bitfields.c: reenabled z80,
7145         added more tests
7146
7147 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7148
7149         Rules 246.x, 247.x relate to bitfields, the others speed up
7150         access to xdata mapped I/O devices.
7151
7152         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7153
7154 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7155
7156         Cleaned up genPackBits and genUnpackBits and added two helper
7157         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7158         for literal assignments in genPackBits (thanks to Frieder for
7159         reminding me).
7160
7161         * src/mcs51/gen.c
7162         * src/ds390/gen.c
7163
7164 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7165
7166         Fixed bug #748310 (pointer to function type mishandled when the
7167         function name is omitted). Also fixed a SIGSEGV when a function
7168         attribute (reentrant, etc) is used on a non-function or on a
7169         function but misplaced before the parameter list.
7170
7171         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
7172         bug #748310
7173         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
7174         * support/Util/SDCCerr.h,
7175         * support/Util/SDCCerr.c: Added func attr misuse error msg
7176
7177 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7178
7179         Fixed bug #787649 by anonymous
7180         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
7181         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
7182
7183 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7184
7185         Fixed numerous bitfield problems.
7186
7187         * src/SDCC.y: More bitfield related error checking
7188         * src/SDCCsymt.h,
7189         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
7190         * support/Util/SDCCerr.h,
7191         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
7192         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7193         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7194         * support/regression/tests/bitfields.c: tests added
7195
7196 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7197
7198         Made the constant following the "interrupt" keyword optional. If
7199         omitted, the function will not automatically be given an entry
7200         in the interrupt vector table (similar to #pragma NOIV, but
7201         less syntacticly kludgy). The interrupt number is also now
7202         range checked. Also fixed a bug in the high order bit example
7203         in the manual.
7204
7205         * src/SDCC.y
7206         * src/SDCCmem.c
7207         * src/SDCCglue.c
7208         * src/SDCCsymt.h
7209         * support/Util/SDCCerr.c
7210         * support/Util/SDCCerr.h
7211         * doc/sdccman.lyx
7212
7213 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7214
7215         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
7216         * src/SDCCicode.c (operandOperation): rewritten some ops
7217         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
7218         * src/SDCCsymt.c (computeType): literals are handled the same way as any
7219         other type
7220         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
7221         be re-activated by defining REDUCE_LITERALS)
7222         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
7223         unsigned, but are signed by default
7224         * src/SDCCval.c (constVal): rearranged
7225         * src/SDCCval.c (valMod): preliminary fix
7226         * src/SDCCval.c (valCastLiteral): use TYPE_* types
7227         * support/regression/literalop.c: added, work in progress
7228
7229 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7230
7231         Generate warnings for useless declarations like "char data;"
7232         that don't do what new users expect.
7233
7234         * src/SDCC.y
7235         * support/Util/SDCCerr.h
7236         * support/Util/SDCCerr.c
7237
7238 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
7239
7240         * src/SDCCval.c (valMult): fix overflow detection of negative int
7241
7242 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7243
7244         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7245
7246         Changes to support big endian targets:
7247
7248         * src/ports.h
7249         * src/SDCCglue.c
7250         * src/avr/main.c
7251         * src/ds390/main.c
7252         * src/izt/i186.c
7253         * src/mcs51/main.c
7254         * src/pic/main.c
7255         * src/pic16/main.c
7256         * src/xa51/main.c
7257         * src/z80/main.c
7258
7259 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
7260
7261         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7262         * device/lib/time.c: fixed warning "integer overflow in expression"
7263
7264 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
7265
7266         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7267         * src/SDCCval.c (constVal): changed default to signed; hex and octal
7268         constants are unsigned; added recognition of "u" flag for unsigned
7269         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7270         * src/SDCCval.c (valDiv, valMod): fixed signdness
7271         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7272         signedness of modulo, left and right shift
7273         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7274         * support/Util/SDCCerr.h: added warning W_INT_OVL
7275         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7276         * src/SDCCast.c (ast_print): improved output of constants
7277
7278 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7279
7280         Fixed some warnings when building with MSVC:
7281
7282         * as\mcs51\asdata.c
7283         * as\z80\asdata.c
7284         * as\mcs51\asm.h
7285         * as\z80\asm.h
7286         * link\z80\aslink.h
7287         * link\z80\lkdata.c
7288         * link\z80\lkeval.c
7289         * link\z80\lkgb.c
7290         * link\z80\lkihx.c
7291         * link\z80\lks19.c
7292         * link\z80\lksym.c
7293         * support\cpp2\cpplib.c
7294         * src\ds390\gen.c
7295         * src\mcs51\gen.c
7296
7297 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
7298
7299         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7300
7301 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7302
7303         * support\librarian\clean.mk: Do not remove Makefile.
7304         * support\librarian\Makefile: added.
7305
7306 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7307
7308         Added librarian to MSVC build:
7309         * all.dsp
7310         * sdcc.dsw
7311         * support\librarian\librarian.dsp
7312
7313         'configure' not needed for librarian, removed:
7314         * support\librarian\configure
7315         * support\librarian\configure.in
7316         * support\librarian\config_in.h
7317         * support\librarian\Makefile.in
7318
7319         Hopefully these ones built the librarian and the rest of sdcc properly:
7320         * Makefile
7321         * Makefile.common.in
7322
7323         Messed up 'configure', so revert to previous version:
7324         * configure
7325         * configure.in
7326
7327 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
7328
7329         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7330         there, while the mantissa of a double is "only" 53 bits wide.
7331
7332 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7333
7334         Adding sdcclib to the build.  MSVC project coming soon.
7335         Files added/changed:
7336
7337         * support\librarian\clean.mk
7338         * support\librarian\configure
7339         * support\librarian\configure.in
7340         * support\librarian\config_in.h
7341         * support\librarian\Makefile.bcc
7342         * support\librarian\Makefile.in
7343         * support\librarian\sdcclib.c
7344         * Makefile.bcc
7345         * Makefile
7346         * Makefile.common.in
7347         * configure
7348         * configure.in
7349
7350 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7351
7352         Linker now complaints if linked modules have conflicting options, for
7353         example, one compiled using --model-large and another one compiled with
7354         --model-small.  The following files were modified:
7355
7356         * as\mcs51\asdata.c
7357         * as\mcs51\aslink.h
7358         * as\mcs51\asm.h
7359         * as\mcs51\asmain.c
7360         * as\mcs51\asout.c
7361         * as\mcs51\i51pst.c
7362         * as\mcs51\lkdata.c
7363         * as\mcs51\lklibr.c
7364         * as\mcs51\lkmain.c
7365         * as\z80\asdata.c
7366         * as\z80\asm.h
7367         * as\z80\asmain.c
7368         * as\z80\asout.c
7369         * as\z80\z80pst.c
7370         * link\z80\aslink.h
7371         * link\z80\lkdata.c
7372         * link\z80\lklibr.c
7373         * link\z80\lkmain.c
7374         * src\SDCCglue.c
7375
7376 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7377
7378         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7379         as/mcs51/lklibr.c: Generate a warning when a library is not found.
7380
7381 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
7382
7383         * src/z80/mappings.i: fix _mul[us][int,long] entries
7384
7385 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7386
7387         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7388
7389 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7390
7391         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7392         * support/regression/tests/bitopcse.c: added
7393         fixed warning:
7394         * src/avr/gen.c:
7395         * src/pic/gen.c:
7396         * src/pic16/gen.c:
7397         * src/z80/gen.c:
7398         * src/xa51/gen.c:
7399
7400 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7401
7402         added support for new library format to z80, gbz80 linkers:
7403         *link/z80/aslink.h
7404         *link/z80/lklex.c
7405         *link/z80/lklib.c
7406         *link/z80/lklist.c
7407
7408 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7409
7410         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7411         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7412
7413 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
7414
7415         added DUMMY_READ_VOLATILE:
7416         * src/SDCC.y:
7417         * src/avr/gen.c:
7418         * src/xa51/gen.c:
7419         * src/z80/gen.c:
7420         * src/pic/gen.c:
7421         * src/pic16/gen.c:
7422         * src/mcs51/gen.c:
7423         * src/ds390/gen.c:
7424         * src/SDCCcse.c (algebraicOpts): many improvements
7425         * src/SDCCcse.h: removed algebraicOpts()
7426         * src/SDCCicode.c (picDummyRead): added
7427
7428 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7429
7430         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7431         "Insufficient space in data memory".
7432
7433 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7434
7435         * src/mcs51/gen.c: fixed bug #771358
7436         * src/z80/gen.c: fixed bug #759087
7437
7438 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
7439
7440         * src/pic16/glue.c: minor cleanup by Vangelis
7441
7442 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7443
7444         * device/include/regc515c.h: fixed #758477
7445         * device/lib/_gptrget.c: saving some cycles in generic pointer get
7446         * device/lib/_gptrput.c: saved a few bytes
7447         * my tab spacing is 8, yours too?)
7448         * device/lib/_ser.c: process RX bytes earlier than TX bytes
7449         * device/lib/serial.c: process RX bytes earlier than TX bytes
7450         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
7451
7452 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7453
7454         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
7455
7456 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7457
7458     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
7459
7460 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
7461
7462         * device/lib/Makefile.in: bad fix, reverted to 1.43
7463
7464 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
7465
7466         * device/lib/Makefile.in: added missing z80 object files
7467
7468 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
7469
7470         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
7471         pic16 progress by Vangelis:
7472         * src/SDCCglobl.h:
7473         * src/SDCCmain.c:
7474         * src/pic/Makefile:
7475         * src/pic:
7476         * pic/Makefile:
7477         * pic16/device.c:
7478         * pic16/device.h:
7479         * pic16/gen.c:
7480         * pic16/gen.h:
7481         * pic16/genarith.c:
7482         * pic16/glue.c:
7483         * pic16/main.c:
7484         * pic16/pcode.c:
7485         * pic16/pcode.h:
7486         * pic16/pcodepeep.c:
7487         * pic16/peeph.def:
7488
7489 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7490
7491     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
7492
7493 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7494
7495     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
7496     added gbz80 build to MSVC project.
7497     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
7498     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
7499     from 8051 stuff and setup so it links using a .lnk file.
7500
7501 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7502
7503     * support/librarian/sdcclib.c: sdcc librarian.
7504     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
7505     with sdcclib.
7506
7507 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7508
7509     * as/mcs51/lkmain.c: properly handle extensions in function afile.
7510
7511 2003-07-02  Borut Razem <borut.razem AT siol.net>
7512
7513         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
7514         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
7515         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
7516         src/xa51/main.c, src/z80/main.c:
7517         virtualization of glue() function: each port has it's own glue function,
7518         which is accessed by do_glue function pointer in PORT.general structure
7519
7520 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
7521
7522         * DS800C400 fun, improved ROM interface and tinibios.
7523
7524 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
7525
7526         * More support for DS80C400. Now includes beginning of interface to ROM.
7527
7528 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
7529
7530         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
7531
7532 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7533
7534         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
7535
7536 2003-06-19  Borut Razem <borut.razem AT siol.net>
7537
7538         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
7539
7540 2003-06-19  Borut Razem <borut.razem AT siol.net>
7541
7542         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
7543         fixed Z80 port - crt0.o: cannot open.
7544
7545 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
7546
7547         * support/Util/MySystem.c (merge_command): revert bad fix
7548
7549 2003-06-18  Borut Razem <borut.razem AT siol.net>
7550
7551         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
7552
7553 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7554
7555         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7556         option --use-stdout sends errors to stdout instead of stderr.
7557
7558 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
7559
7560         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
7561
7562 2003-06-15  Borut Razem <borut.razem AT siol.net>
7563
7564         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
7565         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
7566         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
7567         fixed width array of pointers replaced with sets;
7568         multiple include and lib paths ared transferred to preprocessor and linker
7569         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
7570         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
7571         fixed width array of pointers
7572         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
7573         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
7574         fixupPath(), getPathDifference()
7575         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
7576         fixed width array of pointers
7577
7578 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
7579
7580         * src/pic16/ralloc.c: fix warnings
7581         * src/pic16/pcode.c: fix warning
7582
7583 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
7584
7585          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
7586         know all the details, but essentially this set of changes enable
7587         the pic16 port to generate movff instructions and generate assembler
7588         directives,
7589         * src/SDCCmain.c:
7590         * src/pic16/gen.c:
7591         * src/pic16/glue.c:
7592         * src/pic16/pcode.c:
7593         * src/pic16/device.c:
7594         * src/pic16/main.c:
7595         * src/pic16/pcode.h:
7596         * src/pic16/pcoderegs.c:
7597         * src/pic16/ralloc.c:
7598         * src/pic16/ralloc.h:
7599
7600 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7601
7602         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7603         added option --vc, so sdcc errors and warnings are compatible with
7604         Microsoft Visual Studio.
7605
7606 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7607
7608         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
7609           device/lib/libfloat.lib: added atof function.
7610
7611 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
7612
7613         * doc/sdccman.lyx: updated to Lyx 1.3
7614         * doc/cdbfileformat.lyx: updated to Lyx 1.3
7615         * doc/test_suite_spec.lyx: updated to Lyx 1.3
7616         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
7617
7618 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
7619
7620         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
7621
7622 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7623
7624         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
7625           additions to the "related tools/documentation" section
7626
7627 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
7628
7629         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
7630
7631 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
7632
7633         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
7634         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
7635
7636 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
7637
7638         * doc/sdccman.lyx: fix double dash and other minor things
7639         * doc/Makefile: fix double dash
7640
7641 2003-05-28  Karl Bongers(patches from Martin Helmling)
7642         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
7643           condition and ignore commands.
7644
7645 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7646
7647         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
7648           is in parts still quite out of date, I did changes as far as I felt makes sense
7649           for a non-native english speaker.
7650           Please feel free to add to the manual or to correct my changes.
7651         * doc/Makefile: undid touching the date of intermediate tex files.
7652
7653 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7654
7655         * doc/sdccman.lyx: Manual has an index now
7656
7657 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
7658
7659         Finalize muluint/mulsint and mululong/mulslong merging:
7660         * device/lib/_mulint.c
7661         * device/lib/_mullong.c
7662         * device/lib/gbz80/mul.s
7663         * device/lib/gbz80/stubs.s
7664         * device/lib/z80/mul.s
7665         * device/lib/z80/stubs.s
7666         * src/SDCCsymt.c (initCSupport)
7667
7668 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7669
7670         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7671         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7672           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7673           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7674           instead of /Zm500.
7675
7676 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7677
7678         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7679           the regression tests I'm not brave enough to enable 245.b, 245.c
7680         * doc/sdccman.lyx: added latex preamble for hyperref package.
7681           Using pdflatex this will give you a hyperlinked pdf file with
7682           bookmarks. (prepend '%' before /usepackage if this breaks something)
7683
7684 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7685
7686          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7687
7688 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
7689
7690         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7691
7692 2003-05-21    <johan AT balder>
7693
7694         * src/SDCCglue.c (printIval): fixed bug #739934
7695
7696 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7697
7698         Applied patch from bug 737905 (renamed yylineo to mylineno):
7699         * src/altlex.c
7700         * src/SDCCast.c
7701         * src/SDCglobl.h
7702         * src/SDCC.lex
7703         * src/SDCCsymt.c
7704         * src/SDCCval.c
7705         * src/pic16/pcode.c: Cleaned warnings
7706         * src/pic16/pcodeflow.c: Cleaned warnings
7707         * src/pic16/pcoderegs.c: Cleaned warnings
7708
7709 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
7710
7711         * src/pic16/pcode.c: Cleaned warnings
7712         * src/pic16/pcodepeep.c: Cleaned warnings
7713         * src/pic16/ralloc.c: Cleaned warnings
7714
7715 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7716
7717         * doc/sdccman.lyx: fixed bug 739745
7718         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7719
7720 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
7721
7722         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7723         it can be defined with CFLAGS when running configure
7724         * src/SDCCmain.c: fixed compiling + linking with object files
7725
7726 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
7727
7728         * configure.in: configure for pic16 port,
7729             added --disable-pic16-port
7730         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7731         * src/SDCCmain.c: linkOptions is changed to set *,
7732             added if/endif conditional macros to remove options help
7733             messages from optionsTable when a port is not configured, added
7734             support for the PIc16 port in the ports table, when executing
7735             the compiler with no port specified on command line, a default
7736             port is selected with the new macro DEFAULT_PORT which is
7737             defined in port.h, in setDefaultOptions() linkOptions is removed
7738             from initialization assignment, since now it is a set,
7739             parseCmdLine uses setParseWithComma for linkOptions, in
7740             linkEdit() linkOptions are accessed with new function indexSet()
7741             which returns the i'th item of a set variable. See SDCCset.c, in
7742             linkEdit() when calling buildCmdLine(), added linkOptions as
7743             last argument. Now users can pass arguments to gplink via the
7744             -Wl option, main() uses pic16glue() to glue up pic16 programs
7745         * src/SDCCpeeph.c: various changes to support pic16
7746         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
7747             return the i'th item of the set
7748         * src/SDCCset.h: added function prototype for indexSet()
7749         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7750         * src/clean.mk: added pic16 in CLEANALLPORTS variable
7751         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7752             added macro DEFAULT_PORT
7753         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7754         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7755             generated
7756         * src/pic16/glue.c: commented out some error producing lines
7757         * src/pic16/main.c: __config directives are commented out to stop
7758             gpasm complaining and test the linkage with gplink, _linkCmd and
7759             _asmCmd changed to be more gplink and gpasm friendly
7760         * src/pic16/peeph.def: peep rule 3 is commented out, since it
7761             produced an error when parsed, peep rule 12 is added to utilize
7762             movff, but it is commented out since the pCode does not support
7763             yet a command with 2 address arguments
7764
7765 2003-05-18    <johan AT balder>
7766
7767         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7768         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7769 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
7770
7771         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7772   Added feature to script commands from file.
7773
7774 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
7775
7776         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7777         * src/SDCCutil.c: include ctype.h for win32
7778
7779 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
7780
7781         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7782
7783 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
7784
7785         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7786   Fixed so you can set breakpoints prior to run, run does not stop
7787   on entry now.  Add tbreak.  Other enhancements and fixes for use
7788   with ddd.
7789
7790 2003-05-12  Borut Razem <borut.razem AT siol.net>
7791
7792         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7793
7794 2003-05-11  Borut Razem <borut.razem AT siol.net>
7795
7796         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7797         the path of bin directory, so that PATH is the only env. variable, which has to be set
7798         in case of standard installation.
7799         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7800         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7801         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7802
7803 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7804
7805         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7806         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7807         temp files are in the port dir; clean the gen/test directory when
7808         generating new test.c
7809         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7810         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7811         * support/regression/tests/zeropad.c: added
7812
7813 2003-05-09    <johan AT balder>
7814
7815         * src/SDCCglue.c: fixed bug #597940
7816
7817 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7818
7819         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7820   cache sfr, optimize next,step, fix off by one sourceline,
7821   support ddd list function.
7822         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7823
7824 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7825
7826         * support/regression/HTMLgen.py: added compare_s2f()
7827         * support/regression/Makefile: redo 1.27
7828         * support/regression/generate-cases.py: redo 1.5
7829
7830 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7831
7832         * support/regression/tests/float.c: workaround 33 bit hex constant
7833         * support/regression/tests/simplefloat.c: fix division for host
7834
7835 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7836
7837         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7838         that tame's the PIC's over-aggressive optimizer.
7839
7840 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7841
7842          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7843          support for MSVC.
7844
7845 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7846
7847         Initial support for DS80C400. "Hello world" runs on TINIm400
7848         (with polled I/O).
7849
7850 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7851
7852          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7853          * Some notes on ddd usage added in debugger/README
7854          Martin Helmling adding more features and fixes for ddd GUI debugger.
7855          Code added for nexti, stepi, up, down, and other adjustments.
7856
7857 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7858
7859         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7860         * src/pic/peeph.def Added two rules to optimize carry manipulation
7861         * src/pic/* removed debug printfs
7862
7863 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7864
7865         * debugger/mcs51/cmd.c: added header newalloc.h
7866
7867 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7868
7869         * as/Makefile: new EXEEXT
7870         * as/z80/Makefile: remove trailing slash of BUILDIR
7871         * as/z80/clean.mk: new EXEEXT
7872         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7873         * support/cpp2/Makefile.in: new EXEEXT
7874         * src/pic/glue.c (pic14emitRegularMap): fixed warning
7875
7876 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
7877
7878         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7879         EXEEXT was introduced to fix all related problems with targets
7880         "clean", "install" and "uninstall"; a couple of further flaws
7881         especially with "clean" have been fixed too
7882         * as/mcs51/Makefile.in
7883         * as/mcs51/clean.mk
7884         * as/z80/Makefile
7885         * Makefile
7886         * clean.mk
7887         * debugger/mcs51/Makefile.in
7888         * debugger/mcs51/clean.mk
7889         * link/z80/Makefile
7890         * link/z80/Makefile.in
7891         * link/z80/clean.mk
7892         * link/Makefile
7893         * packihx/Makefile.in
7894         * packihx/clean.mk
7895         * sim/ucsim/Makefile
7896         * sim/ucsim/clean.mk
7897         * sim/ucsim/avr.src/Makefile.in
7898         * sim/ucsim/avr.src/clean.mk
7899         * sim/ucsim/s51.src/Makefile.in
7900         * sim/ucsim/s51.src/clean.mk
7901         * sim/ucsim/xa.src/Makefile.in
7902         * sim/ucsim/xa.src/clean.mk
7903         * sim/ucsim/z80.src/Makefile.in
7904         * sim/ucsim/z80.src/clean.mk
7905         * sim/ucsim/main_in.mk
7906         * sim/ucsim/packages_in.mk
7907         * sim/ucsim/gui.src/Makefile.in
7908         * sim/ucsim/gui.src/serio.src/Makefile.in
7909         * sim/ucsim/gui.src/serio.src/clean.mk
7910         * src/Makefile.in
7911         * src/clean.mk
7912         * support/cpp2/Makefile.in
7913         * support/cpp2/clean.mk
7914         * support/makebin/Makefile
7915         * support/makebin/clean.mk
7916         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7917         * doc/sdccman.lyx: --program-suffix no longer needed
7918
7919 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
7920
7921          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7922          Martin Helmling added support for ddd GUI debugger.
7923          Code added to display assembly, set variables, and other commands
7924          to interface to ddd.
7925
7926 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
7927
7928         * as/Makefile: fix target clean
7929         * as/clean.mk: fix target clean
7930         * as/z80/clean.mk: fix target clean
7931
7932 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
7933
7934         * Makefile.common.in: added  AT EXEEXT AT
7935         * configure.in: removed all mingw32 stuff
7936         * configure: rebuilt from configure.in
7937         * doc/sdccman.lyx: updated section "installation"
7938         * support/scripts/sdcc_mingw32: adapted to configure
7939         * support/scripts/sdcc_cygwin_mingw32: added
7940
7941 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
7942
7943         * src/pic Added object file support for the PIC port
7944         * src/pic Applied patch from Craig Franklin (this started the object file support)
7945         * src/regression Updated the PIC regression tests for object files
7946
7947 2003-04-20  Borut Razem <borut.razem AT siol.net>
7948
7949         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7950           lklex.c: In function `getfid':
7951           lklex.c:203: warning: array subscript has type `char'
7952         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7953           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7954         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7955           stack handling macros
7956
7957 2003-04-19  Borut Razem <borut.razem AT siol.net>
7958
7959         * "handling space characters in file path" task:
7960         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7961         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7962         * support/Util/MySystem.h: make it self-sufficient
7963         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7964           src/z80/main.c, sdcc/as/mcs51/lklex.c:
7965           handling space characters in file path
7966         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7967           (it will be used by assemblers, which have their own includes, e.g. gpasm)
7968         * support/Util/MySystem.c: handling space characters in executable's path
7969
7970 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
7971
7972         * as/z80/Makefile: fix permanent rebuild of z80
7973         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7974         * support/regression/tests/bitfields.c: added Johan's bitfields.c
7975
7976 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
7977
7978         * src/SDCCopt.c: add special case optimization to replace modulo by
7979           a power of two with a bitwise AND.
7980
7981 2003-04-18    <johan AT balder>
7982
7983         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7984
7985 2003-04-17    <johan AT balder>
7986
7987         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7988         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7989
7990 2003-04-13  Borut Razem <borut.razem AT siol.net>
7991
7992         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7993         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7994           fixed mingw problem in adl_NORMALIZE_PATH
7995
7996 2003-04-12  Borut Razem <borut.razem AT siol.net>
7997
7998         * fixed "#pragma SAVE/RESTORE can not be nested":
7999         * src/SDCC.lex: reworked pragma handling functions
8000         * sdcc/src/SDCCglobl.h: reworked stack handling macros
8001         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8002
8003 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8004
8005         * src/SDCCutil.c (pathEquivalent): defined but not used
8006         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8007         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8008         * configure: rebuilt from configure.in
8009         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8010         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8011         * device/include/Makefile.in: replace sdcc_datadir
8012         * device/lib/Makefile.in: replace sdcc_datadir
8013         * Makefile.common.in: add LDFLAGS from configure
8014         * packihx/Makefile.in: use LDFLAGS
8015         * src/Makefile.in: use LDFLAGS
8016         * support/cpp2/Makefile.in: add LDFLAGS from configure
8017         * support/makebin/Makefile: use LDFLAGS
8018         * .version: bumped version number to 2.3.5
8019
8020 2003-04-12  Borut Razem <borut.razem AT siol.net>
8021
8022         * completed "different paths" task:
8023         * src/SDCCmacro.c: fixed bug in handling quotes
8024         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8025         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8026
8027 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8028
8029         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8030
8031 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8032
8033         * ds390/gen.c ds390/peeph.def: fix bug 706781
8034
8035 2003-04-11  Borut Razem <borut.razem AT siol.net>
8036
8037         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8038
8039 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
8040
8041         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8042         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8043          set - this bit used to not be set...).
8044         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8045           bad code in PIC Port
8046         * src/regression/and2.c added to test bug 609268
8047         * src/regression/Makefile added and2.c to regression test
8048
8049
8050 2003-04-08    <johan AT CP255758-A>
8051
8052         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8053         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8054         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8055
8056 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
8057
8058         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8059         fix bug #487815
8060         * support/cpp2/Makefile.in: fix bug #487815
8061         * configure: rebuilt from configure.in
8062         * Makefile.common.in: docdir changed, new path suffixes
8063         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8064         * sdcc_vc_in.h: reflect changes from sdccconf.h
8065         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8066         * src/SDCCutil.h: remove BINDIR hack
8067         * doc/sdccman.lyx: update new path hierarchy
8068
8069 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8070
8071         * src/SDCCpeeph.c: added okToRemoveSLOC test
8072
8073 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8074
8075         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8076
8077 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8078
8079         * src/SDCCpeeph.c: added labelIsReturnOnly test
8080         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8081
8082 2003-04-05    <johan AT balder>
8083
8084         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8085         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8086         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8087         * src/SDCCast.c: fixed a warning
8088         * src/SDCCast.h: fixed a warning
8089         * src/SDCCicode.c (operandFromAst): fixed a warning
8090
8091 2003-04-04    <johan AT balder>
8092
8093         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8094         * src/SDCCast.c (decorateType): fixed bug #715076
8095         * src/SDCC.y: fixed bug #702907
8096
8097 2003-04-03    <johan AT balder>
8098
8099         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8100         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8101         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8102         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8103         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8104
8105 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
8106
8107         * _decdptr.c: fix return values
8108         * _gptrget.c: fix return values
8109         * _gptrgetc.c: fix return values
8110         * _gptrput.c: fix return values
8111         * _mulint.c: fix return values
8112         * as/z80/Makefile: fix 'make -j' problem
8113
8114 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
8115
8116         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8117         * configure.in: big cleanup, updated to autoconf 2.5x
8118         * configure: rebuilt from configure.in
8119         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8120         * sdcc_vc_in.h: reflect changes from sdccconf.h
8121         * doc/Makefile: fixed a flaw in "make install"
8122
8123 2003-04-02    <johan AT balder>
8124
8125         * src/ds390/gen.c (genCmp): no comments
8126         * src/mcs51/gen.c (genCmp): no comments
8127         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8128         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8129
8130 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
8131
8132         * support/regression/generate-cases.py: place generated file in given sub directory
8133         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8134         * support/regression/Makefile: improvements for 'make -j';
8135         side effect: it's simpler and faster now
8136
8137 2003-03-31  Borut Razem <borut.razem AT siol.net>
8138
8139         * src/z80/main.c: link-{port} and as-{port} defined without path
8140         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8141
8142 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
8143
8144         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8145
8146 2003-03-30  Borut Razem <borut.razem AT siol.net>
8147
8148         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8149           changed type of list parameter to set
8150         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8151         * src/port.h: changed type of do_assemble() parameter to set
8152         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8153           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8154           definition of "cppoutfilename" macro with NULL value in preProcess()
8155         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8156         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8157         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8158           replaced with set *binPathSet
8159         * shash_add() deallocates the item, if allready exsists, before adding the new one
8160         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8161
8162 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
8163
8164         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
8165           a nested for loop bug in the PIC port
8166         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
8167           for loops
8168
8169 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
8170
8171         * support/Util/dbuf.h: remove C++ stuff to make it portable
8172
8173 2003-03-28  Borut Razem <borut.razem AT siol.net>
8174
8175         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
8176           literal strings in stringLiteral()
8177         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
8178         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
8179           to the project
8180
8181 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
8182
8183         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
8184
8185 2003-03-26    <johan AT balder>
8186
8187         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
8188         * src/ds390/gen.c (saveRegisters): catched symbol abuse
8189         * src/SDCCast.c (decorateType): fixed " -v < 3"
8190
8191 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
8192
8193         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
8194         Added Lenny Story's debug infrastructure changes:
8195         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
8196         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
8197         * src/cdbFile.c: added
8198         * src/SDCCdebug.c: added
8199         * src/SDCCdebug.h: added
8200         * src/SDCCast.c (createFunction)
8201         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
8202         * src/SDCCmain.c (parseCmdLine, main)
8203         * src/SDCCmem.c (redoStackOffsets)
8204         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
8205         * src/SDCCsymt.h
8206         * src/common.h
8207         * src/avr/gen.c (genAVRCode)
8208         * src/ds390/gen.c (gen390Code)
8209         * src/mcs51/gen.c (gen51Code)
8210         * src/pic/gen.c (genpic14Code)
8211         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
8212         * src/xa51/gen.c (genXA51Code)
8213         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
8214
8215 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8216
8217         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
8218         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
8219
8220 2003-03-22    <johan AT balder>
8221
8222         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
8223
8224 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
8225
8226         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
8227         * doc/cdbfileformat.lyx: added, written by Lenny Story
8228         * doc/Makefile: added cdbfileformat.lyx
8229         * doc/clean.mk: added cdbfileformat.lyx
8230
8231 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
8232
8233         * src/mcs51/peeph.def: fix bug #705773
8234
8235 2003-03-20    <johan AT balder>
8236
8237         An sfr/sbit can have an "at #" AND an initializer
8238         * src/SDCCsymt.c (checkSClass):
8239         * src/SDCCmem.c (allocGlobal):
8240         * src/SDCCmem.c (allocLocal):
8241         * src/SDCCast.c (createBlock):
8242
8243 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
8244
8245         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8246
8247 2003-03-16    <johan AT balder>
8248
8249         Undid the hackup of const and volatile, the problem is much bigger
8250         * src/SDCC.y:1.65
8251         * src/SDCCast.c:1.171
8252         * src/SDCCglue.c:1.138
8253         * src/SDCCicode.c:1.146
8254         * src/SDCCsymt.c:1.150
8255         * src/SDCCval.c:1.65
8256
8257 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
8258
8259         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8260         * src/ds390/gen.c (genAddrOf): fixed bug #704087
8261
8262 2003-03-13    <johan AT balder>
8263
8264         Hackup const and volatile modifiers in type chains a bit:
8265         * src/SDCC.y:1.63
8266         * src/SDCCast.c:1.169
8267         * src/SDCCglue.c:1.136
8268         * src/SDCCicode.c:1.143
8269         * src/SDCCsymt.c1.146
8270         * src/SDCCsymt.h1.59
8271         * src/SDCCval.c:1.63
8272
8273 2003-03-12    <johan AT balder>
8274
8275         * src/SDCCBBlock.h: more LRH debugging junk
8276         * src/SDCCcflow.h: more LRH debugging junk
8277         * src/SDCCloop.c: more LRH debugging junk
8278         * src/SDCC.y (struct_declaration): fixed bug #697590
8279         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8280         * src/ds390/gen.c (aopForRemat): fixed bug #700031
8281         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8282
8283 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8284         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8285         test function names must now match exactly).
8286         * src/SDCCcse.c: added special case in findCheaperOp to allow
8287         extending a short integer. Makes less awful code for bug 700121 test case.
8288
8289 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8290
8291         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8292         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8293
8294 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8295
8296         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8297         actually called (operandsNotEqual() was called for all
8298         operandsNotEqualX tests).
8299
8300 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8301
8302         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8303         with shorter literals. Fixes bug 700121.
8304
8305 2003-03-11    <johan AT balder>
8306
8307         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8308
8309 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
8310
8311         * src/SDCCloop.c (mergeRegions): an evil beast is dead
8312         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8313
8314 2003-03-10  Borut Razem <borut.razem AT siol.net>
8315
8316         * src/SDCCmain.c: pipe preprocessor's output
8317         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8318         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8319         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8320         which closes all pipes in pipeSet set
8321         * src/SDCCset.c: free deleted item in function deleteSetItem()
8322         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8323         moved from z80 to src subproject
8324         * .version: increased version number to 2.3.4
8325
8326 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
8327
8328         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8329         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8330         * support/regression/ports/xa51/spec.mk: fix typo
8331
8332 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
8333
8334         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8335
8336 2003-03-09  Borut Razem <borut.razem AT siol.net>
8337
8338         * src/SDCCmain.c: pipe preprocessor's output
8339         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8340         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8341         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8342         which closes all pipes in pipeSet set
8343         * src/SDCCset.c: free deleted item in function deleteSetItem()
8344         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8345         moved from z80 to src subproject
8346
8347 2003-03-09  Borut Razem <borut.razem AT siol.net>
8348
8349         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8350         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8351         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8352         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8353         * src/SDCCglobl.h: unification of WIN32 native definitions
8354
8355 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8356
8357         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8358
8359 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8360
8361         * src/configure.in:   check for endianess (even while cross-compiling)
8362         * src/configure:      check for endianess (even while cross-compiling)
8363         * src/configure_in.h: check for endianess (even while cross-compiling)
8364         * src/avr/gen.c:        remove old endianess stuff
8365         * src/mcs51/gen.c:      remove old endianess stuff
8366         * src/ds390/gen.c:      remove old endianess stuff
8367         * src/pic/gen.c:        remove old endianess stuff
8368         * src/pic/genarith.c:   remove old endianess stuff
8369         * src/pic/glue.c:       fix endianess check
8370         * src/pic16/gen.c:      remove old endianess stuff
8371         * src/pic16/genarith.c: remove old endianess stuff
8372         * src/pic16/glue.c:     fix endianess check
8373         * src/xa51/gen.c:       remove old endianess stuff
8374         * src/z80/gen.c:        fix endianess check
8375         * src/SDCCglue.c:       fix endianess check
8376         * src/ds390/peeph.def: fix bug 700036
8377
8378 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8379
8380         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8381         * src/configure: find appropriate data-types on host for SDCC's int and long
8382         * src/configure.in: find appropriate data-types on host for SDCC's int and long
8383         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8384         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8385
8386 2003-03-07    <johan AT balder>
8387
8388         Just a big NOOP:
8389                 some minor cleanups before the big shot
8390                 OP_DEFS and OP_USES now use Kevin's protection
8391                 new option --nolabelopt
8392
8393         * src/SDCCBBlock.c:
8394         * src/SDCCast.c,:
8395         * src/SDCCcflow.c:
8396         * src/SDCCcse.c:
8397         * src/SDCCicode.c:
8398         * src/SDCCicode.h:
8399         * src/SDCClabel.c:
8400         * src/SDCCloop.c:
8401         * src/SDCCmain.c:
8402         * src/ds390/ralloc.c:
8403         * src/mcs51/ralloc.c:
8404         * src/pic/ralloc.c:
8405         * src/xa51/ralloc.c:
8406         * src/z80/ralloc.c:
8407
8408 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
8409
8410         * src/pic/pcode.c (get_op): fix 64 bit warnings
8411         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8412         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8413         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8414         * support/regression/tests/malloc.c: fix 64 bit warnings
8415
8416 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
8417
8418         * src/mcs51/gen.c (genMinus): fixed bug 696436
8419
8420 2003-03-02  Borut Razem <borut.razem AT siol.net>
8421
8422         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8423
8424 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
8425
8426         * configure.in: test for mkstemp
8427         * sdccconf_in.h: add HAVE_MKSTEMP
8428
8429 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
8430
8431         * device/include/ctype.h: removed warning while using --stack-auto
8432         * device/include/malloc.h: removed warning while using --stack-auto
8433         * device/include/string.h: removed warning while using --stack-auto
8434
8435 2003-02-23  Borut Razem <borut.razem AT siol.net>
8436
8437         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
8438         because NDEBUG is defined (see man assert)
8439         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
8440
8441 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8442
8443         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
8444         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
8445
8446 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8447
8448         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
8449         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
8450
8451 2003-02-18    <johan AT balder>
8452
8453         * as/mcs51/asmain.c (asmbl): module can start with a digit
8454         * as/z80/asmain.c (asmbl): module can start with a digit
8455
8456 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
8457
8458         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
8459         * src/asm.c: fix pipe() for Mingw32
8460
8461 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
8462
8463         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
8464         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
8465         make -V work again; --c1mode reads now from stdin
8466         * doc/sdccman.lyx: added --c1mode
8467         * support/Util/SDCCerr.c: new messages for c1 mode
8468         * support/Util/SDCCerr.h: new messages for c1 mode
8469         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
8470
8471 2003-02-15    <johan AT balder>
8472
8473         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
8474
8475 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
8476
8477         * doc/sdccman.lyx: Environment variables, -o and other minor things
8478
8479 2003-02-14    <johan AT balder>
8480
8481         * src/xa51/main.c: before anyone really tries to use it :)
8482
8483         * Install doc's in share/sdcc/doc
8484         * removed some obsolete files
8485         * Do a proper make distclean and uninstall
8486         M Makefile.common.in
8487         R sdccbuild.sh
8488         M as/Makefile
8489         M device/include/Makefile.in
8490         M device/lib/Makefile.in
8491         M doc/sdccman.lyx
8492         M link/Makefile
8493         M sim/ucsim/doc/Makefile.in
8494         M src/clean.mk
8495         R src/avr/peeph.rul
8496         R src/xa51/peeph.rul
8497         M support/cpp2/Makefile.in
8498         M support/makebin/Makefile
8499
8500
8501 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
8502
8503         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
8504
8505 2003-02-10  Borut Razem <borut.razem AT siol.net>
8506
8507         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
8508         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
8509         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
8510         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
8511         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
8512         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
8513         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
8514         src/z80/Makefile.bcc: Borland Makefile cleanup
8515         * as/z80/Makefile.bcc: Added Borland Makefile
8516         * support/cpp2/borland.h: Removed
8517
8518 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
8519
8520         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
8521         * src/SDCC.lex: new pragma NOIV
8522         * src/SDCCglobl.h: new pragma NOIV
8523         * src/SDCCmem.c: new pragma NOIV
8524
8525 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8526
8527         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
8528
8529 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8530
8531         * src/SDCCmain.c: signal handling is switched off by --debug
8532         * doc/Makefile: small fix for install; use clean.mk again
8533         * doc/clean.mk: clean *.pdf and *.html too
8534
8535 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
8536
8537         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
8538         * device/lib/printfl.c: fix a ds390 bug by making it portable
8539         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
8540         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
8541         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
8542         * debugger/mcs51/cmd.c: converted multi-line string literals
8543         * sim/ucsim/globals.cc: converted multi-line string literals
8544         * src/SDCCmain.c: introduced signal handler to remove temp files
8545         * doc/Makefile: small tweaks, implement clean
8546         * doc: removed generated files
8547
8548 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8549
8550         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
8551         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
8552         Address Record is not correctly generated for DS390."
8553
8554 2003-02-02  Borut Razem <borut.razem AT siol.net>
8555
8556         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
8557         * as/mcs51/asm.h: fixed compilation with Borland C
8558         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
8559         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
8560         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
8561         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
8562         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
8563         src/z80/Makefile.bcc: delete $(LIB) only if exist
8564         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
8565
8566 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
8567
8568         * device/include/malloc.h: introduced NULL
8569         * device/include/string.h: introduced NULL
8570         * device/include/stdlib.h: introduced NULL
8571         * device/lib/_memcpy.c: removed NULL
8572         * device/lib/_strcat.c: removed NULL
8573         * device/lib/_strchr.c: removed NULL
8574         * device/lib/_strcmp.c: removed NULL
8575         * device/lib/_strcpy.c: removed NULL
8576         * device/lib/_strcspn.c: removed NULL
8577         * device/lib/_strlen.c: removed NULL
8578         * device/lib/_strncat.c: removed NULL
8579         * device/lib/_strncmp.c: removed NULL
8580         * device/lib/_strncpy.c: removed NULL
8581         * device/lib/_strpbrk.c: removed NULL
8582         * device/lib/_strrchr.c: removed NULL
8583         * device/lib/_strspn.c: removed NULL
8584         * device/lib/_strstr.c: removed NULL
8585         * device/lib/_strtok.c: removed NULL
8586         * device/lib/malloc.c: removed NULL, include own header
8587
8588 2003-02-02    <johan AT balder>
8589
8590         * 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
8591         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
8592         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
8593         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
8594         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
8595         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
8596
8597 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8598
8599         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
8600         area 'DATA'"
8601
8602 2003-02-01    <johan AT balder>
8603
8604         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
8605
8606 2003-01-31    <johan AT CP255758-A>
8607
8608         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
8609
8610 2003-01-30    <johan AT balder>
8611
8612         * src/SDCCBBlock.c: automatic bug detection
8613         * src/SDCCicode.c: automatic bug detection
8614
8615 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8616
8617         * src/SDCCglobl.h:   now --xram-size 0 works
8618         * src/SDCCmain.c:    now --xram-size 0 works
8619
8620 2003-01-29    <johan AT balder>
8621
8622         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
8623
8624 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8625
8626         * as/mcs51/aslink.h: Added options --xram-size and --code-size
8627         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
8628         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
8629         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
8630         * src/SDCCglobl.h:   Added options --xram-size and --code-size
8631         * src/SDCCmain.c:    Added options --xram-size and --code-size
8632
8633 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
8634
8635         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
8636         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
8637
8638 2003-01-27    <johan AT balder>
8639
8640         * src/SDCC.y: fixed bug #613764
8641
8642 2003-01-26    <johan AT balder>
8643
8644         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
8645         * src/SDCCsymt.h: fixed bug #673374
8646         * src/SDCCglue.c: fixed bug #661910
8647         * src/SDCCast.c: fixed bug #458099 and 673374
8648
8649 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
8650
8651         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
8652         * as/mcs51/strcmpi.h: added
8653         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
8654         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
8655         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
8656         * as/mcs51/assym.c: strcmpi -> as_strcmpi
8657         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
8658         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
8659         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
8660         * as/mcs51/Makefile.aslink: new module strcmpi
8661         * as/mcs51/Makefile.asx8051: new module strcmpi
8662         * as/mcs51/Makefil.bcc: new module strcmpi
8663         * as/mcs51/Makefile.in: new module strcmpi
8664         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
8665
8666 2003-01-26    <johan AT balder>
8667
8668         * src/SDCCglue.c: reverted back to 1.124
8669         * src/SDCCast.c: reverted back to 1.156
8670         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8671
8672 2003-01-25    <johan AT balder>
8673
8674         * src/SDCCglue.c: A better fix for bug #661910
8675         * src/SDCCast.c: A better fix for bug #661910
8676         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8677
8678 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8679
8680         * src/Makefile.in: remove spawn.o
8681         * src/SDCCmain.c: remove spawn.h
8682         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8683         * src/spawn.c: removed
8684         * src/spawn.h: removed
8685         * support/regression/ports/ds390/spec.mk: link with -r
8686
8687 2003-01-24    <johan AT CP255758-A>
8688
8689         * src/ds390/gen.c (aopOp): fixed bug #667458
8690         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8691         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8692         (createIvalCharPtr): an ival doesn't always have a storage class anymore
8693
8694 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8695
8696         * src/mcs51/peeph.def: better assembler identation by Frieder
8697         * src/mcs51/gen.c: better assembler identation by Frieder
8698
8699 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
8700
8701         * as/z80/string.h: removed for gcc 3.2
8702         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8703         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8704
8705 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8706
8707         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8708         * src/SDCCpeeph.c (replaceRule): fix bug #663503
8709         * support/regression/Makefile: separate temp files for ports
8710         * support/regression/generate-cases.py: separate temp files for ports
8711         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8712         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8713
8714 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8715
8716         * moved tinitalk to device/examples/ds390
8717
8718 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
8719
8720         * as/mcs51/lkmem.c: rflag is for DS390
8721         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8722         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8723                          (linkEdit): move mem- and map-files the same way as ihx-files
8724         * src/z80/main.c (_setDefaultOptions): removed --generic
8725         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8726         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8727         * src/pic/glue.c (picglue): --c1mode works again
8728         * src/pic16/glue.c (pic16glue): --c1mode works again
8729         * src/asm.c (printCLine): fix #660034
8730
8731 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
8732
8733         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8734         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8735         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8736         * as/mcs51/lkmem (summary): better fix for sp problem
8737         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8738         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8739         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8740                                               remove --stack-after-data
8741
8742 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
8743
8744         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8745         * src/SDCCutil.c (join): ugly bug: missing '\0'
8746         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8747
8748 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8749
8750         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8751         * src/port.h: typo
8752         * src/pic/main.c (_asmCmd): gpasm supports -o
8753         * src/z80/main.c: more general macros
8754         * device/lib/Makefile.in: remove intermediate files
8755
8756 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8757
8758         * .version: Bumped version number to 2.3.3
8759         * src/SDCCBBlock.c: new option -o
8760         * src/SDCCglobl.h: new option -o
8761         * src/SDCCglue.c: new option -o
8762         * src/SDCCmain.c: new option -o
8763         * src/asm.c: new option -o
8764         * src/ds390/main.c: new option -o
8765         * src/pic/glue.c: new option -o
8766         * src/pic/pcode.c: new option -o
8767         * src/pic/ralloc.c: new option -o
8768         * src/pic16/glue.c: new option -o
8769         * src/pic16/pcode.c: new option -o
8770         * src/pic16/ralloc.c: new option -o
8771         * src/z80/main.c: new option -o
8772         * device/lib/Makefile.in: use -o
8773         * support/regression/ports/ds390/spec.mk: use -o
8774         * support/regression/ports/gbz80/spec.mk: use -o
8775         * support/regression/ports/mcs51/spec.mk: use -o
8776         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8777         * support/regression/ports/z80/spec.mk: use -o
8778         * support/regression/ports/ucz80/spec.mk: use -o
8779         * support/regression/ports/xa51/spec.mk: use -o
8780         * support/regression/fwk/lib/timeout.c: fix usage string
8781
8782 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
8783         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8784
8785 2003-01-07    <johan AT balder>
8786
8787         * src/SDCCast.c (decorateType): fixed bug #600035
8788
8789 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
8790         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8791         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8792         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8793         * src/pic/pcode.c: outcommented unused variable to remove warnings
8794         * src/pic/ralloc.c: outcommented unused variable to remove warnings
8795
8796 2003-01-06    <karl AT turbobit.com>
8797         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8798    regression tests.
8799
8800 2003-01-06    <johan AT balder>
8801
8802         * src/SDCCicode.c: fixed array add
8803
8804 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
8805         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8806         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8807
8808 2003-01-04    <johan AT balder>
8809
8810         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8811
8812 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8813         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8814
8815 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8816         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8817         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8818
8819 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8820         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8821
8822 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8823         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8824
8825 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8826         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8827
8828 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8829
8830     * in \sdcc\as\mcs51\ changed these files in order to create an
8831     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8832     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8833     following files to include the previous two files: aslink.dsp,
8834     Makefile.aslink, Makefile.bcc, and Makefile.in.
8835
8836     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8837     .adb instead of .cdb
8838
8839 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8840
8841         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8842         value from option --iram-size.
8843
8844 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8845
8846         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8847         dram[] array.
8848
8849 2002-09-18    <wiml AT hhhh.org>
8850
8851         * SDCClrange.h: exposed setFromRange() and setToRange()
8852         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8853           packRegsForAccUse() (bug 542397)
8854         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8855           multiple times and emitting the fetch operations more than once
8856           added aopGetUsesAcc() function to allow binary operators to
8857           fetch their operands in the correct order; made genMinus() emit
8858           compact code for X = LITERAL - Y
8859
8860 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8861         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8862         sprintf() in line 1267.
8863
8864 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8865         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8866         like ports.
8867
8868 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8869         Changes to aslink (All the changes are marked with 'JCF'):
8870
8871         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8872         summary().
8873
8874         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8875         area BSEG.  Also moves, if possible, the DATA area down into the internal
8876         ram so more space is available.
8877
8878         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8879         sflag.
8880
8881         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8882         not bytes.  Function summary() which creates a memory usage summary
8883         file with extension .mem.  Reports of overlaping stack and small stack
8884         size.  If the space for the stack is less than 16 bytes aslink trows a
8885         warning.
8886
8887         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8888         the 8051.  Option 'y' for memory summary output file.
8889
8890         Changes to sdcc (All the changes are marked with 'JCF'):
8891
8892         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8893
8894         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
8895         overlaying area for it (uses RegBankUsed[4]).
8896
8897         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8898         bank zero as used by default.  By default aslink locates the stack
8899         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
8900         the creation of the .mem file.  Delegates the allocation of data area
8901         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
8902         the begining of the stack area to aslink.
8903
8904         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
8905         glue() in SDCCglue.c creates an area for it.
8906
8907 2002-09-03  Borut Razem <borut.razem AT siol.net>
8908         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8909         sdcc/src/pic/glue.c:
8910         introduced atexit() handler for teporay files removal in case of
8911         errors, assertions, ...
8912
8913 2002-08-29  Borut Razem <borut.razem AT siol.net>
8914         * sdcc/support/cpp2/auto-host_vc_in.h:
8915         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8916         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8917         Maybe there is a similar problem with BORLANDC? It should be checked!
8918
8919         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8920         corrected improper use of assert: the assignment to clr variable was done inside the assert.
8921         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8922         was not executed, and the compiler (cl) launched a warning:
8923         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8924
8925 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8926         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8927
8928 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8929         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8930
8931         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8932           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8933           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8934           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8935           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8936           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8937           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8938         - added Release configuration in VS projects
8939         - review of compiler an linker options
8940         - VC .exe files are generated in bin_vc directory, not to interfere
8941           with binaries generated from other projects (cygwin, mingw, bcc ...)
8942
8943         * sdcc/src/yacc.dsp: added
8944
8945         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8946         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8947         and insert the version number definitions from .version
8948
8949         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8950
8951         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8952         added - genarate auto-host.h using auto-host_vc_in.h as template
8953
8954         * sdcc/sdcc_vc.h,
8955         removed from CVS, generated automatically
8956
8957 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
8958         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8959
8960 2002-08-11  Borut Razem <borut.razem AT siol.net>
8961         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8962
8963 2002-08-10  Borut Razem <borut.razem AT siol.net>
8964         * src/SDCCmain.c (main):
8965         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8966         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8967         The consequence was that some temporary files were not removed.
8968
8969         * src/SDCCglue.c:
8970         unification of code in functions tempfilename() and tempfile():
8971         function tempnam() is defined in Visual Studio 6.0 and .NET
8972
8973         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8974
8975         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8976           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8977         - removed compiler command line option /WX: Treats all warnings as errors
8978         - update a list of source files, included into the project
8979
8980         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8981           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8982         changed project type to Generic Project so that can be correcly converted to VS.NET project
8983
8984         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8985
8986         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8987
8988         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8989
8990         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8991         added return 0 statements after assert() to make compiler happy
8992
8993         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8994         added newline in the def file to keep MSC compiler satisfied
8995
8996         * sdcc/src/z80/gen.c:
8997         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8998           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8999         - solved MSC error in function aopDump()
9000
9001         * sdcc_vc.h: define PREFIX as "\\sdcc"
9002
9003 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
9004         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9005
9006 2002-06-22  Scott Dattalo <scott AT dattalo.com>
9007         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9008         - Rewrote the register banking algorithm.
9009         - Added pCode live-range analysis to registers (for now, only non-used and
9010         singly-used registers optimized away)
9011
9012         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9013
9014         * 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.
9015
9016 2002-05-10  Scott Dattalo <scott AT dattalo.com>
9017         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9018
9019 2002-04-22  Michael Hope  <michaelh AT vroom>
9020
9021         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9022
9023         * configure.in (DD_COPT): Added include support required for gbdk.
9024
9025         * .version: Bumped version number just to increase it.
9026
9027         * src/SDCCmain.c: Added -nostdinc to the default options.
9028
9029 2002-04-15  Michael Hope  <michaelh AT vroom>
9030
9031         * device/lib/z80/printf.c (sprintf): Added.
9032
9033         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9034
9035         * src/z80/peeph.def: Added transpose redundent load rule.
9036
9037         * src/z80/main.c: Added force callee saves for jaune.
9038
9039         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9040
9041         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9042
9043 2002-03-28  Johan Knol  <johan AT balder>
9044
9045         * src/SDCCval.c: fixed bug #532436
9046
9047 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9048         * /src/port.h:
9049         Added "char *Processor" field to the port structure.
9050
9051         * /src/SDCCmain.c:
9052         Added -p option. Allows port dependent processor to be specified.
9053
9054         * all ports:
9055         Initialized the new field char *Processor field to NULL in all ports
9056
9057         * /src/pic/*:
9058         Compiler generated registers for interrupt context saving
9059         were not getting allocated.
9060
9061 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
9062
9063         * /src/SDCCast.c:
9064         Fixed left shift. Will promote the left side of a left shift
9065         if a) left shifting more than size of operand or b) when assigned
9066         to something size > size of left side
9067
9068 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9069         * src/pic/*
9070         tons of changes. Register allocation has been
9071         rewritten. Added customization for the various PICs. Flow
9072         analysis is restructured. ...
9073
9074         * src/pic/device.h:
9075         Added
9076
9077         * src/pic/device.c:
9078         Added. device.c is a PIC port hack to accomodate variations
9079         in PIC devices.
9080
9081 2002-03-13  Michael Hope  <michaelh AT vroom>
9082
9083         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
9084
9085 2002-03-04  johanknol  <johanknol AT manik>
9086
9087         * /src/SDCCval.c: fixed
9088
9089         const unsigned char arr[][2] = { { 0, 1 } };
9090         t18.c:1: error: Initializer element is not constant
9091
9092 2002-03-04  bela  <bela AT manik>
9093
9094         * /device/include/mcs51reg.h:
9095         ds89c420 register definition update
9096
9097 2002-03-03    <johan AT FRIJA>
9098
9099         * support/Util/SDCCerr.c: did something, but don't no why anymore
9100
9101         * support/regression/tests/bug-524691.c: made it a little less shy
9102
9103         * src/SDCCast.c (decorateType): fixed bug #524697
9104
9105         * src/SDCCast.c: made some lineno improvements
9106
9107         * src/SDCCval.c (getNelements): changed warning to error
9108
9109         * src/SDCCglue.c (printIvalArray): changed warning to error
9110
9111         * src/SDCCicode.c: fixed a warning for mingw
9112
9113         * src/SDCCast.c (decorateType): fixed the << promotion for ops
9114
9115         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9116
9117 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
9118
9119         * src/ds390/peeph.def:
9120         Added some more peephole rules
9121
9122         * src/ds390/gen.c: Various fixes & enhancements
9123
9124         * src/SDCClrange.c, src/SDCClrange.h:
9125         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9126
9127         * src/ds390/ralloc.c:
9128         various fixes & enhancements (ds390) specific
9129
9130         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9131         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9132         from rallocs.
9133
9134         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9135
9136 2002-03-02    <johan AT FRIJA>
9137
9138         * src/SDCCast.c (decorateType): fixed bug #524708
9139
9140         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9141
9142         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9143
9144 2002-03-01  Michael Hope  <michaelh AT vroom>
9145
9146         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9147
9148         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9149
9150 2002-03-01    <johan AT FRIJA>
9151
9152         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9153
9154         * src/SDCCast.c (decorateType): fixed bug #524209
9155
9156         * src/SDCCval.c (valNot): fixed bug #524195
9157
9158 2002-02-26    <johan AT balder>
9159
9160         * src/xa51/gen.c: fixed a warning
9161
9162         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9163
9164         * src/SDCCast.c (decorateType): fixed bug #522534
9165
9166 2002-02-23    <johan AT balder>
9167
9168         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
9169
9170 2002-02-22    <johan AT balder>
9171
9172         * src/SDCCast.c: fixed bug #514865
9173
9174         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
9175
9176 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
9177
9178         * sdcc/src/SDCCloop.c:
9179         Previous fix was not good. basic blocks that have "break" or "return" are
9180         not really partof a loop , but live ranges used in these blocks should
9181         be live thru the entire loop, so set partOfLoop but don't add them to
9182         loop region
9183
9184 2002-02-21    <johan AT FRIJA>
9185
9186         * src/SDCCcse.c: fixed bug #514308
9187
9188 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
9189
9190         * src/SDCCloop.c:
9191         Fixed BUG #519583. If a conditional block ended in a return/break
9192         statement inside a loop, it was not being considered part of the loop.
9193
9194         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
9195
9196 2002-02-10  Karl Bongers <karl AT turbobit.com>
9197
9198         * debugger/*:
9199         Fixed up SDCDB debugger somewhat.  Updated debugger/README
9200         with lots of comments and notes.
9201
9202         * device/examples/test2.c:
9203         Fix bug, "red" variable not being initialized(compiler complained).
9204
9205         * device/examples/Makefile, examples/test3.c:
9206         Add Makefile in device/examples folder, compiles test3.c
9207         for use as a multiple module SDCDB test case.
9208
9209         * sim/ucsim/cmd.src/cmdset.cc:
9210         Took out debug printfs in ucsim "next" command.
9211
9212         * sim/ucsim/xa.src:
9213         Karl and Johan start ucsim XA support.  Most dissassembly working,
9214         about 75% emulation done(plenty of work remaining).
9215
9216         * sim/ucsim/z80.src:
9217         Add Z80 support to ucsim, add test-ucz80 regression test,
9218         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
9219         Notice z80 compiler fails on examples/test3.c/crc code.
9220
9221 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
9222
9223         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
9224         Added support for --parms-in-bank1
9225
9226         * src/ds390/peeph.def:
9227         added a few more peephole optimzations
9228
9229         * src/ds390/main.c:
9230         1) added __builtin_inp & __builtin_outp used to read in data of given length
9231            from a memory mapped port
9232         2) added __builtin_memcmp
9233         3) added __builtin_swapw swap bytes of a short
9234
9235         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9236         1) handle multiple send & receives from register bank1
9237         2) ralloc can now allocate DPTR1 to some liveRanges
9238
9239         * src/SDCCsymt.c, src/SDCCsymt.h:
9240         changes to handle multiple sends & receives
9241
9242         * src/SDCCptropt.h:
9243         added some pointer arithmetic optimization
9244
9245         * src/SDCCptropt.c:
9246         added some pointer arithmetic optimizations but not stable yet so not
9247         called from anywhere (will get this working shortly)
9248
9249         * src/SDCCopt.c: fixed for multiple sends & receives
9250
9251         * src/SDCCmain.c:
9252         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9253         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9254            set preprocessor defines (depending on options)
9255
9256         * src/SDCCicode.c, src/SDCCicode.h:
9257         changes made to handle multiple sends & receives
9258
9259         * src/SDCCglobl.h:
9260         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9261
9262         * src/SDCCcse.c, src/SDCCcse.h:
9263         added function findbackward def (to be used in upcoming optimization)
9264
9265         * src/SDCCcflow.c, src/SDCCcflow.h:
9266         added function returnAtEnd - to determine if a basic block terminates with
9267         a RETURN iCode
9268
9269         * src/SDCCast.c, src/SDCCast.h:
9270         added option parms-in-bank1
9271
9272         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9273         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9274         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9275         adjusted for --parms-in-bank1 option
9276
9277         * device/include/string.h:
9278         donot redefine "reentrant" keyword
9279
9280         * device/include/ds80c390.h: Added some more SFRs
9281
9282 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
9283
9284         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9285
9286 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
9287
9288         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9289
9290 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
9291
9292         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9293
9294 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
9295
9296         * Added --xram-movc option
9297
9298 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
9299
9300         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9301
9302 2002-01-11  Johan Knol
9303
9304         * Added math lib of Jesus Calvino-Fraga
9305
9306 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
9307
9308         * src/SDCCmain.c (processFile): fix processing of ../../src.c
9309         * support/regression/Makefile: new target test-mcs51-stack-auto
9310         * support/regression/ports/mcs51-stack-auto/spec.mk: added
9311
9312 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9313
9314         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9315
9316 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9317
9318         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9319
9320 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
9321
9322         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9323
9324         * src/SDCCglue.h: add definition for printIvalChar()
9325
9326 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9327
9328         * src/SDCCast.c: fix #498138 by Johan
9329
9330         * src/SDCCglue.c: fix #498138 by Johan
9331
9332 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9333
9334         * support/regression/Makefile: fix clean
9335
9336         * support/regression/ports/ds390/support.c: fix transmission of last character
9337
9338 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
9339
9340         * /sdcc/src/ds390/gen.c:
9341         a) improved computing address of stack variable
9342         b) took out some #if 0 code
9343         c) improved parmBytes adjustment
9344         d) improved genPlusIncr & genMinusIncr
9345         e) genCmp could generate bad code (when left assigned to DPTR)
9346         f) Fixed bug in hasInc
9347
9348         * /sdcc/src/ds390/ralloc.c:
9349         a) packRegsForSupport could mess up live information (Fixed)
9350         b) packRegsDPTRuse could be incorrect for left & right shift
9351
9352         * /sdcc/src/mcs51/ralloc.c:
9353         packRegsForSupport could mess up the live information (Fixed)
9354
9355         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9356
9357         * /sdcc/src/SDCCast.c:
9358         can reverse a loop even if function call is present as long
9359         as the loop control variable is local & is not passed as parameter
9360
9361 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9362
9363         * /sdcc/ChangeLog: *** empty log message ***
9364
9365         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9366         More builtin function additions for TININative
9367
9368         * /sdcc/src/ds390/ralloc.c:
9369         Had broken the regression testsuite
9370
9371         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9372
9373         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9374         Added funcattr hasStackParms will be set for reentrant functions when there
9375         are paramteres on the stack, this helps in minimizing frame pointer generation
9376         typeFromStr can handle function pointers now
9377
9378         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9379         *** empty log message ***
9380
9381 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9382
9383         * /src/ds390/gen.c, /src/ds390/main.c:
9384         More builtin function additions for TININative
9385
9386         * /src/ds390/ralloc.c:
9387         Had broken the regression testsuite
9388
9389         * /src/SDCCast.c: Fixed a bug in dumptree
9390
9391         * /src/SDCCsymt.c, /src/SDCCsymt.h:
9392         Added funcattr hasStackParms will be set for reentrant functions when there
9393         are paramteres on the stack, this helps in minimizing frame pointer generation
9394         typeFromStr can handle function pointers now
9395
9396         * /doc/builtins.txt, /doc/TININative.txt:
9397         *** empty log message ***
9398
9399
9400 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9401
9402         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9403         ALPHA version for -mTININative
9404
9405         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9406         updated to reflect changes in the port structure
9407
9408         * /src/port.h:
9409         added function do_assemble (similar to do_link) if non-null this function
9410         will be called to do assembly (-mTININative) requires a multi command
9411         assembly
9412         added function genAssemblerEnd will be called to generate assembler Epilogue
9413
9414         * /src/SDCCsymt.c:
9415         added _JavaNative to debug info printing
9416
9417         * /src/SDCCmain.c: added option --tini-libid
9418         added port->do_assemble function (-mTININative) has a multi command assemble
9419
9420         * /src/SDCCglue.c: Disabled "constExpr" check
9421         added port->genAssemblerEnd function
9422
9423         * /src/SDCCglobl.h: Added option --tini-libid value
9424
9425         * /src/SDCCast.h:
9426         tookout optimizeCompare from the header (has no external references)
9427
9428         * /src/SDCCast.c: made one more function "static"
9429
9430 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
9431
9432         * src/z80/mappings.i: Added z80asm support.
9433
9434         * src/z80/main.c: Added z80asm support on --asm=z80asm
9435
9436         * src/z80/gen.c: Fixed asm portability issues.
9437
9438         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
9439
9440         * src/SDCCglue.c (printExterns): Added global/extern split.
9441
9442 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
9443
9444         * support/regression/Makefile: added test for mcs51 model large
9445
9446         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
9447
9448         * support/regression/ports/gbz80/spec.mk: added -mgbz80
9449
9450 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
9451
9452         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
9453
9454 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
9455
9456         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
9457
9458         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
9459
9460 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
9461
9462         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
9463
9464         * support/regression/tests/simplefloat.c: Port to mcs51.
9465
9466 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
9467         * support/regression/tests/bug-485362.c: Added.
9468
9469         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
9470
9471         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
9472
9473         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
9474
9475         * src/z80/gen.c (aopDump): Added a dump function.
9476
9477 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
9478         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
9479
9480         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
9481
9482         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
9483
9484         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
9485
9486         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
9487
9488         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
9489
9490         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
9491
9492         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
9493
9494         * support/regression/ports/ds390/support.c: Use tinibios.
9495
9496         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
9497
9498 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
9499
9500         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
9501         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
9502
9503         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
9504
9505         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
9506
9507 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
9508
9509         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
9510
9511         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
9512         (packRegsForIYUse): Created and optimised.
9513
9514 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9515
9516         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
9517 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
9518
9519         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
9520
9521         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
9522
9523         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
9524
9525 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9526
9527         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
9528
9529         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
9530
9531 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9532
9533         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
9534
9535         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
9536
9537         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
9538
9539 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9540
9541         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
9542         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
9543         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
9544
9545         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
9546
9547         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
9548         (genNotFloat): Added.
9549         (genUminusFloat): Added.
9550
9551         * device/lib/z80/Makefile: Added floating pt stubs.
9552
9553         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
9554
9555         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
9556
9557         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
9558
9559 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9560
9561         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
9562
9563         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
9564
9565         * sdcc/support/regression/Makefile: Add port ds390.
9566
9567         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
9568
9569         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
9570
9571         * sdcc/support/regression/ports/ds390/spec.mk: Added.
9572
9573         * sdcc/support/regression/ports/ds390/support.c: Added.
9574
9575         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
9576
9577         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
9578
9579         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
9580
9581 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9582
9583         * device/include/malloc.h: Added z80 and gbz80 support.
9584
9585         * device/lib/gbz80/heap.s: Added.
9586
9587         * device/lib/z80/heap.s: Added.
9588
9589         * device/lib/malloc.c: Added z80 and gbz80 support.
9590
9591         * support/regression/tests/malloc.c (testMalloc): Added.
9592
9593         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
9594
9595         * support/regression/tests/bug-478094.c: Added.
9596
9597         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
9598
9599 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
9600
9601         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
9602
9603         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
9604
9605         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
9606
9607         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
9608
9609         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
9610
9611 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9612
9613         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
9614
9615 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
9616
9617         * support/regression/tests/bug-477927.c: Added.
9618
9619         * src/z80/peeph.def: Added minor rules.
9620
9621         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
9622
9623         * src/z80/peeph.def: Added jump optimisation modification.
9624
9625 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
9626
9627         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
9628
9629 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
9630
9631         * support/regression/tests/funptrs.c: Added.
9632
9633 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
9634
9635         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
9636
9637 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
9638
9639         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
9640
9641         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
9642
9643         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
9644         (movLeft2ResultLong): Created.
9645
9646         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
9647         (joinPushes): Added.  Joins two char pushes into a word push.
9648
9649 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
9650
9651         * support/cpp2/Makefile.in (install): Added creation of dest dir.
9652
9653         * support/makebin/Makefile (install): Added creation of dest dir.
9654
9655 2001-10-24 Karl Bongers <karl AT turbobit.com>
9656
9657         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
9658
9659 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
9660
9661         * src/z80/ralloc.c: Turned off faulty pack for one use.
9662
9663         * src/z80/peeph-gbz80.def: Removed redundent restart options.
9664
9665         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
9666
9667 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
9668
9669         * support/regression/Makefile: Improved clean
9670
9671         * support/regression/ports/gbz80/spec.mk: Added clean
9672
9673         * support/regression/ports/host/spec.mk: Added clean
9674
9675         * support/regression/ports/z80/spec.mk: Added clean
9676
9677         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9678
9679         * support/regression/ports/mcs51/timeout.c: little improvements
9680
9681 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
9682
9683         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9684
9685         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9686
9687         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9688
9689 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
9690
9691         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9692
9693         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9694
9695 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
9696         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9697
9698         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9699
9700         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9701
9702         * src/mcs51/main.c (_linkCmd): Added bin path to command.
9703
9704         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9705
9706         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9707
9708         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9709
9710         * support/regression/tests/longor.c: Added.
9711
9712 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
9713
9714         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9715
9716         * as/mcs51/aslink.h: define PATH_MAX
9717
9718         * as/mcs51/asm.h: define PATH_MAX
9719
9720         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9721
9722         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9723
9724         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9725
9726         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9727
9728         * src/SDCCglobl.h: define PATH_MAX
9729
9730         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9731
9732         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9733
9734 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
9735
9736         * src/z80/gen.c (gencjneshort): Fixed
9737
9738         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9739
9740 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
9741
9742         * support/regression/tests/bug-469671.c: Added.
9743
9744         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9745
9746 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
9747
9748         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9749
9750         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
9751
9752 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
9753
9754         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9755
9756         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
9757
9758         * src/device/lib/_mullong.c : removed hint: nooverlay bug
9759
9760         * src/device/lib/_divuint.c : removed hint: nooverlay bug
9761
9762         * src/device/lib/_divulong.c: removed hint: nooverlay bug
9763
9764         * src/device/lib/_moduint.c : removed hint: nooverlay bug
9765
9766         * src/device/lib/_modulong.c: removed hint: nooverlay bug
9767
9768 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
9769
9770         * 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.
9771
9772         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
9773
9774         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9775
9776 2001-10-07    <johan AT FRIJA>
9777
9778         * device/lib/gets.c (gets): fixed the return value.
9779
9780 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
9781         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9782
9783         * 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.
9784
9785         * 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.
9786
9787         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9788
9789         * src/pic/gen.c: Removed Safe_strdup.
9790
9791         * configure.in: Added option to enable libgc support.
9792
9793         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9794         (bitVectUnion): Optimised.
9795         (bitVectIntersect): Optimised.
9796         (bitVectBitsInCommon): Optimised.
9797         (bitVectCplAnd): Optimised.
9798
9799         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
9800
9801 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9802
9803         * src/SDCCmain.c: distinguish between assembler debug and plain options
9804
9805         * src/avr/main.c:   remove standard assembler options
9806
9807         * src/ds390/main.c: remove standard assembler options
9808
9809         * src/mcs51/main.c: remove standard assembler options
9810
9811         * src/port.h: removed "PENDING" comment
9812
9813 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9814
9815         * src/device/lib/_mulint.c  : new, with assember functions
9816
9817         * src/device/lib/_mullong.c : new, with assember functions
9818
9819         * src/device/lib/_divuint.c : with assember functions
9820
9821         * src/device/lib/_divsint.c : with assember functions
9822
9823         * src/device/lib/_divulong.c: with assember functions
9824
9825         * src/device/lib/_divslong.c: with assember functions
9826
9827         * src/device/lib/_moduint.c : with assember functions
9828
9829         * src/device/lib/_modsint.c : with assember functions
9830
9831         * src/device/lib/_modulong.c: with assember functions
9832
9833         * src/device/lib/_modslong.c: with assember functions
9834
9835         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9836
9837         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9838
9839         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9840                                       replaced _mululong.c and _mulslong.c by _mullong.c
9841
9842 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9843
9844         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9845
9846 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9847
9848         * src/SDCCglue.c: test, if win32api is available for MINGW
9849
9850 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9851
9852         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9853         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9854         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9855         * support/regression/ports/host/spec.mk: removed GENERIC
9856         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9857         * support/regression/ports/z80/spec.mk: removed GENERIC
9858
9859 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9860
9861         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9862
9863         * support/regression/tests/bug-467035.c: Created.
9864
9865 2001-10-01    <johan AT FRIJA>
9866
9867         * src/SDCC.y: fixed bug #466586 part 1
9868
9869 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9870
9871         * SDCCicode.c: z80 has no generic pointers
9872         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9873
9874 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
9875
9876         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9877
9878 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
9879
9880         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9881
9882         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9883
9884 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
9885
9886         * configure.in: Fixed up so that ucsim is only configured once.
9887
9888         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9889
9890         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9891         (getPathDifference): As above.
9892
9893         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
9894
9895         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9896
9897 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
9898         * .version: Updated to 2.3.1
9899
9900         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9901         Added copyright header.
9902
9903         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9904         (assemble): Added support for macro based assembler commands.
9905         (linkEdit): Added support for macro based linker commands.
9906         (preProcess): Changed the pre-processor to use macros.
9907         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9908         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9909
9910         * device/lib/z80/crt0.s: Added module name for debugging.
9911
9912 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
9913
9914         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9915
9916         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9917
9918         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9919
9920         * src/Makefile.in: Added SDCCmacro and SDCCutil
9921
9922 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
9923
9924         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9925
9926 2001-09-16    <johan AT FRIJA>
9927
9928         * 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.
9929
9930 2001-09-15    <johan AT FRIJA>
9931
9932         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9933         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9934
9935 2001-09-11    <johan AT FRIJA>
9936
9937         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9938
9939 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
9940
9941         * support/regression/tests/bug-460444.c: Added test case.
9942
9943         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9944         (genCast): Added justification for all of the asserts.
9945
9946 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
9947
9948         * support/regression/support.c: _xdata replaced by xdata
9949
9950         * support/regression/spec.mk: removed _generic
9951
9952 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
9953
9954         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9955
9956         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9957         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9958
9959         * src/z80/peeph.def: Added a rule to optimise shift then compare.
9960
9961         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9962
9963         * support/regression/tests/bug-460010.c: Added test case.
9964
9965         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9966
9967 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * support/regression/Makefile: inter-port-clean adjusted for mcs51
9970
9971         * support/regression/testfwk.c: removed workaround for bug #436344
9972
9973         * support/regression/tests/bp.c: use less memory with mcs51
9974
9975         * support/regression/tests/bug-441448.c: use less memory
9976
9977         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9978
9979         * support/regression/collate-results.py: typo
9980
9981 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
9982
9983         * support/regression/tests/fetchoverlap.c: Added new test case.
9984
9985         * support/regression/tests/bp.c: Added new test case.
9986
9987         * support/regression/tests/bug-448984.c: Added new test case.
9988
9989         * support/regression/tests/pow2shifts.c: Added new test case.
9990
9991         * src/z80/gen.c: Turned off the noise it normally generates for the release.
9992         (genlshTwo): Fixed right shift for count > 8.
9993
9994         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9995
9996 2001-09-08    <johan AT FRIJA>
9997
9998         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9999
10000 2001-09-07    <johan AT FRIJA>
10001
10002         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10003
10004         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10005
10006 2001-09-06    <johan AT FRIJA>
10007
10008         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10009         * bernhard noted me at this: "() equals to (void)" (1.38)
10010
10011 2001-09-05    <johan AT FRIJA>
10012
10013         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10014
10015 2001-09-04    <johan AT FRIJA>
10016
10017         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10018
10019
10020 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
10021
10022         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
10023
10024 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
10025
10026         * link/z80/aslink.h: Fixed path for PATH_MAX
10027
10028 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
10029
10030         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10031
10032         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10033
10034         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10035
10036         * 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.
10037
10038 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
10039
10040         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10041         (genCmp): Fixed up genCmp for the GB with longs.
10042
10043         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10044
10045         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10046
10047         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10048
10049         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10050
10051 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
10052
10053         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
10054
10055 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
10056
10057         * 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.
10058
10059         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10060
10061 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
10062
10063         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
10064
10065         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10066
10067 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
10068
10069   * sim/ucsim/configure:    little improvement of Cygwin-detection
10070   * sim/ucsim/configure.in: little improvement of Cygwin-detection
10071   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10072   * support/regression/tests/bug-221100.c: small changes for mcs51
10073   * support/regression/tests/bug-221168.c: small changes for mcs51
10074   * support/regression/tests/bug-227710.c: small changes for mcs51
10075   * support/regression/tests/staticinit.c: small changes for mcs51
10076   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10077   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10078   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10079
10080 $Revision$