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] gen_lowpart and lvalues


On Thu, Feb 24, 2005 at 12:38:43PM -0700, Roger Sayle wrote:
> But I do also agree that we should more clearly document that gen_lowpart
> doesn't preserve the lvalueness of it's operand, and that modifying
> the rtx returned from that function might/need not affect the value held
> by the argument rtx.

I do NOT agree to this.  There are way way too many users that do in
fact assume this, because for a long time it has been true.

If you want to make this true, then remove gen_lowpart completely and
replace all users with one of our many other subreg/lowpart generating
functions.


r~


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