I did look at gcc man page again and now understand a bit better.
I bulid with -O2 so -g should be enough to get useful symbols in the logfiles.
]]>My /etc/makepkg.conf had "-g -fvar-tracking-assignments" which was default for pacman 6.0.1-3 .
The symbols that added helped a lot with solving bug reports for trunk versions of software I use (only complaint I sometimes got was having too much debug syymbols in crash logs ).
I don't compile anything with clang, so the fact that clang doesn't support "-fvar-tracking-assignments" doesn't bother me for my personal usecase ..
In pacman 6.0.1-4 "-fvar-tracking-assignments" was removed from /etc/makepkg-conf .
I looked at man gcc and found there are lots of debugging options.
My software troubleshooting capabilities are mostly limited to describing, bisecting , testing and such but understanding crash logs or core dumps is not my forte.
For now I'm sticking to "-fvar-tracking-assignments" , but I'd like opinions from other forum users what debug flags they think are useful.
]]>