This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/77624] [5/6/7 Regression] ICE on x86_64-linux-gnu (internal compiler error: in fold_builtin_atomic_always_lock_free, at builtins.c:5583)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Sep 2016 13:56:53 +0000
- Subject: [Bug middle-end/77624] [5/6/7 Regression] ICE on x86_64-linux-gnu (internal compiler error: in fold_builtin_atomic_always_lock_free, at builtins.c:5583)
- Auto-submitted: auto-generated
- References: <bug-77624-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77624
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 39647
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39647&action=edit
gcc7-pr77624-alt.patch
Alternate untested patch. The problem right now is that because these
intrinsics are prototyped, whatever type user used is implicitly cast to const
volatile *, and because of the implicit cast it is hard to find out what is
implicit and what is explicit conversion. This patch attempts to make the arg
non-prototyped, and only checked afterwards. In the quick testing, it seems to
work for C, but not for C++, which ignores changes to argarray arguments.