[PATCH v2, libbacktrace]: Compile with -funwind-tables

Ian Lance Taylor iant@google.com
Tue Oct 2 17:12:00 GMT 2012


On Tue, Oct 2, 2012 at 8:22 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>
> On a related issue, it looks to me that the compiler itself should be
> compiled with -funwind-tables, otherwise there are no backtraces
> generated, even if libbacktrace is linked in and operational. Again,
> x86_64-linux-gnu host defaults to this flag, but other hosts are left
> behind.

Compiling with C++ should always give us -funwind-tables.

If it doesn't for some reason, then I agree.  We might even want
-fasynchronous-unwind-tables for the compiler.

Ian



More information about the Gcc-patches mailing list