File: GCC_8_adaptation.patch

package info (click to toggle)
odb 2.4.0-17
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 11,868 kB
  • sloc: cpp: 41,219; sh: 11,329; makefile: 38
file content (30 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 006bbc5748a8197d7874550cc9186545f1c55ad8 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Tue, 7 Nov 2017 16:57:35 +0200
Subject: Fix GCC 8 adaptation to be compatible with previous versions

---
 odb/validator.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/odb/validator.cxx b/odb/validator.cxx
index 75757cd..9dcdabf 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -1231,7 +1231,13 @@ namespace
             compiler, get_identifier ("has_lt_operator"), false, false);
 
           if (has_lt_operator_ != error_mark_node)
+          {
+#if BUILDING_GCC_MAJOR >= 8
             has_lt_operator_ = OVL_FIRST (has_lt_operator_);
+#else
+            has_lt_operator_ = OVL_CURRENT (has_lt_operator_);
+#endif
+          }
           else
           {
             os << unit.file () << ": error: unable to resolve has_lt_operator "
-- 
cgit v1.1