diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2020-11-27 11:54:50 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-11-27 14:38:15 +0100 |
commit | 4b5726fda653d11f882fb9a112e4cffa12f7ed61 (patch) | |
tree | 552e90940bde5f9f48f1a2ac848ae66abe13b242 /libcpp/directives.c | |
parent | 4a7c7999086756b9d630ed6036eb7fdce69bb5cd (diff) | |
download | gcc-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