summaryrefslogtreecommitdiffstats
path: root/debian/patches/dwarf5-revert-default.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
commit3f472a4e5ca21e3ddb13737473e636b2b11a408a (patch)
tree7db1ab317884b9f6e04b6e13737c1679879cb97a /debian/patches/dwarf5-revert-default.diff
parentAdding upstream version 13.2.0. (diff)
downloadgcc-13-3f472a4e5ca21e3ddb13737473e636b2b11a408a.tar.xz
gcc-13-3f472a4e5ca21e3ddb13737473e636b2b11a408a.zip
Adding debian version 13.2.0-10.debian/13.2.0-10debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/dwarf5-revert-default.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/dwarf5-revert-default.diff b/debian/patches/dwarf5-revert-default.diff
new file mode 100644
index 0000000..5d596c2
--- /dev/null
+++ b/debian/patches/dwarf5-revert-default.diff
@@ -0,0 +1,24 @@
+# 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