re PR sanitizer/90954 (ICE: combining undefined behavior sanitizer with openmp)
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Jun 2019 07:00:34 +0000 (09:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Jun 2019 07:00:34 +0000 (09:00 +0200)
commit361af3e4194ce1d9620e2c3506115bba9ef18efa
treecac48b84b635c08d6384529a3016fa9e781ee107
parent32bab8b6ad0a9079ae306eb7c6bbfad0d749623f
re PR sanitizer/90954 (ICE: combining undefined behavior sanitizer with openmp)

PR sanitizer/90954
* c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
to SAVE_EXPR in first operand of a COMPOUND_EXPR.

* c-c++-common/gomp/pr90954.c: New test.

From-SVN: r272635
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr90954.c [new file with mode: 0644]