[Bug sanitizer/96307] [10/11 Regression] ICE in sanopt on riscv64 since r11-2283-g2ca1b6d009b194286c3ec91f9c51cc6b0a475458

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 6 03:23:15 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96307

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:65e82636bcdb72a878c2e53943e71b15dd9fb22d

commit r11-4762-g65e82636bcdb72a878c2e53943e71b15dd9fb22d
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Mon Oct 5 14:01:04 2020 +0800

    PR target/96307: Fix KASAN option checking.

     - Disable kasan if target is unsupported and -fasan-shadow-offset= is not
       given, no matter `--param asan-stack=1` is given or not.

     - Moving KASAN option checking testcase to gcc.dg, those testcase could be
       useful for all other target which not support asan.

     - Verifed on riscv and x86.

    gcc/ChangeLog:

            PR target/96307
            * toplev.c (process_options): Remove param_asan_stack checking for
kasan
            option checking.

    gcc/testsuite/ChangeLog:

            PR target/96307
            * gcc.dg/pr96307.c: New.
            * gcc.target/riscv/pr96260.c: Move this test case from here to ...
            * gcc.dg/pr96260.c: ... here.
            * gcc.target/riscv/pr91441.c: Move this test case from here to ...
            * gcc.dg/pr91441.c: ... here.
            * lib/target-supports.exp
(check_effective_target_no_fsanitize_address):
            New proc.


More information about the Gcc-bugs mailing list