https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54519
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> --- On Sun, 10 Jul 2016, nightstrike at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54519 > > nightstrike <nightstrike at gmail dot com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |nightstrike at gmail dot com > > --- Comment #6 from nightstrike <nightstrike at gmail dot com> --- > This fails on gcc 6.1.0: > > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto -flto-partition=none line 20 y > == > 25 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto -flto-partition=none line 20 z > == > 6 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto -flto-partition=none line 23 y > == > 117 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto -flto-partition=none line 23 z > == > 8 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto line 20 y == 25 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto line 20 z == 6 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto line 23 y == 117 > FAIL: gcc.dg/guality/pr54519-1.c -O2 -flto line 23 z == 8 At least with LTO gdb doesn't really grok then inline stack. Without LTO it sees fn2 twice while with LTO we see fn2.part0