Hi Jeff: Thanks, committed as r274631.
On Fri, Aug 16, 2019 at 11:51 PM Jeff Law <l...@redhat.com> wrote: > > On 8/15/19 8:45 PM, Kito Cheng wrote: > > - -fsanitize=kernel-address will call targetm.asan_shadow_offset () > > at asan_shadow_offset, so it will crash if TARGET_ASAN_SHADOW_OFFSET > > is not implemented, that's mean -fsanitize=kernel-address is not > > supported for target without TARGET_ASAN_SHADOW_OFFSET implementation. > > > > gcc/ChangeLog: > > > > PR target/91441 > > * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is > > implemented for -fsanitize=kernel-address, and merge check logic > > with -fsanitize=address. > > > > testsuite/ChangeLog: > > > > PR target/91441 > > * gcc.target/riscv/pr91441.c: New. > OK > jeff