[all-commits] [llvm/llvm-project] 4e6c8f: [clang] [MinGW] Set a predefined __GXX_TYPEINFO_EQ...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Mon Jun 24 04:02:50 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e6c8f1d30b8516fc7205bbcc97a78a728215512
https://github.com/llvm/llvm-project/commit/4e6c8f1d30b8516fc7205bbcc97a78a728215512
Author: Martin Storsjö <martin at martin.st>
Date: 2024-06-24 (Mon, 24 Jun 2024)
Changed paths:
M clang/lib/Frontend/InitPreprocessor.cpp
M clang/test/Preprocessor/predefined-win-macros.c
Log Message:
-----------
[clang] [MinGW] Set a predefined __GXX_TYPEINFO_EQUALITY_INLINE=0 for MinGW targets (#96062)
libstdc++ requires this define to match what is predefined in GCC for
the ABI of this platform; GCC hardcodes this define for all mingw
configurations in gcc/config/i386/cygming.h.
(It also defines __GXX_MERGED_TYPEINFO_NAMES=0, but that happens to
match the defaults in libstdc++ headers, so there's no similar need to
define it in Clang.)
This fixes a Clang/libstdc++ interop issue discussed at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list