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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #2)
> @Tom: Can you please check the suggested patch?

This could fix it:
...
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 0d6e8840852..2b7b81e304b 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -5104,7 +5104,7 @@ nvptx_vector_alignment (const_tree type)
 {
   HOST_WIDE_INT align = tree_to_shwi (TYPE_SIZE (type));

-  return MIN (align, BIGGEST_ALIGNMENT);
+  return wi::smin (align, wi::to_wide (BIGGEST_ALIGNMENT));
 }

 /* Indicate that INSN cannot be duplicated.   */
...

Reply via email to