]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Avoid ICE with LTO and 'omp allocate'
authorTobias Burnus <tobias@codesourcery.com>
Fri, 27 Oct 2023 10:41:31 +0000 (12:41 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 27 Oct 2023 10:41:31 +0000 (12:41 +0200)
commitf0d163da425049242cc327d7036873040572836a
treeaa1d2212b92338d7444584d7bb5a6e7311c30284
parentb687bc195c09b1111e8b390d21433f77c4b73752
OpenMP: Avoid ICE with LTO and 'omp allocate'

gcc/ChangeLog:

* gimplify.cc (gimplify_bind_expr): Remove "omp allocate" attribute
to avoid that auxillary statement list reaches LTO.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/allocate-13a.f90: New test.

(cherry picked from commit af4bb221153359f5948da917d5ef2df738bb1e61)
gcc/ChangeLog.omp
gcc/gimplify.cc
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/gomp/allocate-13a.f90 [new file with mode: 0644]