This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/49504] Invalid optimization for 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, 22 Jun 2011 20:00:33 +0000
- Subject: [Bug rtl-optimization/49504] Invalid optimization for Pmode != ptr_mode
- Auto-submitted: auto-generated
- References: <bug-49504-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49504
--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-06-22 19:59:59 UTC ---
Author: hjl
Date: Wed Jun 22 19:59:52 2011
New Revision: 175306
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175306
Log:
Properly handle pointer addition/subtraction.
gcc/
2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/49504
* rtlanal.c (nonzero_bits1): Properly handle addition or
subtraction a pointer in Pmode if pointers extend unsigned.
gcc/testsuite/
2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/49504
* gcc.target/i386/pr49504.c: New.
Added:
branches/x32/gcc/testsuite/gcc.target/i386/pr49504.c
Modified:
branches/x32/gcc/ChangeLog.x32
branches/x32/gcc/rtlanal.c
branches/x32/gcc/testsuite/ChangeLog.x32