tree-optimization/106984 - tsan and COND_EXPR GIMPLE
authorRichard Biener <rguenther@suse.de>
Wed, 21 Sep 2022 09:30:57 +0000 (11:30 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 21 Sep 2022 09:32:29 +0000 (11:32 +0200)
commit41b5edaa5c03db36ad45a9cf524881de221a1812
treedae81ac6fea95d18b9c3d2d8e3bb35b6e18b0869
parent519196a27cf534e94f158733b25a4f9d10737031
tree-optimization/106984 - tsan and COND_EXPR GIMPLE

The following adjusts a missed spot in TSAN for the RHS COND_EXPR
GIMPLE IL rework.

PR tree-optimization/106984
* tsan.cc (instrument_builtin_call): Build the COND_EXPR condition in
a separate statement.

* gcc.dg/tsan/pr106984.c: New testcase.
gcc/testsuite/gcc.dg/tsan/pr106984.c [new file with mode: 0644]
gcc/tsan.cc