https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69539
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- 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: internal compiler error: in expand_UBSAN_NULL, at internal-fn.c:204 0xa1a4bd expand_UBSAN_NULL /home/marek/src/gcc/gcc/internal-fn.c:204 0xa22ce3 expand_internal_call(internal_fn, gcall*) /home/marek/src/gcc/gcc/internal-fn.c:2405 0xa22d0e expand_internal_call(gcall*) /home/marek/src/gcc/gcc/internal-fn.c:2413 0x786336 expand_call_stmt /home/marek/src/gcc/gcc/cfgexpand.c:2579 0x789cf8 expand_gimple_stmt_1 /home/marek/src/gcc/gcc/cfgexpand.c:3580 0x78a3ee expand_gimple_stmt /home/marek/src/gcc/gcc/cfgexpand.c:3746 0x791c67 expand_gimple_basic_block /home/marek/src/gcc/gcc/cfgexpand.c:5753 0x7937e3 execute /home/marek/src/gcc/gcc/cfgexpand.c:6367 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: /home/marek/x/trunk/gcc/xgcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status