https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100213
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alex Coplan from comment #1) > For the related: > > void a() { > __builtin_memset(a + 0x7fffffffffffffff, 0, 3); > } > > we see a similar problem to PR100201 in tree-ssa-alias.c: > > $ gcc/xgcc -B gcc alias_test.c -c -O > /home/alecop01/toolchain/src/gcc/gcc/poly-int.h:1107:5: runtime error: > signed integer overflow: 8 * 9223372036854775807 cannot be represented in > type 'long int' > #0 0x2391e74 in poly_int<2u, poly_result<if_nonpoly<int, int, > poly_int_traits<int>::is_poly>::type, long, > poly_coeff_pair_traits<if_nonpoly<int, int, > poly_int_traits<int>::is_poly>::type, long>::result_kind>::type> > operator*<2u, int, long>(int const&, poly_int_pod<2u, long> const&) > /home/alecop01/toolchain/src/g > cc/gcc/poly-int.h:1107 > #1 0x2391e74 in ao_ref_init_from_ptr_and_range > /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-alias.c:810 This one is PR 121323 and is now fixed on the trunk. The original one in comment #0 was PR 118819 which is fixed in GCC 15 (and 14 and 13 release branches). So closing as a dup. *** This bug has been marked as a duplicate of bug 118819 ***