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/6 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 #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb 24 14:54:01 2016
New Revision: 233669

URL: https://gcc.gnu.org/viewcvs?rev=233669&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr69760.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/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]