This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/47383] ivopts miscompiles Pmode != ptr_mode
- From: "hjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Feb 2011 17:20:28 +0000
- Subject: [Bug middle-end/47383] ivopts miscompiles Pmode != ptr_mode
- Auto-submitted: auto-generated
- References: <bug-47383-4@http.gcc.gnu.org/bugzilla/>
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