]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid ICE when passing VLA vector to accelerator.
authorPrathamesh Kulkarni <prathameshk@nvidia.com>
Thu, 5 Sep 2024 13:22:53 +0000 (18:52 +0530)
committerPrathamesh Kulkarni <prathameshk@nvidia.com>
Thu, 5 Sep 2024 13:22:53 +0000 (18:52 +0530)
commitae88e91938af364ef5613e5461b12b484b578bc5
treeeae487ee33f8194b62861b9f69ac1d5096fca0fc
parent8f5aade15e595b288a2c4ec60ddde8dc80df1a80
Avoid ICE when passing VLA vector to accelerator.

gcc/ChangeLog:
* gimplify.cc (omp_add_variable): Check if decl size is not poly_int_tree_p.
(gimplify_adjust_omp_clauses): Likewise.
* omp-low.cc (scan_sharing_clauses): Likewise.
(lower_omp_target): Likewise.

Signed-off-by: Prathamesh Kulkarni <prathameshk@nvidia.com>
gcc/gimplify.cc
gcc/omp-low.cc