diff options
author | Mark Wielaard <mark@klomp.org> | 2020-09-29 15:52:44 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-01-17 01:36:39 +0100 |
commit | 3804e937b0e252a7e42632fe6d9f898f1851a49c (patch) | |
tree | 6066e9e99c9f4a41d24ee69b257999ea2a0062b8 /gcc | |
parent | 59cf67d1cf77e9594e58fd2848ac94d505546546 (diff) | |
download | gcc-3804e937b0e252a7e42632fe6d9f898f1851a49c.zip gcc-3804e937b0e252a7e42632fe6d9f898f1851a49c.tar.gz gcc-3804e937b0e252a7e42632fe6d9f898f1851a49c.tar.bz2 |
Default to DWARF5
gcc/ChangeLog:
* common.opt (gdwarf-): Init(5).
* doc/invoke.texi (-gdwarf): Document default to 5.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/common.opt | 2 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 9edcb5f..bde1711 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -3179,7 +3179,7 @@ Common Driver JoinedOrMissing Negative(gdwarf-) Generate debug information in default version of DWARF format. gdwarf- -Common Driver Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs) +Common Driver Joined UInteger Var(dwarf_version) Init(5) Negative(gstabs) Generate debug information in DWARF v2 (or later) format. gdwarf32 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 3f30230..c290b6f 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -9606,14 +9606,15 @@ possible. @itemx -gdwarf-@var{version} @opindex gdwarf Produce debugging information in DWARF format (if that is supported). -The value of @var{version} may be either 2, 3, 4 or 5; the default version -for most targets is 4. DWARF Version 5 is only experimental. +The value of @var{version} may be either 2, 3, 4 or 5; the default +version for most targets is 5 (with the exception of VxWorks and +Darwin/Mac OS X which default to version 2). Note that with DWARF Version 2, some ports require and always use some non-conflicting DWARF 3 extensions in the unwind tables. Version 4 may require GDB 7.0 and @option{-fvar-tracking-assignments} -for maximum benefit. +for maximum benefit. Version 5 requires GDB 8.0 or higher. GCC no longer supports DWARF Version 1, which is substantially different than Version 2 and later. For historical reasons, some |