Hi! This testcase has been already fixed on the trunk with r257620 aka PR84305 fix. I've tested and committed as obvious following testcase so that PR80778 can be closed.
2018-03-23 Jakub Jelinek <ja...@redhat.com> PR c/80778 * gcc.dg/lto/pr80778_0.c: New test. --- gcc/testsuite/gcc.dg/lto/pr80778_0.c.jj 2018-03-23 11:42:03.210732409 +0100 +++ gcc/testsuite/gcc.dg/lto/pr80778_0.c 2018-03-23 11:41:58.087734143 +0100 @@ -0,0 +1,5 @@ +/* PR c/80778 */ +/* { dg-lto-do link } */ +/* { dg-require-effective-target alloca } */ + +#include "../auto-type-1.c" Jakub