0008-Fix-GCC-8-adaptation-to-be-compatible-with-previous-.patch 1022 B

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