This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Tue, Oct 2, 2012 at 12:14 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Tue, Oct 02, 2012 at 10:12:38AM -0700, Ian Lance Taylor wrote:
>> 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.
>
> It doesn't give that, because the compiler is compiled with
> -fno-exceptions -fno-rtti.

I believe in the long term we would to drop either of those.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]