https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #8 from Jakub Jelinek ---
I think this ought to be fixed by r243514, i.e. PR78708.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #7 from Jakub Jelinek ---
Seems to be related to PR69254, either we should force in some flag_sanitize
flag whenever we stream in IFN_UBSAN_* builtins (perhaps depending on which
option that was), or throw away the IFN_UBSAN_* calls i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #6 from Martin Liška ---
There's a minimal test-case:
int fn1 (void) { return *(volatile int *) fn1; }
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #5 from Martin Liška ---
I can also confirm the ICE on 4.9.0+, as well as on all active branches.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #4 from Marek Polacek ---
That's weird, I can still reproduce:
$ xgcc -flto -fsanitize=null -c -o test test.c
$ xgcc -flto test
include/linux/compiler.h: In function ‘__read_once_size_nocheck’:
include/linux/compiler.h:235:44: inter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #3 from Jakub Jelinek ---
I can't reproduce this, either with 6.x nor trunk, with -O0 I'm getting various
error: call to ‘__compiletime_assert_149’ declared with attribute error:
BUILD_BUG_ON failed: MODULES_VADDR < __START_KERNEL_map
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
Richard Biener changed:
What|Removed |Added
Target Milestone|4.9.4 |---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #2 from Marek Polacek ---
We have an unexpanded call to internal function because we've never gotten to
expanding it in the sanopt pass.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|