From: Andrew Stubbs Date: Wed, 6 Nov 2024 17:50:00 +0000 (+0000) Subject: openmp: Fix signed/unsigned warning X-Git-Tag: basepoints/gcc-16~4564 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=345eb9b795d9728733bd0e472529e259ce796ff6;p=thirdparty%2Fgcc.git 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 --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++; }