This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [www-docs] Add note to gcc-4.8/changes.html that DWARF4 is now the default.
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 24 Nov 2012 21:18:13 +0100 (CET)
- Subject: Re: [www-docs] Add note to gcc-4.8/changes.html that DWARF4 is now the default.
- References: <1353492827.2476.3.camel@springer.wildebeest.org>
On Wed, 21 Nov 2012, Mark Wielaard wrote:
> As mentioned in some bug reports it should be documented that DWARF4 is
> now the default for 4.8 when -g is used (and that one might need a newer
> version of debugger/profiling/tracing tools to use it). So I added the
> following:
I applied the following patch on top of yours, which adds
<code>...</code> markup for command-line options and a line
break.
Gerald
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.65
diff -u -3 -p -r1.65 changes.html
--- changes.html 23 Nov 2012 13:19:03 -0000 1.65
+++ changes.html 24 Nov 2012 19:43:40 -0000
@@ -54,13 +54,16 @@ by this change.</p>
<ul>
<li>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.
+ When <code>-g</code> is used on a platform that uses DWARF debugging
+ information, GCC will now default to
+ <code>-gdwarf-4 -fno-debug-types-section</code>.<br />
GDB 7.5, Valgrind 3.8.0 and elfutils 0.154 debug information consumers
support DWARF4 by default. Before GCC 4.8 the default version used
- was DWARF2. To make GCC 4.8 generate an older DWARF version use -g
- together with -gdwarf-2 or -gdwarf-3. The default for Darwin and
- VxWorks is still -gdwarf-2 -gstrict-dwarf.
+ was DWARF2. To make GCC 4.8 generate an older DWARF version use
+ <code>-g</code> together with <code>-gdwarf-2</code> or
+ <code>-gdwarf-3</code>.
+ The default for Darwin and VxWorks is still
+ <code>-gdwarf-2 -gstrict-dwarf</code>.
</li>
<li>A new general optimization level, <code>-Og</code>, has been
introduced. It addresses the need for fast compilation and a