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/47383] ivopts miscompiles Pmode != ptr_mode


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47383

--- Comment #11 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-02-09 17:20:07 UTC ---
Author: hjl
Date: Wed Feb  9 17:20:00 2011
New Revision: 169979

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169979
Log:
Disable ivopts for non-constant base with negative step and
Pmode !== ptr_mode.

gcc/

2011-02-09  H.J. Lu  <hongjiu.lu@intel.com>

    PR middle-end/47383
    * tree-ssa-loop-ivopts.c (find_bivs): Disabled for non-constant
    base with negative step and Pmode !== ptr_mode.
    (find_givs_in_stmt): Return for non-constant base with negative
    step and Pmode !== ptr_mode.
    (generic_type_for): Change arguments to base and step.  Check
    non-constant base with negative step and Pmode !== ptr_mode.

gcc/testsuite/

2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>

    PR middle-end/47383
    * gcc.dg/torture/pr47383.c: New.

Added:
    branches/x32/gcc/testsuite/gcc.dg/torture/pr47383.c
Modified:
    branches/x32/gcc/ChangeLog.x32
    branches/x32/gcc/testsuite/ChangeLog.x32
    branches/x32/gcc/tree-ssa-loop-ivopts.c


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