]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
openmp: Fix signed/unsigned warning
authorAndrew Stubbs <ams@baylibre.com>
Wed, 6 Nov 2024 17:50:00 +0000 (17:50 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Wed, 6 Nov 2024 17:50:00 +0000 (17:50 +0000)
My previous patch broke things when building with Werror.

gcc/ChangeLog:

* omp-general.cc (omp_max_vf): Cast the constant to poly_uint64.

gcc/omp-general.cc

index 1ae575ee181f6fd5b4d18153703f07eae9412c92..72fb7f92ff707951b9467a6c26e92a29ee25c403 100644 (file)
@@ -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++;
        }