svn commit: r524659 - head/lang/gcc10-devel/files
Gerald Pfeifer
gerald at FreeBSD.org
Thu Jan 30 20:48:55 UTC 2020
Author: gerald
Date: Thu Jan 30 20:48:54 2020
New Revision: 524659
URL: https://svnweb.freebsd.org/changeset/ports/524659
Log:
Fix a build failure in the new analyzer module that was reported with
clang 9.0.1 (only):
ports/lang/gcc10-devel/work/gcc-10-20200126/gcc/analyzer/engine.cc:2971:13: error:
reinterpret_cast from 'nullptr_t' to 'function *' is not allowed
v.m_fun = reinterpret_cast<function *> (NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PR: 243681
Reported by: Philippe Michel <philippe.michel7 at free.fr>
Added:
head/lang/gcc10-devel/files/patch-analyzer (contents, props changed)
Added: head/lang/gcc10-devel/files/patch-analyzer
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/gcc10-devel/files/patch-analyzer Thu Jan 30 20:48:54 2020 (r524659)
@@ -0,0 +1,26 @@
+Provided by David Malcolm <dmalcolm at 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 {
More information about the svn-ports-all
mailing list