Adding support for replacing ljmps with sjmps in jumptables
[fw/sdcc] / ChangeLog
index 8d9e3628ce8be2521d15897520be4e698164ecb5..af926fdefd22a1d4015f92ac4e2fa0ad8c1b426b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2004-11-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
+
+       Adding support for replacing ljmps with sjmps in jumptables
+       generated for switch statements. For now you need to set the
+       environment variable SDCC_SJMP_JUMPTABLE to enable this.
+       Now 4 algorithms for mcs51 jumptable generation are used:
+       ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
+       addresses loaded pc-relative for up to 112 cases and stack-pushing
+       target addresses loaded with offset from dptr for up to 256 cases.
+
+       * src/SDCCpeeph.c: added peephole conditional labelJTInRange
+       * src/mcs51/main.c: adapted constants for switch table generation
+       * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
+
+2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * device/lib/printf_large.c (_print_format): fixed bug 1073386
+       * support/regression/tests/bug1057979.c: added test for bug 1073386
+
+2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
+
+       * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
+       compilers
+
 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
 
        * src/pic16/device.h,
@@ -21,7 +45,7 @@
        Library is not automatically build yet. But one can build it by
        invoking 'make' inside the libc directory.
        * added ADC library under libio. Preliminary version yet.
-       
+
        * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
        * src/pic16/gen.c (aopForRemat): asmop size is filled by
        aopForRemat() now and not by pic16_aopOp(),
        * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
          instead of sjmp to ret
        * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
-         by anonymous in RFE #1067986, thanks
+         by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
 
 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>