]>
git.gag.com Git - fw/sdcc/log
epetrich [Thu, 11 Dec 2003 04:54:49 +0000 (04:54 +0000)]
* src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3045
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 10 Dec 2003 06:16:55 +0000 (06:16 +0000)]
* src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
gracefully handle NULL memmap pointers
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3044
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 9 Dec 2003 07:17:29 +0000 (07:17 +0000)]
* src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
instead of deleting the iCode when an operand is volatile
* src/z80/gen.c (genDummyRead),
* src/mcs51/gen.c (genDummyRead),
* src/ds390/gen.c (genDummyRead),
* src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
not just IC_RIGHT
* src/SDCCicode.c (geniCodeCall): fixed bug #851607
* src/SDCC.y: fixed bug #850420
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3043
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Mon, 8 Dec 2003 07:22:47 +0000 (07:22 +0000)]
--portmode=180 instead of z180. The syntax around the z80 I/O instructions may change slightly.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3042
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 5 Dec 2003 18:15:33 +0000 (18:15 +0000)]
Peter Townson's z80 in/out, more to bit/sbit/idata, link to indent, 'at' and initialization, #pragma preproc_asm, some ds390 options, array in code space, 2.3.6
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3041
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Fri, 5 Dec 2003 06:37:18 +0000 (06:37 +0000)]
Applied z80 i/o port patch from Peter Townson and fixed some operators
to better handle operands in A register.
* device/include/z180.h
* src/SDCC.y
* src/SDCCglue.c
* src/z80/gen.c
* src/z80/gen.h
* src/z80/main.c
* src/z80/peeph-z80.def
* src/z80/peeph.def
* src/z80/z80.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3040
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 3 Dec 2003 08:14:39 +0000 (08:14 +0000)]
* src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3039
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Mon, 1 Dec 2003 15:06:22 +0000 (15:06 +0000)]
* device/lib/hc08/_mullong.c: Removed extra #endif
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3038
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Mon, 1 Dec 2003 07:37:58 +0000 (07:37 +0000)]
* sim/ucsim/hc08.src/inst.cc,
* sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
carries from x to h
* src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
* src/hc08/gen.c (XAccRsh): fixed problem with right shift
* device/include/stdarg.h: fixed varargs for hc08
* device/lib/Makefile.in,
* device/lib/hc08/Makefile,
* device/lib/hc08/_mulint.c,
* device/lib/hc08/_mullong.c: fixed some endian problems
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3037
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 28 Nov 2003 21:56:03 +0000 (21:56 +0000)]
sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3036
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 28 Nov 2003 21:54:44 +0000 (21:54 +0000)]
(genMultOneByte): help peephole 105
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3035
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 28 Nov 2003 21:52:37 +0000 (21:52 +0000)]
added peephole 186.e for char indexed integer array access in code space
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3034
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 28 Nov 2003 21:04:50 +0000 (21:04 +0000)]
device/lib/_gptrget.c, device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3033
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 28 Nov 2003 21:03:10 +0000 (21:03 +0000)]
P2 not used any more (related to #850747, #785979)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3032
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 27 Nov 2003 09:14:51 +0000 (09:14 +0000)]
* src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
* src/SDCCast.c (astErrors): fixed bug #846007
* src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3031
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 26 Nov 2003 18:19:53 +0000 (18:19 +0000)]
* src/SDCCast.c (decorateType): disabled a transformation I added in
revision 1.188 (access to fields of a structure at an absolute address);
it breaks with bitfields, extern declarations, and gcse analysis.
* src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
could be assigned through a pointer, so don't complain.
* src/SDCCast.c (astErrors),
* src/SDCCast.h,
* src/SDCCglue.c (emitRegularMap): fixed bug #847813
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3030
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
vrokas [Wed, 26 Nov 2003 16:32:29 +0000 (16:32 +0000)]
*** empty log message ***
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3029
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bela [Wed, 26 Nov 2003 14:38:49 +0000 (14:38 +0000)]
typo corrected
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3028
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 26 Nov 2003 07:33:32 +0000 (07:33 +0000)]
* src/SDCC.y (pointer): fixed bug #846006
* support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
* src/SDCCast.c (decorateType): fixed bug #846009
* src/ds390/peeph.def,
* src/ds390/gen.c (genAnd, genOr),
* src/mcs51/peeph.def,
* src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3027
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 25 Nov 2003 04:57:05 +0000 (04:57 +0000)]
Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
* src/SDCCdflow.c
* src/SDCCcse.c
* src/SDCCcse.h
* src/SDCCBBlock.h
* src/SDCCBBlock.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3026
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
kflittner [Sun, 23 Nov 2003 12:43:30 +0000 (12:43 +0000)]
fixed bug #845089
* src/SDCCbitv.h,
* src/SDCCbitv.c: added function to free a bitvector
* src/SDCClrange.h,
* src/SDCClrange.c: added function to recompute the liveranges
* src/avr/ralloc.c,
* src/ds390/ralloc.c,
* src/hc08/ralloc.c,
* src/mcs51/ralloc.c,
* src/pic/ralloc.c,
* src/pic16/ralloc.c,
* src/xa51/ralloc.c,
* src/z80/ralloc.c: recompute the liveranges after register packing
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3025
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
kflittner [Fri, 21 Nov 2003 19:31:54 +0000 (19:31 +0000)]
* src/SDCCloop.c (newInduction): fixed bug #845630
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3024
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Fri, 21 Nov 2003 05:11:24 +0000 (05:11 +0000)]
* src/SDCCsymt.c (compareTypesExact): disabled debugging output
inadvertantly left behind from my 2003-11-12 change
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3023
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 20 Nov 2003 16:37:58 +0000 (16:37 +0000)]
Updated headers I neglected to commit yesterday.
* src/SDCClrange.h,
* src/SDCCicode.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3022
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 19 Nov 2003 17:23:35 +0000 (17:23 +0000)]
* src/SDCCcse.c (algebraicOpts): fixed bug #773153
* src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_GET op
* src/SDCCopt.c (eBBlockFromiCode),
* src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
the creation of the key hash table from the sequencing so it can be used
earlier (for some GCSE bug fixes still pending)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3021
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 15 Nov 2003 20:18:33 +0000 (20:18 +0000)]
src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
support/regression/tests/addsub.c: testing genPlus shortcut
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3020
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 15 Nov 2003 20:16:15 +0000 (20:16 +0000)]
(genPlus): generate shortcut for adding a literal which lower byte(s) are zero
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3019
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 15 Nov 2003 20:13:37 +0000 (20:13 +0000)]
added one test for adding a literal which lowest bytes is zero (for genPlus shortcut)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3018
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Sat, 15 Nov 2003 19:00:20 +0000 (19:00 +0000)]
* src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3017
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Sat, 15 Nov 2003 08:38:38 +0000 (08:38 +0000)]
* src/SDCCcse.c (cseBBlock): fixed bug #527779
* src/SDCCcse.c (deleteGetPointers): rewrote so that the set
ordering is immaterial.
* src/SDCCdflow.c (mergeInExprs): fixed bug #587536
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3016
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Fri, 14 Nov 2003 08:33:10 +0000 (08:33 +0000)]
* src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
* src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
(SIGSEV) of bug #840381
* src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
unlink new file before rename if new and old filenames are the same)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3015
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Thu, 13 Nov 2003 21:17:25 +0000 (21:17 +0000)]
src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing uninitialized variables) for the mcs51. Set environment variable SDCC_GENRAMCLEAR to test.
xdata initialization slightly shorter
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3014
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Thu, 13 Nov 2003 21:15:36 +0000 (21:15 +0000)]
started fixing bug #737001 (SDCC not clearing uninitialized variables) for the mcs51. Set environment variable SDCC_GENRAMCLEAR to test.
xdata initialization slightly shorter
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3013
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 12 Nov 2003 08:30:32 +0000 (08:30 +0000)]
* src/SDCCsymt.h,
* src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
#838241 & 780691 (basicly the same bug)
* src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
* src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3012
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 11 Nov 2003 13:43:02 +0000 (13:43 +0000)]
* src/SDCCmain.c (linkEdit): fix #834252
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3011
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 11 Nov 2003 07:21:52 +0000 (07:21 +0000)]
* src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
* src/SDCCast.h,
* src/SDCC.y: fixed bug #819403
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3010
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Sun, 9 Nov 2003 01:51:10 +0000 (01:51 +0000)]
* support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
the reentrant attribute.
* src/hc08/gen.c (genPackBits): added missing stack readjustment
* sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
simulation
* src/SDCCast.c (decorateType): fixed bug with storage class not being
updated during pointer dereference; f.e. ~(((char *)1)*) was being
erroneously reduced to a literal.
* src/hc08/ralloc.c (packRegisters, rematStr),
* src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
some cases
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3009
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 8 Nov 2003 20:30:43 +0000 (20:30 +0000)]
doc/Makefile: readded test_suite_spec and cdbfileformat
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3008
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 8 Nov 2003 20:29:14 +0000 (20:29 +0000)]
readded test_suite_spec and cdbfileformat (were accidentally commented out)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3007
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 8 Nov 2003 15:49:46 +0000 (15:49 +0000)]
* src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
* doc/sdccman.lyx: changed from 'article' to 'book'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3006
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 8 Nov 2003 15:43:17 +0000 (15:43 +0000)]
some additions and changed from 'article' to 'book'. Hopefully that does not break to much.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3005
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 8 Nov 2003 15:40:24 +0000 (15:40 +0000)]
fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3004
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Sat, 8 Nov 2003 09:29:11 +0000 (09:29 +0000)]
* device/include/stdlib.h: include malloc.h to comply with ANSI
* support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3003
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 7 Nov 2003 17:31:22 +0000 (17:31 +0000)]
* doc/Makefile:sdccman.pdf should build with correct references (more info in commit msg)
* doc/clean.mk: also remove *.out files
* doc/sdccman.lyx: some additions, larger top/bottom margins
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3002
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 7 Nov 2003 17:28:13 +0000 (17:28 +0000)]
some additions, larger top/bottom margins (for a4 and letter)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3001
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 7 Nov 2003 17:25:28 +0000 (17:25 +0000)]
- removed dependency from l2hidx.ist (not in the directory and adds an unwanted section)
- always use dvipdf to generate the pdf file (pdflatex creates docs for acrobat reader >= 5.0)
- two runs of latex before and after makeindex (needed for correct pagenumbers in index)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3000
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Fri, 7 Nov 2003 17:24:26 +0000 (17:24 +0000)]
also remove *.out files
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2999
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Fri, 7 Nov 2003 07:01:10 +0000 (07:01 +0000)]
* src/SDCC.y: fixed bug #837365
* support/regression/tests/bitopcse.c
* src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
a symbol (might be valop instead)
* device/lib/Makefile.in: added errno.c to HC08SOURCES
* device/lib/clean.mk: added hc08 to the cleaning list
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2998
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 7 Nov 2003 06:25:50 +0000 (06:25 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
made 2003-11-04
* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
malloc is declared in standard stdlib.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2997
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 7 Nov 2003 06:25:14 +0000 (06:25 +0000)]
* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
malloc is declared in standard stdlib.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2996
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 7 Nov 2003 06:24:28 +0000 (06:24 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
made 2003-11-04
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2995
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 6 Nov 2003 14:52:13 +0000 (14:52 +0000)]
* device/lib/hc08/Makefile: need to clean .rel not .o files
* src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2994
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 6 Nov 2003 07:16:24 +0000 (07:16 +0000)]
* src/port.h,
* src/hc08/main.c,
* src/mcs51/main.c,
* src/ds390/main.c,
* src/z80/main.c,
* src/avr/main.c,
* src/pic/main.c,
* src/pic16/main.c,
* src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
* src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
tests (which uses the port's oclsExpense function)
* src/SDCC.y,
* src/SDCCast.c,
* src/SDCCicode.c,
* src/hc08/gen.c,
* src/ds390/gen.c,
* src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2993
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 4 Nov 2003 14:19:03 +0000 (14:19 +0000)]
* src/SDCCcse.c (ifxOptimize),
* src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
deleting the IFX iCode.
* src/hc08/ralloc.c: reduced unneeded slocs
* src/hc08/gen.c: fixed bug in asmopToBoolean
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2992
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Tue, 4 Nov 2003 13:47:38 +0000 (13:47 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf.h,
support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
transferred to configure
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2991
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 4 Nov 2003 06:46:48 +0000 (06:46 +0000)]
* src/SDCCcse.c (ifxOptimize),
* src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
deleting the IFX iCode.
* src/hc08/ralloc.c: reduced unneeded slocs
* src/hc08/gen.c: fixed bug in asmopToBoolean
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2990
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Mon, 3 Nov 2003 21:42:40 +0000 (21:42 +0000)]
Use headers defined in the C[++] standards:
* sim/ucsim/gui.src/serio.src/fileio.cc
* sim/ucsim/gui.src/serio.src/frontend.cc
* sim/ucsim/gui.src/serio.src/main.cc
* sim/ucsim/gui.src/serio.src/posix_signal.cc
* support/Util/NewAlloc.c
* as/hc08/lklibr.c
* as/mcs51/lklibr.c
* as/z80/aslist.c
* as/z80/assym.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2989
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
jesusc [Mon, 3 Nov 2003 18:58:36 +0000 (18:58 +0000)]
Added MSVC projects for hc08 assembler and linker
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2988
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
jesusc [Mon, 3 Nov 2003 18:52:17 +0000 (18:52 +0000)]
Added MSVC projects for hc08 assembler and linker
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2987
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
mhelmling [Mon, 3 Nov 2003 14:23:15 +0000 (14:23 +0000)]
*** empty log message ***
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2986
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
mhelmling [Mon, 3 Nov 2003 14:17:24 +0000 (14:17 +0000)]
Filename can start with number
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2985
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Sun, 2 Nov 2003 12:34:38 +0000 (12:34 +0000)]
src/SDCCmain.c (linkEdit): "fixed" again bug #833605
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2984
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 1 Nov 2003 21:22:35 +0000 (21:22 +0000)]
xdata initialization is 13 bytes shorter now
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2983
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 1 Nov 2003 21:01:20 +0000 (21:01 +0000)]
_mcs51_genXINIT: xdata initialization is 13 bytes shorter now
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2982
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Sat, 1 Nov 2003 20:58:58 +0000 (20:58 +0000)]
_mcs51_genXINIT: xdata initialization is 13 bytes shorter now
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2981
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 22:33:43 +0000 (22:33 +0000)]
* support/cpp2/cpplib.h, support/cpp2/cpplib.c, support/cpp2/cpplex.c,
support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
to switch _asm block preprocessing on / off. Default is
#pragma preproc_asm +
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2980
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 22:32:00 +0000 (22:32 +0000)]
introduced #pragma preproc_asm [ + | - ]
to switch _asm block preprocessing on / off. Default is
#pragma preproc_asm +
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2979
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 17:59:42 +0000 (17:59 +0000)]
* support\cpp2\cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
when outputting comment blocks (when executed with -C option) and
_asm (SDCPP specific) blocks
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2978
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Fri, 31 Oct 2003 17:56:59 +0000 (17:56 +0000)]
* as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2977
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
kflittner [Fri, 31 Oct 2003 16:10:19 +0000 (16:10 +0000)]
* src/SDCCcse.c (updateSpillLocation): fixed bug #808027
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2976
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 31 Oct 2003 15:45:40 +0000 (15:45 +0000)]
src/SDCCast.c (decorateType): fixed bug #832664
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2975
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 31 Oct 2003 14:52:03 +0000 (14:52 +0000)]
src/SDCCmain.c (linkEdit): "fixed" bug #833605
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2974
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 12:30:40 +0000 (12:30 +0000)]
* support\cpp2\cpplex.c: fixed for SDCPP:
comments(when executed with -C option) and _asm blocks
were included even if they where in skipped #if block.
Applied solution from GCC cpp 3.3.2
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2973
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 10:33:48 +0000 (10:33 +0000)]
* src/SDCC.lex: sdcc now understands both formats:
'# <line_number> <file_name>' and
'#line <line_number> <file_name>'
* support/cpp2/cppmain.c: sdcpp now generates the standard
'# <line_number> <file_name>' instead of former
'#line <line_number> <file_name>'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2972
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 10:32:26 +0000 (10:32 +0000)]
sdcc now understands both formats:
'# <line_number> <file_name>' and
'#line <line_number> <file_name>'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2971
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Fri, 31 Oct 2003 10:31:48 +0000 (10:31 +0000)]
sdcpp now generates the standard
'# <line_number> <file_name>' instead of former
'#line <line_number> <file_name>'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2970
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Thu, 30 Oct 2003 22:24:44 +0000 (22:24 +0000)]
added missing '\'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2969
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Thu, 30 Oct 2003 21:58:57 +0000 (21:58 +0000)]
support/cpp2/cpphash.h, support/cpp2/cpplib.h, support/cpp2/cpplex.c,
support/cpp2/cppmain.c, support/cpp2/cppinit.c:
fixed bug #828015 - Syntax variation for _asm character constants
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2968
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 30 Oct 2003 05:42:53 +0000 (05:42 +0000)]
Fixed a number of problems revealed by bug #827883.
* src/SDCCloop.c (loopInvariants): Spill location of the
result operand should be recomputed if extracted from
a loop. Also, don't extract assignments of an iTemp
from a literal.
* src/SDCCast.c (isConformingBody): loop reversal should
not occur if the control variable is involved with a
relational operator.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2967
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 28 Oct 2003 15:56:14 +0000 (15:56 +0000)]
.version: bumped to 2.3.6 to reflect the big improvements made by Erik and Klaus. Thanks\!
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2966
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
kflittner [Tue, 28 Oct 2003 15:04:17 +0000 (15:04 +0000)]
Replaced the liverange code.
* src/SDCClrange.c: added new LR code
* src/SDCCloop.c,
* src/SDCCBBlock.h: removed remainig parts from old LR code
* src/ds390/ralloc.c,
* src/ds390/gen.c: minor fixes to make it work with new code
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2965
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Tue, 28 Oct 2003 05:15:01 +0000 (05:15 +0000)]
* as/hc08/asm.h,
* as/hc08/lkrloc.c,
* src/hc08/gen.c,
* src/hc08/ralloc.c: Fix various warnings related to the hc08
* src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
(tweaked fix for bug #818696)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2961
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
frief [Thu, 23 Oct 2003 23:13:55 +0000 (23:13 +0000)]
mentioned HC08 port, documented new use of critical, enabling/disabling of interrupts, minor changes
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2960
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 23 Oct 2003 14:22:50 +0000 (14:22 +0000)]
* src/z80/ralloc.c (joinPushes): Fixed bug #828742
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2959
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 23 Oct 2003 03:44:44 +0000 (03:44 +0000)]
* src/SDCCmain.c,
* sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
* src/mcs51/gen.c (gencjneshort),
* src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
more efficient (per Scott Bronson's suggestion)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2958
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 23 Oct 2003 03:42:25 +0000 (03:42 +0000)]
Fixed bug #828387
Made comparison with AOP_IMMD operand more efficient (per Scott Bronson's suggestion)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2957
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 22 Oct 2003 07:17:24 +0000 (07:17 +0000)]
Extended the semantics of the critical keyword to include
individual statements. See RFE #827755 and #799831
* src/SDCC.y
* src/SDCCicode.c
* src/SDCCopt.c
* src/SDCCast.c
* support/Util/SDCCerr.c
* support/Util/SDCCerr.h
* src/mcs51/gen.c
* src/ds390/gen.c
* src/hc08/gen.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2956
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
borutr [Sun, 19 Oct 2003 18:37:56 +0000 (18:37 +0000)]
fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2955
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Sun, 19 Oct 2003 04:39:13 +0000 (04:39 +0000)]
* src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
Fixed bug #818696
* src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
and predecrement operand is displayed
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2954
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bernhardheld [Sat, 18 Oct 2003 21:22:41 +0000 (21:22 +0000)]
src/SDCCval.c (valMinus): fixed bug #826041
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2953
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bela [Sat, 18 Oct 2003 12:42:28 +0000 (12:42 +0000)]
typos corrected
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2952
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
bela [Fri, 17 Oct 2003 10:53:22 +0000 (10:53 +0000)]
improved by Scott Bronson
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2951
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
jesusc [Wed, 15 Oct 2003 16:08:51 +0000 (16:08 +0000)]
Added HC08 projects to the workspace
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2950
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
jesusc [Wed, 15 Oct 2003 16:07:56 +0000 (16:07 +0000)]
Fixed VC6 error
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2949
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 07:53:33 +0000 (07:53 +0000)]
fixed a typo
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2948
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 07:20:40 +0000 (07:20 +0000)]
Some hc08 related updates that I missed earlier
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2947
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 06:51:33 +0000 (06:51 +0000)]
Initial import
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2946
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 06:50:46 +0000 (06:50 +0000)]
New target "hc08" for the Motorola 68hc08 family of micros
* configure
* configure.in
* Makefile
* src/hc08/*
* src/SDCCmain.c
* src/port.h
* sim/ucsim/hc08.src/*
* sim/ucsim/configure.in
* src/ucsim/configure
* sim/ucsim/packages_in.mk
* as/hc08/*
* as/Makefile
* device/include/mc68hc908qy.h
* device/lib/hc08/*
* device/lib/Makefile.in
* support/regression/ports/hc08/*
* support/regression/Makefile
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2945
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 06:41:08 +0000 (06:41 +0000)]
fixed some filenames
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2944
4a8a32a2 -be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 15 Oct 2003 06:13:11 +0000 (06:13 +0000)]
Initial import
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2943
4a8a32a2 -be11-0410-ad9d-
d568d2c75423