This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45643] New: Enhancement to disable debugging symbols with pragma/attributes
- From: "steven at ngls dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2010 18:00:54 -0000
- Subject: [Bug c/45643] New: Enhancement to disable debugging symbols with pragma/attributes
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
"pragma GCC optimize" or function __attribute__'s can be used
to request specific optimization levels or "-f" type command
line arguments.
I would like to be able to turn off debugging symbols
as well. The equivalent of the "-g0" command line option.
It might be useful to be able to selectively turn them on as well?
BTW, I am using boost's spirit parsing library. Debugging
symbols are not really helpful and can horribly bloat the
object file and executable size (up to 100 times larger),
and of course slow down compile and link times.
--
Summary: Enhancement to disable debugging symbols with
pragma/attributes
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: steven at ngls dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45643