aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2023-09-27 03:21:43 +0000
committerSandra Loosemore <sandra@codesourcery.com>2023-09-27 15:28:59 +0000
commit0f205d089c27ac04fb983a1b2be38cae0d83e5c7 (patch)
tree1c6d4119319b78917260963351dcf1b7b93a47cd
parent2ecab2f32b9e9a75bf563f80752d5b44dcd26b98 (diff)
downloadgcc-0f205d089c27ac04fb983a1b2be38cae0d83e5c7.zip
gcc-0f205d089c27ac04fb983a1b2be38cae0d83e5c7.tar.gz
gcc-0f205d089c27ac04fb983a1b2be38cae0d83e5c7.tar.bz2
OpenMP: GIMPLE_OMP_STRUCTURED_BLOCK bug fix
This is a bug fix for commit a62c8324e7e31ae6614f549bdf9d8a653233f8fc, which added GIMPLE_OMP_STRUCTURED_BLOCK. I found a big switch statement over gimple codes that needs to know about this new node, but didn't. gcc/ChangeLog * gimple.cc (gimple_copy): Add case GIMPLE_OMP_STRUCTURED_BLOCK.
-rw-r--r--gcc/gimple.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple.cc b/gcc/gimple.cc
index d5a4f63..46f2878 100644
--- a/gcc/gimple.cc
+++ b/gcc/gimple.cc
@@ -2163,6 +2163,7 @@ gimple_copy (gimple *stmt)
case GIMPLE_OMP_SECTION:
case GIMPLE_OMP_MASTER:
+ case GIMPLE_OMP_STRUCTURED_BLOCK:
copy_omp_body:
new_seq = gimple_seq_copy (gimple_omp_body (stmt));
gimple_omp_set_body (copy, new_seq);