From mboxrd@z Thu Jan 1 00:00:00 1970 From: ac131313@localhost.cygnus.com (Andrew Cagney) To: Orjan Friberg Cc: Andrew Cagney , gdb@sources.redhat.com Subject: Re: Uninitialized variable in CRIS port Date: Fri, 21 Sep 2001 11:58:00 -0000 Message-id: <20010921185805.C25083E0B@localhost.cygnus.com> References: <3BAB82FA.A043CDCE@axis.com> X-SW-Source: 2001-09/msg00194.html > Andrew Cagney wrote: > > > > /home/scratch/GDB/src/gdb/cris-tdep.c: In function > > `reg_mode_add_sub_cmp_and_or_move_op': > > /home/scratch/GDB/src/gdb/cris-tdep.c:3054: warning: `operand1' might be > > used uninitialized in this function > > > > checking the code, the problem looks real. > > Thanks for the reminder. Patch below, confirmed with the weirdest test > case I've ever written. Ok to commit on trunk and branch? That is entirely your decision. I suspect you'll want to commit this to both though. Andrew