aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc10-devel
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2020-01-30 20:48:54 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2020-01-30 20:48:54 +0000
commita0eb4f23d2759b10f3cf48704f3bc5c61e9a47f2 (patch)
tree227ee0069a844476a426fc499f061c0473e4057d /lang/gcc10-devel
parent83209114b829704b4d3c22ef757562bf4dccb87f (diff)
Notes
Diffstat (limited to 'lang/gcc10-devel')
-rw-r--r--lang/gcc10-devel/files/patch-analyzer26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/gcc10-devel/files/patch-analyzer b/lang/gcc10-devel/files/patch-analyzer
new file mode 100644
index 000000000000..7fc5caf8bf4f
--- /dev/null
+++ b/lang/gcc10-devel/files/patch-analyzer
@@ -0,0 +1,26 @@
+Provided by David Malcolm <dmalcolm@redhat.com> to address a build
+failure with clang 9.0.1.
+
+--- UTC
+Index: gcc/analyzer/engine.cc
+===================================================================
+--- gcc/analyzer/engine.cc
++++ gcc/analyzer/engine.cc
+@@ -2940,7 +2940,7 @@ template <>
+ inline void
+ pod_hash_traits<function_call_string>::mark_empty (value_type &v)
+ {
+- v.m_fun = reinterpret_cast<function *> (NULL);
++ v.m_fun = static_cast<function *> (NULL);
+ }
+ template <>
+ inline bool
+@@ -2952,7 +2952,7 @@ template <>
+ inline bool
+ pod_hash_traits<function_call_string>::is_empty (value_type v)
+ {
+- return v.m_fun == reinterpret_cast<function *> (NULL);
++ return v.m_fun == static_cast<function *> (NULL);
+ }
+
+ namespace ana {