Fix condition folding in c_parser_omp_for_loop
authorTom de Vries <tom@codesourcery.com>
Sat, 16 Sep 2017 13:11:43 +0000 (13:11 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 16 Sep 2017 13:11:43 +0000 (13:11 +0000)
commitebc6a85e3e8dc9a3e02301a6f9e2216781af565a
tree888bb213198ee08c5156289bb7ed91cf22bbfbcc
parenta1b99efd4b868cfb5583454cd3d70d54fdafbc33
Fix condition folding in c_parser_omp_for_loop

2017-09-16  Tom de Vries  <tom@codesourcery.com>

PR c/81875
* c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
cond itself.

* testsuite/libgomp.c-c++-common/pr81875.c: New test.

From-SVN: r252873
gcc/c/ChangeLog
gcc/c/c-parser.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c-c++-common/pr81875.c [new file with mode: 0644]