[cfe-commits] PATCH: Better support for -g options in Clang driver

Rafael Espíndola rafael.espindola at gmail.com
Fri Jun 1 12:44:57 PDT 2012

> Oh, this one looks hacky :)
> According
> to http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options,
> to
> "Turn off generation of debug info, if leaving out this option generates it,
> or turn it on at level 2 otherwise."

I think it is only use when bootstrapping to make sure gcc produces
the some code with and without -g. They probably found it easier to
add the option and then just "CFLAGS += gtoogle" during stage2 instead
of making sure -g was only added during stage3.


More information about the cfe-commits mailing list