http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56899
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.6/4.7/4.8/4.9 |[4.6/4.7 Regression] Wrong |Regression] Wrong constant |constant folding |folding | --- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-11 07:45:59 UTC --- Author: jakub Date: Thu Apr 11 07:30:20 2013 New Revision: 197692 URL: http://gcc.gnu.org/viewcvs?rev=197692&root=gcc&view=rev Log: PR tree-optimization/56899 * fold-const.c (extract_muldiv_1): Apply distributive law only if TYPE_OVERFLOW_WRAPS (ctype). * gcc.c-torture/execute/pr56899.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr56899.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog Author: jakub Date: Thu Apr 11 07:37:17 2013 New Revision: 197693 URL: http://gcc.gnu.org/viewcvs?rev=197693&root=gcc&view=rev Log: PR tree-optimization/56899 * fold-const.c (extract_muldiv_1): Apply distributive law only if TYPE_OVERFLOW_WRAPS (ctype). * gcc.c-torture/execute/pr56899.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr56899.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/fold-const.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog