Package: tcc Version: 0.9.27~git20140923.9d7fb33-3 Severity: important Dear Maintainer,
I'm testing tcc to compile the GMP library (https://gmplib.org/) and unfortunately I have to report miscompilation. The whole library is quite a complex piece of code, so I tried to obtain a minimal chunk that gets miscompiled by the currently packaged tcc. The simple program below, when executed with tcc gives a "Bus Error". $ cat test-tcc.c #include <stdio.h> int main (int argc, char **argv) { unsigned ip[1 ? 1 : 1]; do {} while (0); ip[0] = 1; if (ip[0]) { do { do {} while (0); ip[0] -= 0; } while (0); putchar('\n'); } return 0; } $ tcc -run test-tcc.c Errore di bus If I downgrade to tcc_0.9.26-1, the program compiles and runs flawlessly. Best regards, m -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages tcc depends on: ii libc6 2.19-18 Versions of packages tcc recommends: ii libc6-dev [libc-dev] 2.19-18 tcc suggests no packages. -- no debconf information -- http://bodrato.it/papers/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org