This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81875] omp for loop optimized away
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 10 Dec 2017 21:37:39 +0000
- Subject: [Bug c/81875] omp for loop optimized away
- Auto-submitted: auto-generated
- References: <bug-81875-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81875
--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Sun Dec 10 21:37:08 2017
New Revision: 255532
URL: https://gcc.gnu.org/viewcvs?rev=255532&root=gcc&view=rev
Log:
Backport "Fix condition folding in c_parser_omp_for_loop"
2017-12-10 Tom de Vries <tom@codesourcery.com>
backport from trunk:
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/pr81875.c: New test.
Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr81875.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-parser.c
branches/gcc-6-branch/libgomp/ChangeLog