summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/nasm.c4
-rw-r--r--asm/segalloc.c15
2 files changed, 0 insertions, 19 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index b647556b..4e922b4a 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -1390,9 +1390,6 @@ static void assemble_file(const char *fname, StrList **depend_ptr)
break;
}
- /* Any segment numbers allocated before this point are permanent */
- seg_alloc_setup_done();
-
prev_offset_changed = nasm_limit[LIMIT_PASSES];
for (passn = 1; pass0 <= 2; passn++) {
pass1 = pass0 == 2 ? 2 : 1; /* 1, 1, 1, ..., 1, 2 */
@@ -1409,7 +1406,6 @@ static void assemble_file(const char *fname, StrList **depend_ptr)
}
in_absolute = false;
global_offset_changed = 0; /* set by redefine_label */
- seg_alloc_reset();
if (passn > 1) {
saa_rewind(forwrefs);
forwref = saa_rstruct(forwrefs);
diff --git a/asm/segalloc.c b/asm/segalloc.c
index 56544b42..6d7a4202 100644
--- a/asm/segalloc.c
+++ b/asm/segalloc.c
@@ -41,21 +41,6 @@
#include "insns.h"
static int32_t next_seg = 2;
-static int32_t seg_start = 2;
-
-void seg_alloc_reset(void)
-{
- next_seg = seg_start;
-}
-
-/*
- * This gets called after special segments are allocated, typically by
- * backends; this only gets done once.
- */
-void seg_alloc_setup_done(void)
-{
- seg_start = next_seg;
-}
int32_t seg_alloc(void)
{