aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2020-11-27 11:54:50 +0100
committerThomas Schwinge <thomas@codesourcery.com>2020-11-27 14:38:15 +0100
commit4b5726fda653d11f882fb9a112e4cffa12f7ed61 (patch)
tree552e90940bde5f9f48f1a2ac848ae66abe13b242 /libcpp/directives.c
parent4a7c7999086756b9d630ed6036eb7fdce69bb5cd (diff)
downloadgcc-4b5726fda653d11f882fb9a112e4cffa12f7ed61.zip
gcc-4b5726fda653d11f882fb9a112e4cffa12f7ed61.tar.gz
gcc-4b5726fda653d11f882fb9a112e4cffa12f7ed61.tar.bz2
In 'gcc/omp-oacc-kernels-decompose.cc:flatten_binds', don't choke on empty GIMPLE sequence
Also, instead of just examining the first statement of inner 'GIMPLE_BIND' (via 'inner_sequence' being a 'typedef gimple *gimple_seq'), in fact examine all statements contained therein, which I suppose must've been the intention here. This "fixes" the testcase 'c-c++-common/goacc/kernels-decompose-ice-2.c' (which now runs into the same ICE as 'c-c++-common/goacc/kernels-decompose-ice-1.c', etc.). gcc/ * omp-oacc-kernels-decompose.cc (flatten_binds): Don't choke on empty GIMPLE sequence, and examine all statements contained in inner 'GIMPLE_BIND'. gcc/testsuite/ * c-c++-common/goacc/kernels-decompose-ice-1.c: Adjust. * c-c++-common/goacc/kernels-decompose-ice-2.c: Likewise.
Diffstat (limited to 'libcpp/directives.c')
0 files changed, 0 insertions, 0 deletions