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 rtl-optimization/49504] Invalid optimization for Pmode != ptr_mode


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


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