This is the mail archive of the gcc-patches@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]

Patch to improve find_base_term ADDRESSOF handling


GCC currently has problems realizing that:

  (mem/f:SI (reg:SI 16 argp) 6)

and:

  (mem/f:SI (addressof:SI (reg/v:SI 45) 42 0x18470480) 6)

don't alias because it doesn't know that the base term for the
address of a register is the stack pointer.  Bootstrap and
make check are pending (I've been having some problems getting
the current unpatched gcc sources in CVS to actually bootstrap).

ChangeLog:

Fri Sep  8 01:40:16 EDT 2000  John Wehle  (john@feith.com)

	* alias.c (find_base_term): Handle ADDRESSOF.

Enjoy!

-- John Wehle
------------------8<------------------------8<------------------------
*** gcc/alias.c.ORIGINAL	Tue Aug 29 15:00:53 2000
--- gcc/alias.c	Fri Sep  8 01:32:58 2000
*************** find_base_term (x)
*** 1131,1136 ****
--- 1133,1141 ----
      case LABEL_REF:
        return x;
  
+     case ADDRESSOF:
+       return stack_pointer_rtx;
+ 
      default:
        return 0;
      }
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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