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

Re: --enable-checking for gas


More fixes.

	* config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
	(md_atof): Make number_of_chars unsigned.
	* config/tc-ia64.c (emit_one_bundle): Warning fix.
	* config/tc-or32.c (md_apply_fix): Delete bogus assertions.
	* config/tc-sh.c (sh_optimize_expr): Only define for OBJ_ELF.
	* config/tc-sh.h (md_optimize_expr): Likewise.
	* config/tc-sh64.c (shmedia_md_pcrel_from_section): Delete bogus
	assertion.
	* config/tc-xtensa.c (convert_frag_immed_finish_loop): Likewise.

Index: gas/config/atof-vax.c
===================================================================
RCS file: /cvs/src/src/gas/config/atof-vax.c,v
retrieving revision 1.8
diff -u -p -r1.8 atof-vax.c
--- gas/config/atof-vax.c	5 May 2005 09:12:52 -0000	1.8
+++ gas/config/atof-vax.c	21 Apr 2007 11:59:37 -0000
@@ -35,7 +35,7 @@ int flonum_gen2vax (int, FLONUM_TYPE *, 
 
 /* Number of chars in flonum type 'letter'.  */
 
-static int
+static unsigned int
 atof_vax_sizeof (int letter)
 {
   int return_value;
@@ -395,7 +395,7 @@ md_atof (int what_statement_type,
 {
   LITTLENUM_TYPE words[MAXIMUM_NUMBER_OF_LITTLENUMS];
   char kind_of_float;
-  int number_of_chars;
+  unsigned int number_of_chars;
   LITTLENUM_TYPE *littlenumP;
 
   switch (what_statement_type)
Index: gas/config/tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.190
diff -u -p -r1.190 tc-ia64.c
--- gas/config/tc-ia64.c	1 Feb 2007 14:12:18 -0000	1.190
+++ gas/config/tc-ia64.c	21 Apr 2007 11:59:43 -0000
@@ -6691,7 +6691,7 @@ emit_one_bundle ()
   int addr_mod;
 
   first = (md.curr_slot + NUM_SLOTS - md.num_slots_in_use) % NUM_SLOTS;
-  know (first >= 0 & first < NUM_SLOTS);
+  know (first >= 0 && first < NUM_SLOTS);
   n = MIN (3, md.num_slots_in_use);
 
   /* Determine template: user user_template if specified, best match
Index: gas/config/tc-or32.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-or32.c,v
retrieving revision 1.11
diff -u -p -r1.11 tc-or32.c
--- gas/config/tc-or32.c	11 Aug 2005 01:25:28 -0000	1.11
+++ gas/config/tc-or32.c	21 Apr 2007 11:59:44 -0000
@@ -616,9 +617,6 @@ md_apply_fix (fixS * fixP, valueT * val,
 
   fixP->fx_addnumber = t_val; /* Remember value for emit_reloc.  */
 
-  know (fixP->fx_size == 4);
-  know (fixP->fx_r_type < BFD_RELOC_NONE);
-
   switch (fixP->fx_r_type)
     {
     case BFD_RELOC_32:      /* XXXXXXXX pattern in a word.  */
Index: gas/config/tc-sh.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.c,v
retrieving revision 1.125
diff -u -p -r1.125 tc-sh.c
--- gas/config/tc-sh.c	16 Apr 2007 13:05:30 -0000	1.125
+++ gas/config/tc-sh.c	21 Apr 2007 11:59:47 -0000
@@ -886,7 +886,6 @@ align_test_frag_offset_fixed_p (const fr
 
   return FALSE;
 }
-#endif /* OBJ_ELF */
 
 /* Optimize a difference of symbols which have rs_align_test frag if
    possible.  */
@@ -894,7 +893,6 @@ align_test_frag_offset_fixed_p (const fr
 int
 sh_optimize_expr (expressionS *l, operatorT op, expressionS *r)
 {
-#ifdef OBJ_ELF
   bfd_vma frag_off;
 
   if (op == O_subtract
@@ -915,9 +913,9 @@ sh_optimize_expr (expressionS *l, operat
       l->X_add_symbol = 0;
       return 1;
     }
-#endif /* OBJ_ELF */
   return 0;
 }
+#endif /* OBJ_ELF */
 
 /* This function is called once, at assembler startup time.  This should
    set up all the tables, etc that the MD part of the assembler needs.  */
Index: gas/config/tc-sh.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.h,v
retrieving revision 1.47
diff -u -p -r1.47 tc-sh.h
--- gas/config/tc-sh.h	14 Apr 2007 14:21:11 -0000	1.47
+++ gas/config/tc-sh.h	21 Apr 2007 11:59:48 -0000
@@ -47,8 +47,10 @@ extern void sh_cons_align (int);
 /* We need to optimize expr with taking account of rs_align_test
    frags.  */
 
+#ifdef OBJ_ELF
 #define md_optimize_expr(l,o,r) sh_optimize_expr (l, o, r)
 extern int sh_optimize_expr (expressionS *, operatorT, expressionS *);
+#endif
 
 /* When relaxing, we need to generate relocations for alignment
    directives.  */
Index: gas/config/tc-sh64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh64.c,v
retrieving revision 1.22
diff -u -p -r1.22 tc-sh64.c
--- gas/config/tc-sh64.c	29 Aug 2006 01:31:56 -0000	1.22
+++ gas/config/tc-sh64.c	21 Apr 2007 11:59:49 -0000
@@ -3035,8 +3035,6 @@ sh64_target_mach (void)
 valueT
 shmedia_md_pcrel_from_section (struct fix *fixP, segT sec ATTRIBUTE_UNUSED)
 {
-  know (fixP->fx_frag->fr_type == rs_machine_dependent);
-
   /* Use the ISA for the instruction to decide which offset to use.  We
      can glean it from the fisup type.  */
   switch (fixP->fx_r_type)
Index: gas/config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.80
diff -u -p -r1.80 tc-xtensa.c
--- gas/config/tc-xtensa.c	2 Apr 2007 20:05:47 -0000	1.80
+++ gas/config/tc-xtensa.c	21 Apr 2007 11:59:55 -0000
@@ -9513,11 +9513,6 @@ convert_frag_immed_finish_loop (segT seg
       target = 0;
     }
 
-  know (symbolP);
-  know (symbolP->sy_frag);
-  know (!(S_GET_SEGMENT (symbolP) == absolute_section)
-	|| symbol_get_frag (symbolP) == &zero_address_frag);
-
   loop_length = target - (fragP->fr_address + fragP->fr_fix);
   loop_length_hi = loop_length & ~0x0ff;
   loop_length_lo = loop_length & 0x0ff;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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