News for hackers. Stuff that matters.
Re:LLVM 11.0 by DoofusOfDeath on Monday October 12, 2020 @04:20PM (#24759012)
I don't recall. Sometimes doing a full rebuilt takes more a while, so my process goes something like this:

1) build with "-O0 -ggdb"

2) In a debug session, notice that a variable I want to inspect has supposedly been optimized away. Get extremely frustrated.

3) Rebuild with every debug-friendly flag I can conceive of "-O0 -ggdb -fno-inline -gdwarf-4 -fno-omit-frame-pointer ..."

4) IIRC, step 3 usually (but not always?) addresses the issue.

But long story short, I don't think I've ever pinned down the minimal requirements for avoiding the issue. Usually when I encounter this, I have bigger issues to deal with.

Re:LLVM 11.0 by slavik81 on Monday October 12, 2020 @09:26PM (#24761384)
What difference does -ggdb make vs -g? I see it does extra 'tuning' of the debug output for GDB [1], but it's unclear what effect that might actually have.

[1]: https://clang.llvm.org/docs/UsersManual.html#controlling-deb...

Re:LLVM 11.0 by saagarjha on Monday October 12, 2020 @07:36PM (#24760733)
Does "-g" and no optimization flags not work?