[Bug tree-optimization/94163] [8/9 Regression] ICE in set_ptr_info_alignment with -O2 and __builtin_assume_aligned
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 13 08:51:41 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94163
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
E.g. in tree-ssa-ccp.c, we drop very large alignments on the floor.
/* Trailing mask bits specify the alignment, trailing value
bits the misalignment. */
tem = val->mask.to_uhwi ();
align = least_bit_hwi (tem);
int *
foo (int *p)
{
p = (int *) ((__UINTPTR_TYPE__) p & 0xfffffff000000000ULL);
(*p)++;
return p;
}
because tem is unsigned int and so will be 0, align 0 too and so align > 1 will
not be true.
More information about the Gcc-bugs
mailing list