This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/68142] unsafe association of multiplication
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2016 12:52:01 +0000
- Subject: [Bug middle-end/68142] unsafe association of multiplication
- Auto-submitted: auto-generated
- References: <bug-68142-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68142
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon May 23 12:51:29 2016
New Revision: 236588
URL: https://gcc.gnu.org/viewcvs?rev=236588&root=gcc&view=rev
Log:
2016-05-23 Richard Biener <rguenther@suse.de>
Backport from mainline
2016-02-11 Alexandre Oliva <aoliva@redhat.com>
PR target/69634
* regstat.c (regstat_bb_compute_calls_crossed): Disregard
debug insns.
* gcc.dg/pr69634.c: New.
2016-03-23 Patrick Palka <ppalka@gcc.gnu.org>
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 <rguenther@suse.de>
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 <rth@redhat.com>
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