[Bug tree-optimization/90213] UBSAN: signed integer overflow: -5621332293356458048 * 8 cannot be represented in type 'long int'
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 30 07:58:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90213
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Aug 30 07:57:47 2019
New Revision: 275060
URL: https://gcc.gnu.org/viewcvs?rev=275060&root=gcc&view=rev
Log:
2019-08-30 Richard Biener <rguenther@suse.de>
Backport from mainline
2019-04-24 Richard Biener <rguenther@suse.de>
PR middle-end/90213
* gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
by size and BITS_PER_UNIT on poly-wide-ints.
2019-04-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/90020
* tree-ssa-sccvn.c (vn_reference_may_trap): New function.
* tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
* tree-ssa-pre.c (compute_avail): Use it to not put
possibly trapping references after a call that might not
return into EXP_GEN.
* gcse.c (compute_hash_table_work): Do not elide
marking a block containing a call if the call might not
return.
* gcc.dg/torture/pr90020.c: New testcase.
Added:
branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr90020.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/gcse.c
branches/gcc-8-branch/gcc/gimple-fold.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/tree-ssa-pre.c
branches/gcc-8-branch/gcc/tree-ssa-sccvn.c
branches/gcc-8-branch/gcc/tree-ssa-sccvn.h
More information about the Gcc-bugs
mailing list