This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/69760] [4.9/5 Regression] Wrong 64-bit memory address caused by an unneeded overflowing 32-bit integer multiplication on x86_64 under -O2 and -O3 code optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69760

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Apr  6 08:09:40 2016
New Revision: 234775

URL: https://gcc.gnu.org/viewcvs?rev=234775&root=gcc&view=rev
Log:
2016-04-06  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2016-02-24  Richard Biener  <rguenther@suse.de>
                Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/69760
        * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
        conditionally executed ops to well-defined overflow behavior.

        * gcc.dg/torture/pr69760.c: New testcase.

        2016-03-01  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/69983
        * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
        types and fall back to operand_equal_p.

        * gcc.dg/graphite/isl-codegen-loop-dumping.c: Adjust.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr69760.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
   
branches/gcc-5-branch/gcc/testsuite/gcc.dg/graphite/isl-codegen-loop-dumping.c
    branches/gcc-5-branch/gcc/tree-chrec.c
    branches/gcc-5-branch/gcc/tree-scalar-evolution.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]