This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]