This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for uninitialized warnings on sh cross-compile
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 20 Nov 2001 21:05:22 -0200
- Subject: Re: Patch for uninitialized warnings on sh cross-compile
- Organization: GCC Team, Red Hat
- References: <200111201825.NAA02057@caip.rutgers.edu>
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