[Bug middle-end/68142] unsafe association of multiplication

2016-05-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68142

--- Comment #3 from Richard Biener  ---
Author: rguenth
Date: Mon May 23 12:51:29 2016
New Revision: 236588

URL: https://gcc.gnu.org/viewcvs?rev=236588=gcc=rev
Log:
2016-05-23  Richard Biener  

Backport from mainline
2016-02-11  Alexandre Oliva  

PR target/69634
* regstat.c (regstat_bb_compute_calls_crossed): Disregard
debug insns.

* gcc.dg/pr69634.c: New.

2016-03-23  Patrick Palka  

PR c++/70347
* typeck.c (process_init_constructor_union): If the initializer
is empty, use the union's NSDMI if it has one.

* g++.dg/cpp1y/nsdmi-union1.C: New test.

2015-10-30  Richard Biener  

PR middle-end/68142
* fold-const.c (extract_muldiv_1): Avoid introducing undefined
overflow.

* c-c++-common/ubsan/pr68142.c: New testcase.

2016-03-24  Richard Henderson  

PR middle-end/69845
* fold-const.c (extract_muldiv_1): Correct test for multiplication
overflow.

* gcc.dg/tree-ssa/pr69845-1.c: New test.
* gcc.dg/tree-ssa/pr69845-2.c: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/c-c++-common/ubsan/pr68142.c
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/nsdmi-union1.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr69634.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/pr69845-1.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/pr69845-2.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/typeck2.c
branches/gcc-5-branch/gcc/fold-const.c
branches/gcc-5-branch/gcc/regstat.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug middle-end/68142] unsafe association of multiplication

2015-10-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68142

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||6.0
 Resolution|--- |FIXED

--- Comment #2 from Richard Biener  ---
Fixed on trunk.


[Bug middle-end/68142] unsafe association of multiplication

2015-10-29 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68142

--- Comment #1 from Richard Biener  ---
Author: rguenth
Date: Thu Oct 29 14:10:31 2015
New Revision: 229528

URL: https://gcc.gnu.org/viewcvs?rev=229528=gcc=rev
Log:
2015-10-29  Richard Biener  

PR middle-end/68142
* fold-const.c (extract_muldiv_1): Avoid introducing undefined
overflow.

* c-c++-common/ubsan/pr68142.c: New testcase.

Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr68142.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog


[Bug middle-end/68142] unsafe association of multiplication

2015-10-29 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68142

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2015-10-29
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Ever confirmed|0   |1