Bug#960248: gdc-10 -flto -fno-weak crashes on some codes
Package: gdc-10
Version: 10.1.0-1
Severity: normal
This is for gdc-10. I tested it with gdc-9 and it works without a crash.
$ cat bench.d
// =============
import std.conv : to;
int main(string[] args) {
return cast(int)to!float(args[1]);
}
// ===========
$
$ gdc-10 -flto -O2 -fno-weak -o bench_gdc10 bench.d
during IPA pass: cp
lto1: internal compiler error: in possibly_call_in_translation_unit_p, at cgraph.c:4092
0x7f0422eade0a __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
lto-wrapper: fatal error: gdc-10 returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-3-amd64 (SMP w/32 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gdc-10 depends on:
ii g++-10 10.1.0-1
ii gcc-10-base 10.1.0-1
ii libc6 2.30-7
ii libgmp10 2:6.2.0+dfsg-4
ii libgphobos-10-dev 10.1.0-1
ii libisl22 0.22.1-1
ii libmpc3 1.1.0-1
ii libmpfr6 4.0.2-1
ii libzstd1 1.4.4+dfsg-3
ii zlib1g 1:1.2.11.dfsg-2
gdc-10 recommends no packages.
gdc-10 suggests no packages.
-- no debconf information
Reply to: