This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Fix compile time warning in cgen generated *-asm.c files


Hi Guys,

  Alan pointed out that I had made a mistake in the opcodes directory,
  checking in a patch to the iq2000-asm.c file to fix a compile time
  warning without fixing the cgen file which was used to generate the
  iq2000-asm.c file.  Doh.

  So I am checking in the patch below to rectify this mistake.

Cheers
  Nick

cgen/ChangeLog
2005-04-04  Nick Clifton  <nickc@redhat.com>

	* opcodes.scm (-gen-parse-address): Initialise value to zero to
	avoid a compile time warning.

opcodes/ChangeLog
2005-04-04  Nick Clifton  <nickc@redhat.com>

	* fr30-asm.c: Regenerate.
	* frv-asm.c: Regenerate.
	* iq2000-asm.c: Regenerate.
	* m32r-asm.c: Regenerate.
	* openrisc-asm.c: Regenerate.

Index: cgen/opcodes.scm
===================================================================
RCS file: /cvs/src/src/cgen/opcodes.scm,v
retrieving revision 1.10
diff -c -3 -p -r1.10 opcodes.scm
*** cgen/opcodes.scm	23 Feb 2005 16:04:38 -0000	1.10
--- cgen/opcodes.scm	4 Apr 2005 09:09:37 -0000
***************
*** 355,361 ****
  (define (-gen-parse-address parse-fn op-enum result-var-name)
    (string-append
     "      {\n"
!    "        bfd_vma value;\n"
     "        errmsg = "
     ; Use operand's special parse function if there is one.
     (or parse-fn
--- 355,361 ----
  (define (-gen-parse-address parse-fn op-enum result-var-name)
    (string-append
     "      {\n"
!    "        bfd_vma value = 0;\n"
     "        errmsg = "
     ; Use operand's special parse function if there is one.
     (or parse-fn
  


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