From 315d42482cf3b94aa723fababf54a815fd0dfc1f Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 24 Oct 2019 17:08:30 +0200 Subject: [PATCH] Make gt_pch_nx unreachable in symbol-summary classes. 2019-10-24 Martin Liska * symbol-summary.h (gt_pch_nx): Mark all functions with gcc_unreachable as we do not expect to be called. From-SVN: r277408 --- gcc/ChangeLog | 5 +++++ gcc/symbol-summary.h | 43 +++++++++++++++++-------------------------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f63370b..977b592 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-24 Martin Liska + + * symbol-summary.h (gt_pch_nx): Mark all functions + with gcc_unreachable as we do not expect to be called. + 2019-10-24 Richard Biener * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index e90d448..7f2e721 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -295,19 +295,16 @@ gt_ggc_mx(function_summary* const &summary) template void -gt_pch_nx(function_summary* const &summary) +gt_pch_nx (function_summary *const &) { - gcc_checking_assert (summary->m_ggc); - gt_pch_nx (&summary->m_map); + gcc_unreachable (); } template void -gt_pch_nx(function_summary* const& summary, gt_pointer_operator op, - void *cookie) +gt_pch_nx (function_summary *const &, gt_pointer_operator, void *) { - gcc_checking_assert (summary->m_ggc); - gt_pch_nx (&summary->m_map, op, cookie); + gcc_unreachable (); } /* Help template from std c++11. */ @@ -538,18 +535,17 @@ gt_ggc_mx (fast_function_summary* const &summary) template void -gt_pch_nx (fast_function_summary* const &summary) +gt_pch_nx (fast_function_summary *const &) { - gt_pch_nx (summary->m_vector); + gcc_unreachable (); } template void -gt_pch_nx (fast_function_summary* const& summary, - gt_pointer_operator op, - void *cookie) +gt_pch_nx (fast_function_summary *const &, gt_pointer_operator, + void *) { - gt_pch_nx (summary->m_vector, op, cookie); + gcc_unreachable (); } /* Base class for call_summary and fast_call_summary classes. */ @@ -784,19 +780,16 @@ gt_ggc_mx(call_summary* const &summary) template void -gt_pch_nx(call_summary* const &summary) +gt_pch_nx (call_summary *const &) { - gcc_checking_assert (summary->m_ggc); - gt_pch_nx (&summary->m_map); + gcc_unreachable (); } template void -gt_pch_nx(call_summary* const& summary, gt_pointer_operator op, - void *cookie) +gt_pch_nx (call_summary *const &, gt_pointer_operator, void *) { - gcc_checking_assert (summary->m_ggc); - gt_pch_nx (&summary->m_map, op, cookie); + gcc_unreachable (); } /* We want to pass just pointer types as argument for fast_call_summary @@ -994,18 +987,16 @@ gt_ggc_mx (fast_call_summary* const &summary) template void -gt_pch_nx (fast_call_summary* const &summary) +gt_pch_nx (fast_call_summary *const &) { - gt_pch_nx (&summary->m_vector); + gcc_unreachable (); } template void -gt_pch_nx (fast_call_summary* const& summary, - gt_pointer_operator op, - void *cookie) +gt_pch_nx (fast_call_summary *const &, gt_pointer_operator, void *) { - gt_pch_nx (&summary->m_vector, op, cookie); + gcc_unreachable (); } #endif /* GCC_SYMBOL_SUMMARY_H */ -- 2.7.4