- tcc -vv: show cross-libtcc1.a correctly (and more)

(As long as it is in the default install location and was not
moved elsewhere into the library search path manually)

Also:
- libtcc.c:
  - error1(): show correct line with "In file included from ..."
  - support "tcc -Bxxx -vv"
  - tcc_new()/tcc_compile(): Don't create elf sections for tcc -E
- tccdbg.c:
  - tcc -E -g : revert 1de025c13a
    Let's keep things simple, everybody understands 'do_debug'
    and dState is set by tcov too (but no debug sections).
- tccgen.c:
  - avoid the extra parameter for gind()
    (from c3e3a07ed4)
  - vla func params: use skip_or_save_block() and enable
    VT_LVAL (see 313855c232)
  - cleanup nocode_wanted a bit
- tccelf.c:
  - tccelf_end_file(): don't try to translate zero-sym relocs
    (seems to happen with asm "jmp 0x1000")
  - version_add(): do not make "ld-linux.so" DT_NEEDED
This commit is contained in:
grischka
2022-08-20 12:58:56 +02:00
parent 414c22c67b
commit e41730f11a
9 changed files with 137 additions and 111 deletions

View File

@@ -3032,9 +3032,9 @@ void c99_vla_test_3d(int s, int arr[2][3][s])
printf ("%d\n", arr[1][2][3]);
}
void c99_vla_test_3e(int s, int arr[][3][s])
void c99_vla_test_3e(int s, int arr[][3][--s])
{
printf ("%d\n", arr[1][2][3]);
printf ("%d %d\n", s, arr[1][2][3]);
}
void c99_vla_test_3(void)
@@ -3042,12 +3042,12 @@ void c99_vla_test_3(void)
int a[2][3][4];
memset (a, 0, sizeof(a));
a[1][2][3] = 2;
a[1][2][3] = 123;
c99_vla_test_3a(a);
c99_vla_test_3b(2, a);
c99_vla_test_3c(3, a);
c99_vla_test_3d(4, a);
c99_vla_test_3e(4, a);
c99_vla_test_3e(5, a);
}
void c99_vla_test(void)