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]
Other format: [Raw text]

Re: [PATCH] Fix PR middle-end/17793


On Tue, 19 Oct 04 20:20:21 EDT, kenner@vlsi1.ultra.nyu.edu (Richard Kenner) wrote:

>     That would seem to imply making a copy of the (possibly aggregate)
>     value, which I thought we were trying to avoid.  
>
> *Semantically*, it's a value.  That doesn't mean we have to make a copy
> when it isn't needed!

Perhaps framing the distinction in terms of objects would help.  NOP_EXPR
creates a new object with the same value, whereas VIEW_CONVERT_EXPR
accesses the same object as a different type.  Do you agree with that
formulation?

Jason


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