On Tue, Jun 17, 2014 at 4:08 AM, DJ Delorie <d...@redhat.com> wrote: > >> Looks ok to me, but can you add a testcase please? > > I have a testcase, but if -flto the testcase doesn't include *any* > definition of the test function, just all the LTO data. Is this > normal?
Without -ffat-lto-objects yes, this is normal. If you are trying to do a scan-assembler or so then this will be difficult with LTO. If LTO is not necessary to trigger the bug and you just want to use the torture I suggest to dg-skip-if -flto. >> Also check if 4.9 is affected. > > It is... same fix works, though. Thanks, Richard.