This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Remove -ffunction-sections debugging warning (PR libstdc++/35597)
- From: Daniel Jacobowitz <drow at false dot org>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Mar 2008 22:08:28 -0400
- Subject: Re: [PATCH] Remove -ffunction-sections debugging warning (PR libstdc++/35597)
- References: <200803161645.m2GGjdRW034146@makai.watson.ibm.com>
On Sun, Mar 16, 2008 at 12:45:39PM -0400, David Edelsohn wrote:
> Many GCC options, such as optimization, may affect debugging, but
> GCC does not warn about them. The warning selectively has been disabled
> for almost all object file formats.
I think most optimizations affect debugging less seriously, but I
don't know exactly what the effects are for this. Does anyone?
I suspect it is of the general nature "debugging information is
completely useless", and I suspect that it's primarily talking about
COFF/PE. If it's really bad somewhere, maybe we should replace the
whitelist with a blacklist.