aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 8285d12..3fcda29 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -3404,7 +3404,8 @@ omp_clause_aligned_alignment (tree clause)
tree type = lang_hooks.types.type_for_mode (mode, 1);
if (type == NULL_TREE || TYPE_MODE (type) != mode)
continue;
- unsigned int nelts = GET_MODE_SIZE (vmode) / GET_MODE_SIZE (mode);
+ poly_uint64 nelts = exact_div (GET_MODE_SIZE (vmode),
+ GET_MODE_SIZE (mode));
type = build_vector_type (type, nelts);
if (TYPE_MODE (type) != vmode)
continue;