aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-07-17 11:40:03 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2024-07-17 11:40:03 +0200
commit74bcef4cf16b35fe64767c1e8e529bdd229841a3 (patch)
tree763ea2d0742a0d4bcb8159e6bcccecd348fc6289 /gcc/tree-vectorizer.h
parent8b5919bae11754f4b65a17e63663d3143f9615ac (diff)
downloadgcc-74bcef4cf16b35fe64767c1e8e529bdd229841a3.zip
gcc-74bcef4cf16b35fe64767c1e8e529bdd229841a3.tar.gz
gcc-74bcef4cf16b35fe64767c1e8e529bdd229841a3.tar.bz2
varasm: Fix bootstrap after the .base64 changes [PR115958]
Apparently there is a -Wsign-compare warning if ptrdiff_t has precision of int, then (t - s + 1 + 2) / 3 * 4 has int type while cnt unsigned int. This doesn't warn if ptrdiff_t has larger precision, say on x86_64 it is 64-bit and so (t - s + 1 + 2) / 3 * 4 has long type and cnt unsigned int. And it doesn't warn when using older binutils (in my tests I've used new binutils on x86_64 and old binutils on i686). Anyway, earlier condition guarantees that t - s is at most 256-ish and t >= s by construction, so we can just cast it to (unsigned) to avoid the warning. 2024-07-17 Jakub Jelinek <jakub@redhat.com> PR other/115958 * varasm.cc (default_elf_asm_output_ascii): Cast t - s to unsigned to avoid -Wsign-compare warnings.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions