1
0
Files
gcc-14/debian/patches/dwarf5-revert-default.diff
Konstantin Demin c2c1923c7b initial import from Debian
version: 14.3.0-5
commit: bee30ab0fff2fd6af94c62376c8aa4221bb831e0
2025-08-11 15:00:09 +03:00

25 lines
886 B
Diff

# DP: Don't turn on DWARF 5 by default, where GCC 11 is not the default.
--- a/src/gcc/common.opt
+++ b/src/gcc/common.opt
@@ -3353,7 +3353,7 @@ Common Driver JoinedOrMissing RejectNega
Generate debug information in default version of DWARF format.
gdwarf-
-Common Driver Joined UInteger Var(dwarf_version) Init(DWARF_VERSION_DEFAULT) RejectNegative
+Common Driver Joined UInteger Var(dwarf_version) Init(4) RejectNegative
Generate debug information in DWARF v2 (or later) format.
gdwarf32
--- a/src/gcc/defaults.h
+++ b/src/gcc/defaults.h
@@ -1444,7 +1444,7 @@ see the files COPYING3 and COPYING.RUNTI
/* 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