This is the mail archive of the binutils@sourceware.cygnus.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]

[RFA] Fix warnings for d10v-elf


Hello,

The attatched adds a few missing declarations and wraps a &&vs|| for the
d10v target.

Ok?

	Andrew
Sun Apr  9 22:32:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* config/tc-d10v.c (d10v_fix_adjustable, md_pcrel_from_section):
 	Change type of `fixS' argument to `struct fix'.
	* config/tc-d10v.h (d10v_fix_adjustable, md_pcrel_from_section):
 	Add declaration.

	* config/tc-d10v.c (md_apply_fix3): Add paren around &&.

Index: config/tc-d10v.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d10v.c,v
retrieving revision 1.8
diff -p -r1.8 tc-d10v.c
*** tc-d10v.c	2000/02/18 18:45:28	1.8
--- tc-d10v.c	2000/04/09 14:27:00
*************** md_estimate_size_before_relax (fragp, se
*** 1433,1439 ****
  
  long
  md_pcrel_from_section (fixp, sec)
!      fixS *fixp;
       segT sec;
  {
    if (fixp->fx_addsy != (symbolS *)NULL && (!S_IS_DEFINED (fixp->fx_addsy) ||
--- 1433,1439 ----
  
  long
  md_pcrel_from_section (fixp, sec)
!      struct fix *fixp;
       segT sec;
  {
    if (fixp->fx_addsy != (symbolS *)NULL && (!S_IS_DEFINED (fixp->fx_addsy) ||
*************** md_apply_fix3 (fixp, valuep, seg)
*** 1518,1525 ****
  	  rep = (struct d10v_opcode *) hash_find (d10v_hash, "rep");
  	  repi = (struct d10v_opcode *) hash_find (d10v_hash, "repi");
  	  if ((insn & FM11) == FM11
! 	      && (repi != NULL && (insn & repi->mask) == repi->opcode
! 		  || rep != NULL && (insn & rep->mask) == rep->opcode)
  	      && value < 4)
  	    as_fatal
  	      (_("line %d: rep or repi must include at least 4 instructions"),
--- 1518,1525 ----
  	  rep = (struct d10v_opcode *) hash_find (d10v_hash, "rep");
  	  repi = (struct d10v_opcode *) hash_find (d10v_hash, "repi");
  	  if ((insn & FM11) == FM11
! 	      && ((repi != NULL && (insn & repi->mask) == repi->opcode)
! 		  || (rep != NULL && (insn & rep->mask) == rep->opcode))
  	      && value < 4)
  	    as_fatal
  	      (_("line %d: rep or repi must include at least 4 instructions"),
*************** md_operand (expressionP)
*** 1631,1637 ****
  
  boolean
  d10v_fix_adjustable (fixP)
!    fixS *fixP;
  {
  
    if (fixP->fx_addsy == NULL)
--- 1631,1637 ----
  
  boolean
  d10v_fix_adjustable (fixP)
!    struct fix *fixP;
  {
  
    if (fixP->fx_addsy == NULL)
Index: config/tc-d10v.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d10v.h,v
retrieving revision 1.2
diff -p -r1.2 tc-d10v.h
*** tc-d10v.h	2000/04/01 00:19:46	1.2
--- tc-d10v.h	2000/04/09 14:27:02
***************
*** 36,41 ****
--- 36,42 ----
  
  /* call md_pcrel_from_section, not md_pcrel_from */
  #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)   
+ long md_pcrel_from_section PARAMS ((struct fix *, segT));
  
  /* Permit temporary numeric labels.  */
  #define LOCAL_LABELS_FB 1
*************** int d10v_cleanup PARAMS ((void));
*** 57,62 ****
--- 58,64 ----
  } while (0)
  
  #define obj_fix_adjustable(fixP) d10v_fix_adjustable(fixP)
+ boolean d10v_fix_adjustable PARAMS ((struct fix *));
  #define TC_FORCE_RELOCATION(fixp) d10v_force_relocation(fixp)
  extern int d10v_force_relocation PARAMS ((struct fix *));
  

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