[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Fri Dec 15 14:37:52 2017 New Revision: 255697 URL: https://gcc.gnu.org/viewcvs?rev=255697&root=gcc&view=rev Log: PR tree-optimization/83269 * fold-const.c (fold_binary_loc

[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 --- Comment #5 from Jakub Jelinek --- With -sanitize=signed-integer-overflow, we get in *.original: volatile unsigned char a = 1; long long int b = 2147483648; int c = (int) a * -2147483647 - (int) -b; instead of what we get without it: v

[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-14 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 --- Comment #4 from Eric Botcazou --- How can a patch written in 2014 be responsible for a bug in GCC 4.4 exactly?

[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/83269] [8 Regression] Wrong constant folding

2017-12-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269 Richard Biener changed: What|Removed |Added Priority|P3 |P1 CC|