* sdcc/device/lib/Makefile.in: remove all unnecessary files
[fw/sdcc] / ChangeLog
1 2005-11-18 Borut Razem <borut.razem AT siol.net>
2
3         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5           introduced SILENT option to make building of pic16 libraries less
6
7 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8
9         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
10           Now they work properly with floats between -1.0 and 0.0
11         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
12
13 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
14
15         * src/SDCCicode.c (printOperand): added missing else
16
17 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
18
19         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
20         reformatted for better readability
21         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
22         signed bitfields
23
24 2005-11-17 Borut Razem <borut.razem AT siol.net>
25
26         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
27           introduced SILENT option to make building of pic16 libraries less
28           verbose - used for nightly snapshot build
29         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
30           available on Win32 platforms.
31         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
32           medium, large, pic and pic16
33
34 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
35
36         * device/lib/printf_large.c: Temporary patch for bug 1358192:
37           printf("%f"...) sets fraction to zero.
38
39 2005-11-16 Raphael Neider <rneider AT web.de>
40
41         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
42           fixes #1357221
43         * src/pic/gen.c (genIfx): implemented for CARRY bit
44         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
45           to generic pointers, fixes #1357332,
46           (pic16_movLit2f): NEW,
47           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
48
49 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
50
51         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
52
53 2005-11-11 Raphael Neider <rneider AT web.de>
54
55         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
56         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
57           compute pointer's type from operand,
58           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
59           improved single bit reads, fixes bug #1353379
60
61 2005-11-09 Borut Razem <borut.razem AT siol.net>
62
63         * support/scripts/sdcc.nsi: added lib/pic to the package
64
65 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
66
67         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
68
69 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
70
71         * support/regression/tests/bug1348008.c: added
72         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
73         * support/regression/tests/bug1337835.c: updated comment
74
75 2005-11-06 Borut Razem <borut.razem AT siol.net>
76
77         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
78           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
79           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
80           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
81           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
82           dynamic construction of cl_error_class and derivates - 2.nd try
83
84 2005-11-05 Borut Razem <borut.razem AT siol.net>
85
86         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
87           bug, which caused Bus Errors on sparc solaris
88
89 2005-11-04 Borut Razem <borut.razem AT siol.net>
90
91         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
92           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
93           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
94           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
95           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
96           and derivates to resolve the initialization problem on OSX
97
98 2005-11-02 Borut Razem <borut.razem AT siol.net>
99
100         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
101           corrected typo - #include <winsock2.h>
102
103 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
106           (_asxxxx_mapping): added org directive for future enhancements
107
108 2005-11-01 Borut Razem <borut.razem AT siol.net>
109
110         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
111           enabled sockets on WIN32
112         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
113
114 2005-10-31 Borut Razem <borut.razem AT siol.net>
115
116         * support/regression/generate-cases.py: escape backslashes in {testcase}:
117           WIN32 backslash path delimiters should be escaped when used in C strings
118         * support/regression/tests/bitfields.c: exclude failing assertions for
119           __CYGWIN32__ and __MINGW32__ hosts
120
121 2005-10-30 Borut Razem <borut.razem AT siol.net>
122
123         * src/SDCCutil.c: corrected double comparison typo
124
125 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
126
127         * device/lib/medium/Makefile: added for new memory model medium
128         * device/include/asm/mcs51/features.h: updated for medium/pdata
129         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
130           added Multiply & Accumulate sbit's and MAC0_PAGE define
131         * device/include/mcs51/c8051f300.h: added sfr16 definitions
132         * device/include/mcs51/c8051f310.h: added sfr16 definitions
133         * device/lib/_mullong.c: update for medium model
134         * device/lib/incl.mk: added medium model
135         * doc/sdccman.lyx: documented medium model
136         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
137         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
138         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
139         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
140           (allocParms): set SCLS and OCLS to pdata for medium model
141         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
142           for pdata,
143           (powof2): return <0 if not power of 2
144         * src/avr/gen.c (genBitWise): use updated powof2
145         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
146           (shiftR2Left2Result): small optimization in setup, save acc when storing,
147           (shiftLLeftOrResult): use B if necessary
148         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
149         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
150         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
151         * support/regression/Makefile.in: added test-mcs51-medium
152         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
153
154 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
155
156         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
157         specifier unsigned
158         * device/lib/time.c (mktime): fixed bug 1334315
159
160 2005-10-28 Raphael Neider <rneider AT web.de>
161
162         * device/include/pic/p16f_common.inc: added common declarations
163         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
164
165 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
166
167         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
168           (aopPutUsesAcc): added to predict accumulator use,
169           (assignResultValue): save acc if necessary,
170           (genMinusDec): store result if indirectly addressed,
171           (genDivOneByte):  save acc if necessary,
172           (movLeft2Result): bugfix if left already in acc,
173           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
174             attention to accumulator use (esp. pdata),
175           (genReceive): receive pdata correctly
176         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
177         * src/SDCCicode.h: added isOperandInPagedSpace prototype
178
179 2005-10-27 Raphael Neider <rneider AT web.de>
180
181         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
182
183 2005-10-27 Raphael Neider <rneider AT web.de>
184
185         * .version: changed version to 2.5.4
186         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
187         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
188           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
189             arithmetics support routines
190         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
191         * device/lib/Makefile.in: also create installdir for pic
192
193         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
194           pic14 port as well
195         * src/pic/device.c (dump_sfr): rewritten to delegate register
196           placement to the linker (use `extern sym' rather than sym EQU addr),
197           (validAddress): fixed to check last specified address
198         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
199           (popGetLit): truncate literal value to 8 bit,
200           (popGet): moved assert to more appropriate place
201           (popGetExternal): create pCode operand from and mark the according
202             symbol as being `extern'
203           (popGetAddr): added sanity check on immediate's offset, provide
204             GPOINTER tag on demand
205           (aopPut): fixed for immediates,
206           (mov2w_op): move operand's address or contents to WREG (depending on
207             operand type), safer variant of mov2w,
208           (movwf,call_libraryfunc): NEW, handy abbreviations,
209           (get_argument_pcop,get_return_val_pcop,pass_argument,
210           get_returnvalue): interface for accessing function parameters and
211             return values,
212           (assignResultValuei,genRet): use new parameter/return value interface
213           (pic14_getDataSize): back to old version handling generic pointers,
214           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
215             provided implementation and/or fixed old one,
216           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
217             calls, removed legacy 8051 reference code
218           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
219           (loadSignToC): NEW, move the operands sign bit to CARRY,
220           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
221             genRightShiftSigned, accepts negative shift counts,
222           (setup_fsr): load FSR and adjust IRP (indirect memory access),
223           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
224             generic pointers, __data pointers and __code pointers,
225           (genUnpackBits,genPackBits): rewritten to work with generic pointers
226             and signed bitfields, limit bitfields to 8 bit,
227           (genDataPointerGet): fixed number of bytes read,
228           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
229           (genPointerGet,genPointerSet): fixed handling of __code pointers,
230             pointers to constant data are no longer assumed to point to __code
231             space, removed invalid pointer types,
232           (bitpatternFromVal): retrieve the PICs representation of an integer
233             or float literal,
234           (genDataPointerSet): fixed assigning to po_immediate operands,
235           (genGenPointerSet): implemented as library call,
236           (genIfx): fixed incorrect condition,
237           (genAddrOf): limit generic pointers' addresses to 2 bytes,
238             provide GPOINTER tag according to destination's storage class,
239           (genCast): added code to handle casting to generic pointers, added
240             sign-/zero extension of the result
241           (aop_isLitLike,op_isLitLike): fixed handling of immediates
242         * src/pic/gen.h: added macros to access IRP bit in STATUS register
243         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
244           extend the result
245         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
246           address/register resides in the shared banks
247           (emitSymbolToFile): improved to handle global and `pinned' symbols,
248             put all variables into separate sections (have the linker arrange
249             them)
250           (picglue): put init code and interrupt handlers in separate sections
251         * src/pic/main.c: added port specific options table, modified to PORT
252           structure to make GPOINTERs 3 byte, added pic14_options
253           (_pic14_do_link): private linking routine (update paths to libraries,
254             add libsdcc.lib by default)
255         * src/pic/main.h: declare pic14_options
256         * src/pic/pcode.c: fixed instructions i/o relations,
257           (RegCond): reverted to correct version,
258           (newpCodeOpLit): truncate literals to 8 bit,
259           (genericPrint): added debug output,
260           (getRegFromInstruction): fixed for various operand types, simplified
261           (BuildFlow): fixed broken handling of isntructions with labels
262           (LinkFlow): start at last instruction in flow (skip trailing comments),
263             pass the flow on to the next instruction after CALL
264           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
265           (insertPCodeInstruction): fixed inserting after a skip instruction,
266           (DoBankSelect): fixed for labeled instructions
267           (OptimizepBlock): honor --nopeep switch
268           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
269         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
270         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
271           (pCodeOptime2pCodes): allow disabling this optimization via
272             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
273             but is still buggy), started implementation of a dataflow based
274             pCode optimization (CSE + dead code elimination)
275           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
276         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
277           names are independant of the stack location and therefore portable across
278           devices
279
280 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
283           (selectSpil): fixed bug 1337835 by not spilling bit variables
284         * support/regression/tests/bug1337835.c: added test for this bug
285         * src/mcs51/peeph.def: restart after rule 3.c,
286           addded rules 263.x to optimize loading constants
287
288 2005-10-26 Raphael Neider <rneider AT web.de>
289
290         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
291         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
292           (genAssign): emit warning when casting literals to generic pointer
293             type, also applies when taking the address of a fixed variable,
294           (genCast): improved casting to generic pointers
295         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
296           extern variables, added verbose error message
297         * device/include/pic16/{string.h,errno.h}: added #pragma library c
298
299 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
300
301         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
302         carry must be complemented too
303         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
304         could be emitted by genMinus
305         * src/SDCCval.c (constVal): fixed bug 1305065
306
307 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
308
309         * src/SDCCast.c (addCast): added promotion for bit variables
310         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
311         promotion casts + optimisation
312         (optimizeGetWord): fix warning 'i' might be used uninitialized
313         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
314         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
315
316 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
317
318         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
319         all chars are promoted to int; promotion should be handled in SDCCast.c
320
321 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
322
323         * device/lib/_strcmp.c: Fixed bug 1326457
324
325 2005-10-11 Raphael Neider <rneider AT web.de>
326
327         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
328         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
329
330 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
331
332         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
333         * support/regression/tests/sfr16.c: added test for the sfr32 bug
334
335 2005-10-04 Raphael Neider <rneider AT web.de>
336
337         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
338           device/lib/pic16/pics.all: added pic18f1320
339         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
340
341 2005-09-30 Raphael Neider <rneider AT web.de>
342
343         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
344         * src/pic16/devices.inc: NEW, provides device descriptions
345         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
346
347 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
348
349         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
350           GETHBIT
351
352 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
353
354         * doc/sdccman.lyx: updated Highest Order Bit documentation,
355           documented Any Order Bit, Higher Order Byte and Higher Order Word
356         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
357         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
358           (optimizeGetAbit): new, to get any bit, not only the high bit,
359           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
360           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
361           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
362           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
363             RIGHT_OP: also try GETBYTE, GETWORD optimization,
364             GETABIT, GETBYTE, GETWORD: decorate them,
365           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
366           (ast_print): added GETABIT, GETBYTE, GETWORD
367         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
368         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
369           (geniCodeBinary): new generic binary icode,
370           (ast2iCode): added GETABIT, GETBYTE, GETWORD
371         * src/port.h: updated comment for PORT.hasExtBitOp
372         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
373           (genGetByte): new, to get a single byte,
374           (genGetWord): new, to get a word from a long,
375           (gen51Code): added GETABIT, GETBYTE, GETWORD
376         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
377
378 2005-09-23 Raphael Neider <rneider AT web.de>
379
380         * configure.in, configure: have device/lib/pic configured
381         * device/lib/Makefile.in: added model-pic14
382         * device/lib/clean.mk: added pic/ to clean rule
383         * device/lib/pic: added rudimentary pic14 library providing support
384           functions for multiplication/division/generic pointer access
385         * src/SDCCopt.c (convilong): mark support functions as extern
386           for pic14 port as well
387         * src/pic/gen.c (genMult): added assertions,
388           (genpic14Code): emit warning on unhandled iCodes
389         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
390         * src/pic/pcode.c (pCodeOpCopy),
391         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
392           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
393           SFR_REGISTER}), made safe for future extensions
394         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
395           instructions even if preceeded by SKIP instructions (also remove
396           them); removed unused code
397         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
398           prevents leaving parts of the structure uninitialized after copying
399
400 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
401
402         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
403           ago by me
404         * support/regression/tests/addsub.c: added test for the bug
405
406 2005-09-21 Raphael Neider <rneider AT web.de>
407
408         * device/include/pic16/pic18f1220.h,
409           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
410         * device/lib/pic16/Makefile.rules: added missing opening paren
411         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
412           are provided in genutils.c,
413           (genUminusFloat,genUminus,genCmpEq): added asserts on different
414           operand/result sizes,
415           (genCmp): assert on NULL pointers first, then check deref'ed values
416         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
417           result size
418
419 2005-09-18 Raphael Neider <rneider AT web.de>
420
421         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
422           as these are now unused,
423           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
424         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
425           local, avoids uninitialized pointer dereference on r->name
426         * src/pic16/ralloc.c (newReg): fixed indentation
427
428 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * src/SDCCval.c (constVal): fixed bug 730366
431         * support/Util/SDCCerr.c,
432         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
433
434 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
435
436         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
437
438 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
439
440         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
441
442 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
443
444         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
445           (hex2dec): made hex_digit unsigned char, removed ascii dependance
446         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
447           (hex2dec): made hex_digit unsigned char, removed ascii dependance
448         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
449         * packihx/packihx.c (hexDigit): made c unsigned char
450         * as/mcs51/lklibr.c (fndsym),
451         * link/z80/lkgb.c (gb),
452         * link/z80/lklibr.c (fndsym),
453         * link/z80/lkrloc.c (relr),
454         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
455         * src/SDCC.lex (checkCurrFile, process_pragma),
456         * src/SDCCglue.c (spacesToUnderscores),
457         * src/SDCCmain.c (setParseWithComma, processFile),
458         * src/asm.c (tvsprintf, printCLine),
459         * src/avr/gen.c (emitcode, aopPut),
460         * src/ds390/gen.c (emitcode),
461         * src/hc08/gen.c (emitcode, emitinline),
462         * src/mcs51/gen.c (emitcode, genInline),
463         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
464           tokenizeLineNode),
465         * src/pic/ralloc.c (debugLog),
466         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
467           tokenizeLineNode),
468         * src/pic16/ralloc.c (debugLog),
469         * src/z80/main.c (_process_pragma):
470            made all ctype.h function calls safe
471         * src/SDCCopt.c: include math.h for fabs
472         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
473           and used them throughout the code to make ctype.h function calls safe
474         * src/ds390/main.c (asmLineNodeFromLineNode),
475         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
476         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
477            unsigned char*
478         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
479           (newpCodeAsmDir): made ctype.h function calls safe
480         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
481           pic16_emitcode):  made lbp unsigned char*
482         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
483           (pic16_newpCodeAsmDir): made ctype.h function calls safe
484         * src/xa51/gen.c (emitcode),
485         * src/z80/gen.c (_emit2): made lbp unsigned char*
486         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
487            char*
488
489 2005-09-05 Raphael Neider <rneider AT web.de>
490
491         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
492           access bank splitpoint
493
494 2005-09-05 Raphael Neider <rneider AT web.de>
495
496         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
497
498 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
499
500         * .version: changed to version 2.5.3
501         * doc/sdccman.lyx: changed version to 2.5.3,
502           documented --codeseg and --constseg and pragma codeseg and constseg,
503           documented bit parameters (reentrant) and bit returning
504         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
505            currFunc->recvSize, but is this ok for all ports?
506           (ast2iCode): result of ~ on unsigned char must be cast to int for
507            bool to work
508         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
509           function pointers in bit space
510         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
511           (processFuncArgs): call port.reg_parm() with reentrancy info
512         * src/port.h,
513         * src/avr/main.c,
514         * src/ds390/main.c,
515         * src/hc08/main.c,
516         * src/pic/main.c,
517         * src/pic16/main.c,
518         * src/xa51/main.c,
519         * src/z80/main.c: port.reg_parm prototype extended with
520           "bool reentrant" parameter
521         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
522           options.stackAuto for allocating bit register parameters
523         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
524           (genSend): set BitBankUsed if it is,
525           (selectRegBank): factored out of genCall for use in genPcall,
526           (genCall): removed redundant dtype assignmen, use selectRegBank,
527           (genPcall): handle returning in Carry properly, save in F0 if needed,
528           (genReceive): handle bit register parameters
529         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
530           (mcs51_assignRegisters): enable bit registers for all reentrant
531            functions and don't set BitBankUsed unconditionally
532         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
533         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
534         * support/regression/tests/funptrs.c: added tests for BOOL and for return
535
536 2005-08-27 Borut Razem <borut.razem AT siol.net>
537
538         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
539         ppc-osx (Darwin) does not support -u option. It seems that it is
540         supported only on Linux - GNU cp
541
542 2005-08-25 Borut Razem <borut.razem AT siol.net>
543
544         * sim/ucsim/gui.src/serio.src/Makefile.in,
545           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
546           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
547           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
548           install and strip, since the strip at /usr/ccs/bin should be used
549           on solaris
550
551 2005-08-24 Borut Razem <borut.razem AT siol.net>
552
553         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
554
555 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
556
557         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
558         ffffffffu
559
560 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
561
562         * as/mcs51/aslink.h: completed lkrloc.c prototypes
563         * as/mcs51/lkmain.c (link_main): fixed warning
564         * device/include/stdbool.h: ds390 has no advanced bit support yet
565         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
566         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
567         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
568           and updated their macros
569         * src/SDCCval.c (constVal): updated comment for renamed b_long
570
571 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
572
573         * as/mcs51/asdata.c: changed ctype['['] to BINOP
574         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
575           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
576           (oprio): set priority for '['
577         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
578            and adb_24_bit
579         * as/mcs51/asm.h: added defines R_BIT and S_BIT
580         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
581         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
582         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
583           added overlayable BIT_BANK area
584         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
585           (summary2): explain 'T' in legenda
586         * as/mcs51/lkrloc.c: replaced old K&R style,
587           (relr): added R_BIT processing,
588           (errmsg): added "Bit-addressable relocation error",
589           (adb_bit): added for converting from byte- to bit-addressable space,
590           (adb_24_bit): added for converting from byte- to bit-addressable space
591         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
592            used in reentrant functions now even as return value
593         * device/lib/_gptrput.c (_gptrput): removed obsolete code
594         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
595           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
596         * src/SDCCglobl.h: added indicator BitBankUsed
597         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
598            the bit registers b0-b7
599         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
600           (geniCodeCast): fixed bug 1263853,
601           (geniCodeLogicAndOr): put result in bool or char,
602           (geniCodeReceive): added parameter func for accessing the return type,
603           (geniCodeFunctionBody): pass func to geniCodeReceive
604         * src/SDCCmain.c: added indicator BitBankUsed
605         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
606         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
607           (checkSClass): don't put automatic bool/bit on stack,
608           (checkFunction): removed check on function cannot return bit
609         * src/SDCCsymt.h: added newBoolLink prototype
610         * src/mcs51/gen.c (rb1regs): added bit registers,
611           (movc): created for assigning to carry,
612           (pushReg, popReg): created for pushing registers,
613           (sameRegs): check both AOP_REG and AOP_CRY types,
614           (aopOp): handle bit registers,
615           (aopPut): optimization no self-assign,
616           (saveRegisters): push reg->base (bits) only once for bit registers,
617            and use pushReg,
618           (unsaveRegisters): pop reg->base only once and use popReg,
619           (assignResultValue): added parameter func and return in carry for bits,
620           (genIpush): optimization no reload in A if not changed,
621           (genSend): bit parameters in reentrant functions are passed in bit
622            registers by first assigning to bits in B, then save registers and
623            copy B to bits,
624           (genCall): handle returning in Carry properly, save it in F0 if needed,
625           (genPcall): updated assignResultValue call, this is not safe yet for bit
626            returning function !!!
627           (genFunction): don't generate equ's for bit registers and use pushReg,
628           (genEndFunction): take care of bit returning functions and use popReg,
629           (genRet): return bit in Carry,
630           (genIfx): optimize bit registers and other directly addressable bits,
631           (genReceive): updated assignResultValue call
632         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
633           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
634            registers when using stack-auto
635         * src/mcs51/ralloc.c (_G): added allBitregs,
636           (regs8051): added the bit registers,
637           (createStackSpil): use macro IS_BIT,
638           (getRegBit): added to allocate a bit register, else spill,
639           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
640           (updateRegUsage): factored out to ease stepping while debugging,
641           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
642            also allocate bit registers,
643           (fillGaps): handle bit registers,
644           (findAllBitregs): added to create bit vector with all bit registers,
645           (mcs51_allBitregs): returns this bit vector,
646           (mcs51_assignRegisters): when using stack-auto use bit registers for
647            passing parameters and creating local variables
648         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
649
650 2005-08-22 Borut Razem <borut.razem AT siol.net>
651
652         * device/lib/Makefile.in: replaced find option -or with -o
653           to make it run on solaris
654
655 2005-08-22 Raphael Neider <rneider AT web.de>
656
657         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
658           fixes #1265442 (crash on Solaris)
659
660 2005-08-20 Borut Razem <borut.razem AT siol.net>
661
662         * configure, configure.in: added tests for libsocket and libnsl libraries,
663           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
664           from support/regression/Makefile.in
665         * support/regression/Makefile.in: added
666         * device/lib/pic16/Makefile.common.in: force make to use bash shell
667         * sim/ucsim/libtool: regenerated on sparc-solaris
668         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
669           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
670           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
671           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
672           sparc-solaris, which doesn't use GNU ld linker
673         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
674         * as/Makefile: find on sparc-solaris does not support -maxdepth option
675
676 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
677
678         * src/mcs51/peeph.def: updated comments
679
680 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
681
682         * device/lib/_gptrget.c,
683         * device/lib/_gptrput.c: slightly shorter
684         * doc/sdccman.lyx: incremented version
685         * src/mcs51/peeph.def: moved peephole comments to the line of first
686           change to better keep line correlation, reanimated 186.e
687         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
688
689 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
690
691         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
692           David Saxton with quotes around file name.
693
694 2005-08-15 Borut Razem <borut.razem AT siol.net>
695
696         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
697           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
698           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
699           make tests run on x86_64 platform
700
701 2005-08-13 Raphael Neider <rneider AT web.de>
702
703         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
704           as it might be executed DURING a build (parallel make is wonderful)
705
706 2005-08-13 Raphael Neider <rneider AT web.de>
707
708         * device/lib/Makefile.in (port-specific-objects-pic16):
709           revert to cp $(PORT)/bin/*.* $(PORTDIR)
710         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
711           dependency
712         * device/lib/pic16/Makefile.rules: build subdirs before creating
713           the library, removed builddir rule, create $(builddir) early in
714           recurse rule, use empty recurse rule for leaf directories
715         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
716           mkdir errors (race condition), removed duplicate suffix "hex"
717           from clean rules
718         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
719         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
720           prevents mkdir -p from aborting on Alpha
721
722 2005-08-12 Raphael Neider <rneider AT web.de>
723
724         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
725           db-statements in order to allow for arrays of pointers in code
726           sections to be placed without interspersed 0-padding, fixes
727           bug #1256215
728         * (emitStatistics): fixed division by zero for pic18f1220
729         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
730           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
731         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
732         * (pic16_pCodeConstString): keep track of already emitted string
733           literals to prevent "duplicate definitions of symbol _str_NR"
734         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
735           debug message
736         * device/lib/Makefile.in: ignore failing PIC16 library builds
737         * device/lib/pic16/Makefile: do not build if gputils are missing
738         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
739
740 2005-08-10 Raphael Neider <rneider AT web.de>
741
742         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
743           my last commit)
744
745 2005-08-10 Raphael Neider <rneider AT web.de>
746
747         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
748           Rokas' patch to add the new fixed point type "__fixed16x16"
749         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
750           functions for __fixed16x16 arithmetics
751         * device/lib/pic16: reimplemented the build system to support
752           a separate build directory, better handling of libio (create
753           the library in a separate subdir for each architecture) and
754           easier configuration (centralized in Makefile.common)
755
756 2005-08-07 Raphael Neider <rneider AT web.de>
757
758         * src/pic16/gen.c (genrshTwo): fixed sign extension
759         * src/pic16/device.c: added pic18f2320, 4220 and 4320
760         * device/include/pic16/pic18f2220.h: changed some bit definitions,
761           added T0CONbits
762         * device/include/pic16/pic18f4220.h: NEW, header for
763           pic18f4220 and pic18f4320
764         * device/include/pic16/pic18fregs.h: added new devices,
765           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
766         * device/include/pic16/signal.h: resolved name clashes
767           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
768           to also allow testing for interrupt enable bits, added
769           comments on how to use the macros
770         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
771         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
772           register definitions for the devices
773         * device/lib/pic16/pics.all: added new devices
774         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
775           allocated memory
776         * device/lib/pic16/libc/stdlib/memfree: do not count
777           the block header as free memory
778         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
779           simplified and added missing end-of-blocklist-marker
780           (reported by Peter Onion, fixes #1252814)
781         * (_mergeHeapBlock): fixed loop condition
782         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
783           len==0, restructured code
784         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
785           up a bit, reduced bitfield accesses, prevent endless loops
786           in case of heap corruption
787         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
788           "unreferenced arguments/must return a value" warnings
789         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
790           replaced BAUDREG with SPBRG
791         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
792           device/lib/pic16/debug/gstack/gstack.c: replaced
793           _naked, _asm, _endasm with __naked, __asm, __endasm
794
795 2005-08-05 Raphael Neider <rneider AT web.de>
796
797         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
798           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
799
800 2005-08-05 Borut Razem <borut.razem AT siol.net>
801
802         * device/lib/Makefile.in: added missing ';'
803         * configure: removed ^M characters
804
805 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
806
807         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
808           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
809           License
810
811 2005-08-04 Borut Razem <borut.razem AT siol.net>
812
813         * configure.in: pic16 libraries build 2nd try - enable running
814           configure in device/lib/pic16
815         * configure: regenerated from configure.in
816         * device/lib/Makefile.in: create $(PORT)/bin directory
817
818 2005-08-03 Raphael Neider <rneider AT web.de>
819
820         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
821           to get/set values via pointers
822         * (genUnpackBits,genPackBits): changed detection of
823           ptr->bitfield vs. sym.bitfield, fixed access via generic
824           pointers, removed dead (wrong) code for multibyte bitfields
825         * (genNearPointerGet, genGenPointerGet): removed useless code,
826           fixed bitfield detection, fixes #1250594
827         * (genNearPointerSet): removed useless code
828         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
829           and introduced macro pic16_emitpcode that conditionally emits
830           the origin of the following pCode (useful for debugging SDCC)
831         * src/pic16/pcode.c: changed (and disabled) some debug outputs
832         * (createDefmap): fixed handling of LFSR for --optimize-df
833
834 2005-08-02 Borut Razem <borut.razem AT siol.net>
835
836         * device/lib/Makefile.in: pic16 libraries build enabled since
837           gputils-0.13.2 are now localy installed at sourceforge's compile farm
838
839 2005-08-02 Raphael Neider <rneider AT web.de>
840
841         * src/pic16/gen.c (genPackBits): removed deprecated warning
842         * (genGenPointerSet): fixed bitfield detection
843
844 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
845
846         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
847
848 2005-07-31 Raphael Neider <rneider AT web.de>
849
850         * device/lib/pic16/libdev/pic18f458.c,
851           device/include/pic16/pic18f458.h: added missing T0CONbits
852
853 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
854
855         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
856
857 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
858
859         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
860
861 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
862
863         * device/include/mcs51/at89c51ed2.h: added.
864
865 2005-07-23 Raphael Neider <rneider AT web.de>
866
867         * src/pic/gen.h: added emitpcode macro for debugging
868         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
869           and replace by macro adding debug information on demand
870         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
871         * (gencjne): tried to fix; replaced with correct (slower) code
872         * (gen{Unp,P}ackBits): fixed single bit access
873         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
874         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
875           previous instruction
876         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
877           register has to be handled with care (forbidding movement
878           of assignments/uses, removing assignments completely, ...)
879         * (pCodeOptime2pCodes): make use of regIsSpecial
880         * added lots of debugging output (commented out)
881         * src/pic/rallloc.c (deassignLRs): prevent operand registers
882           from being reused as result UNLESS it is known to work
883
884 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
885
886         * support/Util/dbuf.h: include <stddef.h> for size_t
887         * .version: changed to version 2.5.2
888
889 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
890
891         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
892
893 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
894
895         * src/hc08/gen.c (genMinus): fixed bug #1241835,
896           (genModOneByte): removed needless psha/pula
897
898 2005-07-22 Raphael Neider <rneider AT web.de>
899
900         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
901           have PIC14 handled like PIC16, fixes broken pic14 linker calls
902         * src/pic/gen.c (resolveIfx): do not "invent" labels
903         * (genSkipc): changed to positive logic
904         * (genSkipCond): removed as no longer needed
905         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
906           backport from PIC16
907         * (genLeftShift): check operands are in different registers
908         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
909           INCF does not update CARRY...
910         * src/pic/main.c: fixed _linkCmd
911         * src/pic/pcode.c (unlinkpCode): added inactive code
912         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
913           alive (do not assign result and operand overlapping registers)
914
915 2005-07-22 Raphael Neider <rneider AT web.de>
916
917         * src/pic/device.c (dump_sfr): replaced register declaration with
918           call to emitSymbolToFile() to avoid duplicate symbols
919         * (assignRelocatableRegisters): do not declare external symbols
920         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
921           right (take size of type, not etype)
922         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
923         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
924         * (packRegsForAccUse): disabled assignment of WREG as
925           the result reg to prevent occurence of just fixed #1235003,
926           fixes #1242954
927         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
928           symbols (avoids duplicate symbols in .asm file)
929         * (pic14emitRegularMap): use emitSymbolToFile()
930         * src/pic/gen.c (aopOp): fixed spillLocation handling
931         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
932         * (genDataPointerSet): removed unneccessary variables/output
933
934 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
935
936         * as/mcs51/lkarea.c: enlarged codemap for banked memory
937         * device/lib/mcs51/crtbank.asm: added # to 0x0F
938
939 2005-07-21 Raphael Neider <rneider AT web.de>
940
941         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
942           architecture cannot handle them efficiently, fixes bug #1235003
943         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
944           check for empty sets before using them (fixes bug #1232190)
945
946 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
947
948         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
949           (lnksect2): generate warnings for memory overlap
950         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
951           constseg to set the name of these segments so you can instruct the linker
952           to place them in banks
953         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
954         * src/SDCCglobl.h: added MODEL_HUGE to enum,
955           added code_seg and const_seg to options
956         * src/SDCCglue.c (emitMaps): use options.const_seg,
957           (createInterruptVect): put interrupt vectors in segment HOME,
958           (glue): put HOME before static segment and put the main glue in HOME,
959           (glue): use options.code_seg
960         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
961         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
962           these segments so you can instruct the linker to place them in banks
963           (linkEdit): use code_loc for HOME segment which should be the first
964           segment in code memory now
965         * src/SDCCmem.c: fixed more stuff like bug 1238386
966         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
967           (changePointer): don't change function pointers to code pointers for
968           banked functions,
969           (compareType): added exceptional check for banked function pointers
970         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
971         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
972           after static in code memory
973         * src/mcs51/gen.c: added aopLiteralLong prototype,
974           (aopForSym): use getSize for functions,
975           (genCall): generate banked calls over one trampoline __sdcc_banked_call
976           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
977           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
978           the segment,
979           (genPcall): use call for literal function pointers and generate banked
980           calls over the one trampoline so there's only one place for the user to
981           modify according to his/hers hardware,
982           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
983           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
984         * src/mcs51/main.c: added keyword banked,
985           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
986         * support/Util/SDCCerr.c,
987         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
988           needed for passing the bank and address to the trampoline
989         * device/lib/mcs51/crtbank.asm: added for bankswitching
990         * device/lib/mcs51/Makefile: added crtbank
991
992 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
993
994         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
995           for fields at offset 0 of a struct or union as reported
996           on 2005-07-07 in the developer mailing list.
997
998 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
999
1000         * src/SDCCmem.c: fixed bug 1238386
1001
1002 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1003
1004         * src/mcs51/peeph.def: added labelrefcounting for peepholes
1005           (patch #1144962), added peephole 300, enabled 259.x
1006         * doc/sdccman.lyx: removed screenshot and provided link instead
1007
1008 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1009
1010         * doc/sdccman.lyx: added section about debugging with ddd
1011         * doc/figures/ddd_example.eps: screenshot of debugging session
1012
1013 2005-07-04 Raphael Neider <rneider AT web.de>
1014
1015         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1016           like CODE pointers, fixes #1115683
1017         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1018           call, fixes bugs #1232211, #1228110,
1019           fixed wrong casts to pCodeFlow from pCodeInstructions
1020
1021 2005-07-04 Raphael Neider <rneider AT web.de>
1022
1023         * src/pic/gen.c (popGet): changed assert to allow for
1024           bit operands
1025         * (popGetAddr): changed signature to provide
1026           an additional index, patched all call sites
1027         * (genCmpEq): handle literal-like operands correctly
1028         * (genAddrOf): added sanity checks on __code/__data pointers
1029         * (genAssign): added handling of symbols from __code section
1030         * (gencjne): do not generate code for comparisons whose result
1031           is neither stored nor used, fixes bug #1171114
1032         * (AccLsh, AccRsh): operate on operand instead of WREG
1033         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1034           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1035           by known count
1036         * rewrote complete shift-by-literal logic, commented unused
1037           functions out
1038         * (genConstPointerGet): get multiple bytes (if result size > 1),
1039           fixed handling of non-immediate addresses
1040         * (genPointerGet): handle CODE pointers like CONST pointers
1041         * (genpic14Code): insert C-SRC lines as Cource-pCodes
1042         * ({aop,op}_isLitLike): NEW, single place to decide whether an
1043           operand is to be treated as a literal or not
1044         * (mov2w,genPcall,genCmpEq),
1045           src/pic/genarith.c: use aop_isLitLike() to decide between
1046           literal/register contents
1047         * (addSign): added missing offset
1048         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1049           only emit comment in debug-mode,
1050           use {aop,op}_isLitLike throughout the file
1051         * src/pic/glue.c: fix initializers for pointers (work in progress)
1052         * src/pic/pcode.c (get_op): honor index on _const symbols
1053         * ({reset,dump}pCodeStatistics): NEW, estimate code size
1054         * (dumppBlock): added pCode size estimation
1055         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1056           check for IS_SYMOP before OP_SYMBOL'ing
1057         * fixed indentation, compacted switch-statements
1058         * (allocReg): find free register and allocate it instead of
1059           allocating new registers all the time
1060         * (deassignLRs): prevent POINTER_GET's from being assigned the same
1061           registers as its operands (necessary only for multibyte GETs)
1062
1063 2005-07-01 Raphael Neider <rneider AT web.de>
1064
1065         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1066           debugging .asm-output macros FENTRY + FEXIT
1067         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1068           way... I wonder...
1069         * (emitpComment): NEW, printf to pCode
1070         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1071           offset handling
1072         * (popGetAddr): NEW, variant of popGet to access an immediates
1073           high(er) bytes instead of the n'th byte of memory they reference,
1074           replaced popGet with popGetAddr where neccessary
1075         * (genDataPointerGet): reactivated and fixed implementation
1076         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1077           accesses
1078         * (genDataPointerSet): fixed multibyte assignments
1079         * (genpic14Code): fixed --i-code-in-asm handling
1080         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1081         * (genPlus): fixed index-out-of-bounds error
1082         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1083         * src/pic/ralloc.c: added debugging output macro FENTRY2
1084         * (spillThis): fixed indentation, enbraced for-body for clarity
1085         * (rematStr): commented out as now unused
1086         * (regTypeNum): commented out special spill case (overwrites
1087           arbitrary values)
1088         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1089
1090 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1091
1092         * doc/sdccman.lyx: documented sfr16/sfr32,
1093           added example for using storage class with function pointers
1094         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1095
1096 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1097
1098         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1099         * device/lib/_itoa.c,
1100         * device/lib/_ltoa.c: optimized codesize
1101         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1102           but don't know how to suppress the double warning.
1103         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1104         * support/Util/SDCCerr.c,
1105         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1106
1107 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1108
1109         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1110           fixed old K&R prototypes
1111         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1112         * device/lib/_gptrget.c,
1113         * device/lib/_gptrgetc.c,
1114         * device/lib/_gptrput.c: changed versions for new memory indicator values,
1115           also new versions for small generic pointers and banked generic pointers
1116         * src/port.h: added const_name
1117         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
1118         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
1119         * src/SDCCcse.c (findPrevIc): check all associative operators
1120         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
1121         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
1122         * src/SDCCmem.c: updated comments,
1123           set far-space to 0 for pdata, results in optimized code
1124         * src/SDCCmem.h: added macro CONST_NAME
1125         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1126           moving the info into the highest bits, see also gptrget/gptrput
1127         * src/src.dsp: added sdcc.ico to project files
1128         * src/avr/gen.c (genCast): fixed bug 0x%d
1129         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1130         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1131           relation between ptr_type and DCL_TYPE,
1132           (genCast): fixed bug 0x%d
1133         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1134           (CODE)" for const_name
1135         * src/hc08/gen.c (genCast): fixed bug 0x%d
1136         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1137           (hc08_port): added "CONST (CODE)" for const_name
1138         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1139           (aopForRemat, adjustArithmeticResult): disconnected direct relation
1140           between ptr_type and DCL_TYPE,
1141           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1142           operand* and took AOP() inside function so sfr-ness can be checked,
1143           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1144           new prototype,
1145           (genFunction, genEndFunction): optimized stack setup,
1146           (genMinus): optimized for literals with ending zeroes (in bytes),
1147           (genCast): fixed bug 0x%d
1148         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1149           (mcs51_port): added "CONST (CODE)" for const_name
1150         * src/mcs51/peeph.def: made rule 226 more generic
1151         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1152         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1153         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1154         * src/z80/main.c (z80_port): added NULL for const_name,
1155           (gbz80_port): added NULL for const_name
1156         * support/regression/tests/bug663539.c,
1157         * support/regression/tests/sfr16.c: new tests
1158
1159 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1160
1161         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1162
1163 2005-06-24 Raphael Neider <rneider AT web.de>
1164
1165         * device/lib/pic16/libdev/pic18f[68][567]20.c:
1166           corrected typos...
1167         * device/include/pic16/signal.h: added USBIF
1168           and SIG_USB
1169
1170 2005-06-24 Raphael Neider <rneider AT web.de>
1171
1172         * device/lib/pic16/libdev/pic18f2455.c,
1173           device/include/pic16/pic18f2455.h: NEW
1174         * device/include/pic16/pic18fregs.h,
1175           device/lib/pic16/pics.all,
1176           src/pic16/device.c: added 18f2455
1177         * device/lib/pic16/libdev/pic18f[68][567]20.c,
1178           device/include/pic16/{pic18f[68][567].h,usart.h}:
1179           replaced MULTIPLE_USARTS define with more relaible
1180           compatibility sfrs (for USART access)
1181
1182 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1183
1184         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1185           and the output asm file line is printed on two lines.
1186
1187 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1188
1189         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1190           BGT, BLE, BHI, and BLS instructions
1191         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1192           genCmpEq): removed
1193         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1194           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1195           fixes bug #1216342
1196         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1197
1198 2005-06-15 Raphael Neider <rneider AT web.de>
1199
1200         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1201         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1202         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1203           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1204           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1205
1206 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1207
1208         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1209           Marcel Telka in bug #1215704
1210
1211 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1212
1213         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1214           located in shared memory bank.
1215
1216 2005-05-31 Raphael Neider <rneider AT web.de>
1217
1218         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1219           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1220           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1221
1222 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1223
1224         * device/lib/_strncpy.c: fixed the fix
1225
1226 2005-05-26 Raphael Neider <rneider AT web.de>
1227
1228         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1229           initializers with \0, bug #1208187
1230         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1231           intializers with \0, bug #1208187
1232
1233 2005-05-26 Raphael Neider <rneider AT web.de>
1234
1235         * src/pic16/glue.c (pic16_printIvalChar): fixed string
1236           initializers with \0, bug #1208187
1237         * src/pic16/main.c (_process_pragma): added sanity checks
1238           for stack position and size, emit warnings when appropriate
1239
1240 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1241
1242         * device/lib/_strncpy.c: fixed not filling with \0
1243
1244 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1245
1246         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1247           createFunction),
1248         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1249           compound_statement),
1250         * src/SDCCsymt.h,
1251         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1252
1253 2005-05-24 Raphael Neider <rneider AT web.de>
1254
1255         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1256
1257 2005-05-24 Raphael Neider <rneider AT web.de>
1258
1259         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1260           TRISE definitions, closes bug #1162453
1261
1262 2005-05-22 Raphael Neider <rneider AT web.de>
1263
1264         * src/pic16/main.c (_process_pragma): check for missing
1265           arguments to pragmas code and udata
1266         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1267           consistency fixes to match other headers (thanks to Jim Paris)
1268         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1269
1270 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1271
1272         * src/SDCCicode.c (isOperandEqual): fixed missing ;
1273
1274 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1275
1276         * support/regression/tests/bug1198642.c: new test
1277         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1278         * src/SDCCcse.c (findPrevIc): added comment, please have a look
1279         * support/scripts/resource.h,
1280         * support/scripts/resource.rc,
1281         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1282         * support/scripts/sdcc.ico: added 32x32 icon
1283
1284 2005-05-18 Raphael Neider <rneider AT web.de>
1285
1286         * device/lib/pic16/libdev/pic18f*.c,
1287         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1288           keywords to "__sfr" and "__at (X)"
1289         * device/include/pic16/pic18fregs.h: added pic18f4520
1290         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
1291           #1203088 (MPLAB compatibility)
1292
1293 2005-05-17 Raphael Neider <rneider AT web.de>
1294
1295         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
1296         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
1297         * device/lib/pic16/pics.all: added new devices
1298         * src/pic16/device.c: added support for pic18f4520
1299
1300 2005-05-16 Raphael Neider <rneider AT web.de>
1301         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
1302         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
1303         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
1304           convenience function for bit access
1305
1306 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1307
1308         * device/lib/printf_large.c: fixed bug 1193299
1309         * support/regression/tests/bug1057979.c: added test %3.3s
1310
1311 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1312
1313         * device/include/mcs51/8051.h,
1314         * device/include/mcs51/8052.h: made parseable with lint
1315         * device/include/mcs51/lint.h: added include file for (sp)lint
1316         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
1317         * doc/cdbfileformat.lyx,
1318         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
1319
1320 2005-05-14 Raphael Neider <rneider AT web.de>
1321
1322         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
1323         * device/lib/pic16/libc/stdlib/itoa.c (new)
1324         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
1325         * device/lib/pic16/libio/Makefile: exclude subdir according to
1326           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
1327         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
1328         * src/pic16/gen.c (genFunction): prevent annoying warning
1329         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
1330           nameclashes on BeOS
1331         * support/cpp2/cppmain.c (cpp_output_string): new
1332         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
1333           fixes bug 1116802
1334
1335 2005-05-13 Borut Razem <borut.razem AT siol.net>
1336
1337         * src/SDCCmain.c (linkEdit): fixed bug 1195202
1338
1339 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1340
1341         * .version: changed to version 2.5.1; back to bleeding edge development
1342
1343 2005-05-11 Borut Razem <borut.razem AT siol.net>
1344
1345         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
1346           generate PDF version 1.3 documents
1347
1348 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1349
1350         * .version: changed to version 2.5.0
1351
1352 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1353
1354         * doc/sdccman.lyx: updated weblinks, index and smaller updates
1355
1356 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1357
1358         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1359         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1360         well as many smaller updates.
1361         * .version: changed to version 2.5.0-pre1
1362
1363 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1364
1365         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1366
1367 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1368
1369         * support/regression/tests/bug1185672.c: added
1370         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1371           bug 1185672
1372         * src/mcs51/gen.c (genCall): added comments, made it look safer
1373         * src/mcs51/gen.c (genEndFunction): simplified
1374
1375 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1376
1377         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1378
1379 2005-04-14 Borut Razem <borut.razem AT siol.net>
1380
1381         * fixed bug 1045046 - SIGSEGV with really simple code?:
1382           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1383           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1384
1385 2005-04-14 Borut Razem <borut.razem AT siol.net>
1386
1387         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1388           src/pic16/device.h: temporarily disabled experimental #inline pragma
1389           for 2.5.0 release
1390
1391 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1392
1393         * device/include/z80/stdio.h,
1394         * device/include/z80/string.h: removed these highly incomplete files so
1395           SDCC can use the default ones in device/include/
1396
1397 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1398
1399         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1400         gcc warning.
1401         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1402         fix sdcpp warnings.
1403
1404 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1405
1406         * device/include/malloc.h: removed redundant __reentrant prototypes
1407         * device/lib/_mullong.c: added working xstack variant in asm (C version
1408           doesn't pass regression tests)
1409         * device/lib/bpx.c: used __data and made bpx char for mcs51
1410         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1411           (createFunction): fixed bug with xstackPtr
1412         * src/SDCCcse.c: corrected comments
1413         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1414           (killDeadCode, eBBlockFromiCode): removed unused code
1415         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1416           corrected comments
1417         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1418           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1419           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1420           (genModOneByte): fixed warning in MSVC
1421         * src/mcs51/main.c (): added comments
1422         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1423
1424 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1425
1426         * src/SDCCmain.c (linkEdit): oops, changed one line too many
1427
1428 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1429
1430         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1431
1432 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1433
1434         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1435         characters arrays of larger size than the declared one.
1436
1437 2005-04-10 Borut Razem <borut.razem AT siol.net>
1438
1439         * src/pic/gen.c (genInline),
1440           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1441           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1442           (findNextInstruction), (findPrevInstruction),
1443           (findInstructionUsingLabel),
1444           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1445         * src/pic/pcode.c (findLabel): added missing '\n'
1446         * src/src.dsp: added SDCCdwarf2.c to the project
1447
1448 2005-04-09 Borut Razem <borut.razem AT siol.net>
1449
1450         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1451
1452 2005-04-08 Raphael Neider <rneider AT web.de>
1453
1454         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1455           into the chain after a given one) and mergeDefmapSymbols (combine
1456           defmap entries for each symbol per pcode)
1457         * (createDefmap): have defmap entries merged in the end
1458         * (defmapReplaceSymRef): split defmap entries covering two accesses to
1459           a symbol before replacing one access type's symbol, merge symbols in
1460           the end (replacement symbol might already have an entry)
1461         * (assignValnums): keep reference to written WREG intact
1462
1463 2005-04-08 Raphael Neider <rneider AT web.de>
1464
1465         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1466           Alpha)
1467
1468 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1469
1470         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1471         bytes
1472
1473 2005-04-07 Raphael Neider <rneider AT web.de>
1474
1475         * device/include/pic16/usart.h: added compatibility defines for
1476           devices with more than one USART
1477         * device/include/pic16/pic18f[68][567]20.h: activated above defines
1478
1479 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1480
1481         * device/lib/Makefile.in: updated for port specific include
1482
1483 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1484
1485         * support/regression/ports/mcs51/spec.mk: added mcs51 include
1486
1487 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1488
1489         * device/include/8051.h,
1490         * device/include/8052.h,
1491         * device/include/at89S8252.h,
1492         * device/include/at89c55.h,
1493         * device/include/at89x051.h,
1494         * device/include/at89x51.h,
1495         * device/include/at89x52.h,
1496         * device/include/mcs51reg.h,
1497         * device/include/reg51.h,
1498         * device/include/reg764.h,
1499         * device/include/regc515c.h,
1500         * device/include/sab80515.h: (re)moved these 12 files
1501         * device/include/mcs51/8051.h,
1502         * device/include/mcs51/8052.h,
1503         * device/include/mcs51/at89S8252.h,
1504         * device/include/mcs51/at89c55.h,
1505         * device/include/mcs51/at89x051.h,
1506         * device/include/mcs51/at89x51.h,
1507         * device/include/mcs51/at89x52.h,
1508         * device/include/mcs51/mcs51reg.h,
1509         * device/include/mcs51/reg51.h,
1510         * device/include/mcs51/reg764.h,
1511         * device/include/mcs51/regc515c.h,
1512         * device/include/mcs51/sab80515.h: and added them here
1513
1514 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1515
1516         * device/include/stdarg.h: changed SDCC specific keywords to double
1517           underlined form.
1518         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1519           mcs51 and ds390.
1520         * device/include/hc08/mc68hc908gp32.h,
1521         * device/include/hc08/mc68hc908jb8.h,
1522         * device/include/hc08/mc68hc908jkjl.h,
1523         * device/include/hc08/mc68hc908qy.h: fixed comments
1524         * device/include/mcs51/README: updated
1525         * device/include/mcs51/c8051f120.h: added PINRSF
1526         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1527         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1528           amidst code. Also inline is not supported.
1529
1530 2005-04-06 Raphael Neider <rneider AT web.de>
1531
1532         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1533         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1534           callers stack/frame pointers
1535
1536 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1537
1538         * device/include/pic16/usart.h: added, missing in previous commit,
1539         * device/include/pic16/adc.h: fixed typo,
1540         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1541         commit,
1542         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1543         <p18fxxx.inc>
1544         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1545         uninitialized because a bug appears with gplink
1546         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1547         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1548         complains for unrecognised option
1549
1550 2005-04-05 Raphael Neider <rneider AT web.de>
1551
1552         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1553           structs as well (using memcpy)
1554         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1555           on ISRs (GOTO has no label)
1556         * src/pic16/device.h: added OF_OPTIMIZE_DF
1557         * src/pic16/main.c: added compiler switch --optimize-df to enable the
1558           new data flow analysis/optimization
1559         * src/pic16/pcode.c: added (prototypes for and implementation of)
1560           dataflow analysis functions, fixed pCodeInstructions' inCond and
1561           outCond values, made RCALL a branch instruction
1562         * (pic16_unlinkpCode): keep C line if possible
1563         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
1564           C line moved if possible
1565         * (pic16_getRegFrompCodeOp): NEW, improved version of...
1566         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
1567           to use new pic16_getRegFrompCodeOp (works for more SFRs)
1568         * (pic16_BuildFlow): fixed skip instructions with label (did not start
1569           new flow)
1570         * (pic16_getJumptabpCode): NEW, needed in...
1571         * (LinkFlow): fixed handling of jumptables, calls and conditional
1572           branches
1573         * (pic16_InsertCommentAfter): NEW
1574         * (pic16_pCodeReplace): made verbose and flow preserving
1575         * (AnalyzeFlow): added call to data flow analysis
1576         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
1577         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
1578         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
1579
1580 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1581
1582         * src/SDCCast.c (decorateType): fixed bug #1105626
1583
1584 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
1585
1586         * device/include/asm/pic16/features.h,
1587         * pic18f*.h headers,
1588         * device/include/pic16/adc.h,
1589         * device/include/pic16/delay.h,
1590         * device/include/pic16/i2c.h,
1591         * device/include/pic16/malloc.h,
1592         * device/include/pic16/stdio.h,
1593         * device/include/pic16/stdlib.h,
1594         * device/include/pic16/string.h,
1595         * device/lib/pic16/libc/stdio/printf_tiny.c,
1596         * device/lib/pic16/libc/stdio/printf_small.c,
1597         * device/lib/pic16/libc/stdio/strmgpsim.c,
1598         * device/lib/pic16/libc/stdio/strmmssp.c,
1599         * device/lib/pic16/libc/stdio/strmusart.c,
1600         * device/lib/pic16/libc/stdio/vfprintf.c,
1601         * device/lib/pic16/libc/stdlib/ltoa.c,
1602         * device/lib/pic16/libc/stdlib/putchar.c,
1603         * device/lib/pic16/libc/stdlib/x_ftoa.c,
1604         * device/lib/pic16/libc/stdlib/memchrpgm.c,
1605         * device/lib/pic16/libc/stdlib/memchrram.c,
1606         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
1607         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
1608         * device/lib/pic16/libio/adc/adcbusy.c,
1609         * device/lib/pic16/libio/adc/adcread.c,
1610         * device/lib/pic16/libio/adc/adcsetch.c,
1611         * device/lib/pic16/libio/usart/ubaud.c,
1612         * device/lib/pic16/libio/usart/ubusy.c,
1613         * device/lib/pic16/libio/usart/udrdy.c,
1614         * device/lib/pic16/libio/usart/uopen.c,
1615         * device/lib/pic16/libio/usart/uputc.c,
1616         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
1617         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
1618         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
1619         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
1620         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
1621         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
1622         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
1623         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
1624         specific keywords to double underlined form,
1625         * device/lib/pic16/libc/Makefile.rules,
1626         * device/lib/pic16/libsdcc/Makefile.rules,
1627         * device/lib/pic16/libm/Makefile,
1628         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
1629         to compile with C standard set in Makefile.common
1630         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
1631         rand.c and crc.c in compilation process,
1632         * device/lib/pic16/libsdcc/int/divuint.c,
1633         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
1634         `c' from signed to unsigned,
1635         * device/lib/pic16/startup/crt0.c,
1636         * device/lib/pic16/startup/crt0i.c,
1637         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
1638         keywords to double underlined form, bug fixes in _do_cinit function
1639         which prevented the correct initialization of the .idata segment,
1640         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
1641         core to enter a infinite loop
1642         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
1643
1644 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1645
1646         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
1647
1648 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1649
1650         * device/include/Makefile.in: add support for hc08 subdirectory
1651         * device/include/hc08/: new subdirectory
1652         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
1653         Lucas Loizaga, thanks!
1654         * device/include/hc08/mc68hc908qy.h,
1655         * device/include/hc08/mc68hc908gp32.h,
1656         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
1657         their own directory. Changed internal macro names to use the compiler
1658         reserved namespace. Changed SDCC specific keywords to double
1659         underlined form.
1660         * device/include/math.h,
1661         * device/include/malloc.h,
1662         * device/include/stdarg.h,
1663         * device/include/stdbool.h
1664         * device/include/string.h,
1665         * device/include/tinibios.h,
1666         * device/include/ds400rom.h,
1667         * device/include/8051.h,
1668         * device/include/8052.h,
1669         * device/include/80c51xa.h,
1670         * device/include/at89c55.h,
1671         * device/include/at89S8252.h,
1672         * device/include/at89x51.h,
1673         * device/include/at89x52.h,
1674         * device/include/ds80c390.h,
1675         * device/include/reg764.h,
1676         * device/include/regc515c.h,
1677         * device/include/sab80515.h,
1678         * device/include/mcs51/c8051f000.h,
1679         * device/include/mcs51/c8051f018.h,
1680         * device/include/mcs51/c8051f020.h,
1681         * device/include/mcs51/c8051f040.h,
1682         * device/include/mcs51/c8051f060.h,
1683         * device/include/mcs51/c8051f120.h,
1684         * device/include/mcs51/c8051f300.h,
1685         * device/include/mcs51/c8051f310.h,
1686         * device/include/mcs51/c8051f320.h,
1687         * device/include/mcs51/c8051f330.h,
1688         * device/include/mcs51/c8051f350.h,
1689         * device/include/z180.h: Changed SDCC specific keywords to double
1690         underlined form.
1691
1692 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
1693
1694         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
1695         18F4455,
1696         * (pic16_assignConfigWordValue): disable testing of configuration
1697         register value with config mask,
1698         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
1699         function with port->fun_prefix,
1700         * (genFunction): when generating a naked interrupt function never
1701         create an absolute segment placed in interrupt vector address, place
1702         the actual interrupt function at IVA instead, when an interrupt
1703         function is generated with unspecified interrupt then do not create
1704         the absolute section,
1705         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
1706         code for generating a call to generic pointer get/put function with
1707         a call to function pic16_callGenericPointer(),
1708         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
1709         the call to the generic pointer get/put functions with prefixing the
1710         function name with port->fun_prefix,
1711         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
1712         * src/pic16/main.c (_process_pragma): prefix function with
1713         port->fun_prefix,
1714         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
1715         calling assembler, old 18Fxxxx macro is deprecated,
1716         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
1717         PC_ASMDIR in while condition,
1718         * (findInstruction): add PC_ASMDIR in while condition,
1719         * (buildCallTree): prefix main with port->fun_prefix,
1720         * (pic16_pCode2str): fixed bug that didn't emit the memory access
1721         identifier for variable with banked access in instructions BTFSS,
1722         BTFSC, BCF, BSF, BTG
1723         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
1724         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
1725         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
1726         perform optimization when enviroment variable NO_REG_OPT is set,
1727         * (insideLRBlock): NEW, return 1 if register is inside an
1728         INF_LOCALREGS block,
1729         * (RemoveRegFromLRBlock): remove a register that is completely
1730         eliminated by register optimization, but it is still left in local
1731         register store/restore in/from stack block,
1732         * (Remove2pcodes): after removing register, check to see if it
1733         should be removed from local register store/restore in/from stack
1734         block,
1735         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
1736         DUMMY_READ_VOLATILE,
1737
1738         * device/include/pic16/adc.h: minor prototype modifications and
1739         update,
1740         * device/include/pic16/malloc.h: added GPL notice various
1741         modifications,
1742         * device/include/pic16/stdint.h: NEW, standard header for ints
1743         * device/include/pic16/delay.h: NEW, header for delay functions,
1744         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
1745         delay1mtcy,
1746         * device/include/pic16/signal.h: NEW, header providing helper macros
1747         for implementing signal handlers,
1748         * device/include/pic16/stdio.h: added prototypes for functions,
1749         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
1750         prototypes for stdin and stdout, added macro PUTCHAR to
1751         automatically implement putchar function prototype,
1752         * device/include/pic16/usart.h: modified and updated USART library,
1753         * device/lib/pic16/libio/adc/,
1754         * device/lib/pic16/libio/i2c: some modifications to improve library
1755         performance,
1756         * device/lib/pic16/libc/stdio/: modifications for the new printf*
1757         family of functions,
1758         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
1759         family of functions and other sources,
1760         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
1761         of the PIC18Fxx[28] devices,
1762         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
1763         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
1764         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
1765         _do_cinit function, because the previous failed when local variables
1766         where not placed in the same memory bank,
1767         * device/lib/pic16/libsdcc/char/: various modifications to improve
1768         library performance,
1769         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
1770         information on the new functions of the c library and more...
1771
1772 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1773
1774         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
1775
1776 2005-03-26 Raphael Neider <rneider AT web.de>
1777
1778         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
1779           if condition == CARRY)
1780         * (genCmp): adapted to new genSkipc semantics
1781         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
1782           on rIfx (genCmp was broken)
1783
1784 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1785
1786         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
1787         * src/z80/main.c (_keywords[]),
1788         * src/SDCCglobal.h (struct options),
1789         * src/SDCC.y,
1790         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
1791         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
1792         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
1793         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1794         always available in leading double underscore form. The C99 support is
1795         mostly missing, but it's a start.
1796         * support/regression/tests/bug-227710.c: fixed nonconforming use of
1797         reserved identifier "__data".
1798
1799 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1800
1801         * src/mcs51/peeph.def: fixed bug 1170013
1802
1803 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1804
1805         * device/include/mcs51reg.h: fixed bug 842007
1806
1807 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1808
1809         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1810         last time.
1811
1812 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1813
1814         * src/port.h (struct PORT),
1815         * src/avr/ralloc.c (avr_assignRegisters),
1816         * src/avr/main.c,
1817         * src/ds390/ralloc.c (ds390_assignRegisters),
1818         * src/ds390/main.c,
1819         * src/hc08/ralloc.c (hc08_assignRegisters),
1820         * src/hc08/main.c,
1821         * src/mcs51/ralloc.c (mcs51_assignRegisters),
1822         * src/mcs51/main.c,
1823         * src/pic/ralloc.c (pic14_assignRegisters),
1824         * src/pic/main.c,
1825         * src/pic16/ralloc.c (pic16_assignRegisters),
1826         * src/pic16/main.c,
1827         * src/xa51/ralloc.c (xa51_assignRegisters),
1828         * src/xa51/main.c,
1829         * src/z80/ralloc.c (z80_assignRegisters),
1830         * src/z80/ralloc.h,
1831         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1832         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1833         * src/SDCCcse.h,
1834         * src/SDCCdflow.c (computeDataFlow),
1835         * src/SDCCdflow.h,
1836         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1837         * src/SDCCloop.h,
1838         * src/SDCCcflow.c (*),
1839         * src/SDCCcflow.h,
1840         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1841         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1842         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1843         immedDom() returning wrong block; probably fixes bug #1160833)
1844
1845 2005-03-20 Borut Razem <borut.razem AT siol.net>
1846
1847         * support/scripts/inc2h.pl: WIN32 port
1848
1849 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1850
1851         * device/lib/makefile.in: added abs.c and labs.c
1852
1853 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1854
1855         * device/include/stdint.h: added
1856         * device/lib/abs.c: added
1857         * device/lib/labs.c: added
1858         * device/include/stdlib.h: added abs() and labs() prototypes
1859         * device/lib/libsdcc.lib: added abs and labs
1860         * device/include/float.h,
1861         * device/lib/_fsmul.c,
1862         * device/lib/printf_fast.c,
1863         * device/lib/printf_tiny.c: updated comments
1864
1865 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1866
1867         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1868         bug #1164313
1869
1870 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1871
1872         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1873         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1874
1875 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1876
1877         * device/lib/printf_large.c: removed inline assembly for portability and
1878           readability. Use printf_fast if speed or size are more important.
1879         * src/pic16/gen.c: removed conditions around use of DEBUGpc
1880         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1881
1882 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1883
1884         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1885         prevent compiler warning
1886
1887 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1888
1889         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1890         moved to level 0 and declared as static. Also they are explicit
1891         placed in access bank. This was necessery because some times they
1892         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1893         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1894         optimizations. Currently only compare to unsigned char is implemented,
1895         * src/pic16/gen.c: added fReturnIdx array,
1896         * (struct resolvedIfx) is moved to gen.h and made public,
1897         * (struct _G): added sregsAlloc and sregsAllocSet fields,
1898         * (aopForSym): added an optimization to directly store in stack of
1899         the operand of a SEND iCode,
1900         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1901         but as registers instead (AOP_REG) using the fReturnIdx array,
1902         * (pic16_freeAsmop): remove the freed register from the
1903         _G.sregsAlloc field,
1904         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1905         a compare of 'WREG',
1906         * (pic16_popGetTempRegCond): changed function prototype, now
1907         function takes also a bitVector argument v which holds the current
1908         set of registers that are allocated for stack access by aopForSym,
1909         registers allocated in aopForSym for accessing stack symbols are not
1910         any more part of the functions usedRegs field,
1911         * (genCall): some times aopOp is called for a stack variable to be
1912         send, aopForSym might perform the push, if this is true make sure
1913         that genCall doesn't push the variable twice by testing _G.resDirect,
1914         * (genFunction): changed testing for unspecified interrupt number
1915         from 256 to INTNO_UNSPEC,
1916         * modified selection scheme of frame pointer generation. Previously
1917         if function did use local registers a frame pointer was generated,
1918         now a frame pointer is generated only if function has arguments
1919         (that need PLUSW2 register access), or has stack arguments, or the
1920         compiler is not instructed to omit the frame pointer,
1921         * (genEndFunction): before restoring local registers that were saved
1922         in the function preamble, also restore the registers that *might*
1923         have been allocated for stack access,
1924         * (genRet): removed some old comments,
1925         * (genCmp, the active (RN's) version): added a call to the
1926         pic16_genCmp_special function to perform the compare with a more
1927         robust and optimized way,
1928         * (genInline): a feature has been added in inline code generation,
1929         which allows a wildcard variable substitution when writing inline
1930         assembly. Code is incomplete and experimental therefore undocumented,
1931         * (genCast): changed order of aopOp for result and right to allow
1932         aopForSym to directly load the result if possible,
1933         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1934         perform an optimized compare on some selected special occasions,
1935         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1936         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1937         generate an IVT any more,
1938         * src/pic16/main.c (pic16_optionsTable): added command line option
1939         --optimize-cmp,
1940         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1941         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1942         macros,
1943         * src/pic16/NOTES: Raphael Neider added in list of active developers
1944         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1945         jumptable_end to prevent bug #,
1946         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1947         inCond and outCond fields,
1948         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1949         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1950         turn off register spilling,
1951         * (packRegsForOneUse): synced with other ports' versions although it
1952         is not used currently,
1953         * (pic16_packRegisters): added an optimization while reading
1954         structure bitfields, some registers may be saved (malloc code is
1955         decreased by 80 bytes)
1956
1957 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1958
1959         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1960         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1961         this can be optimized more?
1962
1963 2005-03-10 Raphael Neider <rneider AT web.de>
1964
1965         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1966           genNearPointerGet): (hopefully) fixed access to bitfields via
1967           pointers (p->bitN = x; and x = p->bitN; failed)
1968
1969 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1970
1971         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1972
1973 2005-03-09 Raphael Neider <rneider AT web.de>
1974
1975         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1976
1977 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1978
1979         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1980         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1981           (regTypeNum): set REG_BIT type if necessary
1982         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1983         * support/regression/tests/critical.c: check bug 1144613
1984
1985 2005-03-02 Raphael Neider <rneider AT web.de>
1986
1987         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1988
1989 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1990
1991         * src/avr/ralloc.c (serialRegAssign),
1992         * src/ds390/ralloc.c (serialRegAssign),
1993         * src/hc08/ralloc.c (serialRegAssign),
1994         * src/mcs51/ralloc.c (serialRegAssign),
1995         * src/pic/ralloc.c (serialRegAssign),
1996         * src/pic16/ralloc.c (serialRegAssign),
1997         * src/xa51/ralloc.c (serialRegAssign),
1998         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1999
2000 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2001
2002         * src/SDCCast.c (decorateType): fixed bug 1124787
2003
2004 2005-02-20 Hubert Sack <sack AT digiplan.de>
2005         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2006
2007         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2008         patch #1121755
2009
2010 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2011
2012         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2013         to keep the correct label reference count when adding/removing references
2014         to labels. A peephole file using this is appended to patch #1144962.
2015
2016 2005-02-14 Raphael Neider <rneider AT web.de>
2017
2018         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2019         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2020         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2021           retrievals of result operand's value on assignment
2022
2023 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2024
2025         * device/include/pic16/string.h: modified prototype for memccpy()
2026         to memccpy(void *, void *, char, size_t)
2027         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2028         check whether to omit frame pointer or not,
2029         * (genInline): convert all occurences of "\n" to LF in inline
2030         assembler blocks, this helps formatting the inline text,
2031         * (pic16_loadFSR0): modified prototype,
2032         * (genNearPointerGet, genNearPointerSet): reorganization of code,
2033         removed some 8051 legacy code,
2034         * (genPackBits): enabled handling bitfields exceeding one byte in size,
2035         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2036         before allocating temporary registers in functions,
2037
2038 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2039
2040         * support/regression/tests/bitvars.c: corrected the "fix"
2041
2042 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2043
2044         * support/regression/tests/bitvars.c,
2045         * support/regression/tests/bitwise.c,
2046         * support/regression/tests/rotate.c: "fixed" problems on Alpha
2047
2048 2005-02-10 Raphael Neider <rneider AT web.de>
2049
2050         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2051           different size for Alpha
2052         * src/pic16/gen.c (genCmpEq) : improved compare with 0
2053
2054 2005-02-09 Raphael Neider <rneider AT web.de>
2055
2056         * src/SDCC.lex(doPragma) : save and restore warning options as well
2057           (also added new stack plus clone- and copyAndFreeSDCCERRG())
2058         * have #pragma less_pedantic set the errorlevel to WARNING
2059           (fixes #1117001)
2060         * (cloneOptimize) : fixed wrong malloc's size
2061         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2062           facilitate correct handling of #pragma (save|restore)
2063
2064 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2065
2066         * src/mcs51/gen.c: removed non-standard C nameless struct/union
2067
2068 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2069
2070         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2071
2072 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2073
2074         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2075
2076 2005-02-02 Raphael Neider <rneider AT web.de>
2077
2078         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2079         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2080         * (pic16_storeForReturn): fixed to allow returning function pointers
2081         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2082         * device/include/pic16/{stddef.h,stdbool.h}: added
2083
2084 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2087
2088 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2089
2090         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2091         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2092          appeared to be required
2093
2094 2005-01-31 Borut Razem <borut.razem AT siol.net>
2095
2096         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2097           include/mcs51 and include/z80 directories to the package
2098
2099 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2100
2101         * src/hc08/gen.c (genFunction): fixed bug #1112752
2102
2103 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2104
2105         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2106
2107 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2108
2109         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2110
2111 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
2112
2113         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
2114
2115 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
2116
2117         * device/include/c8051fxxx.h: removed these 6 files
2118         * device/include/mcs51/c8051fxxx.h: added these 11 new files
2119
2120 2005-01-26 Raphael Neider <rneider AT web.de>
2121
2122         * src/pic16/gen.c (genAssign): fixed assignment from longs
2123           in codespace (were cut to three bytes)
2124         * (genDummyRead): implemented (except for CODESPACE...),
2125           fixed bug #1108575
2126         * src/pic16/glue.c (emitStatistics): beautified
2127         * device/lib/pic16/libm/Makefile: added include path
2128
2129 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2130
2131         * src/z80/gen.c (aopPut): fixed bug #1103902
2132
2133 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2134
2135         * device/lib/expf.c: fixed bug #1095792
2136
2137 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2138
2139         * device/lib/pic16/libm: added Math library sources
2140
2141 2005-01-24 Raphael Neider <rneider AT web.de>
2142
2143         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2144           to enable upcast to pCodeOpReg2 (there is no type tag to
2145           differenciate the two and pic16_popGet2p cast into PCOR2)
2146         * src/pic16/main.c (_process_pragma): fixed another malloc bug
2147           (sizeof(sectNames) changed to sizeof(sectName))
2148           Both patches fix segfaults under MinGW.
2149
2150 2005-01-23 Raphael Neider <rneider AT web.de>
2151
2152         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2153           Safe_[mc]?alloc()'ed variables
2154         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2155           of (byte sized) temporaries (assign them to WREG for now)
2156         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2157           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2158           this might fix SIGSEGVs on MinGW...
2159         * src/SDCCopt.c (killDeadCode): restored original behaviour
2160           (volatile operands might get thrown away though)
2161
2162 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2163
2164         * src/pic16/gen.c: fixed bug #1106975,
2165         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2166         pointer update, INTCON is saved, global interrupts are disabled and
2167         restored after updateing TOS.
2168         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2169         * added function attribute 'shadowregs' to take advantage of shadow
2170         registers,
2171         * added function attribute 'wparam' as an alternative to the wparam
2172         pragma,
2173         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2174         user declares a non-ISR function as 'shadowregs',
2175         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2176
2177 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2178
2179         * .version: bumped version number to 2.4.8
2180         * device/lib/pic16/pics.all: list of PIC18F devices supported by
2181         pic16 port,
2182         * device/lib/pic16/libio/i2c/: I2C module support library,
2183         * device/include/pic16/i2c.h: I2C support library header,
2184         * device/lib/pic16/libc/stdio/: standard IO support sources,
2185         * (printf_small.c): printf_small() source, supports float print,
2186         * (printf_tiny.c): printf_tiny() source, does not support floats,
2187         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2188         enable global optimizations for entire library source, other
2189         Makefiles in the source tree are also modified to reflect this,
2190         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2191         function,
2192         * doc/sdccman.lyx: updated to reflect new changes,
2193         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2194         sym->onStack if-case,
2195         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2196         sbit, idata, _idata, xdata, _xdata,
2197         * added pragma library, to link an external library, (see doc),
2198         * removed command line options, --pomit-config-words, --pomit-ivt,
2199         --pleave-reset-vector,
2200         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2201         when calling assembler to reflect memory model used, also define
2202         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2203         reflect stack model used,
2204         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2205         on stack return NULL,
2206
2207 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2208
2209         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2210           of the operands is volatile. Fixes #1020220
2211
2212 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2213
2214         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2215         * (OptimizeRegUsage): make sure that there is really no other flow where
2216           the first pCode is used
2217
2218 2005-01-22 Raphael Neider <rneider AT web.de>
2219
2220         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2221           to fix #1106967 (pCode->seq are not set up correctly)
2222
2223 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2224
2225         * src/SDCCglue.c (glue): make sure code area is declared before the
2226         static initialization area.
2227
2228 2005-01-21 Raphael Neider <rneider AT web.de>
2229
2230         * device/lib/Makefile.in: fixed test for pic16 install dir
2231         * device/lib/pic16/*/Makefile*: modified compile flags to enable
2232           optimizations
2233         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2234           added --optimize-goto compiler switch and pragma wparam documentation
2235         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2236         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2237           and PRODH closing bug #1071770 (peephole optimizer)
2238
2239 2005-01-19 Raphael Neider <rneider AT web.de>
2240
2241         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2242           cmdLine buffers (used when calling sdcpp...) are large enough
2243           (MAX_PATH=256 truncates arguments leading to system halts when
2244           used in MinGW...)
2245         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2246         * (genUminus): rewritten to for efficiency
2247         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2248           used uninitialized in some cases)
2249         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2250           copy the third byte from the int -- now assumes 0x80 (data memory)
2251         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2252           operands (genAddLit expects the iCode's operands to swapped as
2253           well), fixed leftover bytes (crashed for short left operands)
2254         * (pic16_genMinusDec): performance improvements, removed false
2255           PIC14 emitSKPNCs
2256         * (pic16_genMinus): fixed to cope with differently sized operands
2257         * src/pic16/glue.c (pic16_glue): added new banksel optimization
2258           for --obanksel > 1
2259         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2260         * src/pic16/graph.[ch]: implementation of directed graphs, used by
2261           new banksel optimization
2262         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2263           analysis for temporary registers (segfaults...)
2264         * src/pic16/peeph.def: added rule
2265
2266 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2267
2268         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2269         which converts a float number to its ASCII representation
2270         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2271         functions to convert the fractional and integer part of a float to ASCII,
2272         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2273         realloc.c): added _MALLOC_SPEC to explicit place variables in data
2274         ram
2275         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2276         _STATMEM macros,
2277         * device/include/pic16/adc.h: added GPL info,
2278         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2279         a pCodeOp as tested operand,
2280         * (genNearPointerGet): optimized bit testing, does not use
2281         intermediate register for bit value, test directly instead with
2282         BTFSS, BTFSC, works only for single bits,
2283         * (genpic16Code): dump the name of the iCode in the asm,
2284         * src/pic16/ralloc.c (decodeOp): removed static declaration and
2285         renamed to pic16_decodeOp,
2286         * (serialRegAssign): do not allocate a temporary register for iCode
2287         sequences that test a single bit for 1/0
2288
2289 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
2290
2291         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
2292         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
2293         access stack and frame pointers. They are initially assigned to
2294         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
2295         accessing SFRs. Updated all occurences of modification of stack or
2296         frame pointer in gen.c and pcode.c,
2297         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
2298         assigning of a literal value to pointers,
2299         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
2300         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
2301         selected
2302
2303 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2304
2305         * doc/sdccman.lyx: update documentation about stack pragma, added
2306         some info for stack memory models
2307
2308 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2309
2310         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
2311
2312 2005-01-08 Raphael Neider <rneider AT web.de>
2313
2314         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
2315           udata sections to fix bug #1097823
2316
2317 2005-01-05 Raphael Neider <rneider AT web.de>
2318
2319         * src/pic16/gen.c (genGenericShift): added handling of differently
2320           sized left operand and result
2321
2322 2005-01-04 Raphael Neider <rneider AT web.de>
2323
2324         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
2325         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
2326           to hold the condition bit)
2327         * added new version of genCmp (old code available via #define)
2328         * added new version of genShiftLeft/genShiftRight in a generic
2329           way, now supports shifting by negative values
2330         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
2331           shiftCount (expected by genGenericShift)
2332         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
2333         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
2334           dump
2335         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
2336           is an invalid literal too...)
2337
2338 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
2339
2340         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
2341         from Raphael Neider,
2342         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
2343         for 8-bit literals. This fixes some literal operands which are sign
2344         extended to 16-bits ints when instruction needs only 8-bits.
2345
2346 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
2347
2348         * device/lib/logf.c: added mcs51 assembly version
2349         * device/lib/expf.c: added mcs51 assembly version
2350         * device/lib/_logexpf.c: new shared asm code for expf and logf
2351         * device/include/math.h: add defines for assembly math library
2352         * device/lib/Makefile.in: build new _logexpf.c
2353         * device/lib/libfloat.lib: use new _logexpf.c
2354
2355 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2356
2357         * src/pic/device.c
2358         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2359           device types which have less than 0x7f registers.
2360
2361 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2362
2363         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2364
2365 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2366
2367         * device/lib/printf_fast.c: only build on supported arch.
2368         * device/lib/printf_tiny.c: only build on supported arch.
2369         * device/lib/printf_fast_f.c: only build if asm float lib
2370         * device/lib/_fsget1arg.c: only build if asm float lib
2371         * device/lib/_fsget2args.c: only build if asm float lib
2372         * device/lib/_fsnormalize.c: only build if asm float lib
2373         * device/lib/_fsreturnval.c: only build if asm float lib
2374         * device/lib/_fsrshift.c: only build if asm float lib
2375         * device/lib/_fsswapargs.c: only build if asm float lib
2376         * device/include/stdio.h: don't provide print_fast,
2377           print_fast_f, print_tiny prototypes if --xstack used
2378
2379 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2380
2381         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2382         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2383           to the SOURCES
2384
2385 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2386
2387         * device/lib/printf_fast_f.c: same as printf_fast, but
2388           with floating point enabled
2389         * device/lib/printf_fast.c: minor tweaks
2390         * device/include/stdio.h: add printf_fast_f
2391
2392 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2393
2394         * src/SDCCmain.c: make --float-reent default for mcs51
2395         * device/lib/_fsadd.c: added mcs51 assembly version
2396         * device/lib/_fssub.c: added mcs51 assembly version
2397         * device/lib/_fsmul.c: added mcs51 assembly version
2398         * device/lib/_fsdiv.c: added mcs51 assembly version
2399         * device/lib/_fseq.c: added mcs51 assembly version
2400         * device/lib/_fsneq.c: added mcs51 assembly version
2401         * device/lib/_fsgt.c: added mcs51 assembly version
2402         * device/lib/_fslt.c: added mcs51 assembly version
2403         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2404         * device/lib/Makefile.in: add _fscmp to build
2405         * device/lib/libfloat.lib: add _fscmp to build
2406
2407 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2408
2409         * device/lib/_fs2slong.c: added mcs51 assembly version
2410         * device/lib/_fs2sint.c: added mcs51 assembly version
2411         * device/lib/_fs2schar.c: added mcs51 assembly version
2412         * device/lib/_fs2ulong.c: added mcs51 assembly version
2413         * device/lib/_fs2uint.c: added mcs51 assembly version
2414         * device/lib/_fs2uchar.c: added mcs51 assembly version
2415         * device/lib/_slong2fs.c: added mcs51 assembly version
2416         * device/lib/_sint2fs.c: added mcs51 assembly version
2417         * device/lib/_schar2fs.c: added mcs51 assembly version
2418         * device/lib/_ulong2fs.c: added mcs51 assembly version
2419         * device/lib/_uint2fs.c: added mcs51 assembly version
2420         * device/lib/_uchar2fs.c: added mcs51 assembly version
2421         * device/include/float.h: added #define to select asm vs c
2422
2423 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2424
2425         * device/lib/printf_fast.c: improvements to float output
2426         * device/include/float.h: add defines for assembly float library
2427         * device/lib/_fsget1arg.c: receive 1 float arg
2428         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2429         * device/lib/_fsnormalize.c: normalize a float
2430         * device/lib/_fsreturnval.c: return float, various helper routines
2431         * device/lib/_fsrshift.c: right shift a float's mantissa
2432         * device/lib/_fsswapargs.c: swap 2 floats
2433         * device/lib/Makefile.in: build these 6 new files for mcs51
2434         * device/lib/libfloat.lib: add these 6 files to the library
2435
2436 2004-12-26 Borut Razem <borut.razem AT siol.net>
2437
2438         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2439           built by gcc 3.4.2
2440
2441 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2442
2443         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2444           and fully reentrant and register bank neutral.
2445         * device/lib/printf_fast.c: added float (not enabled by default),
2446           added compact/slower integer (also not enabled by default),
2447           improved size/speed of fast integer code, other minor changes
2448         * device/include/stdio.h, device/lib/Makefile.in,
2449           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2450
2451 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2452
2453         * src/pic16/pcode.c: declaring variables other than at the start of a
2454           block is not supported in C by VC6.
2455
2456 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2457
2458         * applied a previous patch from Raphael Neider that wasn't included
2459         in the previous commits, which fixes infinite loops within jumptable
2460         improvements,
2461         * made some fixes that previous patches introduced
2462
2463 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2464
2465         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2466         that fixes an issue with AOP_PCODE asmop's offset,
2467         * (pic16_popCopyReg): update instance field too,
2468         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2469         function of pic port,
2470         * (genCmp, genAnd, genAssign),
2471         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2472
2473 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2474
2475         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2476         variables initial values to idata section,
2477         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2478         variables in some functions. This utilizes parmBytes field of iCode
2479         structure to hold the offset of the variable in stack. (might be
2480         able to use the stack field too?)
2481         * applied patch from Raphael Neider # ### , # ###
2482         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2483         variable initial values in idata section,
2484         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2485         for static variables with initial value
2486         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2487         applied fix in while loop from Raphael Neider.
2488
2489 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2490
2491         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2492         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2493         * src/ds390/ralloc.c (serialRegAssign): spill bits
2494         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2495         * support/Util/SDCCerr.c,
2496         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2497         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2498         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2499
2500 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2501
2502         * device/include/sdcc-lib.h: inserted LGPL, added includes
2503           asm/ds390/features.h and asm/mcs51/features.h
2504         * device/include/asm/default/features.h,
2505         * device/include/asm/gbz80/features.h,
2506         * device/include/asm/z80/features.h: added empty _AUTOMEM
2507           and _STATMEM
2508         * device/include/asm/ds390/features.h,
2509         * device/include/asm/mcs51/features.h: added files with defines for
2510           _AUTOMEM and _STATMEM indicating automatic and static storage class
2511         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2512         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2513         * src/SDCCicode.c (geniCodeCast),
2514         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2515         * src/SDCCloop.c (loopInduction): removed unused variable lr
2516         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2517           to convertToFcall to include char modulo (RFE 1065037), added check
2518           if left operand is unsigned and use abs of literal value
2519         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2520           as it doesn't work after conversion from peephole.def to peephole.rul
2521         * src/mcs51/gen.c (toBoolean): added check for size,
2522           (genModOneByte): optimized code for signed char modulo a literal
2523           power of 2 (thanks to Hubert Sack),
2524           (genRRC): removed unnecessary "clr c",
2525           (genRLC): replaced "add a,acc" with cheaper "rlc a"
2526         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2527           jump optimization,
2528           swapped rules 256.c and 256.d,
2529           extended 256.d by using new multiple checks (thanks Erik),
2530           added rules 256.e and 256.f,
2531           updated rule 261.a and 261.b to new generated code
2532         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2533
2534 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2535
2536         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2537           induction related bugs, including first part of bug #1074377
2538
2539 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2540
2541         * applied patch from bug-report #1076292,
2542         * applied patches for genAnd and Goto-optimizations for Raphael
2543         Neider,
2544         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2545         dump a less iCode information,
2546         * src/pic16/device.h (pic16_options_t): added field debgen,
2547         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2548         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2549         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2550         puclic,
2551         * (various functions): added macros FENTRY and FENTRY2 to functions,
2552         to emit function prologue,
2553         * (various functions): fixed indentation,
2554         * (genNearPointerGet): fixed loading of FSR0,
2555         * (genPackBits): applied patch from Raphael Neider to fix updating
2556         of FSR0 and touching only the modified bits,
2557         * src/pic16/genarith.c (various functions): added macros FENTRY to
2558         emit function prologue in comments,
2559         * src/pic16/pcode.h: added functions debugf2, debugf3,
2560         * src/pic16/ralloc.c: partial fix for packForPush caused
2561         segmentation fault,
2562
2563 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2564
2565         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
2566           <stsp AT users.sourceforge.net> with reversed byte order
2567         * support/regression/tests/rotate.c: added (ds390 skips some tests)
2568
2569 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2570
2571         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
2572           bug #1074377
2573         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
2574         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
2575
2576 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2577
2578         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
2579
2580 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2581
2582         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
2583           conditions,
2584           (setFromConditionArgs): friendly operand parser for peephole rules,
2585           (operandBaseName, operandsNotRelated): new peephole condition
2586           "operandsNotRelated" -- similar to "operandsNotSame", but takes
2587           architecture specific register naming into account, handles n-way
2588           comparisons, and supports quoted literals
2589         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
2590
2591 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2592
2593         * src/mcs51/peeph.def: fixed bug #1076940
2594
2595 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2596
2597         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
2598
2599 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2600
2601         Adding support for replacing ljmps with sjmps in jumptables
2602         generated for switch statements. For now you need to set the
2603         environment variable SDCC_SJMP_JUMPTABLE to enable this.
2604         Now 4 algorithms for mcs51 jumptable generation are used:
2605         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
2606         addresses loaded pc-relative for up to 112 cases and stack-pushing
2607         target addresses loaded with offset from dptr for up to 256 cases.
2608
2609         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
2610         * src/mcs51/main.c: adapted constants for switch table generation
2611         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
2612
2613 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
2614
2615         * device/lib/printf_large.c (_print_format): fixed bug 1073386
2616         * support/regression/tests/bug1057979.c: added test for bug 1073386
2617
2618 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2619
2620         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
2621         compilers
2622
2623 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2624
2625         * src/pic16/device.h,
2626         * src/pic16/genarith.c,
2627         * src/pic16/glue.c,
2628         * src/pic16/main.c,
2629         * src/pic16/pcode.c: applied patches #1068154 and #1070213
2630
2631 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
2632
2633         Large cummulative patch for pic16 port.
2634         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
2635         to call when a stack overflow occurs,
2636         * (malloc.h): added CVS Id tag,
2637         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
2638         variable,
2639         * added libc directory. The current version of LibC contains string
2640         functions, ctype functions and macros and some functions of the
2641         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
2642         be extensively tested in the future. Standard disclaimer here.
2643         Library is not automatically build yet. But one can build it by
2644         invoking 'make' inside the libc directory.
2645         * added ADC library under libio. Preliminary version yet.
2646
2647         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
2648         * src/pic16/gen.c (aopForRemat): asmop size is filled by
2649         aopForRemat() now and not by pic16_aopOp(),
2650         * (pic16_popGetTempReg): removed warning messgae when allocating
2651         temporary registers, its a buggy feature and will be removed,
2652         * (pic16_popGet): set register instance field in AOP_CRY,
2653         * (pic16_outBitC): fixed for results in size greater than 1,
2654         * (genUminusFloat): fixed for pic16, ported code from mcs51,
2655         * (pic16_storeForReturn): optimized return of 0,
2656         * (genCmp): experimental code for new genCmp which uses PIC18's
2657         special compare&skip instructions. Initial tests fail some times
2658         with variables grater than 1 byte in size, so new code is disabled,
2659         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
2660         a single bit,
2661         * (genCast): began a fix to optimize the casting of a bit to another
2662         bit, now assigning a bitfield to another bitfield will fail, sorry,
2663         * src/pic16/main.c: disabled the use of lr-support feature,
2664         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
2665         * added some function prototypes, added function _debugf prototype,
2666         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
2667         bits with offset (case PO_GPR_BIT),
2668         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
2669         command line,
2670         * (isBankInstruction): modified to return 0 for no banking instruction,
2671         and 1 for banking instruction,
2672         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
2673         caused stop processing pCodes after a inline assembly block,
2674         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
2675         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
2676         registers when it shouldn't,
2677         * src/pic16/ralloc.c (allocReg): add preliminary support for
2678         supporting a limited set of temporary registers,
2679
2680 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2681
2682         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
2683           genDataPointerSet): ensure assignments always copy in MSB to LSB
2684           order,
2685           (loadRegFromAop): recognize CLRH optimization,
2686           (genFunction): optimize RECEIVE iCodes in reentrant functions
2687
2688 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2689
2690         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
2691           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
2692           selected.
2693         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
2694         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
2695           contiguous with data
2696
2697 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2698
2699         * device/lib/_gptrget.c (_gptrget),
2700         * device/lib/_gptrgetc.c (_gptrgetc),
2701         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
2702           instead of sjmp to ret
2703         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
2704           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
2705
2706 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2707
2708         * .version: bumped version to 2.4.7
2709         * device/lib/_gptrget.c (_gptrget): is now _naked
2710         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
2711         * device/lib/_gptrput.c (_gptrput): is now _naked
2712         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
2713           (createFunction): fixed xstack
2714         * src/SDCCglue.c (emitMaps): set allocation required for bit area
2715         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
2716           or bit either,
2717           (geniCodeCritical): store original interrupt state in an iTemp bit
2718           var unless stack-auto
2719         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
2720         * src/SDCCmain.c (setIncludePath): added include/target to search path
2721         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
2722         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
2723           prototype,
2724           (processFuncArgs): put bit vars in bit area
2725         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
2726           unsaveRBank): fixed xstack,
2727           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
2728           (genFunction, genEndFunction): fixed xstack,
2729           (genAssign): optimization don't walk backwards through mem
2730         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
2731         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
2732         * support/regression/Makefile: also make library (for stack-auto) when
2733           making "all" and added "test-mcs51-xstack-auto"
2734         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
2735         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
2736         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
2737         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
2738         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
2739           make-library by MAKE_LIBRARY
2740         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
2741           regression tests for xstack
2742         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
2743         * support/regression/tests/critical.c: test for critical on mcs51
2744
2745 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2746
2747         * support/regression/ports/ucz80/spec.mk: use include and lib files from
2748           built version of sdcc instead of installed version
2749
2750 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2751
2752         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
2753         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
2754           vprintf.c now
2755         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
2756         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
2757           WARNING: remove device/lib/build/z80/printf.o by hand when
2758           updating from previous build!
2759         * device/lib/z80/printf.c: updated comment
2760         * support/regression/tests/bug1057979.c: test all ports now
2761         * support/regression/tests/bug1065458.c: file added
2762
2763 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2764
2765         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
2766           *_start and *_end symbols for static functions
2767
2768 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2769
2770         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
2771           and search crt0.o in all library paths,
2772           (setIncludePath): proper handling of --nostdinc,
2773           (setLibPath): proper handling of --nostdlib
2774         * support/regression/Makefile,
2775         * support/regression/ports/ds390/spec.mk,
2776         * support/regression/ports/gbz80/spec.mk,
2777         * support/regression/ports/hc08/spec.mk,
2778         * support/regression/ports/mcs51/spec.mk,
2779         * support/regression/ports/mcs51-large/spec.mk,
2780         * support/regression/ports/mcs51-stack-auto/spec.mk,
2781         * support/regression/ports/z80/spec.mk: use include and lib files from
2782           built version of sdcc instead of installed version
2783         * doc/sdccman.lyx: fixed typo in --nostdinc
2784
2785 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
2786
2787         * src/pic/pcode.c,
2788         * src/pic/device.c,
2789         * src/pic/ralloc.c,
2790         * src/pic/gen.c : added support to generate code for struct bit fields.
2791
2792 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * as/xa51/xa_version.h,
2795         * device/include/errno.h,
2796         * device/include/regc515c.h,
2797         * device/lib/_itoa.c,
2798         * device/lib/_ltoa.c,
2799         * device/lib/ser_ir_cts_rts.c,
2800         * sim/ucsim/xa.src/glob.cc,
2801         * sim/ucsim/xa.src/inst_gen.cc,
2802         * sim/ucsim/xa.src/xa_bit.cc,
2803         * sim/ucsim/xa.src/xa_sfr.cc,
2804         * sim/ucsim/z80.src/inst_dd.cc,
2805         * sim/ucsim/z80.src/inst_fdcb.cc,
2806         * support/scripts/keil2sdcc.pl,
2807         * src/pic16/pic16.dsp,
2808         * src/pic16/pic16a.dsp: corrected cvs line endings
2809         * device/lib/printf_large.c: fixed bug 1057979
2810         * src/pic16/gen.c: fixed non-C standard code
2811         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2812         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2813         * support/regression/ports/mcs51/support.c: reload T1 asap
2814         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2815           pdata use and clear idata startup behaviour
2816         * support/regression/tests/bug1057979.c: added
2817
2818 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * device/examples/ds390/ow390/ad26.h,
2821         * device/examples/ds390/ow390/cnt1d.h,
2822         * device/examples/ds390/ow390/crcutil.c,
2823         * device/examples/ds390/ow390/ownet.h,
2824         * device/examples/ds390/ow390/owsesu.c,
2825         * device/examples/ds390/ow390/swt12.h,
2826         * device/examples/ds390/ow390/swtoper.c,
2827         * device/examples/ds390/ow390/temp10.h,
2828         * device/examples/ds390/ow390/thermodl.c,
2829         * device/examples/ds390/tinitalk/tinitalk.dsp,
2830         * device/examples/ds390/tinitalk/tinitalk.dsw,
2831         * device/examples/mcs51/clock/hw.h,
2832         * device/examples/mcs51/simple2/go.bat,
2833         * device/examples/serialcomm/windows/serial.h,
2834         * device/examples/xa51/dummy.c,
2835         * device/examples/xa51/hello.c,
2836         * device/include/80c51xa.h,
2837         * device/include/at89x051.h: corrected cvs line endings
2838
2839 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2840
2841         * src/pic16/main.c (options): added command line --gstack, to trace
2842         stack over/under flows,
2843         * added pragma 'wparam' to allow passing first byte of function
2844         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2845         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2846         call to __gstack_test function and sets up the symbol as extern,
2847         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2848         * popaop): added call to pic16_testStackOverflow,
2849         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2850         wparamList list,
2851         * (genCall, genPcall): now all parameters are passed via stack
2852         except in functions that are pass to wparam pragma in which WREG is
2853         used too,
2854         * (genPcall): REENTRANT flag is checked to see if variable prototype
2855         contains reentrant keyword, don't call a non-reentrant function, via
2856         a reentrant function pointer or vice versa, functions are never
2857         passed via WREG,
2858         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2859         D.Winkler,
2860         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2861         SIGSEGV when accessing a NULL register stucture,
2862         * (pic16_printGPointerType): modified to handle UPPER modifier for
2863         function initializers, changed prototype of function to simpler one,
2864         * (pic16_printIvalFuncPtr): check to see if function is already
2865         added in externs list,
2866         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2867         optimized a move from W to SFR with a move to the same register
2868         later after a CALL,
2869         * device/lib/pic16/debug: NEW directory, contains debug features
2870         which are enabled when linking with libdebug.lib, currently command
2871         line option --gstack enables stack pointer tracing for over/under
2872         flow, corresponding sources are in debug/gstack
2873
2874 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2875
2876         * doc/sdccman.lyx: updated SDCC version,
2877         * (PIC16 port): update list of command line options,
2878         * src/pic16/device.h (structure pic16_options_t): added field gstack
2879         to enable stack overflow tracing on push/pops,
2880         * src/pic16/device.c (statistics structure): added statistics
2881         structure,
2882         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2883         pic16_dump_int_registers): increase statistics counters for each
2884         * variable which is encountered
2885         * (pic16_dump_usection): emit each .udata variable to its own udata
2886         section,
2887         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2888         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2889         parameters via stack, otherwise use old scheme,
2890         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2891         assembler output file,
2892         * src/pic16/main.c: added command line options --gstack to enable
2893         push/pop tracing for stack overflow,
2894         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2895         instructions): added size of each instruction,
2896         * (pic16_countInstruction): estimate size of instructions in
2897         the_pFile list, inline assembly blocks are not counted,
2898         * (pic16_FixRegisterBanking): trace previous register usage, when
2899         banksel optimizations is greater than 0, don't emit a redudant
2900         banksel directive,
2901
2902 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2903
2904         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2905         * src/pic16/ralloc.c : applied same fix for pic16.
2906         * src/pic/gen.c : tidied it up a little.
2907
2908 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2909
2910         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2911         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2912
2913 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2914
2915         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2916
2917 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2918
2919         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2920         non-reentrant function __modsint in the interrupt function (thus
2921         corrupting math operations during serial I/O)
2922         * device/lib/ser_ir.c: as above, changed buffersize
2923         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2924         256.c,d for zeroing
2925         * doc/Makefile: added option -t for rsync
2926
2927 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2928
2929         * src/SDCCast.h (struct ast),
2930         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2931
2932 2004-10-20 Borut Razem <borut.razem AT siol.net>
2933
2934         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2935         package
2936
2937 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2938
2939         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2940         makefile targets,
2941         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2942         support functions to replace long sequences of MOVFF's from access
2943         bank registers to stack and vice versa,
2944         * src/pic16/device.h: added new field opt_flags, where optimization
2945         flags can be set to enable certain features,
2946         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2947         * pBlock, (genFunction, genEndFunction): surroung loop for
2948         saving/loading used registers in stack with PC_INFO pCodes,
2949         INF_LREGS. Code in between can then be optimized by pCode optimizer
2950         to support function calls,
2951         * (genDataPointerSet): fixed bug which loaded float fields in
2952         structures with corrupt data,
2953         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2954         in a standard way debug info on stderr. Feature used for developing
2955         and debugging only,
2956         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2957         obsolete chunks of code,
2958         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2959         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2960         * pic16/src/pcode.c (pic16_newpCodeInfo,
2961         * (pic16_newpCodeOpLocalRegs),
2962         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2963         feature,
2964         * (pic16_pCodeConstString): printing of the initial value of a
2965         symbol as a comment is inhibited since parsing was already done by
2966         copyStr and output is corrupt,
2967         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2968
2969 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2970
2971         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2972
2973 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2974
2975         * as/mcs51/lkarea.c: removed old K&R style,
2976           (lnksect): changed check on boundary error,
2977           (lnksect2): changed check on boundary error,
2978           (lnksect2): extend XSTK to end of page if size = 1
2979         * as/mcs51/lkmain.c: removed old K&R style,
2980           (Areas51): create l_IRAM symbol
2981         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2982         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2983           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2984         * device/lib/_mullong.c: added version to be compiled with xstack
2985         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2986         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2987         * device/lib/mcs51/crtxstack.asm: fixed comment
2988         * src/SDCCglue.c: maxInterrupts defaults to 0,
2989           (emitMaps): added pdata,
2990           (createInterruptVect): (re)moved default,
2991           (glue): added pdata,
2992           (glue): moved __start__xstack to XSTK with default size 1
2993         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2994           and options.float_rent when options.stackAuto is set,
2995           (linkEdit): only write XDATA_NAME if provided on command line
2996         * src/SDCCmem.h,
2997         * src/SDCCmem.c: added pdata
2998         * src/port.h: added pdata_name to PORT
2999         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3000           (saveRegisters, unsaveRegisters): removed usage of B,
3001           (genMinus): fixed accumulator clash,
3002           (genJumpTab): added comment, this needs another look
3003         * src/mcs51/gen.c: added check for "B in use" paranoia,
3004           added pushB() and popB()
3005         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3006           chance
3007         * src/avr/main.c,
3008         * src/ds390/main.c,
3009         * src/hc08/main.c,
3010         * src/mcs51/main.c,
3011         * src/pic/main.c,
3012         * src/pic16/main.c,
3013         * src/xa51/main.c,
3014         * src/z80/main.c: (reset_regparms) made void parameter explicit and
3015           added PSEG (PAG,XDATA) or NULL to port specifier
3016         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3017         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3018           (_mcs51_genInitStartup): removed __start__xstack equ,
3019           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3020         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3021         * src/z80/gen.c (_rleAppend): fixed warnings
3022         * support/regression/tests/zeropad.c: added pdata test
3023         * .version: bumped to 2.4.6
3024
3025 2004-10-17 Borut Razem <borut.razem AT siol.net>
3026
3027         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3028         as a part of nightly build
3029
3030 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3031
3032         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3033         WREG holds the first byte function parameters,
3034         * (aopForSym): take special case for symbols which are in FARSPACE
3035         but in CODESPACE too,
3036         * (assignResultValue): modified to take into account _G.useWreg,
3037         * (genCall): don't use wreg for parameter passing when function is
3038         declared as reentrant, too, added optimization INCF to stack
3039         pointer when stack parameter count is 1,
3040         * (genFunction, genEndFunction): refurnished and fixed to not using
3041         wreg for passing parameters when function has varargs or is
3042         reentrant, fixed bug with symbol name compare for generating
3043         functions in absolute address,
3044         * (pic16_storeForReturn): refurnished,
3045         * (genCmp): began writing a new version of the function, not ready
3046         yet, therefore it is disabled,
3047         * (genAssign): do not read code memory when assigning a function to
3048         a pointer function,
3049         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3050         array of characters, not pointer,
3051         * (pic16initialComments): in debug mode emit an .ident directive for
3052         the assembler,
3053         * (_process_pragma): emit a new warning type (internal to pic16)
3054         when setting stack to default length, emit a similar warning when
3055         placing a function at absolute address and address is not word aligned
3056         * (_pic16_parseOptions): added 'return TRUE' statement,
3057         * (_pic16_linkEdit): if compiling a source, then add the source's
3058         file object, first in the list of objects to link,
3059
3060 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3061
3062         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3063         * src/pic/main.c : removed VC warning.
3064         * src/pic/gen.c : changed comment.
3065
3066 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3067
3068         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3069         reference to a deprecated symbol _GPTRREG was causing failure to
3070         link. Thanks G. M. Gallant for the info.
3071
3072 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3073
3074         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3075         comments for Bugs item #954788.
3076
3077 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3078
3079         * src/pic16/device.c (pic16_dump_gsection,
3080         * pic16_groupRegistersInSection): handle symbols declared to be in
3081         access bank differently,
3082         * src/pic16/gen.c (struct _G): added field resDirect,
3083         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3084         send values read from stack directly to result and don't allocate
3085         temporary values,
3086         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3087         same registers,
3088         * (pic16_sameRegsOfs): NEW,
3089         * (freeAsmop): if _G.resDirect is set then do not mark registers as
3090         free because they were not allocated from temporary pool,
3091         * pic16_popRegFromString): workaround to fix a problem with
3092         allocating variables twice or never,
3093         * (genGenPointerGet): using PRODL instead of FSR0H,
3094         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3095         instead of FSR0H,
3096         * (genAssign): take advantage of the _G.resDirect flag,
3097         * (genCast): around line 11844, use mov2f instead of directly
3098         MOVFF'ing between operands to account for literal values,
3099         * src/pic16/genutils.c: some new debug functions for gpsim have been
3100         added,
3101         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3102         float with integer part only,
3103         * src/pic16/main.c (_process_pragma): handle pragma udata access to
3104         place variables in access bank
3105         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3106         updated sources to reflect recent changes in gen.c
3107
3108 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3109
3110         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3111         sources that searched for headers in installation path, now the
3112         device/include/pic16 is used,
3113         * src/pic16/glue.c (pic16glue),
3114         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
3115         .line directives if not in debug mode, this suppresses assembler's
3116         warnings for ignored directives
3117
3118 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3119
3120         * src/port.h: made reset_regparms prototype void parameter explicit.
3121         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
3122         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
3123         * doc/sdccman.lyx: documented warning disabling and how to use
3124           printf_large to make it print floats.
3125         * device/include/stdbool.h: NEW
3126         * device/lib/_atof.c,
3127         * device/lib/_divuint.c,
3128         * device/lib/_divulong.c,
3129         * device/lib/expf.c,
3130         * device/lib/printf_large.c,
3131         * device/lib/sincosf.c,
3132         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3133         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3134           a completely reentrant lib.
3135
3136 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3137
3138         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3139         * device/include/pic16/stdio.h: fixed bug with colon
3140
3141 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3142
3143         * device/include/pic16/stdio.h,
3144         * device/include/pic16/stdlib.h,
3145         * device/include/pic16/math.h: NEW
3146         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3147         declared as _naked to reduce overhead
3148         * device/lib/Makefile.in (target port-specific-objects-pic16):
3149         changed * to *.* so to ignore the CVS directory,
3150         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3151         stacked variables back in stack,
3152         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3153         corruption
3154
3155 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3156
3157         * .version: bumped version number to 2.4.5
3158         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3159         * support/Util/SDCCerr.c (messages structure): added entry for
3160         W_POSSBUG2
3161
3162         Large cumulative patch for pic16 port and libraries.
3163         * device/include/pic16/sdcc-lib.h,
3164         * device/include/pic16/stdarg.h,
3165         * device/include/asm/pic16/features.h,
3166         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3167         * device/include/pic16/float.h: changes reentrant keyword with
3168         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3169         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3170         updated target build-libraries to include objects from gptr,
3171         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3172         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3173         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3174         all function headings,
3175         * src/SDCCmain.c: added global parameter userIncDirsSet,
3176         * (parseCmdLine): when option -I is encountered add directory to
3177         userIncDirsSet too,
3178         * src/version.awk: added space between control and long,
3179         * src/pic16/NOTES: added some notes for the port,
3180         * src/pic16/gen.c: added prototype for mov2fp function,
3181         * (fReturnpic16[]): properly named return value registers,
3182         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3183         * (aopForSym): added code to handle symbols with onStack flag set,
3184         symbols onStack are allocated PTRSIZE bytes,
3185         * (aopFreeAsmop): handles special case where asmops are stack objects,
3186         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3187         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3188         added argument lock to trace flaws in allocating temporary registers
3189         when developing port,
3190         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3191         * (pic16_popRegFromString): reenabled allocating a direct register
3192         from string,
3193         * (assignResultValue): various beautifications,
3194         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3195         referenced function argument,
3196         * (genIpush): reenabled to allow stacked arguments, handles only
3197         ic->parmPush iCodes,
3198         * (genCall, genPcall): major changes to allow for variable argument
3199         functions, fixed a bug with falsely restoring stack pointer after
3200         returning from call,
3201         * (genFunction): pending code for critical function,
3202         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3203         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3204         * (genNearPointerGet): fixed bug with indirect reading, was always
3205         reading from INDF0
3206         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3207         pointers,
3208         * (genAddrOf): rewrote code to take address of a stacked function parameter
3209         * (genCast): fixed casting to generic pointer type,
3210         * src/pic16/gen.h: added AOP_STA,
3211         * (struct asmop): added field stk,
3212         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3213         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3214         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3215         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3216         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3217         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3218         generic pointers,
3219         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3220         and library paths,
3221         * (pic16_port structure): generic pointer size is set to 3,
3222         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3223         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3224         compiler warning,
3225         * src/pic16/ralloc.c (allocReg): prevent allocating register when
3226         operand is an iTemp,
3227
3228 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3229
3230         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3231         * debugger/mcs51/simi.c: addapt new syntax of s51
3232
3233 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3234
3235         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3236         * src/pic16/pcode.c: commented out some calls to free() in order to
3237         fix bug #989576,
3238
3239 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3240
3241         * src/SDCCicode.h,
3242         * src/SDCCicode.c (isiCodeInFunctionCall),
3243         * src/avr/ralloc.c (selectSpil),
3244         * src/pic/ralloc.c (selectSpil),
3245         * src/pic16/ralloc.c (selectSpil),
3246         * src/ds390/ralloc.c (selectSpil),
3247         * src/hc08/ralloc.c (selectSpil),
3248         * src/xa51/ralloc.c (selectSpil),
3249         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3250         stack in the middle of a function call sequence (fixes bug #1020268)
3251         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3252         costs associated with the minimum switch case.
3253
3254 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3255
3256         * src/SDCC.lex: fixed bug #1030549
3257
3258 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3259
3260         * src/SDCCcse.h (struct cseDef),
3261         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3262         over a function call if the CSE is derived from a symbol whose
3263         address has been taken (fixes bug #1029883)
3264         * support/regression/tests/bug-1029883: a new regression test for
3265         this bug
3266
3267 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3268
3269         * src/hc08/gen.c (emitinline): fixed bug #1029778
3270         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3271         to a cast object is no longer a syntax error ("fixes" bug #1030006,
3272         and starts toward RFE #905167)
3273
3274 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3275
3276         * src/pic16/gen.c (mov2f): New function to move an operand to
3277         another without considering if it is a literal or a register,
3278         * (pic16_sameRegs): don't check if they are both AOP_REG,
3279         * (AccRsh): removed andmask=0 lines,
3280         * (genLeftShift): duplicated to be improved in future versions,
3281         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3282         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3283         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3284         * (pic16initMnemonics): added initialization for POC_INFSNZW,
3285         * (insertBankSwitch): fixed inserting banksel directives algorithm
3286         for instructions that follow a skip instruction, this fixes a report
3287         for broken subtraction code generation,
3288         * src/pic16/ralloc.c (deassignLRs): do not free register if current
3289         iCode is a left op, just in case result and right share the same
3290         registers
3291
3292 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3293
3294         * src/hc08/main.c,
3295         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
3296         preservation of HX
3297         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
3298         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
3299         on 2004-09-12; it was buggy
3300
3301 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3302
3303         * src/SDCCsymt.h: removed RESULT_CHECK
3304         * src/SDCCast.c,
3305         * src/SDCCglue.c,
3306         * src/SDCCval.c,
3307         * src/pic/glue.c,
3308         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
3309
3310 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
3311
3312         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
3313         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
3314         configuration values no more rejected by compiler, they are assigned
3315         to configuration registers with a warning message instead,
3316         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
3317         the for-loop so last conf register is emitted too,
3318         * (_pic16_initPaths): link library libsdcc.lib by default,
3319         * (_hasNativeMulFor): modified test for multiplication according to
3320         Raphael Neider's remarks. Integer multiplication is also done with
3321         support functions,
3322         * device/include/pic16/pic18fregs.h: corrected type error in while
3323         testing and including 18f6720 header file
3324
3325 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
3326
3327         * src/pic16/device.h (pic16_options): removed field use_crt,
3328         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
3329         until an optimization to handle single bits is added,
3330         * (pic16_loadFSR0): moved before genUnpackBits,
3331         * (genAnd): some white lines removed,
3332         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
3333         leave_reset flags in pic16_options when using crt modules,
3334
3335 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
3336
3337         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
3338           for bugs 898889 & 979599. Also used some safer print instructions.
3339
3340 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
3341
3342         * src/pic16/device.h (pic16_options_t): added field use_crt,
3343         crt_name, no_crt,
3344         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
3345         catch a probable future bug,
3346         * src/pic16/gen.c: aopIdx function commented out,
3347         * (genAssign): commented out old code which used aopIdx,
3348         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
3349         code, added if conditionals to take into account the --use-crt
3350         command line options,
3351         * src/pic16/main.c (pic16_optionsTable): added new command line
3352         options, --use-crt= and --no-crt,
3353         * (_pic16_linkEdit): now the proper crt object is added in the
3354         linker command line except than when --no-crt is specified,
3355         * src/pic16/pcode.c,
3356         * src/pic16/pcode.h: added some structures and functions for a new
3357         optimization scheme to compansate for instruction overhead between
3358         same iCodes, this scheme is currently under development and is not
3359         working in any way,
3360         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3361         to && operator,
3362         * device/lib/pic16/startup/crt0i.c,
3363         * device/lib/pic16/startup/crt0iz.c: added global char variable
3364         __uflags to force the generation of an idata section
3365
3366 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3367
3368         * doc/Makefile,
3369         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3370         * doc/sdccman.lyx: updated sdcc version to 2.4.4
3371
3372 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3373
3374         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3375         Frieder) and clarified the default code optimization mode
3376
3377 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3378
3379         * src/SDCC.lex (doPragma, process_pragma),
3380         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3381         "opt_code_size", and "opt_code_balanced"
3382         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3383         regrouped options by category, added support for category headers
3384         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3385         and "--opt-code-size"
3386         * doc/sdccman.lyx: documented these new options and pragmas
3387         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3388         preference into account
3389
3390 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3391
3392         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3393           geniCodePreDec): Fixed bug 904237 by generating a warning
3394         * src/SDCCerr.h,
3395         * src/SDCCerr.c: added warning W_SIZEOF_VOID
3396
3397 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3398
3399         * src/pic/device.c : When no max ram set validate full memory range.
3400         * src/pic/pcode.c,
3401         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3402
3403 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * device/lib/_gptrget.c,
3406         * device/lib/_gptrput.c: updated comment
3407         * device/lib/calloc.c,
3408         * device/lib/free.c,
3409         * device/lib/malloc.c,
3410         * device/lib/realloc.c: added LGPL, made them reentrant-safe
3411         * src/SDCCcse.c (cseBBlock),
3412         * src/SDCCicode.c (printOperand, geniCodeArray),
3413         * src/SDCCicode.h (struct operand): fixed bug 868103
3414         * support/regression/tests/bug-868103.c: added
3415         * src/SDCCast.c (searchLitOp),
3416         * src/SDCCcse.h (struct cseDef),
3417         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3418         * src/SDCCicode.h (struct operand),
3419         * src/SDCCsymt.h (struct sym_link),
3420         * src/avr/gen.c (hasInc),
3421         * src/ds390/gen.c (hasInc),
3422         * src/hc08/gen.c (genPlusIncr, hasInc),
3423         * src/mcs51/gen.c (hasInc),
3424         * src/pic16/glue.c (pic16_printIvalChar),
3425         * src/pic16/ralloc.c (regWithIdx),
3426         * src/xa51/gen.c (hasInc) : removed warnings
3427         * src/SDCCast.c (createBlock): added comment ???
3428         * src/hc08/ralloc.c: updated comments
3429
3430 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3431
3432         * doc/sdccman.lyx: updated section on switch statements, added
3433         section about semaphore locking
3434         * doc/Makefile: added option -info for latex2html
3435         * device/lib/_gptrget.c,
3436         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3437
3438 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3439
3440         * src/pic/device.h,
3441         * src/pic/device.c,
3442         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3443          maxram is less than 0x100.
3444
3445 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3446
3447         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3448
3449 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3450
3451         * src/port.h,
3452         * src/mcs51/main.c,
3453         * src/ds390/main.c,
3454         * src/z80/main.c,
3455         * src/hc08/main.c,
3456         * src/pic/main.c,
3457         * src/pic16/main.c,
3458         * src/avr/main.c,
3459         * src/xa51/main.c
3460         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3461         a jump table is the best form for a switch statement, including
3462         automatic insertion of missing cases to make the case range
3463         continuous. Developed in collaboration with Frieder Ferlemann.
3464
3465 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3466
3467         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3468         accumulator result if it needs sign extension
3469
3470 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3471
3472         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3473
3474 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3475
3476         * device/lib/gbz80/printf.c,
3477         * device/lib/z80/printf.c: removed define for NULL
3478
3479 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3480
3481         * as/xa51/xa_link.c,
3482         * device/examples/ds390/ow390/ad26.c,
3483         * device/examples/ds390/ow390/cnt1d.c,
3484         * device/examples/ds390/ow390/counter.c,
3485         * device/examples/ds390/ow390/ds2480.h,
3486         * device/examples/ds390/ow390/ds2480ut.c,
3487         * device/examples/ds390/ow390/findtype.c,
3488         * device/examples/ds390/ow390/gethumd.c,
3489         * device/examples/ds390/ow390/owllu.c,
3490         * device/examples/ds390/ow390/ownetu.c,
3491         * device/examples/ds390/ow390/swt12.c,
3492         * device/examples/ds390/ow390/swtloop.c,
3493         * device/examples/ds390/ow390/temp.c,
3494         * device/examples/ds390/ow390/temp10.c,
3495         * device/examples/ds390/ow390/thermo21.c,
3496         * device/examples/ds390/ow390/tinilnk.c,
3497         * device/examples/ds390/ow390/tstfind.c,
3498         * device/examples/serialcomm/windows/serial.cpp,
3499         * device/examples/serialcomm/windows/test_serialcomm.cpp,
3500         * device/include/reg51.h: fixed line endings for cvs
3501
3502 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3503
3504         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3505         packRegsForAccUse, packRegisters): new accumulator register
3506         packing algorithm
3507         * support/regression/ports/hc08/support.c (_putchar): suppress
3508         warning of unused variable
3509         * src/SDCCicode.c: added SWAP entry to codeTable
3510
3511 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3512
3513         * device/lib/sprintf.c: forgot to add this file before previous commit
3514
3515 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3516
3517         * src/pic16/gen.c (genPackBits): added operand right in function
3518         parameters, load result directly if p_type is POINTER (that is
3519         called by genNearPointerSet)
3520         * (genUnPackBits): added operand left in function parameters,
3521         * (genNearPointerGet, genNearPointerSet): prevent the loading of
3522         FSR0 if accessing bitfields,
3523
3524 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3527           _print_format; updated printf, sprintf, vsprintf
3528         * device/include/asm/default/features.h: corrected comment/define
3529         * device/lib/Makefile.in: added sprintf.c
3530         * device/lib/libsdcc.lib: added sprintf module
3531         * device/lib/printf_large.c,
3532         * device/lib/vprintf.c,
3533         * device/lib/sprintf.c: totally refactored printf_large and vprintf
3534           into these 3 files
3535         * support/regression/Makefile: changed ALL_PORTS into a usefull default
3536         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3537         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3538           hc08 test
3539         * support/regression/tests/zeropad.c: define idata as data for hc08
3540
3541 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3542
3543         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3544         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3545         labels are referenced at least once (even if a reference is not found)
3546         * src/hc08/gen.c (emitcode): set isComment flag for comments
3547         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3548         loads), rules 6a..6b (optimize jumps to return)
3549
3550 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3551
3552         * device/lib/acosf.c (acosf),
3553         * device/lib/asinf.c (asinf),
3554         * device/lib/atanf.c (atanf),
3555         * device/lib/ceilf.c (ceilf),
3556         * device/lib/cosf.c (cosf),
3557         * device/lib/coshf.c (coshf),
3558         * device/lib/cotf.c (cotf),
3559         * device/lib/fabsf.c (fabsf),
3560         * device/lib/floorf.c (floorf),
3561         * device/lib/log10f.c (log10f),
3562         * device/lib/logf.c (logf),
3563         * device/lib/sinf.c (sinf),
3564         * device/lib/sinhf.c (sinhf),
3565         * device/lib/sqrtf.c (sqrtf),
3566         * device/lib/tanf.c (tanf),
3567         * device/lib/tanhf.c (tanhf),
3568         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
3569         replaced all instances of "reentrant" in the library functions
3570         defined in math.h with this macro.
3571         * support/regression/tests/float_trans.c: reenabled test for hc08
3572
3573 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
3574
3575         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
3576         erroneously deleted
3577
3578 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3579
3580         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
3581         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
3582         multi-byte volatile operands are used
3583         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
3584         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
3585         initialization to area GSINIT0 so that it would always precede
3586         any static initializers in GSINIT
3587         * support/regression/tests/zeropad.c: fixed idata define for hc08
3588         * support/regression/tests/bug-927659.c,
3589         * support/regression/tests/float_trans.c: disabled tests for hc08
3590         pending missing library routines
3591         * .version: increased version number to 2.4.4 - hc08 port now passes
3592         regression tests
3593
3594
3595 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
3596
3597         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
3598         * Makefile.common.in,
3599         * as/Makefile,
3600         * as/hc08/Makefile.in,
3601         * as/mcs51/Makefile.in,
3602         * as/z80/Makefile.in,
3603         * debugger/mcs51/Makefile.in,
3604         * device/include/Makefile.in,
3605         * device/lib/Makefile.in,
3606         * doc/Makefile,
3607         * link/Makefile,
3608         * link/z80/Makefile.in,
3609         * packihx/Makefile.in,
3610         * sim/ucsim/main_in.mk,
3611         * sim/ucsim/avr.src/Makefile.in,
3612         * sim/ucsim/doc/Makefile.in,
3613         * sim/ucsim/gui.src/serio.src/Makefile.in,
3614         * sim/ucsim/hc08.src/Makefile.in,
3615         * sim/ucsim/s51.src/Makefile.in,
3616         * sim/ucsim/xa.src/Makefile.in,
3617         * sim/ucsim/z80.src/Makefile.in,
3618         * src/Makefile.in,
3619         * support/cpp2/Makefile.in,
3620         * support/librarian/Makefile,
3621         * support/makebin/Makefile: added DESTDIR to the install path proposed
3622         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
3623         * doc/sdccman.lyx: added DESTDIR documentation
3624
3625 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
3626
3627         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
3628         instruction for interrupt handlers, use fast returns when returning
3629         from high priority interrupts
3630
3631 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3632
3633         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
3634         code generation
3635         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
3636         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
3637         bugs, ported much of Bernhard's code from mcs51
3638         * src/mcs51/gen.c (genSend),
3639         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
3640         than one when calling a reentrant function
3641         * device/lib/_mullong.c: defined an alternate struct layout for big
3642         endian ports (hc08)
3643
3644 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3645
3646         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
3647         test
3648
3649 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3650
3651         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
3652         are sane and complete before asking the port its prefered parameter
3653         passing method (fixes bug #1017633)
3654         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
3655         and _ret3
3656
3657 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3658
3659         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
3660         problem in bitfields >= 8 bits.
3661
3662 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3663
3664         * src/SDCCsymt.c: undid changes that were not meant to be committed
3665
3666 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3667
3668         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
3669
3670 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3671
3672         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
3673           copied and wrong bit got inverted
3674
3675 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3676
3677         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
3678         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
3679         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
3680         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
3681         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
3682         assignments to bitfields at known addresses
3683         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
3684         reads from bitfields at known addresses
3685         * src/hc08/ralloc.c (packRegisters),
3686         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
3687         genhc08Code): optimize pointer get values used as conditionals
3688         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
3689         and branch
3690
3691 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3692
3693         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
3694         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
3695         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
3696         as conditionals
3697
3698 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3699
3700         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
3701
3702 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3703
3704         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
3705         related problems
3706
3707 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
3708
3709         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
3710
3711 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3712
3713         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
3714         mcs51 port
3715
3716 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3717
3718         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
3719
3720 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3721
3722         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
3723         cases use more compact code.
3724
3725 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
3726
3727         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
3728
3729 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3730
3731         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
3732
3733 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3734
3735         * src/SDCCsymt.h,
3736         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
3737         parameter of changePointer() from symbol* to sym_link*
3738         * src/SDCCast.c (decorateType): call changePointer() for CAST op
3739         * src/SDCCsymt.c (compareType): void* type is castable to other
3740         pointers, but not necesarily an exact match.
3741         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
3742         is no longer blindly treated as an exact match.
3743         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
3744
3745 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
3746
3747         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
3748
3749 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
3750
3751         * src/pic/gen.c,
3752         * src/pic/pcode.c,
3753         * src/pic/ralloc.h,
3754         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
3755
3756 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
3757
3758         * src/pic/device.c,
3759         * src/pic/device.h,
3760         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
3761
3762 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3763
3764         * src/mcs51/gen.c (emitcode): fixed bug #992819
3765
3766 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
3767
3768         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
3769           there's no need to make it worse
3770
3771 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3772
3773         * src/mcs51/ralloc.c (deassignLR),
3774         * src/ds390/ralloc.c (deassignLR),
3775         * src/hc08/ralloc.c (deassignLR),
3776         * src/z80/ralloc.c (deassignLR),
3777         * src/pic/ralloc.c (deassignLR),
3778         * src/pic16/ralloc.c (deassignLR),
3779         * src/avr/ralloc.c (deassignLR),
3780         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
3781         rlivePoint): fixed another part of bug #971834
3782
3783 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3784
3785         * src/z80/main.c: enabled "critical" keyword
3786         * src/z80/mappings.i,
3787         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
3788         functions (fixes bug #979646)
3789         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
3790
3791 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3792
3793         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3794           such as c:\mydir.
3795
3796 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3797
3798         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3799           doesn't disable too much optimizations
3800
3801 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3802
3803         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3804
3805 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3806
3807         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3808
3809 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3810
3811         * src/pic/gen.c tidied up tabs
3812         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3813         * src/pic/main.c tidied up tabs
3814         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3815         * src/pic/pcoderegs.c tidied up tabs
3816         * src/pic/ralloc.c tidied up tabs
3817
3818 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3819
3820         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3821         to S_FIXED for pic16 port and when symbol is not in level 0,
3822         allocate for S_REGISTER storage class and pic16 port, too,
3823         * src/pic16/device.h: prototype for checkSym,
3824         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3825         * (pic16_assignConfigWordValue): test the value and the mask to
3826         validate that the value is suitable for the configuration word,
3827         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3828         collect extern declared symbols, don't emit symbol twice, check
3829         first if symbol is in publics set first,
3830         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3831         * added command line '--fstack' which enables an experimental
3832         feature for stack access, too buggy to be used yet...
3833         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3834         * (pic16_allocDirReg): when register has storage class S_REGISTER
3835         allocate in pic16_dynAccessRegs,
3836         * device/include/pic16/pic18f????.h: modified configuration word
3837         naming convention, words started as CONFIG0H but should be CONFIG1H
3838
3839 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3840
3841         * device/include/mcs51reg.h: fixed bug 970993
3842
3843 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3844
3845         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3846         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3847         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3848         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3849         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3850         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3851           error/warning numbers,
3852           added function setWarningDisabled()
3853         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3854         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3855           _memcmp.c _memmove.c calloc.c realloc.c free.c
3856         * support/regression/tests/malloc.c: added tests for new functionality
3857         * support/regression/tests/zeropad.c: added tests for truncated initializers
3858           and initialized char arrays starting with '\x0'
3859         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3860
3861 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3862
3863         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3864
3865 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3866
3867         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3868         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3869         peephole 177.e. Thanks to anonymous
3870
3871 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3872
3873         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3874         function isn't used in the source but referenced as a
3875         variable initializer then declare it as extern in .asm file
3876
3877 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3878
3879         * .version: increased version number to 2.4.3
3880
3881         Adding version extension according to ChangeLog CVS revision
3882         * src/Makefile.in (target all): added dependency 'version.h'
3883         * (rule version.h): added rule to create version.h from ChangeLog,
3884         * (rule dep): added dependency version.h,
3885         * src/version.awk: AWK script to create version.h
3886         * src/SDCCdwarf2.c (dwWriteModule),
3887         * src/SDCCglue.c (initialComments),
3888         * src/SDCCmain.c (printVersionInfo): modified to write after
3889         version string the version extension number,
3890         * src/SDCCutil.c: included "version.h"
3891         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3892         number,
3893         * src/SDCCutil.h: added prototype for getBuildNumber
3894
3895         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3896         includeDirsSet, too,
3897         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3898         const char [] is found in function prototype...
3899
3900         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3901         moving to WREG with source is already in WREG,
3902         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3903         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3904         * (aopForSym): stack'ed symbols are partially supported, added
3905         if-clause to support symbols in FARSPACE,
3906         * (sameRegs): added test for AOP_ACC to see if registers are same,
3907         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3908         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3909         * (pic16_popRegFromString): will not allocate a new register if it
3910         doesn't find one by name, bug may have introduced...
3911         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3912         * (genIpush): revived to use pic16 port's stack,
3913         * (genAddrOf): added incomplete case for stack'ed operand,
3914         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3915         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3916         can handle multibyte operands,
3917         * src/pic16/glue.c (pic16_printIval*): some debug info added,
3918         * (pic16initialComments): added message for MPLAB compatibility
3919         mode enabled,
3920         * src/pic16/main.h: prototype for pic16_mplab_comp,
3921         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3922         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3923         * (_pic16_linkEdit): NEW, handles link stage, transferred here
3924         because of increased complexity of procedure,
3925         * (_process_pragma): stack pragma changed to format 'stack pos len',
3926         emit symbol '_stack_end' to conform with gplink,
3927         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3928         to search for register,
3929         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3930         PO_GPR_REGISTER,
3931         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3932         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3933         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3934         case for PO_GPR_REGISTER,
3935         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3936         dies, the new era is ahead !...
3937         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3938         pic16_dynInternalRegs,
3939         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3940         * (pic16_allocDirReg): minor optimizations and bug fixes,
3941         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3942
3943         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3944         load stack and frame pointer with address of 'stack_end' symbol
3945
3946 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3947
3948         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3949         without source code but only variable initializers
3950
3951 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3952
3953         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3954         external are not declared as extern to reduce overhead while linking
3955
3956 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3957
3958         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3959
3960 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3961
3962         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3963           Yee Keat for the patch
3964         * src/SDCCast.c (decorateType): fixed bug #979599
3965         * src/ds390/gen.h: removed local fReturnSizeDS390
3966         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3967         * src/ds390/gen.c (genAnd, genOr, genXor),
3968         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3969
3970 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3971
3972         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3973         add relFilesSet to $3, manipulate $2 to handle linking of object
3974         files without source files in command line,
3975         * device/include/pic16 (all headers): added ID location macros,
3976         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3977         entries for ID location bytes,
3978         * (pic16_assignIdByteValue): NEW,
3979         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3980         added field dumpcalltree to pic16_options_t,
3981         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3982         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3983         emitting rFalseIfx label after check_carry label,
3984         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3985         pic16_emitDIRegs), NEW
3986         * (pic16glue): dump .calltree file when option --calltree found,
3987         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3988         * (_pic16_genAssemblerPreamble): emit ID locations after
3989         configuration registers,
3990         * (pic16_linkCmd): modifications of the link command,
3991         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3992         * (pic16_pCodeInitRegisters): don't init stack registers,
3993         * (pic16_findPrevInstruction): fixed bug,
3994         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3995         bug with immediate registers,
3996         * (buildCallTree): traces stack push and pop,
3997         * (pct2): dump also stack usage for each function,
3998         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3999         * (pic16_allocDirReg): various modifications,
4000         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4001         fixed to 1,
4002
4003 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4004
4005         * src/pic16/pcode.c: removed buggy double colon
4006
4007 2004-07-01 Borut Razem <borut.razem AT siol.net>
4008
4009         * support/scripts/sdcc.nsi: added include/pic16 to setup
4010
4011 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4012
4013         * device/lib/Makefile.in: fixed bug in target objects-pic16,
4014         * device/lib/pic16/Makefile: prefixed with dash (-) command under
4015         target 'clean',
4016         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4017         specific command line arguments. Also added sample lkr script
4018         for placing a variable at a specific memory bank.
4019         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4020         at a specific memory bank,
4021         * (pic16_dump_isection): fixed bug which caused string literals to
4022         be omitted when dumping idata section,
4023         * (pic16_groupRegistersInSection): added code to handle registers
4024         in specific memory banks,
4025         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4026         public, all references are renamed too,
4027         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4028         AOP_DPTR2,
4029         * (pic16_storeForReturn): added case to handle when dest is WREG,
4030         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4031         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4032         pic16_rel_udata, check to see if that register is marked as being
4033         a member of a specific memory bank,
4034         * (pic16_printIvalCharPtr): added code to add string literals either
4035         to code or the idata sections,
4036         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4037         also accept the 'udata' pragma,
4038         * src/pic16/main.h: new structure types sectName and sectSym
4039         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4040         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4041         * (pic16_findPrevInstruction): fixed, it returned nothing,
4042         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4043         instruction combinations,
4044         * (pic16_FixRegisterBanking): heavily reorganised,
4045         * (pic16_AnalyzeBanking): if generating banksel directives is
4046         disabled, then don't call FixRegisterBanking at all,
4047         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4048         completely removed,
4049         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4050
4051 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4052
4053         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4054         Phuah Yee Keat <yk.phuah AT nestac.com>
4055
4056 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4057
4058         * src/pic16/glue.c (pic16createInterruptVect): function now emits
4059         correctly the IVT even if it is relocated to some other location
4060
4061 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4062
4063         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4064         * device/include/pic16/pic18f2220.h: NEW,
4065         * device/lib/pic16/libdev/pic18f2220.c: NEW,
4066         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4067         * src/pic16/device.c (struct Pics16): added info for 18f2220,
4068         * src/pic16/device.h (struct pic16_options): added ivt_loc and
4069         nodefaultlibs, ivt_loc is the location of the interrupt vector
4070         table, and nodefaultlibs signs that default libraries should not be
4071         linked in link stage,
4072         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4073         according to --ivt-loc argument,
4074         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4075         when pragma stack is found,
4076
4077 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4078
4079         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4080         256 (range check), 257 (do while), 258.a-f (bit banging
4081         f.e. on 3-wire SPI bus)
4082
4083 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4084
4085         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4086         variables used exclusively within a loop
4087
4088 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4089
4090         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4091
4092 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4093
4094         * src/SDCClrange.c (computeClash): fixed bug #971834
4095
4096 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4097
4098         * src/mcs51/gen.c (genCmp): fixed bug #975903
4099         * src/hc08/gen.c (operandsEqu),
4100         * src/ds390/gen.c (operandsEqu),
4101         * src/z80/gen.c (operandsEqu),
4102         * src/pic/gen.c (operandsEqu),
4103         * src/pic16/gen.c (operandsEqu),
4104         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4105         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4106
4107 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4108
4109         * src/SDCCcse.c (cseBBlock): fixed bug #966963
4110
4111 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
4112
4113         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
4114         default case in switch statement,
4115         * glue.c (pic16_initPointer): expr is initialised via decoarteType
4116         to eliminate problem with initialisation of pointers, but problem
4117         still exists,
4118         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
4119         * (emitStaticSegment): removed various lines emitting debug info,
4120         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
4121         added processor registers for utilizing EEPROM,
4122         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
4123         configurable and set 8
4124
4125 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4126
4127         * .version: increased version number to 2.4.2,
4128
4129         Cumulative patch for pic16 port
4130         * src/pic16/device.c: changed scheme to dump initial values for
4131         variables in idata segment, all print_idata* functions were removed,
4132         now the pic16_printIval* will be called,
4133         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4134         * _pic16_printPointerType, pic16_printPointerType,
4135         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4136         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4137         NEW, similar to the respective functions in SDCCglue.c,
4138         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4139         way, emitting hex bytes,
4140         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4141
4142 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4143
4144         * src/avr/ralloc.c (serialRegAssign),
4145         * src/xa51/ralloc.c (serialRegAssign),
4146         * src/pic/ralloc.c (serialRegAssign),
4147         * src/pic16/ralloc.c (serialRegAssign),
4148         * src/hc08/ralloc.c (serialRegAssign),
4149         * src/z80/ralloc.c (serialRegAssign),
4150         * src/ds390/ralloc.c (serialRegAssign),
4151         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4152
4153 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4154
4155         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4156         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4157
4158 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4159
4160         Cumulative patch for pic16 port:
4161         * src/pic16/device.h (typedef PIC16_device) modified fields for
4162         defining microcontrollers,
4163         * src/pic16/device.c: added new info for all devices in Pics16 array,
4164         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4165         to be optimised out by the pCode optimiser,
4166         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4167         specially, bug reported by G.M. Gallant,
4168         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4169         as force'd so that cannot be optimised out by pCode optimiser,
4170         * src/pic16/pcode.c,
4171         * src/pic16/pcodepeeph.c,
4172         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4173         they are disabled by default, but can be enabled explicit with
4174         command argument --denable-peeps, for testing,
4175         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4176         --pomit-ivt in COMPILE_FLAGS
4177
4178 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4179
4180         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4181           compilation on MSVC
4182
4183 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4184
4185         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4186
4187 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4188
4189         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4190         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4191
4192 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4193
4194         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4195         would only assign 0x300001 register.
4196
4197 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4198
4199         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4200         in COMPILE_FLAGS. Thanks to G. Gallant for report.
4201
4202 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4203
4204         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4205         for ds80c400
4206         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4207         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4208         added peephole 254 (left shift), 255 (jump table)
4209
4210 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4211
4212         * device/lib/Makefile.in: removed comment line with model-pic16,
4213         * (target port-specific-objects-pic16): the libraries and objects
4214         are copied to the build directory form the device/lib/pic16/bin
4215         directory
4216
4217         Cumulative patch concerning pic16 port:
4218         * library directory has been re-organized,
4219         * added support for PIC18F1220,
4220         * added headers and library sources for chips 18f1220,18f6520,
4221         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4222
4223         * configuration registers setting has changed, now each supported
4224         device has a complete description of the registers it uses,
4225         * all initialisations are moved to idata sections, these section
4226         can be absolute or relocatable,
4227         * fixed initialisation of codespace variables,
4228         * fixed warning about PCLATU and gpsim,
4229         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4230         * (genAssign): use table reads when assigning from variables in codespace,
4231         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4232         char/int variables placed in codespace,
4233         * (pic16_emitConfigRegs): NEW, emits a list with configuration
4234         registers set in .asm file, no need for --pomit-config-words anymore,
4235         * (pic16glue): some 8051 legacy segments are commented out
4236         (to be removed completely),
4237         * added support for alternative assembler and linker with --asm=
4238         and --link= command line arguments,
4239         * peepholes are disabled automatically in the port, no need to
4240         specify on command line,
4241         * port supports natively char/int/long multiplication, but converts
4242         all divisions to support functions,
4243         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4244         to the file set in variable $2,
4245         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4246         strings in ASCII format and not in hex,
4247         * ralloc.c (serialRegAssign): added a triplet of conditional calls
4248         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4249         allocate proper register if iCodes aren't temporary,
4250
4251 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4252
4253         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4254
4255 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4256
4257         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4258         is commented out
4259
4260 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4261
4262         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4263         computed address is reused
4264         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4265         multi-byte bitfields
4266
4267 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4268
4269         * src/z80/gen.c: (genArrayInit): must check for pointers too
4270
4271 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4272
4273         * support/regression/tests/zeropad.c: never meant to commit the
4274           nestedstruct test: removed, added check for GCC version
4275
4276 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4277
4278         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4279         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4280         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4281           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4282           bugs 928906 and 954082 half-empty initializers
4283         * src/SDCCsymt.h,
4284         * src/SDCCsymt.c (getAllocSize): added for above fix
4285         * src/z80/gen.c (genArrayInit): fixed bug 741044
4286         * support/regression/tests/zeropad.c: added tests
4287
4288 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
4289
4290         * src/pic16/device.c (pic16_dump_section): corrected bug which
4291         caused some symbols of the libraries to be misplaced
4292
4293 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4294
4295         * src/pic16/glue.c,
4296         * src/pic16/ralloc.h,
4297         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
4298         to fix conflict with pic port
4299
4300 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4301
4302         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
4303         externs configuration variables,
4304         * src/pic16/ralloc.h,
4305         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
4306         prototype in header, commented out some debug messages
4307
4308 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
4309
4310         * src/pic16/glue.c,
4311         * src/pic16/main.c,
4312         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
4313         for gpasm COFF object generation. Thanks to D. Hawkins for
4314         his patch info
4315
4316 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4317
4318         * src/ds390/main.c,
4319         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
4320         Brock for spotting this)
4321         * src/ds390/gen.c (genEndFunction),
4322         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
4323         interrupt handler and critical. Disable push/pop optimizations when
4324         peephole optimizations disabled.
4325
4326 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4327
4328         Updated pic16 library sources and headers.
4329         * device/lib/pic16/pic18f*/ ,
4330         * device/include/pic16/*.h: modified to handle structured SFR
4331         definitions
4332
4333 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4334
4335         * src/port.h (PORT structure): added hook initPaths, now each
4336         port can declare its own default search paths,
4337         which can been seen with the --print-search-dirs option,
4338         see pic16 port for example,
4339         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
4340         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
4341         * (doPrintSearchDirs): NEW, replaces in a central manner the
4342         printing of search dirs which was split in set*Paths functions,
4343         * (main): added call to port->initPaths and doPrintSearchDirs,
4344         * src/avr/main.c,
4345         * src/ds390/main.c,
4346         * src/hc08/main.c,
4347         * src/izt/i186.c,
4348         * src/izt/tlcs900h.c,
4349         * src/mcs51/main.c,
4350         * src/pic/main.c,
4351         * src/pic16/main.c: modified port structures to reflect addition of
4352         initPaths hook,
4353
4354         * src/pic16/device.c (regCompare): registers are finally sorted by name,
4355         * (pic16_dump_section): for registers in same address reserve memory once,
4356         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4357         to no_banksel,
4358         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4359         result is greater in size than right or left,
4360         * (pic16_genUMult8X8_8): there are some cases where the result can
4361         be 16 bits size, so handle these,
4362         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4363         * (pic16_outBitC): modified to emit pcodes,
4364         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4365         or not,
4366         * (genDivOneByte): implemented algorithm to divide 8-bits,
4367         * (genCmp): uncommented goto, but issues still exist,
4368         * (genAnd): fixed a bug with variables >8bits,
4369         * (genPackBits): optimization added that uses BCF/BSF to change a
4370         single bit,
4371         * (genAssign): fixed bug when assigning floating point literals,
4372         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4373         __sdcc_gsinit_startup label,
4374         * src/pic16/main.c (_pic16_init): removed search directory
4375         initialisations,
4376         * (_pic16_initPaths): NEW, used to initialise search directories,
4377         * (_hasNativeMulFor): support functions for all except char/int
4378         multiplication, and char division,
4379         * (PIC16_port struct): modified entry for native mul support,
4380         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4381         no_banksel option,
4382         * (buildCallTree): call to register_usage is ifdef'ed out,
4383
4384 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4385
4386         * device/include/string.h: applied Stas Sergeev's patch to make this
4387         header file compatible with the preprocessor -Wundef option
4388         * src/SDCCmain.c (main): abort compilation if preprocessor reports
4389         failure (fixes bug #941458)
4390
4391 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4392
4393         * src/SDCCopt.c (killDeadCode): fixed bug #907733
4394         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4395         that the variable, not the function, should be static
4396         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4397         to be consistent with non-literal case
4398
4399 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4400
4401         * src/SDCCast.c (isConformingBody): fixed bug #949967
4402         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4403         convilong): fixed bug #952086
4404
4405 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4406
4407         * src/SDCCmem.c (allocVariables): fixed bug #955321
4408
4409 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4410
4411         * src/hc08/main.c (_hc08_genAssemblerEnd),
4412         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4413         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4414         completely eliminated the use of a temporary file
4415         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4416         when more than one file linked
4417         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4418
4419 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4420
4421         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4422         which fixes bug #543481
4423         * support/regression/tests/bug-751703.c: fixed comments left from a
4424         cut and paste error
4425         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4426         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4427         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4428         scopes
4429         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4430         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4431         are now changed to underscores in moduleName
4432
4433 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4434
4435         * as/mcs51/lkmem.c: better fix for bug #954173
4436
4437 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4438         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4439
4440         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4441         * device/include/c8051f000.h,
4442         * device/include/c8051f120.h,
4443         * device/include/c8051f300.h,
4444         * device/include/c8051f310.h,
4445         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4446         PWM16) and detab'ed
4447
4448 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4449
4450         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4451         and mailing lists, doc'ed --no-peep-comments, removed reference
4452         to knoppix (newest version has no LyX/LaTeX), other minor changes
4453         * src/SDCCglue.c (glue): save 2 bytes stack space with
4454         option --main-return. The ljmp could probably be avoided too
4455
4456 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4457
4458         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4459
4460 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4461
4462         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4463         * src/SDCCopt.c (isLocalWithoutDef),
4464         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4465         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4466         (credit to Maarten Brock for patch #949363, on which this is based)
4467         * support/regression/tests/bug-751703.c: some test cases of extern used
4468         within inner scopes.
4469
4470 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4471
4472         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4473         SPEC_STRUCT
4474         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4475         struct definitions
4476         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4477         dwWriteLabel): fix to create valid debugger symbols even when
4478         the module name has non-alphanumeric symbols in it
4479         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4480         when a variable's allocation has been optimized away
4481
4482
4483 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4484
4485         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4486         * src/hc08/main.c,
4487         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4488         * src/mcs51/main.c,
4489         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4490         * src/ds390/main.c,
4491         * src/z80/gen.c (z80_emitDebuggerSymbol),
4492         * src/z80/main.c,
4493         * src/pic/gen.c (pic14_emitDebuggerSymbol),
4494         * src/pic/main.c,
4495         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4496         * src/pic16/main.c,
4497         * src/avr/gen.c (avr_emitDebuggerSymbol),
4498         * src/avr/main.c,
4499         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4500         * src/xa51/main.c,
4501         * src/SDCCdebug.c (emitDebuggerSymbol),
4502         * src/SDCCdebug.h,
4503         * src/port.h: added a debugger struct to the port struct. Added a
4504         callback for defining debugger symbols
4505
4506         * src/SDCCast.c (createLabel),
4507         * src/SDCC.y (labeled_statement): mark all compiler generated labels
4508         with isitmp = 1
4509         * src/SDCCicode.h,
4510         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4511         iCode back to the ast for the function
4512
4513         * src/hc08/ralloc.c (hc08_assignRegisters),
4514         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4515         unneeded fields from the regs struct.
4516         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4517         pushReg() & pullReg() functions instead of emitcode()
4518
4519         * src/hc08/gen.c (genLabel, genhc08Code),
4520         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4521
4522         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4523         debugger hooks
4524
4525         * src/hc08/gen.c (genEndFunction, genhc08Code),
4526         * src/hc08/gen.h,
4527         * src/mcs51/gen.c (genEndFunction, gen51Code),
4528         * src/mcs51/gen.h,
4529         * src/ds390/gen.c (genEndFunction, gen390Code),
4530         * src/ds390/gen.h,
4531         * src/z80/gen.c (genEndFunction, genZ80Code),
4532         * src/z80/gen.h,
4533         * src/z80/z80.h,
4534         * src/pic/gen.c (genEndFunction, genpic14Code),
4535         * src/pic/gen.h,
4536         * src/pic16/gen.c (genEndFunction, genpic16Code),
4537         * src/pic16/gen.h,
4538         * src/avr/gen.c (genEndFunction, genAVRCode),
4539         * src/avr/gen.h,
4540         * src/xa51/gen.c (genEndFunction, genXA51Code),
4541         * src/xa51/gen.h,
4542         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4543         specific code to cdbFile.c and out of the backend code generators
4544
4545         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4546         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4547         starting address is now 0
4548
4549         * as/hc08/asm.h,
4550         * as/hc08/m08pst.c,
4551         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4552         assembler directive for DWARF support
4553         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4554
4555         * src/src.dsp,
4556         * src/Makefile.in,
4557         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4558
4559 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4560
4561         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
4562         and inappropriate peephole optimization in jump tables
4563
4564 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4565
4566         * as/hc08/m08pst.c,
4567         * src/SDCCglue.c: sdccopt works for the hc08 port now
4568
4569 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
4570
4571         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
4572
4573 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4574
4575         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
4576
4577 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4578
4579         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
4580         rules
4581         * src/SDCCmain.c,
4582         * src/SDCCglobl.h,
4583         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
4584         comments from the peephole optimizer replacement rules
4585         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
4586         symbols
4587         * src/SDCCcse.c (updateSpillLocation),
4588         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
4589         equivalents
4590         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
4591         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
4592         objects far pointers
4593
4594 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4595
4596         * src/SDCCsymt.h: a missing part of my last change
4597         * src/pic/ralloc.c (regTypeNum),
4598         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
4599
4600 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4601
4602         * src/SDCCicode.h,
4603         * src/SDCCicode.c (aggrToPtrDclType),
4604         * src/SDCCptropt.h,
4605         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
4606         ptrPseudoSymConvert),
4607         * src/pic/ralloc.c (regTypeNum),
4608         * src/pic16/ralloc.c (regTypeNum),
4609         * src/hc08/ralloc.c (regTypeNum),
4610         * src/ds390/ralloc.c (regTypeNum),
4611         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
4612         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
4613
4614 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4615
4616         * link/z80/lkmain.c (afile),
4617         * as/hc08/lkmain.c (afile),
4618         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
4619         prevent a pointer problem when a filename has no directory and
4620         no extension specified.
4621
4622 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4623
4624         * link/z80/lkmain.c (afile): allow periods in directory names
4625         * link/z80/lkmain.c (afile),
4626         * as/mcs51/lkmain.c (afile),
4627         * as/hc08/lkmain.c (afile): allow linker script file to have an
4628         extension other than ".lnk"
4629         * link/z80/lklex.c (getfid),
4630         * link/z80/lkmain.c (parse),
4631         * as/mcs51/lklex.c (getfid),
4632         * as/mcs51/lkmain.c (parse),
4633         * as/hc08/lklex.c (getfid),
4634         * as/hc08/lkmain.c (parse): Support comments in the linker script
4635         file on lines by themselves and after filenames
4636
4637 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4638
4639         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
4640
4641 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4642
4643         * src/z80/peeph-z80.def: removed some peephole rules that don't
4644         work with multibyte arithmetic (fixed bug #937126)
4645         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
4646         to registers and not global variables
4647         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
4648         geniCodePreInc, geniCodePostDec, geniCodePreDec,
4649         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
4650         checking for assignments not internally generated (fixed bug #931895)
4651         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
4652         structure member (fixed bug #930072)
4653
4654 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4655
4656         * src/SDCCmain.c (linkEdit),
4657         * src/hc08/main.c (_hc08_parseOptions),
4658         * as/hc08/Makefile.in,
4659         * as/hc08/aslink.h,
4660         * as/hc08/asm.h,
4661         * as/hc08/m08pst.c,
4662         * as/hc08/lkrloc.c (relr, rele),
4663         * as/hc08/lkarea.c (lnkarea)
4664         * as/hc08/lkmain.c (afile, parse),
4665         * as/hc08/lkelf.c: support for ELF output
4666         * as/hc08/lks19.c (s19),
4667         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
4668
4669 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4670
4671         * as/mcs51/lkihx.c: Fixed bug #899105.
4672
4673 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4674
4675         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
4676         .dsp files from Unix to DOS.
4677
4678 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4679
4680         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
4681         function pointers; we have been compliant for several months now.
4682         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
4683         change that was accidently commented out
4684         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
4685         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
4686         bug #922319
4687
4688 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4689
4690         * src/hc08/gen.c: output of all of the internal debugging information
4691         is now controlled by the D() macro; it is disabled by default
4692
4693 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4694
4695         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
4696         harder to keep the same registers during a CAST iCode
4697         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
4698         long via int can be done in a single cast, if the signedness is
4699         correct.
4700         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
4701         putchar() in tinibios.c in ds390's library
4702
4703 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4704
4705         * src/SDCCast.c (decorateType): fixed bug #898889,
4706         cast result of a literal complement too
4707         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
4708         fixed check for bitfields
4709
4710 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
4711
4712         * src/SDCCicode.c (geniCodeLogic): made it static,
4713         (geniCodeLogicAndOr): added in order to fix bug #905492,
4714         (ast2iCode): fixed bug #905492
4715         * support/regression/tests/bug-905492.c: added
4716         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
4717         (processParms): fixed bug #927659: don't copy parms, this will clear
4718         decorated flag
4719         * support/regression/tests/bug-927659.c: added
4720
4721 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4722
4723         * src/SDCCast.c (addCast): don't cast float to char
4724         * device/lib/libsdcc.lib: added _memmove
4725
4726 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
4727
4728         * device/lib/large/Makefile: fixed parallel execution by
4729         replacing `make` by `$(MAKE)`
4730
4731 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4732
4733         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
4734         offsets (fixes bug #923936)
4735
4736 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
4737
4738         * device/lib/small/Makefile: fixed parallel execution by
4739         replacing `make` by `$(MAKE)`
4740
4741 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4742
4743         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
4744
4745 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
4746
4747         * src/pic/gen.c (genCpl): multi-byte complements were not working.
4748         * src/regression/Makefile: Regression test was not running.
4749
4750 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4751
4752         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
4753         complement if possible
4754         * src/SDCCval.c (valComplement),
4755         * src/SDCCicode.c (operandOperation): fixed complement of literal
4756         * support/regression/tests/onebyte.c (testComplement): added
4757
4758 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
4759
4760         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
4761         return an optimized tree; actually replace actParm with the new tree
4762         * src/SDCCast.h: added some parantheses to remove side effects
4763         * support/regression/tests/bug-920866.c
4764
4765 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
4766         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
4767         Bit operands were not being handled properly in the pic14 port.
4768         (now src/regression/add.c passes again).
4769
4770 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4771
4772         * src/SDCC.y (labeled_statement): case and default no longer require
4773         a following statement (RFE #893037)
4774
4775 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4776
4777         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
4778         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
4779         disabled (fixes bug #916294)
4780         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
4781         "mov a,acc"; patch provided by Lenny Story
4782         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
4783
4784 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4785
4786         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
4787         functions
4788         * src/ds390/gen.c (genFunction, genEndFunction),
4789         * src/ds390/ralloc.c (ds390_assignRegisters),
4790         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
4791         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
4792         pushed if there are parameters passed on the stack. Also, a cleaner
4793         way to decide if r0/r1 should be pushed/popped. (Together they fix
4794         bug #918693)
4795
4796 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4797
4798         * doc/sdccman.lyx,
4799         * device/lib/mcs51/crtpagesfr.asm,
4800         * device/lib/mcs51/crtxinit.asm,
4801         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4802         to avoid confusion with Si Lab's SFRPAGE register.
4803
4804 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4805
4806         * src/SDCCglue.c (emitMaps): allow public sfr variables
4807         * src/SDCCglue.c (initialComments): include compiler build date
4808         with compiler version and put the timestamp of the generated
4809         assembly file on a serperate line to be less confusing.
4810         * src/port.h: added genInitStartup hook
4811         * src/avr/main.c,
4812         * src/ds390/main.c,
4813         * src/hc08/main.c,
4814         * src/pic/main.c,
4815         * src/pic16/main.c,
4816         * src/xa51/main.c,
4817         * src/z80/main.c: genInitStartup initialize as NULL (default to
4818         historical behaviour)
4819         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4820         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4821         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4822         library instead of hard coding it into the compiler.
4823         * support/regression/ports/mcs51-stack-auto/spec.mk,
4824         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4825         * device/lib/mcs51/Makefile,
4826         * device/lib/small/Makefile,
4827         * device/lib/large/Makefile,
4828         * device/lib/mcs51/crtpagesfr.asm,
4829         * device/lib/mcs51/crtstart.asm,
4830         * device/lib/mcs51/crtxclear.asm,
4831         * device/lib/mcs51/crtxinit.asm,
4832         * device/lib/mcs51/crtclear.asm,
4833         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4834         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4835         and into user configurable files.
4836         * device/lib/clean.mk: clean mcs51 directory too
4837         * support/regression/tests/longlit.c: added static to T1 declaration
4838         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4839         accesses in the initialization code
4840
4841 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4842
4843         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4844         OSCTRIMVAL as noted in bug #916008
4845
4846 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4847
4848         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4849         in loops with multiple exits (reported as incorrect registers
4850         used by Martin Helmling in Sdcc-user list)
4851
4852 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4853
4854         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4855         made ds390 register extensions look less like error messages
4856
4857 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4858
4859         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4860         reported by Adam Wozniak in Sdcc-user list
4861
4862 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4863
4864         * src/SDCCast.c (decorateType): fixed with bug and promotion in
4865         arithmetic optimizations, added debug output
4866
4867 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4868
4869         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4870         * sdcc.spec: updated and split sdcc into 3 rpms
4871         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4872         needed for literals of LEFT_OP and '+'
4873         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4874         introduced RESULT_TYPE_NOPROM
4875         (geniCodeMultiply): fixed logic for decision if mul is optimized to
4876         left shift
4877         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4878         limited promotion to int only for '*'
4879         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4880
4881 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4882
4883         * src/pic16/gen.c (genSkip),
4884         (genc16bit2lit), (gencjneshort): commented out
4885         (is_LitOp): new helper function, checks operand type
4886         (genCmpEq): rewritten
4887
4888 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4889
4890         * support/regression/tests/bug-908454.c: added
4891
4892 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4893
4894         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4895         * src/SDCCicode.c (usualBinaryConversions): op needs int type
4896         (geniCodeCast): cosmetic, don't preserve bit storage class
4897         (geniCodeLeftShift): added promotion
4898         (geniCodeLogic): fixed regression
4899         * src/SDCCsymt.c (computeTypeOr): accept bits too
4900         (compareType): 2nd part of fix for bug #908454, needed for bitfields
4901
4902 2004-03-07  Borut Razem <borut.razem AT siol.net>
4903
4904         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4905
4906 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4907
4908         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4909         version of pic16_genPackRegisters which does not check if ic is a
4910         CAST operator,
4911         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4912         function cause string1.c regression test fails
4913
4914 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4915
4916         * sim/ucsim/configure.in,
4917         * sim/ucsim/configure,
4918         * sim/ucsim/doc/Makefile.in: use docdir
4919         * src/SDCC.y: fixed sbit atrributes
4920         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4921         * src/SDCCast.c (decorateType): |^& need special promotion handling
4922         * src/SDCCast.h,
4923         * src/SDCCsymt.h: moved definition of RESULT_TYPE
4924         * src/SDCCsymt.h (computeType),
4925         * src/SDCCicode.c: computeType() needs op
4926         * src/SDCCsymt.c (checkTypeSanity),
4927         * doc/sddman.lyx: "plain" bitfields are unsigned
4928         * src/SDCCsymt.c (computeTypeOr): added
4929         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4930         |^& ops
4931         * src/SDCCval.c (val*): computeType() needs op
4932         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4933         * support/regression/tests/onebyte.c: added tests for |^&
4934
4935 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4936
4937         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4938         for writing icode into asm output.
4939
4940 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4941
4942         * src/pic16/device.c: added some debug lines enabled
4943         with macro DEBUG_CHECK,
4944         * src/pic16/genarith.c: more debug in genPlus,
4945         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4946         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4947         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4948         * (aopForSym): onStack symbols are re-placed in data memspace,
4949         and onStack flag is cleared,
4950         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4951         copy temporary pcodeop,
4952         * (genPcall): added warning for not updating PCLATU,
4953         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4954         always true for pic16 port,
4955         * (genMultOneWord): NEW, supports integer multiplication,
4956         * (genMult): modified to call genMultOneWord,
4957         * (ifxForOp): added warning when return NULL,
4958         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4959         flag is set before call to operandFromSymbol for implicit
4960         added structures,
4961         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4962         options.intlong_rent are set by default,
4963         * (_hasNativeMulFor): modified to allow port generation of integer
4964         multiplication,
4965         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4966         set regtype to REG_SFR for all registers, restricting seting the
4967         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4968
4969 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4970
4971         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4972         more than 500 times in the regression tests
4973
4974 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4975
4976         * support/Util/SDCCerr.h,
4977         * support/Util/SDCCerr.c,
4978         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4979         enumerator_list),
4980         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4981         for symbol conflicts.
4982         * support/valdiags/tests/enum.c,
4983         * support/valdiags/tests/tentdecl.c,
4984         * support/valdiags/tests/struct.c: expect possible error messages
4985         referring to original symbol definitions.
4986         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4987         * src/SDCCsymt.h,
4988         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4989
4990 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4991
4992         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4993
4994 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4995
4996         * src/pic16/ralloc.c (newReg): fixed bug #908929
4997
4998 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4999
5000         * src/ds390/gen.c: added missing #include "main.h"
5001
5002 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5003
5004         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5005         checking if symbol is already in set,
5006         * src/pic16/device.h: prototype for checkAddSym,
5007         * src/pic16/gen.c: (_G): added entry interruptvector,
5008         * (assignResultValue): removed some commented out lines,
5009         * (genFunction): check for ISR via sym->type, absolute section for
5010         interrupt code is created via a new pBlock, the goto instruction is
5011         placed now correctly at the interrupt vector position, changed all
5012         references from ivec to _G.interruptvector,
5013         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5014         is the interrupt is a high priority one, same for return from ISR,
5015         * src/pic16/glue.c: changed all calls of addSetHead for publics and
5016         externs to calls of checkAddSym,
5017         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5018         pic16_pcode_verbose flag is set,
5019         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5020         * src/pic16/pcoderegs.c: message about how many registers are saved
5021         will only be emitted if pic16_pcode_verbose flag is set,
5022
5023 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5024
5025         * src/ds390/ralloc.h,
5026         * src/ds390/ralloc.c (ds390_regWithIdx),
5027         * src/ds390/gen.c (emitcode),
5028         * src/ds390/main.h,
5029         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5030         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5031         ds390operandCompare, getRegsRead, getRegsWritten,
5032         initializeAsmLineNode): customized instruction size calculation for
5033         ds390, started basis for some register optimizations
5034         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5035         corresponding assembly output
5036         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5037         missing push/pop of r0/r1. Optimized push/pops
5038
5039 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5040
5041         * src/mcs51/main.c (instructionSize): fixed ACALL size
5042         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5043
5044 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5045
5046         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5047         the sorting of rlist with NULL elements
5048         * (print_idataType, print_idata): NEW to create idata sections
5049         * src/pic16/device.h: idataSymSet new variable
5050         * src/pic16/gen.c (genFunction): fixed some bugs in string
5051         comparing, improved the absolute section creation for ISRs,
5052         added FSR0L/FSR0H in registers that are saved in an ISR,
5053         * (genInline): fixed the processing of inline snippets,
5054         now they undergo no process by the peephole optimizer
5055         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5056         are placed in idataSymSet,
5057         * (pic16emitStaticSeg): extern symbols are added in externs,
5058         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5059         switching when aboslute variables are placed in access bank memory
5060         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5061         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5062         commented out with #if,
5063         * (pic16_packRegisters): reintroduce the check for CAST because some
5064         symbols are not correctly handled,
5065         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5066         pCodeInstruction instead of pCode,
5067         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5068         pCodeAsmDir definition,
5069         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5070         directive, then the argument directive is emitted without the leading
5071         tab, hack for inline labels which must be in the first column,
5072         * (compareLabel,pic16_findNextInstruction),
5073         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5074         * (insertBankSwitch): modified for the new pCodeAsmDir,
5075
5076 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5077         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5078
5079         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5080         instance,
5081         * (pushSide): commented out with #if,
5082         * (assignResultValue): fixed some typos in saving
5083         registers,
5084         * (genPcall): FIXED and sync'ed with genCall,
5085         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5086         * (genNearPointerGet): fixed to handle some more cases,
5087         implementation scheme via table reads,
5088         * (genConstPointerGet): modified to access code memory correct,
5089         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5090         and improved to handle some cases
5091         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5092         instead of "RETLW" for init data
5093         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5094         not IN_DIRSPACE, work around to reduce bank switching when aboslute
5095         variables are placed in access bank memory (<0x80 and >=0xf80),
5096         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5097         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5098         TBLWT_POSTDEC,TBLWT_PREINC
5099         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5100         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5101         directives
5102         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5103         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5104         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5105         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5106
5107 2004-02-29  Borut Razem <borut.razem AT siol.net>
5108
5109         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5110         support/Util/findme.h, support/Util/system.h: enhance binary relative
5111         search for lib and include by using findProgramPath()
5112
5113 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5114
5115         * src/SDCCpeeph.h,
5116         * src/SDCCpeeph.c (pcDistance),
5117         * src/port.h,
5118         * src/mcs51/ralloc.h,
5119         * src/mcs51/ralloc.c (mcs51_regWithIdx),
5120         * src/mcs51/main.h,
5121         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
5122         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5123         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
5124         size calculation port specific, started basis for some register
5125         optimizations
5126         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5127         missing push/pop of r0/r1. Optimized push/pops
5128         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5129         * device/lib/_modsint.c (_modsint),
5130         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5131         and stack version so regression tests pass
5132
5133 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5134
5135         * src/Makefile.in (dep): include SLIBOBJS in dependency check
5136         * src/SDCCast.c (decorateType): catch another small optimization
5137         with '?' operator
5138         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5139         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5140         modified to finally use computeType() all over SDCC,
5141         see Feature Request #877103
5142         * src/SDCCval.h: cosmetic
5143         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5144         valCompare(); regression tested in muldiv.c
5145         * support/regression/tests/muldiv.c (testMod): mod sign follows
5146         dividend only
5147
5148 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5149
5150         * src/SDCCast.c (decorateType): fixed bug #902362
5151         * doc/INSTALL.txt: fixed install instructions for win32
5152
5153 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5154
5155         * device/include/Makefile.in (install): fixed by replacing spaces
5156         by tabs
5157         * doc/README.txt,
5158         * doc/INSTALL.txt: updated for release
5159         * doc/sdccman.lyx: added warning for --xstack being buggy
5160
5161 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5162
5163         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
5164         to eliminate build warnings.
5165         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5166
5167 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5168            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5169
5170         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5171         removed -penable-stack, added comment for stack pragma, added
5172         warning for not initializing the stack/frame registers, removed
5173         comment at interrupts section
5174
5175         Stack is made permanent, there is no ability to disable stack usage.
5176         * src/pic16/device.h,
5177         * src/pic16/device.c: removed all references to USE_STACK macro,
5178         * src/pic16/device.c (pic16_dump_section): when no elements in
5179         rlist, free rlist before return,
5180         * (pic16_dump_int_registers): NEW, internal registers are a new set
5181         of general purpose registers reused by each function,
5182         * (checkAddReg): returns 1 if registers is added to set,
5183         * (pic16_groupRegistersInSection): when a registers is of type
5184         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5185         * src/pic16/device.h: memRange and Assigned Memory are deleted,
5186         SRCASECMP macro is moved here from device.c
5187         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5188         PO_PCLATU, PO_PRODL, PO_PRODH,
5189         * (pic16_pCodeOpType, genMinus,
5190         changed compares to "a" register, with AOP_ACC,
5191         * (pic16_genPlus): fixed some bugs and indented properly,
5192         * (pic16_addSign): changed size to size+offset in the MOVWF
5193         instruction,
5194         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5195         multiply 8-bit operand by literal, result is 8-bit,
5196         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5197         multiply 2 8-bit operand, result is 8-bit,
5198         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5199         genUMult8X*_16,
5200         * src/pic16/gen.c: changed accUse to contain WREG only,
5201         * (pic16_emitcomment): renamed to pic16_emitpcomment,
5202         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5203         true, do not use immediate addressing any more unless sym is a
5204         pointer in codespace,
5205         * (aopForRemat): do not use immediate addressing when symbol not in
5206         codespace and when symbol's address is requested,
5207         * (aopOp): for-loop in if(sym->accUse) is modified for the new
5208         accUse size (= 1),
5209         * (aopGet): added case for AOP_ACC and don't return "accumulator
5210         bug" but WREG instead,
5211         * (popGetTempReg): pushes contents of temporary register in stack,
5212         * (popReleaseTempReg): pops contents of temporary register from
5213         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5214         * (pic16_popGet): separated case AOP_ACC to return register WREG
5215         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5216         or PO_IMMEDIATE and initializes their instance/offset appropriately,
5217         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5218         the use of immediate pointers to certain cases only.
5219
5220         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5221         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5222         * (assignResultValue, genCall, genRet): modified to use the new
5223         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5224         genPcall is still broken,
5225         * (genFunction): added code to create 'A' type pBlocks when
5226         interrupt functions are generated, code not extensively tested yet,
5227         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5228         * (genEndFunction): modified so ISRs pop stored registers from stack,
5229         * (genMultOneByte): cleanup,
5230         * (AccRsh): added flag andmask, to and result with appropriate mask,
5231         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5232         * (genDataPointerGet): fixed and reenabled its use,
5233         * (genNearDataPointerGet): bugs fixed,
5234         * (genDataPointerSet): bugs fixed,
5235         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5236         pic16_DumpSymbol, pic16_DumpOp,
5237         * src/pic16/genutils.h: function prototypes for the above functions,
5238         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5239         pointers,
5240         * (pic16emitRegularMap): many many many improvements, but needs a
5241         major cleanup,
5242         * src/pic16/main.c: enable_stack in pic16_options is removed,
5243         * (_pic16_parseOptions): removed command line options -penable-stack,
5244         * (_process_pragma): emit stack symbol only when stack pragma is
5245         processed,
5246         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5247         redirected to FSR0L/FSR0H pair,
5248         * (pic16_get_op, pic16_get_op2): modifications and improvements,
5249         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5250         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5251         for immediates,
5252         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5253         * (dumpPicOptype): NEW,
5254         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5255         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5256         with movff instruction,
5257         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5258         added pic16_int_regs, some packRegsFor* functions are commented out,
5259         because produce errors,
5260         * src/pic16/NOTES: minor modifications
5261
5262 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5263
5264         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5265         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5266         --pack-iram.
5267         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5268         * as/mcs51/lkaomf51.c: fixed bug #895763
5269
5270 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5271
5272         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5273
5274 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5275
5276         * doc/sdccman.lyx: added details about the HC08 storage classes and
5277         interrupts, fixed the register usage info for z80 & gbz80
5278
5279 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5280
5281         * doc/sdccman.lyx: added more pic16 port documentation
5282         * device/include/pic16/: added header pic18fregs.h
5283
5284 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5285
5286         * doc/sdccman.lyx: added Vangelis' contribution
5287
5288 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5289
5290         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
5291         extend to the next CALL or PCALL, not just to the next CALL.
5292
5293 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
5294
5295         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
5296
5297 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5298
5299         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
5300         bug #895752 and a better fix for bug #716790
5301
5302 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5303
5304         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
5305
5306 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5307
5308         * doc/sdccman.lyx: minor changes, minor changed
5309
5310 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5311
5312         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
5313         which can't handle SDCC_NEWONEBYTEOPS,
5314         (geniCodeMultiply): removed conversion from mult to shift for pic14
5315         and pic16
5316
5317 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5318
5319         * src/hc08/gen.h,
5320         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
5321         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
5322         thus fixing bug #895406
5323
5324 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
5325
5326         * device/lib/_modsint.c,
5327         * device/lib/_modslong.c: sign follows divisor only
5328         * src/hc08/gen.c (genMultOneByte): if result size is 1,
5329         signs or signedness can be ignored
5330         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
5331         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
5332         added optimization for IFX,
5333         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
5334         arguments;
5335         reenabled optimization for IFX, which was removed on 2004-01-11
5336         * src/SDCCast.h: added return type IFX
5337         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
5338         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
5339         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
5340         SDCC_OLDONEBYTEOPS selects the old behaviour
5341         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
5342         changed again and commented promotion rule
5343         * src/SDCCval.c (valDiv): promotion no longer necessary
5344         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
5345         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
5346         rewritten
5347         * support/regression/tests/onebyte.c: added
5348
5349 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
5350
5351         * gen.c (genInline): reverted to old code for assemnling inline
5352         code because of bug reported James Chadd
5353
5354 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5355
5356         * ralloc.h: missing declarations from previous patch,
5357         seems that patch for ralloc.h was never applied, fixed
5358
5359 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5360            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5361
5362         * pcode.c,
5363         * pcode.h,
5364         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5365         indirect addressing. Marked FSR0 as deprecated
5366         * gen.c (pointerCode): commented out, not needed now
5367         (pic16_popGet2p): new MOVFF helper function
5368         (genGenPointerGet),
5369         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5370         (shiftRLong): removed duplicate debugging info
5371
5372 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5373
5374         * src/ds390/gen.c (genNearPointerGet),
5375         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5376         optimization with bits, but not bitfields.
5377         * src/ds390/ralloc.c (packRegisters),
5378         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5379
5380 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5381
5382         * src/SDCCcse.c (algebraicOpts): copy operands before modification
5383
5384 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5385
5386         * src/SDCCsymt.h,
5387         * src/SDCCicode.c (operandFromSymbol),
5388         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5389         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5390         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5391         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5392         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5393         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5394         bug #892038
5395         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5396         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5397         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5398         * src/SDCCsymt.c (newSymbol),
5399         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5400         enumerator_list),
5401         * src/SDCCval.h,
5402         * src/SDCCval.c (newiList): fixed bug #885705
5403
5404 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5405
5406         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5407         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5408
5409 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5410
5411         * device/include/c8051f120.h,
5412         * device/include/c8051f300.h,
5413         * device/include/c8051f310.h: added/updated header files for Silicon
5414         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5415         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5416         in new section Submitting patches
5417
5418 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5419
5420         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5421         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5422         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5423         genGenPointerSet),
5424         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5425         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5426         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5427         genGenPointerSet),
5428         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5429         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5430         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5431         genGenPointerSet),
5432         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5433         genFarPointerGet, genCodePointerGet, genGenPointerGet,
5434         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5435         genGenPointerSet): fixed bug #892400
5436         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5437         to eliminate build warnings.
5438         * src/SDCCast.c (processParms),
5439         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5440         fixed bug 751859
5441         * support/valdiag/valdiag.py: added GCC to the list of defines active
5442         when compiling with gcc
5443
5444 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5445
5446         * support/Util/SDCCerr.h,
5447         * support/Util/SDCCerr.c,
5448         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5449         with an incomplete type (fixed bug #883734)
5450         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5451
5452 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5453
5454         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5455
5456 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5457
5458         * src/SDCCast.c (decorateType),
5459         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5460         function pointer implementation
5461         * support/regression/tests/funptrs.c: added tests to verify both forms
5462         of function pointers work correctly. Added tests to verify parameters
5463         are passed in the correct order.
5464
5465 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
5466
5467         * device.c (regCompare): registers are sorted by ascending
5468         address and increasing size,
5469         * main.c (_pic16_finaliseOptions): removed the declaration
5470         of compiler macro MCU. Now a macro of the format pic18fxxxx
5471         will be defined from the command line
5472
5473 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5474             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5475
5476         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5477         PCOP_RLCF was overwritten!
5478         * gen.c (genSkip): commented out calls to pic16_emitcode,
5479         * (genCmpEQ): fixed "long" compares, only high word did get compared,
5480         * (genlshTwo),
5481         * (genRRC): added debugging info,
5482         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5483         overwritten while shifting,
5484         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5485         overwritten while shifting,
5486         * (AccLsh),
5487         * (AccRsh),
5488         * (shiftLLeftOrResult),
5489         * (shiftRLeftOrResult),
5490         * (shiftRLong),
5491         * (shiftLLong): Implemented with pic16_emitpcode
5492         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5493         * (genLeftShift): Fixed bug, operand for shift by variable always
5494         was "and"ed with 0x0f,
5495         * (genLeftShiftLiteral),
5496         * (genrshTwo),
5497         * (genRightShiftLiteral): added debugging info,
5498         * (genrshFour): added comment,
5499         * (genRightShift): determined signedness from operand "left"
5500         instead of "result"
5501
5502 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5503
5504         * src/SDCCicode.c (geniCodeParms),
5505         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5506         function pointers, fixed function pointer bugs #861242 and #861896
5507
5508 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5509
5510         * device/include/c8051f000.h,
5511         * device/include/c8051f120.h,
5512         * device/include/c8051f300.h: added header files for Silicon
5513         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5514
5515 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5516
5517         * src/SDCCast.c (processParams): added new type flow and restructured
5518         (gatherAutoInit): added new type flow
5519         (addCast): cosmetic changes
5520         (getLeftResultType): added new type flow for array indices, patch
5521         provided by Stas, see FR #877103
5522         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5523         array index patch by Stas
5524         * src/SDCCast.h: added prototype getResultTypeFromType()
5525         * src/SDCCval.h,
5526         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5527         * src/pic/glue.c (pic14emitStaticSeg),
5528         * src/pic16/glue.c (pic16emitStaticSeg),
5529         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5530         for initialization of symbols
5531         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5532         * support/Util/SDCCerr.h:
5533         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5534         * .version: bumped version number to 2.3.8
5535         * device/include/Makefile.in (install),
5536         * doc/Makefile (install): changed to 'rm `find ...`' construct to
5537         avoid warnings
5538
5539 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5540
5541         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5542         Slade Rich fixed an optimization bug
5543         * src/pic/pcodepeep.c,
5544         * src/pic/pcoderegs.c
5545         * doc/Makefile (install): added test for directory
5546
5547 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5548
5549         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5550         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5551         * src/pic/ralloc.c (getRegPtr, getRegGpr),
5552         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5553         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5554         * as/mcs51/asexpr.c (term),
5555         * as/hc08/asexpr.c (term): fixed bug #887146
5556
5557 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5558
5559         * src/z80/gen.c (genMult): handle single byte result product
5560         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5561         DUMMY_READ_VOLATILE (fixed bug #886367)
5562
5563 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5564
5565         * support/regression/tests/libmullong.c: fixed logic, on little endian
5566         hosts we ended without a mullong_wrapper()
5567
5568 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5569
5570         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
5571         virus/worm forged address usage.
5572
5573 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5574
5575         Fixed promotion, it should be done on AST level:
5576         * src/SDCCast.c (addCast): added promotion to int
5577         (decorateType): updated call to upCast()
5578         * src/SDCCicode.c (geniCodeLeftShift): removed call to
5579         usualUnaryConversions()
5580
5581 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
5582
5583         * support/regression/tests/literalop.c (mulWrapper): Added a
5584         wrapper to remove integer overflow warnings.
5585
5586         * support/regression/tests/float_trans.c: Made work on host.
5587
5588         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
5589         location of sz80.
5590
5591         * support/regression/generate-cases.py (main): Changed from inline
5592         to a main method.
5593
5594         * doc/Makefile (install): Changed to depth first to get rid of
5595         missing directory install warning.
5596
5597         * as/Makefile (install-doc): Made work on Mac.
5598
5599 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
5600
5601         * src/SDCCast.c: added an additional type flow in decorateType() of
5602         opposite direction, see feature request #860006; it's enabled at runtime
5603         by setting the environment variable SDCC_NEWTYPEFLOW
5604         * src/SDCCast.h: changed prototype of decorateType()
5605         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
5606         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
5607         'char' to 'int' can be omitted, if both operands are 'unsigned char';
5608         see feature request #877103
5609         * src/SDCCval.c: updated call of decorateType()
5610         (valBitwise): fixed bug #882876
5611         (valMinus): added promotion
5612         (valLogicAndOr): result is unsigned
5613         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
5614         * src/SDCCsymt.c (computeType),
5615         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
5616         must not cause an unsigned operation
5617         * src/pic/glue (pic14emitRegularMap),
5618         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
5619
5620 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
5621
5622         * src/pic/pcode.c (PCodeID): commented out left over debug code
5623
5624 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5625
5626         * support/valdiag/tests/overflow.c: added shift tests
5627         * src/pic/device.c,
5628         * src/pic/gen.c,
5629         * src/pic/gen.h,
5630         * src/pic/glue.c,
5631         * src/pic/main.c,
5632         * src/pic/pcode.c,
5633         * src/pic/pcode.h,
5634         * src/pic/pcodepeep.c,
5635         * src/pic/pcoderegs.c,
5636         * src/pic/ralloc.c,
5637         * src/pic/ralloc.h: applied patch from Slade Rich;
5638         added support for multiple code pages and multiple RAM banks on the
5639         PIC 14 port. The ASM files now no longer simply assume all the
5640         code / RAM are in the same page / bank. This means the linker can
5641         safely allocate code/RAM of separate ASM files to different pages/banks.
5642         * doc/sdccman.lyx: added Slade's tips
5643         * src/mcs51/peeph.def: fixed bug #880768
5644
5645 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5646
5647         * src/hc08/ralloc.c (rematStr): fixed bug #879282
5648         * src/SDCCast.c (decorateType): fixed bug #880197
5649
5650 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
5651
5652         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
5653         getopt.h.
5654
5655         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
5656         strtof is not part of C89 and isn't included with Mac OS X.
5657
5658 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5659
5660         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
5661         shiftL2Left2Result): fixed bug #879326
5662         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
5663         (genMultOneByte): fixed bug in signed vs unsigned multiplication
5664         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
5665         address fetch for clr instruction
5666         * device/lib/hc08/_mulint.c: created optimized assembly version
5667         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
5668
5669 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5670
5671         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
5672         proposed in FR #877103
5673
5674 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5675
5676         * src/SDCCval.c (cheapestVal): added missing checks
5677         * src/SDCCicode.c (usualBinaryConversions): fixed condition
5678         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
5679
5680 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
5681
5682         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
5683         equal operands
5684
5685 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
5686
5687         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
5688         loaded with the linker search paths (-L arguments) and the libraries
5689         to be linked with the current source (-l arguments). Changes
5690         currently will affect only the pic16 port.
5691         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
5692         include path the port specific paths and port specific libraries,
5693         * gplink command now contains the $3 argument,
5694         * src/pic16/device.h,
5695         * src/pic16/device.c,: structure PIC_device is made public and
5696         renamed to PIC16_device, the same for variable Pics which is renamed
5697         to Pics16. Updated all references to them.
5698         * src/pic16/glue.c (pic16glue): corrected bug with code
5699         initialization which bypassed the variable initializations block.
5700
5701         * device/lib/pic16/Makefile.rules: removed --penable-stack from
5702         COMPILE_FLAGS and added the --nostdinc option
5703
5704 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5705
5706         * device/include/mc68hc908jb8.h: Register defs for another member
5707         of the hc08 family. Contributed by Bjorn Bringert - thanks!
5708
5709 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
5710
5711         Documenting changes from previous commits.
5712         * configure.in (version 1.56),
5713         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
5714         when generating output files to configure the pic16 library,
5715         but now I've commented it out, since gputils aren't installed in the
5716         SF compile farm, so library won't compile
5717
5718         * device/lib/Makefile.in (version 1.56): initially I've added in
5719         target 'all' the prerequestive 'model-pic16' so it compiled the
5720         pic16 library, but now I've commented it out for the same reasons
5721         above,
5722         * added targets 'model-pic16' and 'objects-pic16' to compile the
5723         library
5724         * added target 'port-specific-objects-pic16' to handle the
5725         generated libraries and copy them into the build/ directory
5726         * added target 'clean-intermediate-pic16' to clean intermediate
5727         files into pic16 directory
5728         * in target 'installdirs' added line to create directory pic16 in
5729         the installation path
5730
5731         * device/include/Makefile.in (version 1.11): in target 'install'
5732         added lines to copy all header files to installation path,
5733         * in target 'installdirs' added line create directory for pic16
5734         headers in the installation path
5735
5736 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
5737
5738         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
5739          a function call
5740
5741 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5742
5743         * configure,
5744         * device/lib/configure.in,
5745         * device/lib/configure: fixed for autoconf 2.57
5746
5747 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5748
5749         * src/z80/main.c (_parseOptions): fixed the portmode= command line
5750         option so that it actually works. Made it specific to the z80, since
5751         the gbz80 doesn't have these kinds of I/O ports.
5752
5753 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5754
5755         * device/include/z180.h,
5756         * device/lib/_memcpy.c,
5757         * device/lib/_memmove.c,
5758         * device/lib/_mulint.c,
5759         * device/lib/ser_ir.c,
5760         * device/lib/ser_ir_cts_rts.c,
5761         * device/lib/_strcmp.c,
5762         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
5763         * src/z80/main.c (_process_pragma): add support for pragmas bank and
5764         portmode; added deprecation warning for bank= and protmode= forms.
5765         Also, guard against buffer overflow.
5766         * src/z80/gen.c (aopGet): generate better code for sfr banked read
5767
5768 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5769
5770         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
5771         changed interrupt vector table generation to only emit declared vectors.
5772         * device/include/Makefile.in: added missing backslash
5773         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
5774
5775 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5776
5777         Mainly changes to support compilation of the device libraries
5778         * src/pic16/device.c: stack is allocated via symbol and not
5779         via literal number. The symbol is placed in the corresponding
5780         position of the data ram
5781         * (pic16_dump_section): relocatable and absolute uninitialized
5782         data are now emitted in sorted order to reduce section naming,
5783         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
5784         weren't marked as being in the access bank,
5785
5786 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5787
5788         Added portion of GNU PIC Library under the directory
5789         device/include/pic16 and device/lib/pic16. These files
5790         contain the declarations of SFRs for the PIC18Fxx2 devices.
5791         The directory is initialized via configure from toplevel.
5792
5793 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5794
5795         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5796         the spilllocations to be compared correctly
5797
5798 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5799
5800         * src/SDCCast.c (decorateType): fixed bug introduced today
5801
5802 2004-01-12  Borut Razem <borut.razem AT siol.net>
5803
5804         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5805         doc/sdccman.lyx: upper case pragmas are deprecated
5806
5807 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5808
5809         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
5810         in simpler and even better code
5811
5812 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5813
5814         * src/SDCCicode.c (operandOperation): fixed bug #874819
5815         * src/SDCCast.c (decorateType): fixed
5816         char foo (unsigned long ul) { return ul > 0; }
5817
5818 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5819
5820         * doc/sdccman.lyx: Moved and added some sections, small changes
5821         all over. Telling LaTeX to be less strict with word spacing
5822         to better keep the right margin. Changed some notes about
5823         maintainance of the ports in section 3.2.1 - is it OK like this?
5824
5825 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5826
5827         SDCC source changes:
5828         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5829         convilong): modified to inform the pic16 port that builtin functions
5830         are external
5831
5832         PIC16 PORT specific changes:
5833         * src/pic16/device.c pic16_dump_equates() added,
5834         processor registers declared internally by the port are emitted in
5835         the translation as equates,
5836         * src/pic16/gen.c: inline code is passed unprocessed to the
5837         translation,
5838         * (pic16_popGetLit2): fnuction modified to take second operand as
5839         pCodeOp pointer and not as literal,
5840         * (popRegFromIdx): prefixed with pic16_,
5841         * (pic16_popCombine2): modified to receive already allocated pCode
5842         operands,
5843         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5844         * (genFunction): initializes local stack frame and pushes on stack
5845         all the registers used by this function,
5846         * (genEndFunction): restores all registers from stack and restores
5847         stack frame,
5848         * src/pic16/glue.c (pic16emitRegularMap): various changes and
5849         improvements,
5850         * (pic16glue): changed the program startup sequence,
5851         * added new dbName code 'A' for functions placed in absolute section
5852         * src/pic16/main.c: added function attribute _naked,
5853         * added pragma 'code' to place a fnuction at an absolute address,
5854         * added command line arguments --debug-ralloc and --pcode-verbose,
5855         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5856         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5857         * (pic16_newpCodeOpLit2): modified to take the second operand as
5858         pCodeOp pointer,
5859         * (pic16_printpBlock): modified to emit each function in a separate
5860         section,
5861         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5862         UPPER for immediate operands,
5863         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5864         instruction,
5865         * src/pic16/peeph.def: all peepholes with movff are commented out,
5866         because there is a problem in the pcode peep optimizer,
5867         * src/pic16/ralloc.c: the register allocator can now reuse local
5868         function symbols for another function. This saves register usage.
5869         * src/pic16/ralloc.h: added flag isLocal in structure regs,
5870
5871         Added file src/pic16/NOTES with information about program writing on
5872         the current port version.
5873
5874 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5875
5876         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5877         and peephole 252 (array access)
5878
5879 2004-01-09  Borut Razem <borut.razem AT siol.net>
5880
5881         * src/SDCCmain.c : fixed #872250: -l command line defined library
5882           files are scanned before standard library files
5883
5884 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5885
5886         * src/SDCCast.c (decorateType): fixed bug #874046
5887
5888 2004-01-09  Borut Razem <borut.razem AT siol.net>
5889
5890         * support/scripts/sdcc.nsi: remove previous installation
5891
5892 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5893
5894         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5895         bytes for last interrupt vector (mcs51)
5896         * sdcc.spec: fixed typo
5897
5898 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5899
5900         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5901         gen51Code): more efficient parameter receive for --model-large
5902         ("bug" #845294)
5903
5904 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5905
5906         * src/ds390/main.c,
5907         * src/z80/main.c: added missed needLinkerScript flags (more than
5908         one port structure defined in these file)
5909         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5910         bug #795325
5911
5912 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5913
5914         * src/SDCCmain.c: removed various references to DEFAULT_PORT
5915         * src/port.h: added flag needLinkerScript in port->linker
5916         structure to inform whether to create a .lnk file or not,
5917         * src/avr/main.c,
5918         * src/ds390/main.c,
5919         * src/hc08/main.c,
5920         * src/mcs51/main.c,
5921         * src/pic/main.c,
5922         * src/pic16/main.c,
5923         * src/xa51/main.c,
5924         * src/z80/main.c: changed appropriately to configure
5925         needLinkerScript flag
5926         * src/pic/gen.c,
5927         * src/pic16/gen.c (genAddrOf): fixed bug #863624
5928         * src/pic/glue.c: added variable udata_section_name to
5929         override default uninitialized data segment definition for
5930         devices only with SHAREBANK memory (reported from Erik Epetrich)
5931         * (pic14emitOverlay): modified to emit a commented overlay segment
5932         directive when no overlay data exist
5933         * (picglue): modified to emit uninitialized data segment
5934         according to udata_section_name
5935         * src/pic/main.c (_pic14_parseOptions): added command line
5936         options --udata-section-name=[name] to override default
5937         udata definition name
5938         * modified _linkCmd and _asmCmd to include compiler passed
5939         arguments via -W option
5940         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5941         object file from '.rel' to '.o' in port->linker structure,
5942         changed size of fptr from 2 to 3 in port structure
5943
5944 2004-01-07  Borut Razem <borut.razem AT siol.net>
5945
5946         * support/scripts/sdcc.nsi: update PATH
5947         * support/scripts/sdcc.ico: craeted
5948
5949 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5950
5951         * device/include/Makefile.in: fix install
5952         * doc/Makefile: fix install
5953
5954 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5955
5956         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5957         in bug #860505
5958         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5959         how the function variable allocation summary is displayed; also
5960         include information about variables allocated to the overlay
5961         segment
5962
5963 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5964
5965         * as/mcs51/lkmain.c: Help about -Y option
5966         * as/mcs51/lkarea.c: Fixed gcc warnings
5967
5968 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5969
5970         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5971         fixed warning
5972         * support/valdiag/tests/overflow.c: added
5973         * src/SDCCast.c (decorateType),
5974         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5975         LEFT_OP (left shift)
5976
5977 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5978
5979         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5980         (default behaviour).
5981
5982 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5983
5984         A python script to validate compiler diagnostic messages. It can be
5985         used to verify that sdcc complains about bad c source code and
5986         gives a good location of the error.
5987         * support/valdiag/Makefile,
5988         * support/valdiag/valdiag.py,
5989         * support/valdiag/tests/*
5990
5991 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5992
5993         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5994         * src/SDCCsymt.c (newEnumType),
5995         * src/SDCCsymt.h
5996         * support/Util/SDCCerr.c,
5997         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5998         enum related bugs.
5999         * support/regression/tests/enum.c: added test for enum values that
6000         require at least 2 bytes of storage.
6001
6002 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6003
6004         * src/common.h: added ifndef/define/endif macros
6005         around the header file.
6006         Bug reported from Jesus Calvino-Fraga
6007
6008 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6009
6010         * sdcc.spec: updated
6011         * device/include/Makefile.in: don't install CVS directories
6012         * device/lib/Makefile.in: added removal of CVS directories after install
6013         * doc/Makefile: fixed install, added local_icons
6014         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6015         * src/mcs51/gen.c (genRightShift): fixed bug #870788
6016         * src/ds390/gen.c (genRightShift): fixed bug #870788
6017         * src/SDCCast.c (decorateType): fixed bug #870781
6018
6019 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6020
6021         PIC16 port related changes:
6022         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6023         added variable stackPos,
6024
6025         * gen.c: genCall, assignResultValue: added support for
6026         pushing/retrieving function parameters to/from stack,
6027         genFunction,genEndFunction: setup stack frame for the
6028         generated function,
6029         genAddrOf: will be changed according to bug 863624
6030
6031         * added files genutils.c and genutils.h which contain gen*
6032         debugged and optimised functions extracted from gen.c
6033
6034         * glue.c: added variable 'externs' which holds extern symbols,
6035         pic16emitRegularMap: is modified to properly handle relocatable
6036          symbols under the new scheme,
6037         pic16createInterruptVect: is modified
6038         pic16printPublics: is modified to emit 'global' assembler directives,
6039         added pic16_printExterns to print extern symbols,
6040         pic16glue: initializes stack/frame pointer in the beginning of
6041         the assembly output. Temporary hack, will be corrected later,
6042         because gplink yet does not support stack and SDCC does not
6043         yet support a type of crt0.o object to create the final binary.
6044
6045         * Removed many lines that contain 8051 legacy code.
6046         * The code is finally placed under a 'code' directive.
6047         * Added port specific options.
6048
6049         * _process_pragma: simplified since now we do not need *special*
6050         include file to define SFR registers. But a separate header
6051         will be needed. This will be developed later.
6052         * _pic16_parseOptions: added, parses port specific options:
6053         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6054         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6055         --preplace-udata-with=
6056
6057         * _pic16_setDefaultOptions: modified to initialize section names,
6058         but hack is temporarly out of order since it needs improvement.
6059         * _pic16_genAssemblerPreamble: configuration words are emitted by
6060         their address instead of their name. This part is incomplete and
6061         supports only the 18Fxx2 devices. Other devices will emit an error
6062         during assembly since they do not contain the same set of config
6063         registers
6064         * _pic16_genIVT: is modified,
6065
6066         * pcode.c: added definitions for some hardware registers that are needed
6067         for stack support
6068         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6069         All PCI entries are updated. Now LFSR is supported.
6070         * Removed pic16_pciTRIS is mentioned by mdubuc in source
6071         * added pic16_newpCodeOpLit2 to support instructions with
6072         two literal arguments
6073         * pic16_pCode2str: corrected code that emits assembler instructions
6074         with two literal operands and those that have an access bit modifier
6075         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6076         this fixes a bug which caused some labels to be lost, when an
6077         assembler directive was added, i.e. banksel,
6078         * pic16_FixRegisterBanking: improved logic that causes the insertion
6079         of bank switching,
6080         * InlineFunction: functions that are called once, are not any more
6081         inlined. This can be a port option in the future,
6082
6083         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6084
6085         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6086         hold the corresponding uninitialized symbols,
6087         * pic16_allocProcessorRegister: registers have explicit marked the
6088         accessBank field,
6089         * pic16_allocInternalRegister: registers are explicit marked as
6090         not used,
6091         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6092         processing list, so bit registers were lost,
6093         *
6094
6095         * ralloc.h: added field 'accessBank' and original symbol operand
6096         in register definition,
6097         * removed the field isMapped from register definition,
6098
6099         ** Several functions have been removed from various sources:
6100         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6101         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6102         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6103         pic16_assignRelocatableRegisters
6104
6105         ** others have been introduced:
6106         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6107         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6108
6109 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6110
6111         * support/scripts/inc2h.pl: changed definition of BIT_AT
6112         to emit 'sbit at' instead of 'bit at'. This was a request.
6113
6114         PIC16 port related preliminary changes:
6115         * gen.c: prefixed function popRegFromString with
6116         pic16_ and all references to it corrected
6117         * pcode.c: all pic16_pc_* hardware registers prefixed
6118         with underscore (_),
6119         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
6120         * ralloc.c: newReg(): when register is REG_SFR then
6121         set address to rIdx,
6122         pic16_allocProcessorRegister(): marks register wasUsed=0
6123         pic16_writeUsedRegs(): added a call to assign processor
6124         registers via pic16_assignFixedRegisters
6125
6126 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6127
6128         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6129         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6130         variables in unused register banks.  Also the SSEG is placed
6131         wherever there is enough space for it, and IDATA can be anywhere
6132         in internal RAM.  For now compile using -Wl-Y[stack_size].
6133         The mem file is different for this option as well, since it
6134         makes no sense of talking about DSEG lenght.
6135
6136 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6137
6138         * src/SDCClrange.c: fixed bug 869095 that caused segfault
6139         in certain cases, e.g. when ROM assignment, patch provided
6140         from Albert den Haan.
6141
6142 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6143
6144         Many signedness and type propagation fixes:
6145         * src/SDCCicode.c: made geniCodeCast() static
6146         replaced SPEC_ by IS_ (cosmetic)
6147         (operandOperation): fixed div and mod operation
6148         (usualBinaryConversions): added support for promotion of char
6149         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6150         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6151         (geniCodeAdd): an array index will stay unsigned, even if promoted
6152         from char to int
6153         (geniCodeArray): ditto
6154         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6155         * src/SDCCsymt.c (computeType): added more support for char;
6156         promotion of char is selectable by promoteCharToInt, fixed signedness
6157         for all cases
6158         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6159         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6160         * src/SDCCval (val*): replaced signedness calculation by
6161         computeType()
6162         rearranged if-branches (cosmetic)
6163         (valShift): added warning W_SHIFT_CHANGED
6164         (valCompare): fixed problem with different types
6165         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6166         * support/regression/tests/literalop.c: added many cases
6167         * support/regression/tests/ast_constant_folding.c: changed finally to
6168         'unsigned int'
6169         * .version: new year, new version: 2.3.7
6170         * src/SDCCmain.c (main): applied patch #866468
6171         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6172         provided by Scott Bronson
6173         * doc/sdccman.lyx: updated documentation for sdcdb
6174         updated and added chapter tips
6175
6176 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6177
6178         * src/SDCCsymt.h: missing from yesterday's commits
6179
6180 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6181
6182         * src/SDCC.y (struct_or_union_specifier),
6183         * support/Util/SDCCerr.c,
6184         * support/Util/SDCCerr.h: verify that struct & union tags are used
6185         as declared.
6186
6187 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6188
6189         * src/SDCCglobl.h: missing from yesterday's commits
6190
6191 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6192
6193         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6194         sft_attributes, struct_declaration, parameter_declaration,
6195         type_name, start_block, declaration_list),
6196         * src/SDCC.lex (check_type): support redefinition of typedef names
6197
6198 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6199
6200         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6201         aligned xdata arrays. Erik helped me with the if clause.
6202
6203 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6204
6205         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6206         warning
6207
6208 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6209
6210         * src/SDCCast.h,
6211         * src/SDCCast.c (newAst_),
6212         * src/SDCCicode.h,
6213         * src/SDCCicode.c (ast2iCode, newiCode),
6214         * src/SDCCglobl.h,
6215         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6216         expr, statement, expression_statement, selection_statement,
6217         iteration_statement, expr_opt, jump_statement): foundation for tracking
6218         sequence points
6219         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6220         point code too)
6221
6222 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6223
6224         * support/Util/SDCCerr.c,
6225         * src/SDCCast.h,
6226         * src/SDCCast.c (createCase, createDefault, decorateType),
6227         * src/SDCClabel.c (labelUnreach),
6228         * src/SDCC.y (labeled_statement, jump_statement): More improvements
6229         to error messages.
6230         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6231         (with thanks to Stas Sergeev)
6232         * device/include/time.h,
6233         * device/lib/time.c (CheckTime): suppress unreachable code warning
6234
6235 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6236
6237         * src/SDCCast.c (createIvalCharPtr),
6238         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6239         bug #753752)
6240         * support/regression/tests/nullstring.c: tests for these two bugs
6241
6242 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6243
6244         * support/Util/SDCCerr.h,
6245         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6246         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6247         about storage class and 'at' used inside struct or union
6248         * src/SDCCBBlock.c (iCodeFromeBBlock),
6249         * src/SDCCcse.c (ifxOptimize),
6250         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6251         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6252         printIval, emitStaticSeg, emitOverlay),
6253         * src/SDCClabel.c (deleteIfx),
6254         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6255         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6256         gatherAutoInit, processParms),
6257         * support/Util/SDCCerr.h,
6258         * support/Util/SDCCerr.c (werrorfl): Support for better error location
6259         reporting for post-parse errors.
6260
6261 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6262
6263         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6264         implicit casts via union; they don't work on big endian systems
6265         (possible fix for bug #861138)
6266
6267 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6268
6269         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6270         * src/mcs51/main.c: fixed the fix for bug #737001
6271
6272 2003-12-15  Borut Razem <borut.razem AT siol.net>
6273
6274         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6275
6276 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277
6278         * support/makebin/makebin.c: put output in binary mode
6279
6280 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6281
6282         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6283         xdata and data memory on startup. Set the environment variable
6284         SDCC_NOGENRAMCLEAR to disable this.
6285         * src/mcs51/peephole.def,
6286         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6287         (allows non-interrupt and interrupt code to safely compete for a resource
6288         without the non-interrupt code having to disable interrupts)
6289
6290 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6291
6292         * src/SDCCicode.c (geniCodeAdd),
6293         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
6294         with valFromType if type might be a pointer and host is big endian).
6295         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
6296         types, not just integer types.
6297         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
6298         multiply defined with mismatching "at" address.
6299
6300 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6301
6302         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
6303         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
6304         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
6305         with embedded nulls (fixed bug #753752)
6306
6307 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6308
6309         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
6310         Apparently this did not see much testing (endless loop)
6311
6312 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313
6314         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
6315
6316 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6317
6318         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
6319         gracefully handle NULL memmap pointers
6320
6321 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6322
6323         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
6324         instead of deleting the iCode when an operand is volatile
6325         * src/z80/gen.c (genDummyRead),
6326         * src/mcs51/gen.c (genDummyRead),
6327         * src/ds390/gen.c (genDummyRead),
6328         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
6329         not just IC_RIGHT
6330         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
6331         * src/SDCC.y: fixed bug #850420
6332
6333 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6334
6335         Applied z80 i/o port patch from Peter Townson and fixed some operators
6336         to better handle operands in A register.
6337         * device/include/z180.h
6338         * src/SDCC.y
6339         * src/SDCCglue.c
6340         * src/z80/gen.c
6341         * src/z80/gen.h
6342         * src/z80/main.c
6343         * src/z80/peeph-z80.def
6344         * src/z80/peeph.def
6345         * src/z80/z80.h
6346
6347 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6348
6349         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
6350
6351 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6352
6353         * device/lib/hc08/_mullong.c: Removed extra #endif
6354
6355 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6356
6357         * sim/ucsim/hc08.src/inst.cc,
6358         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6359         carries from x to h
6360         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6361         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6362         * device/include/stdarg.h: fixed varargs for hc08
6363         * device/lib/Makefile.in,
6364         * device/lib/hc08/Makefile,
6365         * device/lib/hc08/_mulint.c,
6366         * device/lib/hc08/_mullong.c: fixed some endian problems
6367
6368 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6369
6370         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6371         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6372         * device/lib/_gptrget.c,
6373         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6374
6375 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6376
6377         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6378         * src/SDCCast.c (astErrors): fixed bug #846007
6379         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6380
6381 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6382
6383         * src/SDCCast.c (decorateType): disabled a transformation I added in
6384         revision 1.188 (access to fields of a structure at an absolute address);
6385         it breaks with bitfields, extern declarations, and gcse analysis.
6386         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6387         could be assigned through a pointer, so don't complain.
6388         * src/SDCCast.c (astErrors),
6389         * src/SDCCast.h,
6390         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6391
6392 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6393
6394         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6395         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6396         output of __config directives, since gpasm now supports them
6397         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6398         pre-processor macro, i.e. -DMCU=p18f452
6399         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6400         and modified to handle 'cast' icode similarly to '=' icode
6401         * src/pic16/device.h (typedef struct PIC_device): added field
6402         'extMIface' to indicate that chip has external memory interface
6403         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6404         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6405         18F8720
6406
6407 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6408
6409         * src/SDCC.y (pointer): fixed bug #846006
6410         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6411         * src/SDCCast.c (decorateType): fixed bug #846009
6412         * src/ds390/peeph.def,
6413         * src/ds390/gen.c (genAnd, genOr),
6414         * src/mcs51/peeph.def,
6415         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6416
6417 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6418
6419         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6420         * src/SDCCdflow.c
6421         * src/SDCCcse.c
6422         * src/SDCCcse.h
6423         * src/SDCCBBlock.h
6424         * src/SDCCBBlock.c
6425
6426 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6427
6428         fixed bug #845089
6429         * src/SDCCbitv.h,
6430         * src/SDCCbitv.c: added function to free a bitvector
6431         * src/SDCClrange.h,
6432         * src/SDCClrange.c: added function to recompute the liveranges
6433         * src/avr/ralloc.c,
6434         * src/ds390/ralloc.c,
6435         * src/hc08/ralloc.c,
6436         * src/mcs51/ralloc.c,
6437         * src/pic/ralloc.c,
6438         * src/pic16/ralloc.c,
6439         * src/xa51/ralloc.c,
6440         * src/z80/ralloc.c: recompute the liveranges after register packing
6441
6442 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6443
6444         * src/SDCCloop.c (newInduction): fixed bug #845630
6445
6446 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6447
6448         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6449         inadvertantly left behind from my 2003-11-12 change
6450
6451 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6452
6453         Updated headers I neglected to commit yesterday.
6454         * src/SDCClrange.h,
6455         * src/SDCCicode.h
6456
6457 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6458
6459         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6460         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6461         * src/SDCCopt.c (eBBlockFromiCode),
6462         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6463         the creation of the key hash table from the sequencing so it can be used
6464         earlier (for some GCSE bug fixes still pending)
6465
6466 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6467
6468         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6469         * support/regression/tests/addsub.c: testing genPlus shortcut
6470
6471 2003-11-15  Borut Razem <borut.razem AT siol.net>
6472
6473         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6474
6475 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6476
6477         * src/SDCCcse.c (cseBBlock): fixed bug #527779
6478         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6479         ordering is immaterial.
6480         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6481
6482 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6483
6484         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6485         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6486         (SIGSEV) of bug #840381
6487         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6488         unlink new file before rename if new and old filenames are the same)
6489
6490 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6491
6492         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6493         uninitialized variables) for the mcs51. Set environment variable
6494         SDCC_GENRAMCLEAR to test.
6495         xdata initialization slightly shorter
6496
6497 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6498
6499         * src/SDCCsymt.h,
6500         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6501         #838241 & 780691 (basicly the same bug)
6502         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6503         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6504
6505 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6506
6507         * src/SDCCmain.c (linkEdit): "fix" #834252
6508
6509 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6510
6511         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6512         * src/SDCCast.h,
6513         * src/SDCC.y: fixed bug #819403
6514
6515 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6516
6517         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6518         the reentrant attribute.
6519         * src/hc08/gen.c (genPackBits): added missing stack readjustment
6520         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6521         simulation
6522         * src/SDCCast.c (decorateType): fixed bug with storage class not being
6523         updated during pointer dereference; f.e. ~(((char *)1)*) was being
6524         erroneously reduced to a literal.
6525         * src/hc08/ralloc.c (packRegisters, rematStr),
6526         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6527         some cases
6528
6529 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6530
6531         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6532         * doc/sdccman.lyx: changed from 'article' to 'book'
6533         * doc/Makefile: readded test_suite_spec and cdbfileformat
6534
6535 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6536
6537         * device/include/stdlib.h: include malloc.h to comply with ANSI
6538         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6539
6540 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6541
6542         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6543         * doc/clean.mk: also remove *.out files
6544         * doc/sdccman.lyx: some additions, larger top/bottom margins
6545
6546 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6547
6548         * src/SDCC.y: fixed bug #837365
6549         * support/regression/tests/bitopcse.c
6550         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6551         a symbol (might be valop instead)
6552         * device/lib/Makefile.in: added errno.c to HC08SOURCES
6553         * device/lib/clean.mk: added hc08 to the cleaning list
6554
6555 2003-11-04  Borut Razem <borut.razem AT siol.net>
6556
6557         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6558           made 2003-11-04
6559         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6560           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6561           malloc is declared in standard stdlib.h
6562
6563 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6564
6565         * device/lib/hc08/Makefile: need to clean .rel not .o files
6566         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
6567
6568 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6569
6570         * src/port.h,
6571         * src/hc08/main.c,
6572         * src/mcs51/main.c,
6573         * src/ds390/main.c,
6574         * src/z80/main.c,
6575         * src/avr/main.c,
6576         * src/pic/main.c,
6577         * src/pic16/main.c,
6578         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
6579         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
6580         tests (which uses the port's oclsExpense function)
6581         * src/SDCC.y,
6582         * src/SDCCast.c,
6583         * src/SDCCicode.c,
6584         * src/hc08/gen.c,
6585         * src/ds390/gen.c,
6586         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
6587
6588 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6589
6590         * src/SDCCcse.c (ifxOptimize),
6591         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
6592         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
6593         deleting the IFX iCode.
6594         * src/hc08/ralloc.c: reduced unneeded slocs
6595         * src/hc08/gen.c: fixed bug in asmopToBoolean
6596
6597 2003-11-04  Borut Razem <borut.razem AT siol.net>
6598
6599         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
6600           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6601           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
6602           transferred to configure
6603
6604 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
6605
6606         Use headers defined in the C[++] standards:
6607         * sim/ucsim/gui.src/serio.src/fileio.cc
6608         * sim/ucsim/gui.src/serio.src/frontend.cc
6609         * sim/ucsim/gui.src/serio.src/main.cc
6610         * sim/ucsim/gui.src/serio.src/posix_signal.cc
6611         * support/Util/NewAlloc.c
6612         * as/hc08/lklibr.c
6613         * as/mcs51/lklibr.c
6614         * as/z80/aslist.c
6615         * as/z80/assym.c
6616
6617 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6618
6619         * Added MSVC projects for hc08 assembler and linker:
6620         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
6621         /as/hc08/link_hc08.dsp
6622
6623 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
6624
6625         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
6626
6627 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
6628
6629         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
6630
6631 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6632
6633         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
6634
6635 2003-10-31  Borut Razem <borut.razem AT siol.net>
6636
6637         * support/cpp2/cpplib.h,
6638           support/cpp2/cpplib.c,
6639           support/cpp2/cpplex.c,
6640           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
6641           to switch _asm block preprocessing on / off. Default is
6642           #pragma preproc_asm +
6643
6644 2003-10-31  Borut Razem <borut.razem AT siol.net>
6645
6646         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
6647           when outputting comment blocks (when executed with -C option) and
6648           _asm (SDCPP specific) blocks
6649
6650 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6651
6652         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
6653
6654 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
6655
6656         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
6657
6658 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
6659
6660         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
6661         * src/SDCCast.c (decorateType): fixed bug #832664
6662
6663 2003-10-31  Borut Razem <borut.razem AT siol.net>
6664
6665         * support\cpp2\cpplex.c: fixed for SDCPP:
6666           comments(when executed with -C option) and _asm blocks
6667           were included even if they where in skipped #if block.
6668           Applied solution from GCC cpp 3.3.2
6669
6670 2003-10-31  Borut Razem <borut.razem AT siol.net>
6671
6672         * src/SDCC.lex: sdcc now understands both formats:
6673           '# <line_number> <file_name>' and
6674           '#line <line_number> <file_name>'
6675         * support/cpp2/cppmain.c: sdcpp now generates the standard
6676           '# <line_number> <file_name>' instead of former
6677           '#line <line_number> <file_name>'
6678
6679 2003-10-30  Borut Razem <borut.razem AT siol.net>
6680
6681         * support/cpp2/cpphash.h,
6682         * support/cpp2/cpplib.h
6683         * support/cpp2/cpplex.c,
6684         * support/cpp2/cppmain.c,
6685         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
6686
6687 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6688
6689         Fixed a number of problems revealed by bug #827883.
6690         * src/SDCCloop.c (loopInvariants): Spill location of the
6691         result operand should be recomputed if extracted from
6692         a loop. Also, don't extract assignments of an iTemp
6693         from a literal.
6694         * src/SDCCast.c (isConformingBody): loop reversal should
6695         not occur if the control variable is involved with a
6696         relational operator.
6697
6698 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6699
6700         * .version: bumped to 2.3.6 to reflect the big improvements
6701         made by Erik and Klaus. Thanks!
6702
6703 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
6704
6705         Replaced the livrange code.
6706         * src/SDCClrange.c: added new LR code
6707         * src/SDCCloop.c,
6708         * src/SDCCBBlock.h: removed remainig parts from old LR code
6709         * src/ds390/ralloc.c,
6710         * src/ds390/gen.c: minor fixes to make it work with new code
6711
6712 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6713
6714         * as/hc08/asm.h,
6715         * as/hc08/lkrloc.c,
6716         * src/hc08/gen.c,
6717         * src/hc08/ralloc.c: Fix various warnings related to the hc08
6718         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
6719         (tweaked fix for bug #818696)
6720
6721 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6722
6723         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
6724
6725 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6726
6727         * src/SDCCmain.c,
6728         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
6729         * src/mcs51/gen.c (gencjneshort),
6730         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
6731         more efficient (per Scott Bronson's suggestion)
6732
6733 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6734
6735         Extended the semantics of the critical keyword to include
6736         individual statements. See RFE #827755 and #799831
6737         * src/SDCC.y
6738         * src/SDCCicode.c
6739         * src/SDCCopt.c
6740         * src/SDCCast.c
6741         * support/Util/SDCCerr.c
6742         * support/Util/SDCCerr.h
6743         * src/mcs51/gen.c
6744         * src/ds390/gen.c
6745         * src/hc08/gen.c
6746
6747 2003-10-19  Borut Razem <borut.razem AT siol.net>
6748
6749         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
6750
6751 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6752
6753         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
6754         Fixed bug #818696
6755         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
6756         and predecrement operand is displayed
6757
6758 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6759
6760         * src/SDCCval.c (valMinus): fixed bug #826041
6761
6762 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6763
6764         Some hc08 related updates that I missed earlier
6765         * sim/ucsim/stypes.h
6766         * support/regression/ports/hc08/spec.mk
6767
6768 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6769
6770         New target "hc08" for the Motorola 68hc08 family of micros
6771
6772         * configure
6773         * configure.in
6774         * Makefile
6775         * src/hc08/*
6776         * src/SDCCmain.c
6777         * src/port.h
6778         * sim/ucsim/hc08.src/*
6779         * sim/ucsim/configure.in
6780         * src/ucsim/configure
6781         * sim/ucsim/packages_in.mk
6782         * as/hc08/*
6783         * as/Makefile
6784         * device/include/mc68hc908qy.h
6785         * device/lib/hc08/*
6786         * device/lib/Makefile.in
6787         * support/regression/ports/hc08/*
6788         * support/regression/Makefile
6789
6790 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6791
6792         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
6793         regression test
6794         * src/ds390/gen.c (genCast): fixed bug #821957
6795
6796 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6797
6798         * device/lib/logf.c: "fixed" overlay bug
6799         * support/regression/ports/host/spec.mk: added m library
6800         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6801         * support/regression/tests/float_trans: added (for Eric)
6802
6803 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6804
6805         * src/mcs51/gen.c (genCpl): fixed bug
6806         http://sf.net/mailarchive/message.php?msg_id=6263915
6807
6808 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6809
6810         * src/SDCCast.c (decorateType): added extended constant folding
6811         * src/SDCCsymt.c (computeType): cleanup
6812         * src/SDCCval.c (valShift): minor optimization
6813         * support/regression/tests/ast_constant_folding.c: added
6814
6815 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6816
6817         * src/SDCCmain.c: removed some unintended changes
6818
6819 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6820
6821         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6822         * src/z80/gen.c: fixed part of bug #817589
6823         * src/SDCCsymt.c (checkFunction): fixed bug #817895
6824
6825 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6826
6827         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6828         * src/SDCCcflow.c
6829         * src/SDCCcse.c
6830         * src/SDCCdflow.c
6831         * src/SDCClabel.c
6832         * src/SDCClrange.c
6833         * src/SDCCmem.c
6834         * src/SDCCopt.c
6835         * src/SDCCpeeph.c
6836         * src/SDCCset.c
6837         * src/avr/ralloc.c
6838         * src/ds390/ralloc.c
6839         * src/izt/ralloc.c
6840         * src/mcs51/ralloc.c
6841         * src/pic/ralloc.c
6842         * src/pic16/ralloc.c
6843         * src/xa51/ralloc.c
6844         * src/z80/ralloc.c
6845         * src/z80/gen.c: removed unused label "release:"
6846
6847 2003-10-06  Borut Razem <borut.razem AT siol.net>
6848
6849         * src/SDCC.lex: removed definition of unused variables
6850           save_optimize and save_options
6851
6852 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6853
6854         * clean.mk: removed '=' in "-maxdepth=1"
6855         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6856         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6857
6858 2003-10-06  Borut Razem <borut.razem AT siol.net>
6859
6860         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6861           my_unput() replaced by unput()
6862
6863 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6864
6865         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6866         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6867         type-punned pointer will break strict-aliasing rules"
6868         Old LR behaviour is again default; Klaus' LR can be choosen by
6869         defining the environment variable LRKLAUS
6870         * src/SDCCBBlock.h
6871         * src/SDCCloop.c
6872         * src/SDCClrange.c
6873         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6874         * clean.mk: fixed removal of files in bin/CVS/
6875         * device/lib/clean.mk: fixed removal of directories small and large
6876         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6877         * src/SDCCicode.c,
6878         * src/SDCCval.c: removed superflous test for pedantic
6879
6880 2003-10-05  Borut Razem <borut.razem AT siol.net>
6881
6882         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6883           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6884           message "unmatched #pragma SAVE and #pragma RESTORE"
6885
6886 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6887
6888         * doc/sdccman.lyx: various additions and updates (interrupts, inline
6889           assembly, critical functions, atomic, nojtbound)
6890
6891 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6892
6893         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6894         * src/SDCCBBlock.h
6895         * src/SDCCloop.c
6896         * src/SDCCloop.h
6897         * src/SDCClrange.c
6898
6899 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6900
6901         * src/z80/gen.h,
6902         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6903         * src/mcs51/gen.h
6904         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6905         * src/ds390/gen.h
6906         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6907         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6908         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6909
6910 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6911
6912         * src/z80/gen.c (genRet): fixed bug #524753
6913         * src/z80/gen.c (genCast): fixed internal error on cast from
6914         pointer to long
6915         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6916         fix for bug #477835 to the z80
6917         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6918         for tracking iCodes in the peephole optimizer for z80
6919
6920 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6921
6922         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6923         the other part of bug #814548
6924         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6925
6926 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
6927
6928         * src/SDCCcse.c: fixed part of bug #814548
6929
6930 2003-09-28  Borut Razem <borut.razem AT siol.net>
6931
6932         * src/asm.c: rewrite of printILine() to use temporary file instead
6933           a pipe
6934         * src/xa51/main.c: commented out declaration of int rewinds
6935
6936 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6937
6938         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6939
6940 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6941
6942         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6943         * src/asm.c (printILine): Fixed bug #811015
6944
6945 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6946
6947         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6948         freeing.
6949
6950 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6951
6952         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6953         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6954         to correctly handle general case of AOP_PAIRPTR
6955         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6956
6957 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6958
6959         * src/mcs51/ralloc.c (fillGaps),
6960         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6961         register positioning bug)
6962
6963 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6964
6965         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6966
6967 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6968
6969         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6970         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6971         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6972         (ralloc doesn't intentionally do this now, but perhaps later)
6973         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6974         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6975         register positioning bugs (Fixed bug #762602 and #795325)
6976         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6977         (Fixed bug #808779)
6978         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6979         lines that --i-code-in-asm generates
6980
6981 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6982
6983         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6984         trying to fclose a FILE* that was already closed.
6985
6986 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6987
6988         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6989         of const struct should be treated as if const themselves)
6990
6991 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6992
6993         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6994
6995 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6996
6997         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6998         Unix (/n) and DOS (/r/n) line terminations.
6999
7000 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7001
7002         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7003         bug #613775
7004
7005 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7006
7007         * src/mcs51/gen.c (genFunction, genEndFunction),
7008         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7009         and restore of EA so that stack offsets to parameters are
7010         correct when using both critical and reentrant/stack-auto.
7011         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7012         size (can be triggered in error if sloc is shared between
7013         different sized objects)
7014         * device/include/float.h: fixed macros to explicitly use
7015         unsigned long where needed
7016
7017 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
7018
7019         Feature req. 799831: added code to allow nesting of critical functions
7020         * src/mcs51/gen.c (genFunction, genEndFunction)
7021         * src/ds390/gen.c (genFunction, genEndFunction)
7022
7023 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/SDCCsymt.c (sclsFromPtr),
7026         * src/SDCCsymt.h,
7027         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7028         support for standard C idiom of memory mapped variables; for
7029         example, *((xdata int*)0x1234) = 1 is now internally equivalent
7030         to xdata int at 0x1234 tempvar = 1.
7031         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7032         provided by Akiya ISHIDA
7033
7034 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
7035
7036         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7037         * src/SDCCval.c (constVal): added reduction from int to char
7038         * src/SDCCval.c (valMult, valDiv): fixed sign handling
7039         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7040         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7041         to ignore the sign
7042         * support/regression/tests/shifts.c: fixed
7043
7044 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7045
7046         * src/z80/gen.c (genXor): Fixed bug #805445
7047
7048 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7049
7050         Fixed bug #621531 (const & volatile confusion in the type chain).
7051         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7052         refer to the const or volatile state of the pointer itself.
7053
7054         * src/SDCCast.c
7055         * src/SDCCglue.c
7056         * src/SDCCicode.c
7057         * src/SDCCsymt.c
7058         * src/SDCCval.c
7059         * src/SDCC.y
7060         * src/SDCCsymt.h
7061         * src/pic/gen.c
7062         * src/pic/ralloc.c
7063         * src/pic16/gen.c
7064         * src/pic16/ralloc.c
7065         * support/regression/tests/const.c
7066
7067 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7068
7069         When checking for duplicated modules, use absolute paths
7070         instead of relative paths.  Files changed:
7071
7072         * as/mcs51/lklib.c
7073         * link/z80/lklib.c
7074
7075 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7076
7077         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7078
7079 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7080
7081         * device/include/string.h: added size_t typedef, changed
7082         prototypes to use size_t, eliminated separate reentrant and
7083         non-reentrant declarations, added _memmove declaration
7084         * device/lib/_memcpy.c: changed to use size_t instead of int,
7085         changed /4 to >>2 to avoid division library call
7086         * device/lib/_memcmp.c,
7087         * device/lib/_memset.c,
7088         * device/lib/_strncat.c,
7089         * device/lib/_strncpy.c,
7090         * device/lib/_strncmp.c: changed to use size_t instead of int
7091         * device/lib/_memmove.c: new file (fixed bug #772294)
7092         * device/lib/Makefile.in: added _memmove.c
7093         * device/lib/z80/asm_strings.s: fixed bug #772290
7094         * support/regression/tests/bitfields.c: attempt to fix host assertion
7095         failure on amd64-unknown-linux2.2
7096
7097 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7098
7099         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7100         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7101         * as/z80/asmain.c (main): fixed bug #801766
7102
7103 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
7104
7105         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7106         compilers
7107
7108 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7109
7110         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7111         reported in bug #800609
7112
7113 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
7114
7115         * Top header beautifications in src/pic16 directory:
7116           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
7117           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
7118           pcoderegs.h, ralloc.c, ralloc.h
7119         * main.c: added top header and GPL license notice
7120         * pcode.c: fixed the if-conditional warning
7121
7122 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
7123
7124         * device/lib/_mullong.c: replaced int by short for gcc
7125
7126 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127
7128         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7129         and JUMPTABLE iCodes properly now (worked by accident before)
7130         * src/mcs51/gen.c (leftRightUseAcc),
7131         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7132         iCode properly now. Use getSize instead of nRegs since a & b
7133         aren't part of the nRegs tally.
7134
7135 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
7136
7137         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7138         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7139           before instructions that use the _STATUS register
7140
7141 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
7142
7143         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7144         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7145         fetching of the pointer
7146         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7147         copied from genNearPointerSet()
7148         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7149         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7150         If they pop r0/r1 they must be called in the opposite order than aopOp().
7151         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7152         (resp. --stack-auto), prepared for --xstack
7153
7154 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7155
7156         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7157
7158 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
7159
7160         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7161         these ports have their own __sdcc_external_start()
7162
7163 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
7164
7165         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7166         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7167         type for bits was changed. It resulted in bit variables becoming
7168         global, which is not permitted in PIC 14 assembly output.
7169
7170 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7171
7172         * doc/sdccman.lyx: various additions and updates. Rearranged sections
7173
7174 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7175
7176         Z80 and MCS51 linkers complaint if a public symbol is defined
7177         in more than one library module:
7178
7179         * as/mcs51/lklib.c
7180         * link/z80/lklib.c
7181         * as/mcs51/Makefile.in
7182
7183 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7184
7185         A few small changes that speed up the peephole optimizer.
7186
7187         * src/SDCCpeeph.c
7188
7189 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7190
7191         Try to make the peephole optimizer smarter by maintaining
7192         an association between the assembly source code and the
7193         iCodes that originated them. Put this information to use
7194         with a new peephole rule condition "notVolatile" so that
7195         the rules can be aggressive yet still safe.
7196
7197         * src/SDCCpeeph.c
7198         * src/SDCCpeeph.h
7199         * src/mcs51/gen.c
7200         * src/mcs51/peeph.def
7201
7202 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7203
7204         Fixed bug #741761
7205
7206         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7207         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7208         if the left or right operand symbols have the accuse flag set.
7209
7210 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7211
7212         Changed the type of the result of the ! (NOT) operator to char;
7213         previously it returned the same type as the source. This allows
7214         us to eliminate all the genFloatNot functions (all of its target
7215         implementations were very buggy) since !float can use the same
7216         code as !long now.
7217
7218         * src/SDCCicode.c (ast2iCode): ! returns char
7219         * src/mcs51/gen.c (genNot, genNotFloat),
7220         * src/ds390/gen.c (genNot, genNotFloat),
7221         * src/z80/gen.c (genNot, genNotFloat),
7222         * src/pic/gen.c (genNot, genNotFloat),
7223         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7224
7225 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7228         1. Interrupt would not compile properly. Ensure PCLATH register is saved
7229            during interrupts. Ensure WSAVE is located at a shared bank address.
7230         2. Fixed page selection in some places
7231         3. Fixed BTFSS/C to where necessary use registers directly and not simply
7232            the registers name strings.
7233         4. Fixed "signed / unsigned compare" compiler warnings.
7234         5. The PIC port manages its own allocation of the general purpose
7235            registers, but makes no attempt to reuse them. As a result when
7236            compiling it soon runs out of general purpose registers. Some
7237            additional code was added to the files pcode.c and device.c to walk
7238            through the function call tree and rename the registers so that they
7239            get reused.
7240
7241         * src/pic/device.c
7242         * src/pic/gen.c
7243         * src/pic/glue.c
7244         * src/pic/pcode.c
7245         * src/pic/pcode.h
7246         * src/pic/ralloc.c
7247         * src/pic/ralloc.h
7248         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7249         genPlus() & genMinus() when the result is the same as left or right
7250
7251 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7252
7253         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7254
7255 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7256
7257         Made bitfield a distinct type from bit so that bitfields
7258         convert as per ANSI C and bits retain their traditional
7259         boolean style behaviour. Implemented bitfield support in
7260         the z80 port.
7261
7262         * src/SDCCsymt.h,
7263         * src/SDCCsymt.c,
7264         * src/SDCCast.c,
7265         * src/cdbFile.c,
7266         * src/mcs51/gen.c,
7267         * src/ds390/gen.c: bit v bitfield split
7268         * src/z80/gen.c: New support for bitfields
7269         * support/regression/tests/bitfields.c: reenabled z80,
7270         added more tests
7271
7272 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7273
7274         Rules 246.x, 247.x relate to bitfields, the others speed up
7275         access to xdata mapped I/O devices.
7276
7277         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7278
7279 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7280
7281         Cleaned up genPackBits and genUnpackBits and added two helper
7282         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7283         for literal assignments in genPackBits (thanks to Frieder for
7284         reminding me).
7285
7286         * src/mcs51/gen.c
7287         * src/ds390/gen.c
7288
7289 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7290
7291         Fixed bug #748310 (pointer to function type mishandled when the
7292         function name is omitted). Also fixed a SIGSEGV when a function
7293         attribute (reentrant, etc) is used on a non-function or on a
7294         function but misplaced before the parameter list.
7295
7296         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
7297         bug #748310
7298         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
7299         * support/Util/SDCCerr.h,
7300         * support/Util/SDCCerr.c: Added func attr misuse error msg
7301
7302 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7303
7304         Fixed bug #787649 by anonymous
7305         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
7306         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
7307
7308 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7309
7310         Fixed numerous bitfield problems.
7311
7312         * src/SDCC.y: More bitfield related error checking
7313         * src/SDCCsymt.h,
7314         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
7315         * support/Util/SDCCerr.h,
7316         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
7317         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7318         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7319         * support/regression/tests/bitfields.c: tests added
7320
7321 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7322
7323         Made the constant following the "interrupt" keyword optional. If
7324         omitted, the function will not automatically be given an entry
7325         in the interrupt vector table (similar to #pragma NOIV, but
7326         less syntacticly kludgy). The interrupt number is also now
7327         range checked. Also fixed a bug in the high order bit example
7328         in the manual.
7329
7330         * src/SDCC.y
7331         * src/SDCCmem.c
7332         * src/SDCCglue.c
7333         * src/SDCCsymt.h
7334         * support/Util/SDCCerr.c
7335         * support/Util/SDCCerr.h
7336         * doc/sdccman.lyx
7337
7338 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
7339
7340         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
7341         * src/SDCCicode.c (operandOperation): rewritten some ops
7342         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
7343         * src/SDCCsymt.c (computeType): literals are handled the same way as any
7344         other type
7345         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
7346         be re-activated by defining REDUCE_LITERALS)
7347         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
7348         unsigned, but are signed by default
7349         * src/SDCCval.c (constVal): rearranged
7350         * src/SDCCval.c (valMod): preliminary fix
7351         * src/SDCCval.c (valCastLiteral): use TYPE_* types
7352         * support/regression/literalop.c: added, work in progress
7353
7354 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7355
7356         Generate warnings for useless declarations like "char data;"
7357         that don't do what new users expect.
7358
7359         * src/SDCC.y
7360         * support/Util/SDCCerr.h
7361         * support/Util/SDCCerr.c
7362
7363 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
7364
7365         * src/SDCCval.c (valMult): fix overflow detection of negative int
7366
7367 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7368
7369         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7370
7371         Changes to support big endian targets:
7372
7373         * src/ports.h
7374         * src/SDCCglue.c
7375         * src/avr/main.c
7376         * src/ds390/main.c
7377         * src/izt/i186.c
7378         * src/mcs51/main.c
7379         * src/pic/main.c
7380         * src/pic16/main.c
7381         * src/xa51/main.c
7382         * src/z80/main.c
7383
7384 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
7385
7386         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7387         * device/lib/time.c: fixed warning "integer overflow in expression"
7388
7389 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
7390
7391         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7392         * src/SDCCval.c (constVal): changed default to signed; hex and octal
7393         constants are unsigned; added recognition of "u" flag for unsigned
7394         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7395         * src/SDCCval.c (valDiv, valMod): fixed signdness
7396         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7397         signedness of modulo, left and right shift
7398         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7399         * support/Util/SDCCerr.h: added warning W_INT_OVL
7400         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7401         * src/SDCCast.c (ast_print): improved output of constants
7402
7403 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7404
7405         Fixed some warnings when building with MSVC:
7406
7407         * as\mcs51\asdata.c
7408         * as\z80\asdata.c
7409         * as\mcs51\asm.h
7410         * as\z80\asm.h
7411         * link\z80\aslink.h
7412         * link\z80\lkdata.c
7413         * link\z80\lkeval.c
7414         * link\z80\lkgb.c
7415         * link\z80\lkihx.c
7416         * link\z80\lks19.c
7417         * link\z80\lksym.c
7418         * support\cpp2\cpplib.c
7419         * src\ds390\gen.c
7420         * src\mcs51\gen.c
7421
7422 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
7423
7424         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7425
7426 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7427
7428         * support\librarian\clean.mk: Do not remove Makefile.
7429         * support\librarian\Makefile: added.
7430
7431 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7432
7433         Added librarian to MSVC build:
7434         * all.dsp
7435         * sdcc.dsw
7436         * support\librarian\librarian.dsp
7437
7438         'configure' not needed for librarian, removed:
7439         * support\librarian\configure
7440         * support\librarian\configure.in
7441         * support\librarian\config_in.h
7442         * support\librarian\Makefile.in
7443
7444         Hopefully these ones built the librarian and the rest of sdcc properly:
7445         * Makefile
7446         * Makefile.common.in
7447
7448         Messed up 'configure', so revert to previous version:
7449         * configure
7450         * configure.in
7451
7452 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
7453
7454         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7455         there, while the mantissa of a double is "only" 53 bits wide.
7456
7457 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7458
7459         Adding sdcclib to the build.  MSVC project coming soon.
7460         Files added/changed:
7461
7462         * support\librarian\clean.mk
7463         * support\librarian\configure
7464         * support\librarian\configure.in
7465         * support\librarian\config_in.h
7466         * support\librarian\Makefile.bcc
7467         * support\librarian\Makefile.in
7468         * support\librarian\sdcclib.c
7469         * Makefile.bcc
7470         * Makefile
7471         * Makefile.common.in
7472         * configure
7473         * configure.in
7474
7475 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7476
7477         Linker now complaints if linked modules have conflicting options, for
7478         example, one compiled using --model-large and another one compiled with
7479         --model-small.  The following files were modified:
7480
7481         * as\mcs51\asdata.c
7482         * as\mcs51\aslink.h
7483         * as\mcs51\asm.h
7484         * as\mcs51\asmain.c
7485         * as\mcs51\asout.c
7486         * as\mcs51\i51pst.c
7487         * as\mcs51\lkdata.c
7488         * as\mcs51\lklibr.c
7489         * as\mcs51\lkmain.c
7490         * as\z80\asdata.c
7491         * as\z80\asm.h
7492         * as\z80\asmain.c
7493         * as\z80\asout.c
7494         * as\z80\z80pst.c
7495         * link\z80\aslink.h
7496         * link\z80\lkdata.c
7497         * link\z80\lklibr.c
7498         * link\z80\lkmain.c
7499         * src\SDCCglue.c
7500
7501 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7502
7503         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7504         as/mcs51/lklibr.c: Generate a warning when a library is not found.
7505
7506 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
7507
7508         * src/z80/mappings.i: fix _mul[us][int,long] entries
7509
7510 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7511
7512         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7513
7514 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7515
7516         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7517         * support/regression/tests/bitopcse.c: added
7518         fixed warning:
7519         * src/avr/gen.c:
7520         * src/pic/gen.c:
7521         * src/pic16/gen.c:
7522         * src/z80/gen.c:
7523         * src/xa51/gen.c:
7524
7525 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7526
7527         added support for new library format to z80, gbz80 linkers:
7528         *link/z80/aslink.h
7529         *link/z80/lklex.c
7530         *link/z80/lklib.c
7531         *link/z80/lklist.c
7532
7533 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
7534
7535         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7536         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7537
7538 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
7539
7540         added DUMMY_READ_VOLATILE:
7541         * src/SDCC.y:
7542         * src/avr/gen.c:
7543         * src/xa51/gen.c:
7544         * src/z80/gen.c:
7545         * src/pic/gen.c:
7546         * src/pic16/gen.c:
7547         * src/mcs51/gen.c:
7548         * src/ds390/gen.c:
7549         * src/SDCCcse.c (algebraicOpts): many improvements
7550         * src/SDCCcse.h: removed algebraicOpts()
7551         * src/SDCCicode.c (picDummyRead): added
7552
7553 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7554
7555         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7556         "Insufficient space in data memory".
7557
7558 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7559
7560         * src/mcs51/gen.c: fixed bug #771358
7561         * src/z80/gen.c: fixed bug #759087
7562
7563 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
7564
7565         * src/pic16/glue.c: minor cleanup by Vangelis
7566
7567 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7568
7569         * device/include/regc515c.h: fixed #758477
7570         * device/lib/_gptrget.c: saving some cycles in generic pointer get
7571         * device/lib/_gptrput.c: saved a few bytes
7572         * my tab spacing is 8, yours too?)
7573         * device/lib/_ser.c: process RX bytes earlier than TX bytes
7574         * device/lib/serial.c: process RX bytes earlier than TX bytes
7575         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
7576
7577 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7578
7579         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
7580
7581 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7582
7583     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
7584
7585 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
7586
7587         * device/lib/Makefile.in: bad fix, reverted to 1.43
7588
7589 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
7590
7591         * device/lib/Makefile.in: added missing z80 object files
7592
7593 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
7594
7595         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
7596         pic16 progress by Vangelis:
7597         * src/SDCCglobl.h:
7598         * src/SDCCmain.c:
7599         * src/pic/Makefile:
7600         * src/pic:
7601         * pic/Makefile:
7602         * pic16/device.c:
7603         * pic16/device.h:
7604         * pic16/gen.c:
7605         * pic16/gen.h:
7606         * pic16/genarith.c:
7607         * pic16/glue.c:
7608         * pic16/main.c:
7609         * pic16/pcode.c:
7610         * pic16/pcode.h:
7611         * pic16/pcodepeep.c:
7612         * pic16/peeph.def:
7613
7614 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7615
7616     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
7617
7618 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7619
7620     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
7621     added gbz80 build to MSVC project.
7622     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
7623     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
7624     from 8051 stuff and setup so it links using a .lnk file.
7625
7626 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7627
7628     * support/librarian/sdcclib.c: sdcc librarian.
7629     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
7630     with sdcclib.
7631
7632 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7633
7634     * as/mcs51/lkmain.c: properly handle extensions in function afile.
7635
7636 2003-07-02  Borut Razem <borut.razem AT siol.net>
7637
7638         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
7639         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
7640         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
7641         src/xa51/main.c, src/z80/main.c:
7642         virtualization of glue() function: each port has it's own glue function,
7643         which is accessed by do_glue function pointer in PORT.general structure
7644
7645 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
7646
7647         * DS800C400 fun, improved ROM interface and tinibios.
7648
7649 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
7650
7651         * More support for DS80C400. Now includes beginning of interface to ROM.
7652
7653 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
7654
7655         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
7656
7657 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7658
7659         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
7660
7661 2003-06-19  Borut Razem <borut.razem AT siol.net>
7662
7663         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
7664
7665 2003-06-19  Borut Razem <borut.razem AT siol.net>
7666
7667         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
7668         fixed Z80 port - crt0.o: cannot open.
7669
7670 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
7671
7672         * support/Util/MySystem.c (merge_command): revert bad fix
7673
7674 2003-06-18  Borut Razem <borut.razem AT siol.net>
7675
7676         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
7677
7678 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7679
7680         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7681         option --use-stdout sends errors to stdout instead of stderr.
7682
7683 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
7684
7685         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
7686
7687 2003-06-15  Borut Razem <borut.razem AT siol.net>
7688
7689         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
7690         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
7691         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
7692         fixed width array of pointers replaced with sets;
7693         multiple include and lib paths ared transferred to preprocessor and linker
7694         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
7695         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
7696         fixed width array of pointers
7697         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
7698         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
7699         fixupPath(), getPathDifference()
7700         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
7701         fixed width array of pointers
7702
7703 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
7704
7705         * src/pic16/ralloc.c: fix warnings
7706         * src/pic16/pcode.c: fix warning
7707
7708 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
7709
7710          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
7711         know all the details, but essentially this set of changes enable
7712         the pic16 port to generate movff instructions and generate assembler
7713         directives,
7714         * src/SDCCmain.c:
7715         * src/pic16/gen.c:
7716         * src/pic16/glue.c:
7717         * src/pic16/pcode.c:
7718         * src/pic16/device.c:
7719         * src/pic16/main.c:
7720         * src/pic16/pcode.h:
7721         * src/pic16/pcoderegs.c:
7722         * src/pic16/ralloc.c:
7723         * src/pic16/ralloc.h:
7724
7725 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7726
7727         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7728         added option --vc, so sdcc errors and warnings are compatible with
7729         Microsoft Visual Studio.
7730
7731 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7732
7733         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
7734           device/lib/libfloat.lib: added atof function.
7735
7736 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
7737
7738         * doc/sdccman.lyx: updated to Lyx 1.3
7739         * doc/cdbfileformat.lyx: updated to Lyx 1.3
7740         * doc/test_suite_spec.lyx: updated to Lyx 1.3
7741         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
7742
7743 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
7744
7745         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
7746
7747 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7748
7749         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
7750           additions to the "related tools/documentation" section
7751
7752 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
7753
7754         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
7755
7756 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
7757
7758         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
7759         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
7760
7761 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
7762
7763         * doc/sdccman.lyx: fix double dash and other minor things
7764         * doc/Makefile: fix double dash
7765
7766 2003-05-28  Karl Bongers(patches from Martin Helmling)
7767         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
7768           condition and ignore commands.
7769
7770 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7771
7772         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
7773           is in parts still quite out of date, I did changes as far as I felt makes sense
7774           for a non-native english speaker.
7775           Please feel free to add to the manual or to correct my changes.
7776         * doc/Makefile: undid touching the date of intermediate tex files.
7777
7778 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7779
7780         * doc/sdccman.lyx: Manual has an index now
7781
7782 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
7783
7784         Finalize muluint/mulsint and mululong/mulslong merging:
7785         * device/lib/_mulint.c
7786         * device/lib/_mullong.c
7787         * device/lib/gbz80/mul.s
7788         * device/lib/gbz80/stubs.s
7789         * device/lib/z80/mul.s
7790         * device/lib/z80/stubs.s
7791         * src/SDCCsymt.c (initCSupport)
7792
7793 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7794
7795         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7796         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7797           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7798           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7799           instead of /Zm500.
7800
7801 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7802
7803         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7804           the regression tests I'm not brave enough to enable 245.b, 245.c
7805         * doc/sdccman.lyx: added latex preamble for hyperref package.
7806           Using pdflatex this will give you a hyperlinked pdf file with
7807           bookmarks. (prepend '%' before /usepackage if this breaks something)
7808
7809 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7810
7811          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7812
7813 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
7814
7815         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7816
7817 2003-05-21    <johan AT balder>
7818
7819         * src/SDCCglue.c (printIval): fixed bug #739934
7820
7821 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7822
7823         Applied patch from bug 737905 (renamed yylineo to mylineno):
7824         * src/altlex.c
7825         * src/SDCCast.c
7826         * src/SDCglobl.h
7827         * src/SDCC.lex
7828         * src/SDCCsymt.c
7829         * src/SDCCval.c
7830         * src/pic16/pcode.c: Cleaned warnings
7831         * src/pic16/pcodeflow.c: Cleaned warnings
7832         * src/pic16/pcoderegs.c: Cleaned warnings
7833
7834 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
7835
7836         * src/pic16/pcode.c: Cleaned warnings
7837         * src/pic16/pcodepeep.c: Cleaned warnings
7838         * src/pic16/ralloc.c: Cleaned warnings
7839
7840 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7841
7842         * doc/sdccman.lyx: fixed bug 739745
7843         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7844
7845 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
7846
7847         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7848         it can be defined with CFLAGS when running configure
7849         * src/SDCCmain.c: fixed compiling + linking with object files
7850
7851 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
7852
7853         * configure.in: configure for pic16 port,
7854             added --disable-pic16-port
7855         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7856         * src/SDCCmain.c: linkOptions is changed to set *,
7857             added if/endif conditional macros to remove options help
7858             messages from optionsTable when a port is not configured, added
7859             support for the PIc16 port in the ports table, when executing
7860             the compiler with no port specified on command line, a default
7861             port is selected with the new macro DEFAULT_PORT which is
7862             defined in port.h, in setDefaultOptions() linkOptions is removed
7863             from initialization assignment, since now it is a set,
7864             parseCmdLine uses setParseWithComma for linkOptions, in
7865             linkEdit() linkOptions are accessed with new function indexSet()
7866             which returns the i'th item of a set variable. See SDCCset.c, in
7867             linkEdit() when calling buildCmdLine(), added linkOptions as
7868             last argument. Now users can pass arguments to gplink via the
7869             -Wl option, main() uses pic16glue() to glue up pic16 programs
7870         * src/SDCCpeeph.c: various changes to support pic16
7871         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
7872             return the i'th item of the set
7873         * src/SDCCset.h: added function prototype for indexSet()
7874         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7875         * src/clean.mk: added pic16 in CLEANALLPORTS variable
7876         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7877             added macro DEFAULT_PORT
7878         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7879         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7880             generated
7881         * src/pic16/glue.c: commented out some error producing lines
7882         * src/pic16/main.c: __config directives are commented out to stop
7883             gpasm complaining and test the linkage with gplink, _linkCmd and
7884             _asmCmd changed to be more gplink and gpasm friendly
7885         * src/pic16/peeph.def: peep rule 3 is commented out, since it
7886             produced an error when parsed, peep rule 12 is added to utilize
7887             movff, but it is commented out since the pCode does not support
7888             yet a command with 2 address arguments
7889
7890 2003-05-18    <johan AT balder>
7891
7892         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7893         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7894 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
7895
7896         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7897   Added feature to script commands from file.
7898
7899 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
7900
7901         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7902         * src/SDCCutil.c: include ctype.h for win32
7903
7904 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
7905
7906         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7907
7908 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
7909
7910         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7911   Fixed so you can set breakpoints prior to run, run does not stop
7912   on entry now.  Add tbreak.  Other enhancements and fixes for use
7913   with ddd.
7914
7915 2003-05-12  Borut Razem <borut.razem AT siol.net>
7916
7917         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7918
7919 2003-05-11  Borut Razem <borut.razem AT siol.net>
7920
7921         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7922         the path of bin directory, so that PATH is the only env. variable, which has to be set
7923         in case of standard installation.
7924         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7925         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7926         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7927
7928 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7929
7930         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7931         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7932         temp files are in the port dir; clean the gen/test directory when
7933         generating new test.c
7934         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7935         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7936         * support/regression/tests/zeropad.c: added
7937
7938 2003-05-09    <johan AT balder>
7939
7940         * src/SDCCglue.c: fixed bug #597940
7941
7942 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7943
7944         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7945   cache sfr, optimize next,step, fix off by one sourceline,
7946   support ddd list function.
7947         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7948
7949 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7950
7951         * support/regression/HTMLgen.py: added compare_s2f()
7952         * support/regression/Makefile: redo 1.27
7953         * support/regression/generate-cases.py: redo 1.5
7954
7955 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7956
7957         * support/regression/tests/float.c: workaround 33 bit hex constant
7958         * support/regression/tests/simplefloat.c: fix division for host
7959
7960 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7961
7962         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7963         that tame's the PIC's over-aggressive optimizer.
7964
7965 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7966
7967          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7968          support for MSVC.
7969
7970 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7971
7972         Initial support for DS80C400. "Hello world" runs on TINIm400
7973         (with polled I/O).
7974
7975 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7976
7977          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7978          * Some notes on ddd usage added in debugger/README
7979          Martin Helmling adding more features and fixes for ddd GUI debugger.
7980          Code added for nexti, stepi, up, down, and other adjustments.
7981
7982 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7983
7984         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7985         * src/pic/peeph.def Added two rules to optimize carry manipulation
7986         * src/pic/* removed debug printfs
7987
7988 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7989
7990         * debugger/mcs51/cmd.c: added header newalloc.h
7991
7992 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7993
7994         * as/Makefile: new EXEEXT
7995         * as/z80/Makefile: remove trailing slash of BUILDIR
7996         * as/z80/clean.mk: new EXEEXT
7997         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7998         * support/cpp2/Makefile.in: new EXEEXT
7999         * src/pic/glue.c (pic14emitRegularMap): fixed warning
8000
8001 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
8002
8003         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8004         EXEEXT was introduced to fix all related problems with targets
8005         "clean", "install" and "uninstall"; a couple of further flaws
8006         especially with "clean" have been fixed too
8007         * as/mcs51/Makefile.in
8008         * as/mcs51/clean.mk
8009         * as/z80/Makefile
8010         * Makefile
8011         * clean.mk
8012         * debugger/mcs51/Makefile.in
8013         * debugger/mcs51/clean.mk
8014         * link/z80/Makefile
8015         * link/z80/Makefile.in
8016         * link/z80/clean.mk
8017         * link/Makefile
8018         * packihx/Makefile.in
8019         * packihx/clean.mk
8020         * sim/ucsim/Makefile
8021         * sim/ucsim/clean.mk
8022         * sim/ucsim/avr.src/Makefile.in
8023         * sim/ucsim/avr.src/clean.mk
8024         * sim/ucsim/s51.src/Makefile.in
8025         * sim/ucsim/s51.src/clean.mk
8026         * sim/ucsim/xa.src/Makefile.in
8027         * sim/ucsim/xa.src/clean.mk
8028         * sim/ucsim/z80.src/Makefile.in
8029         * sim/ucsim/z80.src/clean.mk
8030         * sim/ucsim/main_in.mk
8031         * sim/ucsim/packages_in.mk
8032         * sim/ucsim/gui.src/Makefile.in
8033         * sim/ucsim/gui.src/serio.src/Makefile.in
8034         * sim/ucsim/gui.src/serio.src/clean.mk
8035         * src/Makefile.in
8036         * src/clean.mk
8037         * support/cpp2/Makefile.in
8038         * support/cpp2/clean.mk
8039         * support/makebin/Makefile
8040         * support/makebin/clean.mk
8041         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8042         * doc/sdccman.lyx: --program-suffix no longer needed
8043
8044 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
8045
8046          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8047          Martin Helmling added support for ddd GUI debugger.
8048          Code added to display assembly, set variables, and other commands
8049          to interface to ddd.
8050
8051 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
8052
8053         * as/Makefile: fix target clean
8054         * as/clean.mk: fix target clean
8055         * as/z80/clean.mk: fix target clean
8056
8057 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
8058
8059         * Makefile.common.in: added  AT EXEEXT AT
8060         * configure.in: removed all mingw32 stuff
8061         * configure: rebuilt from configure.in
8062         * doc/sdccman.lyx: updated section "installation"
8063         * support/scripts/sdcc_mingw32: adapted to configure
8064         * support/scripts/sdcc_cygwin_mingw32: added
8065
8066 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
8067
8068         * src/pic Added object file support for the PIC port
8069         * src/pic Applied patch from Craig Franklin (this started the object file support)
8070         * src/regression Updated the PIC regression tests for object files
8071
8072 2003-04-20  Borut Razem <borut.razem AT siol.net>
8073
8074         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8075           lklex.c: In function `getfid':
8076           lklex.c:203: warning: array subscript has type `char'
8077         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8078           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8079         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8080           stack handling macros
8081
8082 2003-04-19  Borut Razem <borut.razem AT siol.net>
8083
8084         * "handling space characters in file path" task:
8085         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8086         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8087         * support/Util/MySystem.h: make it self-sufficient
8088         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8089           src/z80/main.c, sdcc/as/mcs51/lklex.c:
8090           handling space characters in file path
8091         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8092           (it will be used by assemblers, which have their own includes, e.g. gpasm)
8093         * support/Util/MySystem.c: handling space characters in executable's path
8094
8095 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
8096
8097         * as/z80/Makefile: fix permanent rebuild of z80
8098         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8099         * support/regression/tests/bitfields.c: added Johan's bitfields.c
8100
8101 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
8102
8103         * src/SDCCopt.c: add special case optimization to replace modulo by
8104           a power of two with a bitwise AND.
8105
8106 2003-04-18    <johan AT balder>
8107
8108         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8109
8110 2003-04-17    <johan AT balder>
8111
8112         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
8113         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
8114
8115 2003-04-13  Borut Razem <borut.razem AT siol.net>
8116
8117         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
8118         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
8119           fixed mingw problem in adl_NORMALIZE_PATH
8120
8121 2003-04-12  Borut Razem <borut.razem AT siol.net>
8122
8123         * fixed "#pragma SAVE/RESTORE can not be nested":
8124         * src/SDCC.lex: reworked pragma handling functions
8125         * sdcc/src/SDCCglobl.h: reworked stack handling macros
8126         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8127
8128 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8129
8130         * src/SDCCutil.c (pathEquivalent): defined but not used
8131         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8132         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8133         * configure: rebuilt from configure.in
8134         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8135         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8136         * device/include/Makefile.in: replace sdcc_datadir
8137         * device/lib/Makefile.in: replace sdcc_datadir
8138         * Makefile.common.in: add LDFLAGS from configure
8139         * packihx/Makefile.in: use LDFLAGS
8140         * src/Makefile.in: use LDFLAGS
8141         * support/cpp2/Makefile.in: add LDFLAGS from configure
8142         * support/makebin/Makefile: use LDFLAGS
8143         * .version: bumped version number to 2.3.5
8144
8145 2003-04-12  Borut Razem <borut.razem AT siol.net>
8146
8147         * completed "different paths" task:
8148         * src/SDCCmacro.c: fixed bug in handling quotes
8149         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8150         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8151
8152 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8153
8154         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8155
8156 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8157
8158         * ds390/gen.c ds390/peeph.def: fix bug 706781
8159
8160 2003-04-11  Borut Razem <borut.razem AT siol.net>
8161
8162         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8163
8164 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
8165
8166         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8167         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8168          set - this bit used to not be set...).
8169         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8170           bad code in PIC Port
8171         * src/regression/and2.c added to test bug 609268
8172         * src/regression/Makefile added and2.c to regression test
8173
8174
8175 2003-04-08    <johan AT CP255758-A>
8176
8177         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8178         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8179         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8180
8181 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
8182
8183         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8184         fix bug #487815
8185         * support/cpp2/Makefile.in: fix bug #487815
8186         * configure: rebuilt from configure.in
8187         * Makefile.common.in: docdir changed, new path suffixes
8188         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8189         * sdcc_vc_in.h: reflect changes from sdccconf.h
8190         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8191         * src/SDCCutil.h: remove BINDIR hack
8192         * doc/sdccman.lyx: update new path hierarchy
8193
8194 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8195
8196         * src/SDCCpeeph.c: added okToRemoveSLOC test
8197
8198 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8199
8200         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8201
8202 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8203
8204         * src/SDCCpeeph.c: added labelIsReturnOnly test
8205         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8206
8207 2003-04-05    <johan AT balder>
8208
8209         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8210         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8211         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8212         * src/SDCCast.c: fixed a warning
8213         * src/SDCCast.h: fixed a warning
8214         * src/SDCCicode.c (operandFromAst): fixed a warning
8215
8216 2003-04-04    <johan AT balder>
8217
8218         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8219         * src/SDCCast.c (decorateType): fixed bug #715076
8220         * src/SDCC.y: fixed bug #702907
8221
8222 2003-04-03    <johan AT balder>
8223
8224         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8225         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8226         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8227         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8228         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8229
8230 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
8231
8232         * _decdptr.c: fix return values
8233         * _gptrget.c: fix return values
8234         * _gptrgetc.c: fix return values
8235         * _gptrput.c: fix return values
8236         * _mulint.c: fix return values
8237         * as/z80/Makefile: fix 'make -j' problem
8238
8239 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
8240
8241         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8242         * configure.in: big cleanup, updated to autoconf 2.5x
8243         * configure: rebuilt from configure.in
8244         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8245         * sdcc_vc_in.h: reflect changes from sdccconf.h
8246         * doc/Makefile: fixed a flaw in "make install"
8247
8248 2003-04-02    <johan AT balder>
8249
8250         * src/ds390/gen.c (genCmp): no comments
8251         * src/mcs51/gen.c (genCmp): no comments
8252         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8253         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8254
8255 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
8256
8257         * support/regression/generate-cases.py: place generated file in given sub directory
8258         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8259         * support/regression/Makefile: improvements for 'make -j';
8260         side effect: it's simpler and faster now
8261
8262 2003-03-31  Borut Razem <borut.razem AT siol.net>
8263
8264         * src/z80/main.c: link-{port} and as-{port} defined without path
8265         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8266
8267 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
8268
8269         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8270
8271 2003-03-30  Borut Razem <borut.razem AT siol.net>
8272
8273         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8274           changed type of list parameter to set
8275         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8276         * src/port.h: changed type of do_assemble() parameter to set
8277         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8278           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8279           definition of "cppoutfilename" macro with NULL value in preProcess()
8280         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8281         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8282         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8283           replaced with set *binPathSet
8284         * shash_add() deallocates the item, if allready exsists, before adding the new one
8285         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8286
8287 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
8288
8289         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
8290           a nested for loop bug in the PIC port
8291         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
8292           for loops
8293
8294 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
8295
8296         * support/Util/dbuf.h: remove C++ stuff to make it portable
8297
8298 2003-03-28  Borut Razem <borut.razem AT siol.net>
8299
8300         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
8301           literal strings in stringLiteral()
8302         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
8303         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
8304           to the project
8305
8306 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
8307
8308         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
8309
8310 2003-03-26    <johan AT balder>
8311
8312         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
8313         * src/ds390/gen.c (saveRegisters): catched symbol abuse
8314         * src/SDCCast.c (decorateType): fixed " -v < 3"
8315
8316 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
8317
8318         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
8319         Added Lenny Story's debug infrastructure changes:
8320         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
8321         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
8322         * src/cdbFile.c: added
8323         * src/SDCCdebug.c: added
8324         * src/SDCCdebug.h: added
8325         * src/SDCCast.c (createFunction)
8326         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
8327         * src/SDCCmain.c (parseCmdLine, main)
8328         * src/SDCCmem.c (redoStackOffsets)
8329         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
8330         * src/SDCCsymt.h
8331         * src/common.h
8332         * src/avr/gen.c (genAVRCode)
8333         * src/ds390/gen.c (gen390Code)
8334         * src/mcs51/gen.c (gen51Code)
8335         * src/pic/gen.c (genpic14Code)
8336         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
8337         * src/xa51/gen.c (genXA51Code)
8338         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
8339
8340 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8341
8342         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
8343         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
8344
8345 2003-03-22    <johan AT balder>
8346
8347         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
8348
8349 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
8350
8351         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
8352         * doc/cdbfileformat.lyx: added, written by Lenny Story
8353         * doc/Makefile: added cdbfileformat.lyx
8354         * doc/clean.mk: added cdbfileformat.lyx
8355
8356 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
8357
8358         * src/mcs51/peeph.def: fix bug #705773
8359
8360 2003-03-20    <johan AT balder>
8361
8362         An sfr/sbit can have an "at #" AND an initializer
8363         * src/SDCCsymt.c (checkSClass):
8364         * src/SDCCmem.c (allocGlobal):
8365         * src/SDCCmem.c (allocLocal):
8366         * src/SDCCast.c (createBlock):
8367
8368 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
8369
8370         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8371
8372 2003-03-16    <johan AT balder>
8373
8374         Undid the hackup of const and volatile, the problem is much bigger
8375         * src/SDCC.y:1.65
8376         * src/SDCCast.c:1.171
8377         * src/SDCCglue.c:1.138
8378         * src/SDCCicode.c:1.146
8379         * src/SDCCsymt.c:1.150
8380         * src/SDCCval.c:1.65
8381
8382 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
8383
8384         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8385         * src/ds390/gen.c (genAddrOf): fixed bug #704087
8386
8387 2003-03-13    <johan AT balder>
8388
8389         Hackup const and volatile modifiers in type chains a bit:
8390         * src/SDCC.y:1.63
8391         * src/SDCCast.c:1.169
8392         * src/SDCCglue.c:1.136
8393         * src/SDCCicode.c:1.143
8394         * src/SDCCsymt.c1.146
8395         * src/SDCCsymt.h1.59
8396         * src/SDCCval.c:1.63
8397
8398 2003-03-12    <johan AT balder>
8399
8400         * src/SDCCBBlock.h: more LRH debugging junk
8401         * src/SDCCcflow.h: more LRH debugging junk
8402         * src/SDCCloop.c: more LRH debugging junk
8403         * src/SDCC.y (struct_declaration): fixed bug #697590
8404         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8405         * src/ds390/gen.c (aopForRemat): fixed bug #700031
8406         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8407
8408 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8409         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8410         test function names must now match exactly).
8411         * src/SDCCcse.c: added special case in findCheaperOp to allow
8412         extending a short integer. Makes less awful code for bug 700121 test case.
8413
8414 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8415
8416         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8417         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8418
8419 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8420
8421         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8422         actually called (operandsNotEqual() was called for all
8423         operandsNotEqualX tests).
8424
8425 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8426
8427         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8428         with shorter literals. Fixes bug 700121.
8429
8430 2003-03-11    <johan AT balder>
8431
8432         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8433
8434 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
8435
8436         * src/SDCCloop.c (mergeRegions): an evil beast is dead
8437         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8438
8439 2003-03-10  Borut Razem <borut.razem AT siol.net>
8440
8441         * src/SDCCmain.c: pipe preprocessor's output
8442         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8443         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8444         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8445         which closes all pipes in pipeSet set
8446         * src/SDCCset.c: free deleted item in function deleteSetItem()
8447         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8448         moved from z80 to src subproject
8449         * .version: increased version number to 2.3.4
8450
8451 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
8452
8453         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8454         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8455         * support/regression/ports/xa51/spec.mk: fix typo
8456
8457 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
8458
8459         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8460
8461 2003-03-09  Borut Razem <borut.razem AT siol.net>
8462
8463         * src/SDCCmain.c: pipe preprocessor's output
8464         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8465         * sdcc_vc_in.h: define pclose as _pclose for WIN32
8466         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8467         which closes all pipes in pipeSet set
8468         * src/SDCCset.c: free deleted item in function deleteSetItem()
8469         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8470         moved from z80 to src subproject
8471
8472 2003-03-09  Borut Razem <borut.razem AT siol.net>
8473
8474         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8475         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8476         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8477         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8478         * src/SDCCglobl.h: unification of WIN32 native definitions
8479
8480 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8481
8482         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8483
8484 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8485
8486         * src/configure.in:   check for endianess (even while cross-compiling)
8487         * src/configure:      check for endianess (even while cross-compiling)
8488         * src/configure_in.h: check for endianess (even while cross-compiling)
8489         * src/avr/gen.c:        remove old endianess stuff
8490         * src/mcs51/gen.c:      remove old endianess stuff
8491         * src/ds390/gen.c:      remove old endianess stuff
8492         * src/pic/gen.c:        remove old endianess stuff
8493         * src/pic/genarith.c:   remove old endianess stuff
8494         * src/pic/glue.c:       fix endianess check
8495         * src/pic16/gen.c:      remove old endianess stuff
8496         * src/pic16/genarith.c: remove old endianess stuff
8497         * src/pic16/glue.c:     fix endianess check
8498         * src/xa51/gen.c:       remove old endianess stuff
8499         * src/z80/gen.c:        fix endianess check
8500         * src/SDCCglue.c:       fix endianess check
8501         * src/ds390/peeph.def: fix bug 700036
8502
8503 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
8504
8505         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8506         * src/configure: find appropriate data-types on host for SDCC's int and long
8507         * src/configure.in: find appropriate data-types on host for SDCC's int and long
8508         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8509         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8510
8511 2003-03-07    <johan AT balder>
8512
8513         Just a big NOOP:
8514                 some minor cleanups before the big shot
8515                 OP_DEFS and OP_USES now use Kevin's protection
8516                 new option --nolabelopt
8517
8518         * src/SDCCBBlock.c:
8519         * src/SDCCast.c,:
8520         * src/SDCCcflow.c:
8521         * src/SDCCcse.c:
8522         * src/SDCCicode.c:
8523         * src/SDCCicode.h:
8524         * src/SDCClabel.c:
8525         * src/SDCCloop.c:
8526         * src/SDCCmain.c:
8527         * src/ds390/ralloc.c:
8528         * src/mcs51/ralloc.c:
8529         * src/pic/ralloc.c:
8530         * src/xa51/ralloc.c:
8531         * src/z80/ralloc.c:
8532
8533 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
8534
8535         * src/pic/pcode.c (get_op): fix 64 bit warnings
8536         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8537         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8538         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8539         * support/regression/tests/malloc.c: fix 64 bit warnings
8540
8541 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
8542
8543         * src/mcs51/gen.c (genMinus): fixed bug 696436
8544
8545 2003-03-02  Borut Razem <borut.razem AT siol.net>
8546
8547         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8548
8549 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
8550
8551         * configure.in: test for mkstemp
8552         * sdccconf_in.h: add HAVE_MKSTEMP
8553
8554 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
8555
8556         * device/include/ctype.h: removed warning while using --stack-auto
8557         * device/include/malloc.h: removed warning while using --stack-auto
8558         * device/include/string.h: removed warning while using --stack-auto
8559
8560 2003-02-23  Borut Razem <borut.razem AT siol.net>
8561
8562         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
8563         because NDEBUG is defined (see man assert)
8564         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
8565
8566 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8567
8568         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
8569         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
8570
8571 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8572
8573         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
8574         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
8575
8576 2003-02-18    <johan AT balder>
8577
8578         * as/mcs51/asmain.c (asmbl): module can start with a digit
8579         * as/z80/asmain.c (asmbl): module can start with a digit
8580
8581 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
8582
8583         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
8584         * src/asm.c: fix pipe() for Mingw32
8585
8586 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
8587
8588         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
8589         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
8590         make -V work again; --c1mode reads now from stdin
8591         * doc/sdccman.lyx: added --c1mode
8592         * support/Util/SDCCerr.c: new messages for c1 mode
8593         * support/Util/SDCCerr.h: new messages for c1 mode
8594         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
8595
8596 2003-02-15    <johan AT balder>
8597
8598         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
8599
8600 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
8601
8602         * doc/sdccman.lyx: Environment variables, -o and other minor things
8603
8604 2003-02-14    <johan AT balder>
8605
8606         * src/xa51/main.c: before anyone really tries to use it :)
8607
8608         * Install doc's in share/sdcc/doc
8609         * removed some obsolete files
8610         * Do a proper make distclean and uninstall
8611         M Makefile.common.in
8612         R sdccbuild.sh
8613         M as/Makefile
8614         M device/include/Makefile.in
8615         M device/lib/Makefile.in
8616         M doc/sdccman.lyx
8617         M link/Makefile
8618         M sim/ucsim/doc/Makefile.in
8619         M src/clean.mk
8620         R src/avr/peeph.rul
8621         R src/xa51/peeph.rul
8622         M support/cpp2/Makefile.in
8623         M support/makebin/Makefile
8624
8625
8626 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
8627
8628         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
8629
8630 2003-02-10  Borut Razem <borut.razem AT siol.net>
8631
8632         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
8633         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
8634         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
8635         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
8636         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
8637         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
8638         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
8639         src/z80/Makefile.bcc: Borland Makefile cleanup
8640         * as/z80/Makefile.bcc: Added Borland Makefile
8641         * support/cpp2/borland.h: Removed
8642
8643 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
8644
8645         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
8646         * src/SDCC.lex: new pragma NOIV
8647         * src/SDCCglobl.h: new pragma NOIV
8648         * src/SDCCmem.c: new pragma NOIV
8649
8650 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8651
8652         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
8653
8654 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
8655
8656         * src/SDCCmain.c: signal handling is switched off by --debug
8657         * doc/Makefile: small fix for install; use clean.mk again
8658         * doc/clean.mk: clean *.pdf and *.html too
8659
8660 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
8661
8662         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
8663         * device/lib/printfl.c: fix a ds390 bug by making it portable
8664         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
8665         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
8666         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
8667         * debugger/mcs51/cmd.c: converted multi-line string literals
8668         * sim/ucsim/globals.cc: converted multi-line string literals
8669         * src/SDCCmain.c: introduced signal handler to remove temp files
8670         * doc/Makefile: small tweaks, implement clean
8671         * doc: removed generated files
8672
8673 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8674
8675         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
8676         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
8677         Address Record is not correctly generated for DS390."
8678
8679 2003-02-02  Borut Razem <borut.razem AT siol.net>
8680
8681         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
8682         * as/mcs51/asm.h: fixed compilation with Borland C
8683         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
8684         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
8685         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
8686         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
8687         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
8688         src/z80/Makefile.bcc: delete $(LIB) only if exist
8689         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
8690
8691 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
8692
8693         * device/include/malloc.h: introduced NULL
8694         * device/include/string.h: introduced NULL
8695         * device/include/stdlib.h: introduced NULL
8696         * device/lib/_memcpy.c: removed NULL
8697         * device/lib/_strcat.c: removed NULL
8698         * device/lib/_strchr.c: removed NULL
8699         * device/lib/_strcmp.c: removed NULL
8700         * device/lib/_strcpy.c: removed NULL
8701         * device/lib/_strcspn.c: removed NULL
8702         * device/lib/_strlen.c: removed NULL
8703         * device/lib/_strncat.c: removed NULL
8704         * device/lib/_strncmp.c: removed NULL
8705         * device/lib/_strncpy.c: removed NULL
8706         * device/lib/_strpbrk.c: removed NULL
8707         * device/lib/_strrchr.c: removed NULL
8708         * device/lib/_strspn.c: removed NULL
8709         * device/lib/_strstr.c: removed NULL
8710         * device/lib/_strtok.c: removed NULL
8711         * device/lib/malloc.c: removed NULL, include own header
8712
8713 2003-02-02    <johan AT balder>
8714
8715         * 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
8716         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
8717         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
8718         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
8719         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
8720         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
8721
8722 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8723
8724         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
8725         area 'DATA'"
8726
8727 2003-02-01    <johan AT balder>
8728
8729         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
8730
8731 2003-01-31    <johan AT CP255758-A>
8732
8733         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
8734
8735 2003-01-30    <johan AT balder>
8736
8737         * src/SDCCBBlock.c: automatic bug detection
8738         * src/SDCCicode.c: automatic bug detection
8739
8740 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8741
8742         * src/SDCCglobl.h:   now --xram-size 0 works
8743         * src/SDCCmain.c:    now --xram-size 0 works
8744
8745 2003-01-29    <johan AT balder>
8746
8747         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
8748
8749 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8750
8751         * as/mcs51/aslink.h: Added options --xram-size and --code-size
8752         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
8753         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
8754         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
8755         * src/SDCCglobl.h:   Added options --xram-size and --code-size
8756         * src/SDCCmain.c:    Added options --xram-size and --code-size
8757
8758 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
8759
8760         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
8761         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
8762
8763 2003-01-27    <johan AT balder>
8764
8765         * src/SDCC.y: fixed bug #613764
8766
8767 2003-01-26    <johan AT balder>
8768
8769         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
8770         * src/SDCCsymt.h: fixed bug #673374
8771         * src/SDCCglue.c: fixed bug #661910
8772         * src/SDCCast.c: fixed bug #458099 and 673374
8773
8774 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
8775
8776         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
8777         * as/mcs51/strcmpi.h: added
8778         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
8779         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
8780         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
8781         * as/mcs51/assym.c: strcmpi -> as_strcmpi
8782         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
8783         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
8784         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
8785         * as/mcs51/Makefile.aslink: new module strcmpi
8786         * as/mcs51/Makefile.asx8051: new module strcmpi
8787         * as/mcs51/Makefil.bcc: new module strcmpi
8788         * as/mcs51/Makefile.in: new module strcmpi
8789         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
8790
8791 2003-01-26    <johan AT balder>
8792
8793         * src/SDCCglue.c: reverted back to 1.124
8794         * src/SDCCast.c: reverted back to 1.156
8795         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8796
8797 2003-01-25    <johan AT balder>
8798
8799         * src/SDCCglue.c: A better fix for bug #661910
8800         * src/SDCCast.c: A better fix for bug #661910
8801         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8802
8803 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8804
8805         * src/Makefile.in: remove spawn.o
8806         * src/SDCCmain.c: remove spawn.h
8807         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8808         * src/spawn.c: removed
8809         * src/spawn.h: removed
8810         * support/regression/ports/ds390/spec.mk: link with -r
8811
8812 2003-01-24    <johan AT CP255758-A>
8813
8814         * src/ds390/gen.c (aopOp): fixed bug #667458
8815         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8816         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8817         (createIvalCharPtr): an ival doesn't always have a storage class anymore
8818
8819 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8820
8821         * src/mcs51/peeph.def: better assembler identation by Frieder
8822         * src/mcs51/gen.c: better assembler identation by Frieder
8823
8824 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
8825
8826         * as/z80/string.h: removed for gcc 3.2
8827         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8828         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8829
8830 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8831
8832         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8833         * src/SDCCpeeph.c (replaceRule): fix bug #663503
8834         * support/regression/Makefile: separate temp files for ports
8835         * support/regression/generate-cases.py: separate temp files for ports
8836         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8837         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8838
8839 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8840
8841         * moved tinitalk to device/examples/ds390
8842
8843 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
8844
8845         * as/mcs51/lkmem.c: rflag is for DS390
8846         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8847         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8848                          (linkEdit): move mem- and map-files the same way as ihx-files
8849         * src/z80/main.c (_setDefaultOptions): removed --generic
8850         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8851         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8852         * src/pic/glue.c (picglue): --c1mode works again
8853         * src/pic16/glue.c (pic16glue): --c1mode works again
8854         * src/asm.c (printCLine): fix #660034
8855
8856 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
8857
8858         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8859         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8860         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8861         * as/mcs51/lkmem (summary): better fix for sp problem
8862         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8863         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8864         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8865                                               remove --stack-after-data
8866
8867 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
8868
8869         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8870         * src/SDCCutil.c (join): ugly bug: missing '\0'
8871         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8872
8873 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8874
8875         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8876         * src/port.h: typo
8877         * src/pic/main.c (_asmCmd): gpasm supports -o
8878         * src/z80/main.c: more general macros
8879         * device/lib/Makefile.in: remove intermediate files
8880
8881 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8882
8883         * .version: Bumped version number to 2.3.3
8884         * src/SDCCBBlock.c: new option -o
8885         * src/SDCCglobl.h: new option -o
8886         * src/SDCCglue.c: new option -o
8887         * src/SDCCmain.c: new option -o
8888         * src/asm.c: new option -o
8889         * src/ds390/main.c: new option -o
8890         * src/pic/glue.c: new option -o
8891         * src/pic/pcode.c: new option -o
8892         * src/pic/ralloc.c: new option -o
8893         * src/pic16/glue.c: new option -o
8894         * src/pic16/pcode.c: new option -o
8895         * src/pic16/ralloc.c: new option -o
8896         * src/z80/main.c: new option -o
8897         * device/lib/Makefile.in: use -o
8898         * support/regression/ports/ds390/spec.mk: use -o
8899         * support/regression/ports/gbz80/spec.mk: use -o
8900         * support/regression/ports/mcs51/spec.mk: use -o
8901         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8902         * support/regression/ports/z80/spec.mk: use -o
8903         * support/regression/ports/ucz80/spec.mk: use -o
8904         * support/regression/ports/xa51/spec.mk: use -o
8905         * support/regression/fwk/lib/timeout.c: fix usage string
8906
8907 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
8908         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8909
8910 2003-01-07    <johan AT balder>
8911
8912         * src/SDCCast.c (decorateType): fixed bug #600035
8913
8914 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
8915         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8916         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8917         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8918         * src/pic/pcode.c: outcommented unused variable to remove warnings
8919         * src/pic/ralloc.c: outcommented unused variable to remove warnings
8920
8921 2003-01-06    <karl AT turbobit.com>
8922         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8923    regression tests.
8924
8925 2003-01-06    <johan AT balder>
8926
8927         * src/SDCCicode.c: fixed array add
8928
8929 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
8930         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8931         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8932
8933 2003-01-04    <johan AT balder>
8934
8935         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8936
8937 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8938         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8939
8940 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8941         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8942         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8943
8944 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8945         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8946
8947 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8948         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8949
8950 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8951         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8952
8953 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8954
8955     * in \sdcc\as\mcs51\ changed these files in order to create an
8956     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8957     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8958     following files to include the previous two files: aslink.dsp,
8959     Makefile.aslink, Makefile.bcc, and Makefile.in.
8960
8961     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8962     .adb instead of .cdb
8963
8964 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8965
8966         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8967         value from option --iram-size.
8968
8969 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8970
8971         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8972         dram[] array.
8973
8974 2002-09-18    <wiml AT hhhh.org>
8975
8976         * SDCClrange.h: exposed setFromRange() and setToRange()
8977         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8978           packRegsForAccUse() (bug 542397)
8979         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8980           multiple times and emitting the fetch operations more than once
8981           added aopGetUsesAcc() function to allow binary operators to
8982           fetch their operands in the correct order; made genMinus() emit
8983           compact code for X = LITERAL - Y
8984
8985 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8986         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8987         sprintf() in line 1267.
8988
8989 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8990         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8991         like ports.
8992
8993 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8994         Changes to aslink (All the changes are marked with 'JCF'):
8995
8996         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8997         summary().
8998
8999         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9000         area BSEG.  Also moves, if possible, the DATA area down into the internal
9001         ram so more space is available.
9002
9003         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9004         sflag.
9005
9006         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9007         not bytes.  Function summary() which creates a memory usage summary
9008         file with extension .mem.  Reports of overlaping stack and small stack
9009         size.  If the space for the stack is less than 16 bytes aslink trows a
9010         warning.
9011
9012         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9013         the 8051.  Option 'y' for memory summary output file.
9014
9015         Changes to sdcc (All the changes are marked with 'JCF'):
9016
9017         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9018
9019         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
9020         overlaying area for it (uses RegBankUsed[4]).
9021
9022         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9023         bank zero as used by default.  By default aslink locates the stack
9024         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
9025         the creation of the .mem file.  Delegates the allocation of data area
9026         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
9027         the begining of the stack area to aslink.
9028
9029         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
9030         glue() in SDCCglue.c creates an area for it.
9031
9032 2002-09-03  Borut Razem <borut.razem AT siol.net>
9033         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9034         sdcc/src/pic/glue.c:
9035         introduced atexit() handler for teporay files removal in case of
9036         errors, assertions, ...
9037
9038 2002-08-29  Borut Razem <borut.razem AT siol.net>
9039         * sdcc/support/cpp2/auto-host_vc_in.h:
9040         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9041         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9042         Maybe there is a similar problem with BORLANDC? It should be checked!
9043
9044         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9045         corrected improper use of assert: the assignment to clr variable was done inside the assert.
9046         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9047         was not executed, and the compiler (cl) launched a warning:
9048         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9049
9050 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9051         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9052
9053 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9054         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9055
9056         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9057           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9058           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9059           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9060           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9061           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9062           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9063         - added Release configuration in VS projects
9064         - review of compiler an linker options
9065         - VC .exe files are generated in bin_vc directory, not to interfere
9066           with binaries generated from other projects (cygwin, mingw, bcc ...)
9067
9068         * sdcc/src/yacc.dsp: added
9069
9070         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9071         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9072         and insert the version number definitions from .version
9073
9074         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9075
9076         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9077         added - genarate auto-host.h using auto-host_vc_in.h as template
9078
9079         * sdcc/sdcc_vc.h,
9080         removed from CVS, generated automatically
9081
9082 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
9083         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9084
9085 2002-08-11  Borut Razem <borut.razem AT siol.net>
9086         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9087
9088 2002-08-10  Borut Razem <borut.razem AT siol.net>
9089         * src/SDCCmain.c (main):
9090         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9091         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9092         The consequence was that some temporary files were not removed.
9093
9094         * src/SDCCglue.c:
9095         unification of code in functions tempfilename() and tempfile():
9096         function tempnam() is defined in Visual Studio 6.0 and .NET
9097
9098         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9099
9100         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9101           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9102         - removed compiler command line option /WX: Treats all warnings as errors
9103         - update a list of source files, included into the project
9104
9105         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9106           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9107         changed project type to Generic Project so that can be correcly converted to VS.NET project
9108
9109         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9110
9111         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
9112
9113         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
9114
9115         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
9116         added return 0 statements after assert() to make compiler happy
9117
9118         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
9119         added newline in the def file to keep MSC compiler satisfied
9120
9121         * sdcc/src/z80/gen.c:
9122         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
9123           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
9124         - solved MSC error in function aopDump()
9125
9126         * sdcc_vc.h: define PREFIX as "\\sdcc"
9127
9128 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
9129         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9130
9131 2002-06-22  Scott Dattalo <scott AT dattalo.com>
9132         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9133         - Rewrote the register banking algorithm.
9134         - Added pCode live-range analysis to registers (for now, only non-used and
9135         singly-used registers optimized away)
9136
9137         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9138
9139         * 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.
9140
9141 2002-05-10  Scott Dattalo <scott AT dattalo.com>
9142         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9143
9144 2002-04-22  Michael Hope  <michaelh AT vroom>
9145
9146         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9147
9148         * configure.in (DD_COPT): Added include support required for gbdk.
9149
9150         * .version: Bumped version number just to increase it.
9151
9152         * src/SDCCmain.c: Added -nostdinc to the default options.
9153
9154 2002-04-15  Michael Hope  <michaelh AT vroom>
9155
9156         * device/lib/z80/printf.c (sprintf): Added.
9157
9158         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9159
9160         * src/z80/peeph.def: Added transpose redundent load rule.
9161
9162         * src/z80/main.c: Added force callee saves for jaune.
9163
9164         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9165
9166         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9167
9168 2002-03-28  Johan Knol  <johan AT balder>
9169
9170         * src/SDCCval.c: fixed bug #532436
9171
9172 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9173         * /src/port.h:
9174         Added "char *Processor" field to the port structure.
9175
9176         * /src/SDCCmain.c:
9177         Added -p option. Allows port dependent processor to be specified.
9178
9179         * all ports:
9180         Initialized the new field char *Processor field to NULL in all ports
9181
9182         * /src/pic/*:
9183         Compiler generated registers for interrupt context saving
9184         were not getting allocated.
9185
9186 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
9187
9188         * /src/SDCCast.c:
9189         Fixed left shift. Will promote the left side of a left shift
9190         if a) left shifting more than size of operand or b) when assigned
9191         to something size > size of left side
9192
9193 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9194         * src/pic/*
9195         tons of changes. Register allocation has been
9196         rewritten. Added customization for the various PICs. Flow
9197         analysis is restructured. ...
9198
9199         * src/pic/device.h:
9200         Added
9201
9202         * src/pic/device.c:
9203         Added. device.c is a PIC port hack to accomodate variations
9204         in PIC devices.
9205
9206 2002-03-13  Michael Hope  <michaelh AT vroom>
9207
9208         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
9209
9210 2002-03-04  johanknol  <johanknol AT manik>
9211
9212         * /src/SDCCval.c: fixed
9213
9214         const unsigned char arr[][2] = { { 0, 1 } };
9215         t18.c:1: error: Initializer element is not constant
9216
9217 2002-03-04  bela  <bela AT manik>
9218
9219         * /device/include/mcs51reg.h:
9220         ds89c420 register definition update
9221
9222 2002-03-03    <johan AT FRIJA>
9223
9224         * support/Util/SDCCerr.c: did something, but don't no why anymore
9225
9226         * support/regression/tests/bug-524691.c: made it a little less shy
9227
9228         * src/SDCCast.c (decorateType): fixed bug #524697
9229
9230         * src/SDCCast.c: made some lineno improvements
9231
9232         * src/SDCCval.c (getNelements): changed warning to error
9233
9234         * src/SDCCglue.c (printIvalArray): changed warning to error
9235
9236         * src/SDCCicode.c: fixed a warning for mingw
9237
9238         * src/SDCCast.c (decorateType): fixed the << promotion for ops
9239
9240         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9241
9242 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
9243
9244         * src/ds390/peeph.def:
9245         Added some more peephole rules
9246
9247         * src/ds390/gen.c: Various fixes & enhancements
9248
9249         * src/SDCClrange.c, src/SDCClrange.h:
9250         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9251
9252         * src/ds390/ralloc.c:
9253         various fixes & enhancements (ds390) specific
9254
9255         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9256         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9257         from rallocs.
9258
9259         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9260
9261 2002-03-02    <johan AT FRIJA>
9262
9263         * src/SDCCast.c (decorateType): fixed bug #524708
9264
9265         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9266
9267         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9268
9269 2002-03-01  Michael Hope  <michaelh AT vroom>
9270
9271         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9272
9273         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9274
9275 2002-03-01    <johan AT FRIJA>
9276
9277         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9278
9279         * src/SDCCast.c (decorateType): fixed bug #524209
9280
9281         * src/SDCCval.c (valNot): fixed bug #524195
9282
9283 2002-02-26    <johan AT balder>
9284
9285         * src/xa51/gen.c: fixed a warning
9286
9287         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9288
9289         * src/SDCCast.c (decorateType): fixed bug #522534
9290
9291 2002-02-23    <johan AT balder>
9292
9293         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
9294
9295 2002-02-22    <johan AT balder>
9296
9297         * src/SDCCast.c: fixed bug #514865
9298
9299         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
9300
9301 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
9302
9303         * sdcc/src/SDCCloop.c:
9304         Previous fix was not good. basic blocks that have "break" or "return" are
9305         not really partof a loop , but live ranges used in these blocks should
9306         be live thru the entire loop, so set partOfLoop but don't add them to
9307         loop region
9308
9309 2002-02-21    <johan AT FRIJA>
9310
9311         * src/SDCCcse.c: fixed bug #514308
9312
9313 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
9314
9315         * src/SDCCloop.c:
9316         Fixed BUG #519583. If a conditional block ended in a return/break
9317         statement inside a loop, it was not being considered part of the loop.
9318
9319         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
9320
9321 2002-02-10  Karl Bongers <karl AT turbobit.com>
9322
9323         * debugger/*:
9324         Fixed up SDCDB debugger somewhat.  Updated debugger/README
9325         with lots of comments and notes.
9326
9327         * device/examples/test2.c:
9328         Fix bug, "red" variable not being initialized(compiler complained).
9329
9330         * device/examples/Makefile, examples/test3.c:
9331         Add Makefile in device/examples folder, compiles test3.c
9332         for use as a multiple module SDCDB test case.
9333
9334         * sim/ucsim/cmd.src/cmdset.cc:
9335         Took out debug printfs in ucsim "next" command.
9336
9337         * sim/ucsim/xa.src:
9338         Karl and Johan start ucsim XA support.  Most dissassembly working,
9339         about 75% emulation done(plenty of work remaining).
9340
9341         * sim/ucsim/z80.src:
9342         Add Z80 support to ucsim, add test-ucz80 regression test,
9343         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
9344         Notice z80 compiler fails on examples/test3.c/crc code.
9345
9346 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
9347
9348         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
9349         Added support for --parms-in-bank1
9350
9351         * src/ds390/peeph.def:
9352         added a few more peephole optimzations
9353
9354         * src/ds390/main.c:
9355         1) added __builtin_inp & __builtin_outp used to read in data of given length
9356            from a memory mapped port
9357         2) added __builtin_memcmp
9358         3) added __builtin_swapw swap bytes of a short
9359
9360         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9361         1) handle multiple send & receives from register bank1
9362         2) ralloc can now allocate DPTR1 to some liveRanges
9363
9364         * src/SDCCsymt.c, src/SDCCsymt.h:
9365         changes to handle multiple sends & receives
9366
9367         * src/SDCCptropt.h:
9368         added some pointer arithmetic optimization
9369
9370         * src/SDCCptropt.c:
9371         added some pointer arithmetic optimizations but not stable yet so not
9372         called from anywhere (will get this working shortly)
9373
9374         * src/SDCCopt.c: fixed for multiple sends & receives
9375
9376         * src/SDCCmain.c:
9377         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9378         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9379            set preprocessor defines (depending on options)
9380
9381         * src/SDCCicode.c, src/SDCCicode.h:
9382         changes made to handle multiple sends & receives
9383
9384         * src/SDCCglobl.h:
9385         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9386
9387         * src/SDCCcse.c, src/SDCCcse.h:
9388         added function findbackward def (to be used in upcoming optimization)
9389
9390         * src/SDCCcflow.c, src/SDCCcflow.h:
9391         added function returnAtEnd - to determine if a basic block terminates with
9392         a RETURN iCode
9393
9394         * src/SDCCast.c, src/SDCCast.h:
9395         added option parms-in-bank1
9396
9397         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9398         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9399         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9400         adjusted for --parms-in-bank1 option
9401
9402         * device/include/string.h:
9403         donot redefine "reentrant" keyword
9404
9405         * device/include/ds80c390.h: Added some more SFRs
9406
9407 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
9408
9409         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9410
9411 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
9412
9413         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9414
9415 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
9416
9417         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9418
9419 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
9420
9421         * Added --xram-movc option
9422
9423 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
9424
9425         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9426
9427 2002-01-11  Johan Knol
9428
9429         * Added math lib of Jesus Calvino-Fraga
9430
9431 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
9432
9433         * src/SDCCmain.c (processFile): fix processing of ../../src.c
9434         * support/regression/Makefile: new target test-mcs51-stack-auto
9435         * support/regression/ports/mcs51-stack-auto/spec.mk: added
9436
9437 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9438
9439         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9440
9441 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
9442
9443         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9444
9445 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
9446
9447         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9448
9449         * src/SDCCglue.h: add definition for printIvalChar()
9450
9451 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9452
9453         * src/SDCCast.c: fix #498138 by Johan
9454
9455         * src/SDCCglue.c: fix #498138 by Johan
9456
9457 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
9458
9459         * support/regression/Makefile: fix clean
9460
9461         * support/regression/ports/ds390/support.c: fix transmission of last character
9462
9463 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
9464
9465         * /sdcc/src/ds390/gen.c:
9466         a) improved computing address of stack variable
9467         b) took out some #if 0 code
9468         c) improved parmBytes adjustment
9469         d) improved genPlusIncr & genMinusIncr
9470         e) genCmp could generate bad code (when left assigned to DPTR)
9471         f) Fixed bug in hasInc
9472
9473         * /sdcc/src/ds390/ralloc.c:
9474         a) packRegsForSupport could mess up live information (Fixed)
9475         b) packRegsDPTRuse could be incorrect for left & right shift
9476
9477         * /sdcc/src/mcs51/ralloc.c:
9478         packRegsForSupport could mess up the live information (Fixed)
9479
9480         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9481
9482         * /sdcc/src/SDCCast.c:
9483         can reverse a loop even if function call is present as long
9484         as the loop control variable is local & is not passed as parameter
9485
9486 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9487
9488         * /sdcc/ChangeLog: *** empty log message ***
9489
9490         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9491         More builtin function additions for TININative
9492
9493         * /sdcc/src/ds390/ralloc.c:
9494         Had broken the regression testsuite
9495
9496         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9497
9498         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9499         Added funcattr hasStackParms will be set for reentrant functions when there
9500         are paramteres on the stack, this helps in minimizing frame pointer generation
9501         typeFromStr can handle function pointers now
9502
9503         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9504         *** empty log message ***
9505
9506 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9507
9508         * /src/ds390/gen.c, /src/ds390/main.c:
9509         More builtin function additions for TININative
9510
9511         * /src/ds390/ralloc.c:
9512         Had broken the regression testsuite
9513
9514         * /src/SDCCast.c: Fixed a bug in dumptree
9515
9516         * /src/SDCCsymt.c, /src/SDCCsymt.h:
9517         Added funcattr hasStackParms will be set for reentrant functions when there
9518         are paramteres on the stack, this helps in minimizing frame pointer generation
9519         typeFromStr can handle function pointers now
9520
9521         * /doc/builtins.txt, /doc/TININative.txt:
9522         *** empty log message ***
9523
9524
9525 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
9526
9527         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9528         ALPHA version for -mTININative
9529
9530         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9531         updated to reflect changes in the port structure
9532
9533         * /src/port.h:
9534         added function do_assemble (similar to do_link) if non-null this function
9535         will be called to do assembly (-mTININative) requires a multi command
9536         assembly
9537         added function genAssemblerEnd will be called to generate assembler Epilogue
9538
9539         * /src/SDCCsymt.c:
9540         added _JavaNative to debug info printing
9541
9542         * /src/SDCCmain.c: added option --tini-libid
9543         added port->do_assemble function (-mTININative) has a multi command assemble
9544
9545         * /src/SDCCglue.c: Disabled "constExpr" check
9546         added port->genAssemblerEnd function
9547
9548         * /src/SDCCglobl.h: Added option --tini-libid value
9549
9550         * /src/SDCCast.h:
9551         tookout optimizeCompare from the header (has no external references)
9552
9553         * /src/SDCCast.c: made one more function "static"
9554
9555 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
9556
9557         * src/z80/mappings.i: Added z80asm support.
9558
9559         * src/z80/main.c: Added z80asm support on --asm=z80asm
9560
9561         * src/z80/gen.c: Fixed asm portability issues.
9562
9563         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
9564
9565         * src/SDCCglue.c (printExterns): Added global/extern split.
9566
9567 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
9568
9569         * support/regression/Makefile: added test for mcs51 model large
9570
9571         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
9572
9573         * support/regression/ports/gbz80/spec.mk: added -mgbz80
9574
9575 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
9576
9577         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
9578
9579 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
9580
9581         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
9582
9583         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
9584
9585 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
9586
9587         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
9588
9589         * support/regression/tests/simplefloat.c: Port to mcs51.
9590
9591 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
9592         * support/regression/tests/bug-485362.c: Added.
9593
9594         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
9595
9596         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
9597
9598         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
9599
9600         * src/z80/gen.c (aopDump): Added a dump function.
9601
9602 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
9603         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
9604
9605         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
9606
9607         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
9608
9609         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
9610
9611         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
9612
9613         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
9614
9615         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
9616
9617         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
9618
9619         * support/regression/ports/ds390/support.c: Use tinibios.
9620
9621         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
9622
9623 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
9624
9625         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
9626         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
9627
9628         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
9629
9630         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
9631
9632 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
9633
9634         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
9635
9636         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
9637         (packRegsForIYUse): Created and optimised.
9638
9639 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9640
9641         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
9642 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
9643
9644         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
9645
9646         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
9647
9648         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
9649
9650 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9651
9652         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
9653
9654         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
9655
9656 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9657
9658         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
9659
9660         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
9661
9662         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
9663
9664 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
9665
9666         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
9667         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
9668         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
9669
9670         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
9671
9672         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
9673         (genNotFloat): Added.
9674         (genUminusFloat): Added.
9675
9676         * device/lib/z80/Makefile: Added floating pt stubs.
9677
9678         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
9679
9680         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
9681
9682         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
9683
9684 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
9685
9686         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
9687
9688         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
9689
9690         * sdcc/support/regression/Makefile: Add port ds390.
9691
9692         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
9693
9694         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
9695
9696         * sdcc/support/regression/ports/ds390/spec.mk: Added.
9697
9698         * sdcc/support/regression/ports/ds390/support.c: Added.
9699
9700         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
9701
9702         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
9703
9704         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
9705
9706 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9707
9708         * device/include/malloc.h: Added z80 and gbz80 support.
9709
9710         * device/lib/gbz80/heap.s: Added.
9711
9712         * device/lib/z80/heap.s: Added.
9713
9714         * device/lib/malloc.c: Added z80 and gbz80 support.
9715
9716         * support/regression/tests/malloc.c (testMalloc): Added.
9717
9718         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
9719
9720         * support/regression/tests/bug-478094.c: Added.
9721
9722         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
9723
9724 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
9725
9726         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
9727
9728         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
9729
9730         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
9731
9732         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
9733
9734         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
9735
9736 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
9737
9738         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
9739
9740 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
9741
9742         * support/regression/tests/bug-477927.c: Added.
9743
9744         * src/z80/peeph.def: Added minor rules.
9745
9746         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
9747
9748         * src/z80/peeph.def: Added jump optimisation modification.
9749
9750 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
9751
9752         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
9753
9754 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
9755
9756         * support/regression/tests/funptrs.c: Added.
9757
9758 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
9759
9760         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
9761
9762 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
9763
9764         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
9765
9766         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
9767
9768         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
9769         (movLeft2ResultLong): Created.
9770
9771         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
9772         (joinPushes): Added.  Joins two char pushes into a word push.
9773
9774 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
9775
9776         * support/cpp2/Makefile.in (install): Added creation of dest dir.
9777
9778         * support/makebin/Makefile (install): Added creation of dest dir.
9779
9780 2001-10-24 Karl Bongers <karl AT turbobit.com>
9781
9782         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
9783
9784 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
9785
9786         * src/z80/ralloc.c: Turned off faulty pack for one use.
9787
9788         * src/z80/peeph-gbz80.def: Removed redundent restart options.
9789
9790         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
9791
9792 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
9793
9794         * support/regression/Makefile: Improved clean
9795
9796         * support/regression/ports/gbz80/spec.mk: Added clean
9797
9798         * support/regression/ports/host/spec.mk: Added clean
9799
9800         * support/regression/ports/z80/spec.mk: Added clean
9801
9802         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9803
9804         * support/regression/ports/mcs51/timeout.c: little improvements
9805
9806 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
9807
9808         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9809
9810         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9811
9812         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9813
9814 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
9815
9816         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9817
9818         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9819
9820 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
9821         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9822
9823         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9824
9825         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9826
9827         * src/mcs51/main.c (_linkCmd): Added bin path to command.
9828
9829         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9830
9831         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9832
9833         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9834
9835         * support/regression/tests/longor.c: Added.
9836
9837 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
9838
9839         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9840
9841         * as/mcs51/aslink.h: define PATH_MAX
9842
9843         * as/mcs51/asm.h: define PATH_MAX
9844
9845         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9846
9847         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9848
9849         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9850
9851         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9852
9853         * src/SDCCglobl.h: define PATH_MAX
9854
9855         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9856
9857         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9858
9859 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
9860
9861         * src/z80/gen.c (gencjneshort): Fixed
9862
9863         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9864
9865 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
9866
9867         * support/regression/tests/bug-469671.c: Added.
9868
9869         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9870
9871 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
9872
9873         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9874
9875         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
9876
9877 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
9878
9879         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9880
9881         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
9882
9883         * src/device/lib/_mullong.c : removed hint: nooverlay bug
9884
9885         * src/device/lib/_divuint.c : removed hint: nooverlay bug
9886
9887         * src/device/lib/_divulong.c: removed hint: nooverlay bug
9888
9889         * src/device/lib/_moduint.c : removed hint: nooverlay bug
9890
9891         * src/device/lib/_modulong.c: removed hint: nooverlay bug
9892
9893 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
9894
9895         * 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.
9896
9897         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
9898
9899         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9900
9901 2001-10-07    <johan AT FRIJA>
9902
9903         * device/lib/gets.c (gets): fixed the return value.
9904
9905 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
9906         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9907
9908         * 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.
9909
9910         * 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.
9911
9912         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9913
9914         * src/pic/gen.c: Removed Safe_strdup.
9915
9916         * configure.in: Added option to enable libgc support.
9917
9918         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9919         (bitVectUnion): Optimised.
9920         (bitVectIntersect): Optimised.
9921         (bitVectBitsInCommon): Optimised.
9922         (bitVectCplAnd): Optimised.
9923
9924         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
9925
9926 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9927
9928         * src/SDCCmain.c: distinguish between assembler debug and plain options
9929
9930         * src/avr/main.c:   remove standard assembler options
9931
9932         * src/ds390/main.c: remove standard assembler options
9933
9934         * src/mcs51/main.c: remove standard assembler options
9935
9936         * src/port.h: removed "PENDING" comment
9937
9938 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9939
9940         * src/device/lib/_mulint.c  : new, with assember functions
9941
9942         * src/device/lib/_mullong.c : new, with assember functions
9943
9944         * src/device/lib/_divuint.c : with assember functions
9945
9946         * src/device/lib/_divsint.c : with assember functions
9947
9948         * src/device/lib/_divulong.c: with assember functions
9949
9950         * src/device/lib/_divslong.c: with assember functions
9951
9952         * src/device/lib/_moduint.c : with assember functions
9953
9954         * src/device/lib/_modsint.c : with assember functions
9955
9956         * src/device/lib/_modulong.c: with assember functions
9957
9958         * src/device/lib/_modslong.c: with assember functions
9959
9960         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9961
9962         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9963
9964         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9965                                       replaced _mululong.c and _mulslong.c by _mullong.c
9966
9967 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9970
9971 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9972
9973         * src/SDCCglue.c: test, if win32api is available for MINGW
9974
9975 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9976
9977         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9978         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9979         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9980         * support/regression/ports/host/spec.mk: removed GENERIC
9981         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9982         * support/regression/ports/z80/spec.mk: removed GENERIC
9983
9984 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9985
9986         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9987
9988         * support/regression/tests/bug-467035.c: Created.
9989
9990 2001-10-01    <johan AT FRIJA>
9991
9992         * src/SDCC.y: fixed bug #466586 part 1
9993
9994 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9995
9996         * SDCCicode.c: z80 has no generic pointers
9997         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9998
9999 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
10000
10001         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10002
10003 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
10004
10005         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10006
10007         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10008
10009 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
10010
10011         * configure.in: Fixed up so that ucsim is only configured once.
10012
10013         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10014
10015         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10016         (getPathDifference): As above.
10017
10018         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
10019
10020         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10021
10022 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
10023         * .version: Updated to 2.3.1
10024
10025         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10026         Added copyright header.
10027
10028         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10029         (assemble): Added support for macro based assembler commands.
10030         (linkEdit): Added support for macro based linker commands.
10031         (preProcess): Changed the pre-processor to use macros.
10032         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10033         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10034
10035         * device/lib/z80/crt0.s: Added module name for debugging.
10036
10037 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
10038
10039         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10040
10041         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10042
10043         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10044
10045         * src/Makefile.in: Added SDCCmacro and SDCCutil
10046
10047 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
10048
10049         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10050
10051 2001-09-16    <johan AT FRIJA>
10052
10053         * 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.
10054
10055 2001-09-15    <johan AT FRIJA>
10056
10057         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10058         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10059
10060 2001-09-11    <johan AT FRIJA>
10061
10062         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10063
10064 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
10065
10066         * support/regression/tests/bug-460444.c: Added test case.
10067
10068         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10069         (genCast): Added justification for all of the asserts.
10070
10071 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
10072
10073         * support/regression/support.c: _xdata replaced by xdata
10074
10075         * support/regression/spec.mk: removed _generic
10076
10077 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
10078
10079         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10080
10081         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10082         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10083
10084         * src/z80/peeph.def: Added a rule to optimise shift then compare.
10085
10086         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10087
10088         * support/regression/tests/bug-460010.c: Added test case.
10089
10090         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10091
10092 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
10093
10094         * support/regression/Makefile: inter-port-clean adjusted for mcs51
10095
10096         * support/regression/testfwk.c: removed workaround for bug #436344
10097
10098         * support/regression/tests/bp.c: use less memory with mcs51
10099
10100         * support/regression/tests/bug-441448.c: use less memory
10101
10102         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10103
10104         * support/regression/collate-results.py: typo
10105
10106 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
10107
10108         * support/regression/tests/fetchoverlap.c: Added new test case.
10109
10110         * support/regression/tests/bp.c: Added new test case.
10111
10112         * support/regression/tests/bug-448984.c: Added new test case.
10113
10114         * support/regression/tests/pow2shifts.c: Added new test case.
10115
10116         * src/z80/gen.c: Turned off the noise it normally generates for the release.
10117         (genlshTwo): Fixed right shift for count > 8.
10118
10119         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
10120
10121 2001-09-08    <johan AT FRIJA>
10122
10123         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
10124
10125 2001-09-07    <johan AT FRIJA>
10126
10127         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10128
10129         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10130
10131 2001-09-06    <johan AT FRIJA>
10132
10133         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10134         * bernhard noted me at this: "() equals to (void)" (1.38)
10135
10136 2001-09-05    <johan AT FRIJA>
10137
10138         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10139
10140 2001-09-04    <johan AT FRIJA>
10141
10142         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10143
10144
10145 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
10146
10147         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
10148
10149 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
10150
10151         * link/z80/aslink.h: Fixed path for PATH_MAX
10152
10153 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
10154
10155         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10156
10157         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10158
10159         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10160
10161         * 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.
10162
10163 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
10164
10165         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10166         (genCmp): Fixed up genCmp for the GB with longs.
10167
10168         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10169
10170         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10171
10172         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10173
10174         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10175
10176 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
10177
10178         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
10179
10180 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
10181
10182         * 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.
10183
10184         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10185
10186 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
10187
10188         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
10189
10190         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10191
10192 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
10193
10194   * sim/ucsim/configure:    little improvement of Cygwin-detection
10195   * sim/ucsim/configure.in: little improvement of Cygwin-detection
10196   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10197   * support/regression/tests/bug-221100.c: small changes for mcs51
10198   * support/regression/tests/bug-221168.c: small changes for mcs51
10199   * support/regression/tests/bug-227710.c: small changes for mcs51
10200   * support/regression/tests/staticinit.c: small changes for mcs51
10201   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10202   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10203   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10204
10205 $Revision$