[all-commits] [llvm/llvm-project] 2716c6: [flang] Tweak the conditions for the GCC 7/libstdc...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Wed Jun 23 13:20:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2716c6faa46f346b66fe7af5219d611b369d42e9
      https://github.com/llvm/llvm-project/commit/2716c6faa46f346b66fe7af5219d611b369d42e9
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M flang/include/flang/Evaluate/type.h

  Log Message:
  -----------
  [flang] Tweak the conditions for the GCC 7/libstdc++ workaround

This adjusts the workaround from D104731.

The issue lies in libstdc++'s classes, not GCC itself, and manifests
itself in the same way if building e.g. with clang while using
libstdc++ headers from GCC 7 (e.g. if building with Clang on Ubuntu 18.04,
while using the system default C++ library).

Therefore, change the condition to look for the version of libstdc++
instead of the compiler.

Differential Revision: https://reviews.llvm.org/D104779




More information about the All-commits mailing list