https://gcc.gnu.org/g:345eb9b795d9728733bd0e472529e259ce796ff6

commit r15-4989-g345eb9b795d9728733bd0e472529e259ce796ff6
Author: Andrew Stubbs <a...@baylibre.com>
Date:   Wed Nov 6 17:50:00 2024 +0000

    openmp: Fix signed/unsigned warning
    
    My previous patch broke things when building with Werror.
    
    gcc/ChangeLog:
    
            * omp-general.cc (omp_max_vf): Cast the constant to poly_uint64.

Diff:
---
 gcc/omp-general.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/omp-general.cc b/gcc/omp-general.cc
index 1ae575ee181f..72fb7f92ff70 100644
--- a/gcc/omp-general.cc
+++ b/gcc/omp-general.cc
@@ -1005,7 +1005,7 @@ omp_max_vf (bool offload)
       for (const char *c = getenv ("OFFLOAD_TARGET_NAMES"); c;)
        {
          if (startswith (c, "amdgcn"))
-           return ordered_max (64, omp_max_vf (false));
+           return ordered_max (poly_uint64 (64), omp_max_vf (false));
          else if ((c = strchr (c, ':')))
            c++;
        }

Reply via email to