Summary: | sys-devel/gcc ICE m68k with -fzero-call-used-regs=all - internal compiler error: in change_address_1, at emit-rtl.cc:2287 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | immolo <immoloism> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | m68k |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | m68k | ||
OS: | Linux | ||
See Also: |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113086 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | openssh-9.6_p1 build.log |
Description
immolo
2023-12-20 04:17:47 UTC
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b22d07f89b16ac3400e45077702ac4c4492e5a4 commit 0b22d07f89b16ac3400e45077702ac4c4492e5a4 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-20 07:12:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-20 07:14:16 +0000 net-misc/openssh: disable problematic -fzero-call-used-regs=* --with-hardening adds the following in addition to flags we already set in our toolchain: * -ftrapv (which is broken with GCC anyway), * -ftrivial-auto-var-init=zero (which is nice, but not the end of the world to not have) * -fzero-call-used-regs=used (history of miscompilations with Clang (bug #872548), ICEs on m68k (bug #920350, gcc PR113086, gcc PR104820, gcc PR104817, gcc PR110934)). Furthermore, OSSH_CHECK_CFLAG_COMPILE does not use AC_CACHE_CHECK, so we cannot just disable -fzero-call-used-regs=used. Therefore, just pass --without-hardening, given it doesn't negate our already hardened toolchain defaults, and avoids adding flags which are known-broken in both Clang and GCC and haven't been proven reliable. Bug: https://bugs.gentoo.org/872548 Bug: https://bugs.gentoo.org/920350 Bug: https://bugs.gentoo.org/920292 Bug: https://gcc.gnu.org/PR113086 Bug: https://gcc.gnu.org/PR104820 Bug: https://gcc.gnu.org/PR104817 Bug: https://gcc.gnu.org/PR110934 Signed-off-by: Sam James <sam@gentoo.org> net-misc/openssh/openssh-9.6_p1-r1.ebuild | 396 ++++++++++++++++++++++++++++++ 1 file changed, 396 insertions(+) Fix is https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=f1dea0fed946ba40bd6bbe40ad1386aa9303418c. We can probably backport it if it applies cleanly to 13 & works. Try it on 13? |