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 middle-end/64516] [4.9/5/6 Regression] arm: wrong unaligned load generated


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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jul  7 11:37:24 2016
New Revision: 238085

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

        Backport from mainline
        2016-06-13  Richard Biener  <rguenther@suse.de>

        PR middle-end/64516
        * fold-const.c (fold_unary_loc): Preserve alignment when
        folding a VIEW_CONVERT_EXPR into a MEM_REF.

        * gcc.dg/align-3.c: New testcase.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/align-3.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/fold-const.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

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