[arch-dev-public] Default DEBUG_CFLAGS/CXXFLAGS provided with pacman 4.1

Allan McRae allan at archlinux.org
Tue Mar 26 22:49:09 EDT 2013


On 27/03/13 12:22, Jan Alexander Steffens wrote:
> With pacman 4.1 just around the corner, we'll be getting support for
> split debug information soon.
> 
> I would like to recommend "-gdwarf-4 -fvar-tracking-assignments" as
> our default debug flags in makepkg.conf. These flags should allow for
> better debug information in the presence of optimization (less <value
> optimized out>; see man gcc).

This is probably a better reference than the man page:
http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html

> Thoughts?

Note with gcc-4.8:

DWARF4 is now the default when generating DWARF debug information. When
-g is used on a platform that uses DWARF debugging information, GCC will
now default to -gdwarf-4 -fno-debug-types-section.




More information about the arch-dev-public mailing list