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 variable bug in m68hc11.md


Hi!

Kaveh R. Ghazi wrote:

I get this warning when cross-compiling to m68hc11-unknown-elf:
 > insn-output.c:1107: warning: `val' might be used uninitialized in this function

This one is an actual bug due to a problem in m68hc11.md.  The line in
question evaluates to:
val = (foo >= 0 && val < 0x100)

whereas for `val' to be initialized it should read:
(val = foo) >= 0 && val < 0x100


Oops... Shame on me!

Thanks!
	Stephane




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