Skip to content

Commit ce2a61d

Browse files
committed
regression testing stabilization
caused by commit id 64552b3 spotted while compiling linux-tcc kerrnel (see Kbuild.sh) i386-tcc crashed with a core-dump reproducibly when compiling various linux-tcc kernel *.c sources bisecting identified a minor change to revert which reliably prevented any further segfault/crash of i386-tcc
1 parent 8babbf1 commit ce2a61d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎tccgen.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8555,8 +8555,6 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
85558555
/* XXX: DWIM logic: set section flags according to first usage */
85568556
if (!is_const) {
85578557
sec->sh_flags |= SHF_WRITE;
8558-
if (!has_init)
8559-
sec->sh_type = SHT_NOBITS;
85608558
}
85618559
}
85628560

0 commit comments

Comments
 (0)