[Bug target/96991] [nvptx] internal compiler error: in write_fn_proto, at config/nvptx/nvptx.c:913

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 9 07:49:32 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96991

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Patch:
...
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 39d0275493a..6f393dfea01 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -910,7 +910,7 @@ write_fn_proto (std::stringstream &s, bool is_defn,
       if (not_atomic_weak_arg)
        argno = write_arg_type (s, -1, argno, type, prototyped);
       else
-       gcc_assert (type == boolean_type_node);
+       gcc_assert (TREE_CODE (type) == BOOLEAN_TYPE);
     }

   if (stdarg_p (fntype))
...


More information about the Gcc-bugs mailing list