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: Bug in reload_cse_move2add()


On Jan 17, 2001, Richard Earnshaw <rearnsha@arm.com> wrote:

>> On Jan 17, 2001, Joern Rennecke <amylaar@redhat.com> wrote:
>> 
>> > You ignore the problem of multi-hard-register stores.
>> 
>> Do I?  It seems to me that it should work just fine.  Not only the
>> luid is used, but also the reg number.  So multiple sets in the same
>> insn should work.  What am I missing?

> Well the good news is that arm-netbsd has bootstrapped with your latest 
> version.

Cool!  Ok to install it?

> However, what about the conditional execution issue: 
> note_stores just strips the cond_exec part off, so we may falsely set a 
> base if we do not handle it explicitly ourselves.

Yep, this is definitely wrong.  We should probably pass the cond_exec
down in `x'.  But that's a different patch :-)

> I think we could handle it by manually striping that part off and
> passing it as the data operand to move2add_note_stores; then, if
> data was non-null, we would always set the register as unknown if it
> was modified.

I think note_stores is used in more places, and data is to be passed
to fun() exactly as passed to note_stores().

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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