https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80687
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2017-05-09 Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org Target Milestone|--- |8.0 Summary|VLA usage in libgfortran; |[8 Regression] VLA usage in |nvptx target: "sorry, |libgfortran; nvptx target: |unimplemented: target |"sorry, unimplemented: |cannot support alloca" |target cannot support | |alloca" Ever confirmed|0 |1 --- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- So we need to make this patch conditional on the compiler supporting VLAs. Otherwise, I think we should just go for malloc/free (to reduce the stack usage anyway). Or would this also be problematic on nvptx? I'll look at this tonight.