This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81875] omp for loop optimized away


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]