[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-08-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jakub Jelinek  ---
Fixed for 7.5.

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-08-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Fri Aug 30 12:47:28 2019
New Revision: 275161

URL: https://gcc.gnu.org/viewcvs?rev=275161=gcc=rev
Log:
Backported from mainline
2019-06-25  Jakub Jelinek  

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.

Added:
branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/pr90954.c
Modified:
branches/gcc-7-branch/gcc/c-family/ChangeLog
branches/gcc-7-branch/gcc/c-family/c-omp.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-08-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Thu Aug 29 15:03:31 2019
New Revision: 275043

URL: https://gcc.gnu.org/viewcvs?rev=275043=gcc=rev
Log:
Backported from mainline
2019-06-25  Jakub Jelinek  

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.

Added:
branches/gcc-8-branch/gcc/testsuite/c-c++-common/gomp/pr90954.c
Modified:
branches/gcc-8-branch/gcc/c-family/ChangeLog
branches/gcc-8-branch/gcc/c-family/c-omp.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-06-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Fri Jun 28 22:55:29 2019
New Revision: 272802

URL: https://gcc.gnu.org/viewcvs?rev=272802=gcc=rev
Log:
Backported from mainline
2019-06-25  Jakub Jelinek  

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.

Added:
branches/gcc-9-branch/gcc/testsuite/c-c++-common/gomp/pr90954.c
Modified:
branches/gcc-9-branch/gcc/c-family/ChangeLog
branches/gcc-9-branch/gcc/c-family/c-omp.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

--- Comment #3 from Jakub Jelinek  ---
Author: jakub
Date: Tue Jun 25 07:00:34 2019
New Revision: 272635

URL: https://gcc.gnu.org/viewcvs?rev=272635=gcc=rev
Log:
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.

Added:
trunk/gcc/testsuite/c-c++-common/gomp/pr90954.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-omp.c
trunk/gcc/testsuite/ChangeLog

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-06-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-06-24
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Jakub Jelinek  ---
Created attachment 46514
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46514=edit
gcc10-pr90954.patch

Untested fix.

[Bug sanitizer/90954] ICE: combining undefined behavior sanitizer with openmp

2019-06-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90954

--- Comment #1 from Martin Liška  ---
Confirmed, it's old, starting with GCC 4.9.0 where -fsanitize=undefined was
added. Can you please Jakub take a look?