Browse Source

Remove unused endAddr.

git-svn-id: file:///var/svn/tigccpp/trunk@1138 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
a9a50454fd
1 changed files with 0 additions and 13 deletions
  1. 0 13
      tigcc/ld-tigcc/export/pucrunch.c

+ 0 - 13
tigcc/ld-tigcc/export/pucrunch.c

@@ -1595,19 +1595,6 @@ int TTPack(int flags, int in_len, unsigned char *in_data, FILE *out_file) {
     n = PackLz77(lzlen, flags, &startEscape);
 
     if (!n) {
-        int endAddr = startAddr + inlen; /* end for uncompressed data */
-
-        if (endAddr - ((outPointer + 255) & ~255) < memStart + 3) {
-            /* would overwrite the decompressor, move a bit upwards */
-            if (flags & F_VERBOSE) fprintf(VERBOSE_OUT,"$%x < $%x, decompressor overwrite possible, moving upwards\n",
-                                           endAddr - ((outPointer + 255) & ~255), memStart + 3);
-            endAddr = memStart + 3 + ((outPointer + 255) & ~255);
-        }
-
-        /* 3 bytes reserved for EOF */
-        /* bytes reserved for temporary data expansion (escaped chars) */
-        endAddr += 3 + reservedBytes;
-
         // outBuffer ... static global array (65536 Bytes)
 
         SavePack(outBuffer, outPointer, out_file, startEscape, rleValues, extraLZPosBits);