[Bug middle-end/67442] [5/6 Regression] GCC 5.2.0 on x86_64 creates invalid address on specific array index calculation through pointer

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 16 07:25:00 GMT 2015


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

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Sep 16 07:25:15 2015
New Revision: 227818

URL: https://gcc.gnu.org/viewcvs?rev=227818&root=gcc&view=rev
Log:
2015-09-16  Richard Biener  <rguenther@suse.de>

        PR middle-end/67442
        * fold-const.c (extract_muldiv_1): Properly extend multiplication
        result before builting a tree via wide_int_to_tree.

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

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr67442.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list