Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 185927 Details for
Bug 263275
dev-tex/luatex-0.30.3 won't compile with debugging information disabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Solves the problem w/o defining NDEBUG
luatex-beta-0.30.3-ifdef.patch (text/plain), 2.42 KB, created by
Guenther Brunthaler
on 2009-03-23 00:53:08 UTC
(
hide
)
Description:
Solves the problem w/o defining NDEBUG
Filename:
MIME Type:
Creator:
Guenther Brunthaler
Created:
2009-03-23 00:53:08 UTC
Size:
2.42 KB
patch
obsolete
>diff -Naur luatex-beta-0.30.3.orig/src/texk/web2c/luatexdir/tex/texnodes.c luatex-beta-0.30.3/src/texk/web2c/luatexdir/tex/texnodes.c >--- luatex-beta-0.30.3.orig/src/texk/web2c/luatexdir/tex/texnodes.c 2008-11-28 10:24:58.000000000 +0000 >+++ luatex-beta-0.30.3/src/texk/web2c/luatexdir/tex/texnodes.c 2009-03-23 00:49:19.000000000 +0000 >@@ -28,7 +28,7 @@ > > volatile memory_word *varmem = NULL; > >-#ifndef NDEBUG >+#if 1 > char *varmem_sizes = NULL; > #endif > >@@ -1273,7 +1273,7 @@ > r = free_chain[s]; > if (r != null) { > free_chain[s] = vlink(r); >-#ifndef NDEBUG >+#if 1 > varmem_sizes[r] = s; > #endif > vlink(r) = null; >@@ -1303,7 +1303,7 @@ > type(p)); > return; > } >-#ifndef NDEBUG >+#if 1 > varmem_sizes[p] = 0; > #endif > if (s < MAX_CHAIN_SIZE) { >@@ -1325,14 +1325,14 @@ > { > register halfword p = q; > while (vlink(p) != null) { >-#ifndef NDEBUG >+#if 1 > varmem_sizes[p] = 0; > #endif > var_used -= s; > p = vlink(p); > } > var_used -= s; >-#ifndef NDEBUG >+#if 1 > varmem_sizes[p] = 0; > #endif > vlink(p) = free_chain[s]; >@@ -1352,7 +1352,7 @@ > } > memset((void *) (varmem), 0, t * sizeof(memory_word)); > >-#ifndef NDEBUG >+#if 1 > varmem_sizes = (char *) realloc(varmem_sizes, sizeof(char) * t); > if (varmem_sizes == NULL) { > overflow_string("node memory size", var_mem_max); >@@ -1371,7 +1371,7 @@ > dump_int(var_mem_max); > dump_int(rover); > dump_things(varmem[0], var_mem_max); >-#ifndef NDEBUG >+#if 1 > dump_things(varmem_sizes[0], var_mem_max); > #endif > dump_things(free_chain[0], MAX_CHAIN_SIZE); >@@ -1390,7 +1390,7 @@ > varmem = xmallocarray(memory_word, var_mem_max); > /*memset ((void *)varmem,0,x*sizeof(memory_word)); */ > undump_things(varmem[0], x); >-#ifndef NDEBUG >+#if 1 > varmem_sizes = xmallocarray(char, var_mem_max); > memset((void *) varmem_sizes, 0, var_mem_max * sizeof(char)); > undump_things(varmem_sizes[0], x); >@@ -1454,7 +1454,7 @@ > } > test_rovers("taken"); > assert(vlink(rover) < var_mem_max); >-#ifndef NDEBUG >+#if 1 > varmem_sizes[r] = (s > 127 ? 127 : s); > #endif > vlink(r) = null; >@@ -1495,7 +1495,7 @@ > } > memset((void *) (varmem + var_mem_max), 0, x * sizeof(memory_word)); > >-#ifndef NDEBUG >+#if 1 > varmem_sizes = > (char *) realloc(varmem_sizes, sizeof(char) * (var_mem_max + x)); > if (varmem_sizes == NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263275
:
185774
| 185927 |
189185