]> gcc.gnu.org Git - gcc.git/commitdiff
OpenMP: GIMPLE_OMP_STRUCTURED_BLOCK bug fix
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 27 Sep 2023 03:21:43 +0000 (03:21 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Wed, 27 Sep 2023 15:28:59 +0000 (15:28 +0000)
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.

gcc/gimple.cc

index d5a4f634416c1d0984e1e3afd62997e5ff1ab78c..46f28784e0721e8e34f71d62d7201a9be6dc9903 100644 (file)
@@ -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);
This page took 0.071901 seconds and 5 git commands to generate.