2022-12-02 09:29:05 +01:00
|
|
|
diff --git a/gcc/defaults.h b/gcc/defaults.h
|
|
|
|
index 376687d91b1..613003eb14f 100644
|
|
|
|
--- a/gcc/defaults.h
|
|
|
|
+++ b/gcc/defaults.h
|
|
|
|
@@ -1444,7 +1444,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
|
/* When generating dwarf info, the default standard version we'll honor
|
|
|
|
and advertise in absence of -gdwarf-<N> on the command line. */
|
|
|
|
#ifndef DWARF_VERSION_DEFAULT
|
|
|
|
-#define DWARF_VERSION_DEFAULT 5
|
|
|
|
+#define DWARF_VERSION_DEFAULT 4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef USED_FOR_TARGET
|
|
|
|
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
|
2023-02-27 15:05:37 +01:00
|
|
|
index 04ca9d9b02b..944019edbc1 100644
|
2022-12-02 09:29:05 +01:00
|
|
|
--- a/gcc/doc/invoke.texi
|
|
|
|
+++ b/gcc/doc/invoke.texi
|
2023-02-27 15:05:37 +01:00
|
|
|
@@ -11255,9 +11255,8 @@ possible.
|
|
|
|
@itemx -gdwarf-@var{version}
|
2022-12-02 09:29:05 +01:00
|
|
|
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 5 (with the exception of VxWorks, TPF and
|
|
|
|
-Darwin/Mac OS X, which default to version 2, and AIX, which defaults
|
|
|
|
-to version 4).
|
|
|
|
+version for most targets is 4 (with the exception of VxWorks, TPF 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.
|