[gcc(refs/vendors/ibm/heads/gcc-10-branch)] [LTO/offloading] Fix offloading-compilation ICE without -flto (PR84320)
Peter Bergner
bergner@gcc.gnu.org
Thu Sep 3 16:36:59 GMT 2020
https://gcc.gnu.org/g:2974c828615b240f66b208301b5a73c6a07fcb22
commit 2974c828615b240f66b208301b5a73c6a07fcb22
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Tue May 26 18:24:28 2020 +0200
[LTO/offloading] Fix offloading-compilation ICE without -flto (PR84320)
gcc/ChangeLog:
PR ipa/95320
* ipa-utils.h (odr_type_p): Also permit calls with
only flag_generate_offload set.
(cherry picked from commit c5ab336ba106a407a67e84d8faac5b0ea6f18310)
Diff:
---
gcc/ipa-utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h
index 6597593d138..178c2cbe446 100644
--- a/gcc/ipa-utils.h
+++ b/gcc/ipa-utils.h
@@ -245,7 +245,7 @@ odr_type_p (const_tree t)
{
/* We do not have this information when not in LTO, but we do not need
to care, since it is used only for type merging. */
- gcc_checking_assert (in_lto_p || flag_lto);
+ gcc_checking_assert (in_lto_p || flag_lto || flag_generate_offload);
return TYPE_NAME (t) && TREE_CODE (TYPE_NAME (t)) == TYPE_DECL
&& DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (t));
}
More information about the Gcc-cvs
mailing list