1From 8cc165a2f7f945db36a18e462138553a000292cd Mon Sep 17 00:00:00 2001 2From: Boris Kolpackov <boris@codesynthesis.com> 3Date: Tue, 7 Nov 2017 16:57:35 +0200 4Subject: [PATCH] Fix GCC 8 adaptation to be compatible with previous 5 versions 6 7[Upstream: 006bbc5748a8197d7874550cc9186545f1c55ad8] 8Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> 9--- 10 odb/validator.cxx | 6 ++++++ 11 1 file changed, 6 insertions(+) 12 13diff --git a/odb/validator.cxx b/odb/validator.cxx 14index 196386c..f0edaaf 100644 15--- a/odb/validator.cxx 16+++ b/odb/validator.cxx 17@@ -1231,7 +1231,13 @@ namespace 18 compiler, get_identifier ("has_lt_operator"), false, false); 19 20 if (has_lt_operator_ != error_mark_node) 21+ { 22+#if BUILDING_GCC_MAJOR >= 8 23 has_lt_operator_ = OVL_FIRST (has_lt_operator_); 24+#else 25+ has_lt_operator_ = OVL_CURRENT (has_lt_operator_); 26+#endif 27+ } 28 else 29 { 30 os << unit.file () << ": error: unable to resolve has_lt_operator " 31-- 322.25.0 33 34