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 for uninitialized warnings on sh cross-compile


On Nov 20, 2001, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:

> This patch fixes a couple of warnings on a cross to sh-unknown-elf:
>> insn-emit.c:4136: warning: `regno' might be used uninitialized in this function
>> insn-emit.c:4546: warning: `regno' might be used uninitialized in this function

> However since I only tested via a cross-compile of cc1, I wasn't
> entirely sure abort() was the right thing here.

It is.  general_movdst_operand can't be anything other than REG,
SUBREG or MEM, so if we get to the else clause, something is seriously
broken, and abort()ing is the right thing to do.

> Ok to install?

> 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

> 	* sh.md: Avoid uninitialized warnings.

Ok, thanks.

-- 
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]