mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
- 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 : revert1de025c13aLet'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() (fromc3e3a07ed4) - vla func params: use skip_or_save_block() and enable VT_LVAL (see313855c232) - 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user