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 sanitizer/80110] [6/7 Regression] error: statement marked for throw, but doesn’t w/ -fsanitize=thread


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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 22 18:34:44 2017
New Revision: 246399

URL: https://gcc.gnu.org/viewcvs?rev=246399&root=gcc&view=rev
Log:
        PR sanitizer/80110
        * tsan.c: Include tree-eh.h.
        (instrument_builtin_call): Call maybe_clean_eh_stmt or
        maybe_clean_or_replace_eh_stmt where needed.
        (instrument_memory_accesses): Add cfg_changed argument.
        Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
        if it returned true.
        (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.

        * g++.dg/tsan/pr80110.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tsan/pr80110.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tsan.c

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