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]

Re: expr.c buglet


On Mon, Sep 14, 1970 at 01:28:19PM -0400, Richard Kenner wrote:
> This was where the original MEM had unchanging, but there was nothing
> justifying the expression itself to do so.  The intent was to inherit
> that flag from the old MEM and most cases did, but not this one.
> 
> Thu Sep 14 12:10:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
> 
> 	* expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
> 	when making new MEM.

Wouldn't it be simpler to use the function change_address instead of cons-ing
up a MEM address and then using MEM_COPY_ATTRIBUTES?

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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