Date: Thu, 30 Jan 2020 20:48:54 +0000 (UTC) From: Gerald Pfeifer <gerald@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r524659 - head/lang/gcc10-devel/files Message-ID: <202001302048.00UKms29035799@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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@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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001302048.00UKms29035799>