On Sat, Feb 9, 2019 at 2:59 PM Tom de Vries <tdevr...@suse.de> wrote:
>
> On 09-02-19 22:49, Ian Lance Taylor wrote:
> > On Fri, Feb 8, 2019 at 1:42 AM Tom de Vries <tdevr...@suse.de> wrote:
> >>
> >> Add libbacktrace test-case using -flto.
> >>
> >> OK for trunk?
> >>
> >> Thanks,
> >> - Tom
> >>
> >> [libbacktrace] Add btest_lto
> >>
> >> 2019-02-08  Tom de Vries  <tdevr...@suse.de>
> >>
> >>         * Makefile.am (BUILDTESTS): Add btest_lto.
> >>         * Makefile.in: Regenerate.
> >>         * btest.c (test1, f2, f3, test3, f22, f23): Declare with
> >>         __attribute__((noclone)).
> >
> > This seems more or less fine, but are there any platforms where -flto
> > doesn't work?  The docs say "Link-time optimization does not work well
> > with generation of debugging information on systems other than those
> > using a combination of ELF and DWARF."
>
> So, we could require HAVE_ELF for this testcase.

Works for me.  OK with that change.  Thanks.

Ian

Reply via email to