Debugging ICE in GCC

Manfred Schwarb manfred99@gmx.ch
Sun May 31 13:45:34 GMT 2020


Am 31.05.20 um 01:46 schrieb Manfred Schwarb:
> Am 30.05.20 um 09:39 schrieb Jonathan Wakely:
>> On Sat, 30 May 2020 at 02:01, Manfred Schwarb <manfred99@gmx.ch> wrote:

>>>
>>> I built GCC with
>>> #> ../configure --enable-checking=yes,extra i686-linux
>>> #> make BOOT_CFLAGS="-O2 -ggdb" bootstrap2-lean
>>>

OK, I found it. I was perhaps a bit too clever: while "bootstrap2"
really speeds up things a lot, it seems to hamper debugability.
So if I bootstrap with "bootstrap", my backtraces show up as they should.


BTW: is bootstrapping with BOOT_CFLAGS="-Og -g" meant to work?
With "-Og" I get multiple errors of the category "-Werror=maybe-uninitialized"
and "-Werror=format-whatever" and bootstrap fails.

I can bootstrap with "-O0" and "-O2" though.

Cheers,
Manfred


More information about the Gcc-help mailing list