aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-02-12 15:46:30 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2014-02-12 15:46:30 +0100
commit88ac13da93a2c1acf2e11a8ad5f33377d8014c01 (patch)
treec3cd305fe391b2bab585d10fda9bcd8a019a2a9f /gcc/omp-low.c
parentbae729a29f4d0a06380db341b7cf6146316aff67 (diff)
downloadgcc-88ac13da93a2c1acf2e11a8ad5f33377d8014c01.zip
gcc-88ac13da93a2c1acf2e11a8ad5f33377d8014c01.tar.gz
gcc-88ac13da93a2c1acf2e11a8ad5f33377d8014c01.tar.bz2
Refactor common code into new maybe_fold_stmt function.
gcc/ * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move common code... (maybe_fold_stmt): ... into this new function. * omp-low.c (lower_omp): Update comment. From-SVN: r207724
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index e7fc730..91c8656 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -10134,9 +10134,8 @@ lower_omp (gimple_seq *body, omp_context *ctx)
gimple_stmt_iterator gsi;
for (gsi = gsi_start (*body); !gsi_end_p (gsi); gsi_next (&gsi))
lower_omp_1 (&gsi, ctx);
- /* Inside target region we haven't called fold_stmt during gimplification,
- because it can break code by adding decl references that weren't in the
- source. Call fold_stmt now. */
+ /* During gimplification, we have not always invoked fold_stmt
+ (gimplify.c:maybe_fold_stmt); call it now. */
if (target_nesting_level)
for (gsi = gsi_start (*body); !gsi_end_p (gsi); gsi_next (&gsi))
fold_stmt (&gsi);