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]

Patch to resolve unused parameter warnings in gas/tc-h8300.c


Hi,

Attached is a patch to resolve unused paramete warnings in
gas/tc-h8300.c

It also contains a fix for a typo in include/coff/internal.h.

Thanks,

Kazu
2000-03-15  Kazu Hirata  <kazu@hxi.com>

	* gas/config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
	* include/coff/internal.h: Fix a typo in the comment for R_MOVL2.
diff -ruN binutils-000314-old/gas/config/tc-h8300.c binutils-000314/gas/config/tc-h8300.c
--- binutils-000314-old/gas/config/tc-h8300.c	Mon May  3 03:28:42 1999
+++ binutils-000314/gas/config/tc-h8300.c	Wed Mar 15 01:00:18 2000
@@ -311,7 +311,7 @@
 static char *
 skip_colonthing (ptr, exp, mode)
      char *ptr;
-     expressionS *exp;
+     expressionS *exp ATTRIBUTE_UNUSED;
      int *mode;
 {
   if (*ptr == ':')
@@ -399,7 +399,7 @@
 get_operand (ptr, op, dst, direction)
      char **ptr;
      struct h8_op *op;
-     unsigned int dst;
+     unsigned int dst ATTRIBUTE_UNUSED;
      int direction;
 {
   char *src = *ptr;
@@ -1343,21 +1343,21 @@
 
 void
 tc_crawl_symbol_chain (headers)
-     object_headers * headers;
+     object_headers * headers ATTRIBUTE_UNUSED;
 {
   printf (_("call to tc_crawl_symbol_chain \n"));
 }
 
 symbolS *
 md_undefined_symbol (name)
-     char *name;
+     char *name ATTRIBUTE_UNUSED;
 {
   return 0;
 }
 
 void
 tc_headers_hook (headers)
-     object_headers * headers;
+     object_headers * headers ATTRIBUTE_UNUSED;
 {
   printf (_("call to tc_headers_hook \n"));
 }
@@ -1433,15 +1433,15 @@
 
 int
 md_parse_option (c, arg)
-     int c;
-     char *arg;
+     int c ATTRIBUTE_UNUSED;
+     char *arg ATTRIBUTE_UNUSED;
 {
   return 0;
 }
 
 void
 md_show_usage (stream)
-     FILE *stream;
+     FILE *stream ATTRIBUTE_UNUSED;
 {
 }
 
@@ -1454,9 +1454,9 @@
 
 void
 md_convert_frag (headers, seg, fragP)
-     object_headers *headers;
-     segT seg;
-     fragS *fragP;
+     object_headers *headers ATTRIBUTE_UNUSED;
+     segT seg ATTRIBUTE_UNUSED;
+     fragS *fragP ATTRIBUTE_UNUSED;
 {
   printf (_("call to md_convert_frag \n"));
   abort ();
@@ -1500,8 +1500,8 @@
 
 int
 md_estimate_size_before_relax (fragP, segment_type)
-     register fragS *fragP;
-     register segT segment_type;
+     register fragS *fragP ATTRIBUTE_UNUSED;
+     register segT segment_type ATTRIBUTE_UNUSED;
 {
   printf (_("call tomd_estimate_size_before_relax \n"));
   abort ();
@@ -1519,7 +1519,7 @@
 }
 long
 md_pcrel_from (fixP)
-     fixS *fixP;
+     fixS *fixP ATTRIBUTE_UNUSED;
 {
   abort ();
 }
diff -ruN binutils-000314-old/include/coff/internal.h binutils-000314/include/coff/internal.h
--- binutils-000314-old/include/coff/internal.h	Mon Sep 20 04:45:53 1999
+++ binutils-000314/include/coff/internal.h	Wed Mar 15 01:00:18 2000
@@ -671,7 +671,7 @@
 #define R_MOVL1    	0x4c
 
 /* This reloc identifies mov.[wl] insns which formerlly had
-   a 32/24bit absolute address and how have a 16bit absolute address.  */
+   a 32/24bit absolute address and now have a 16bit absolute address.  */
 #define R_MOVL2 	0x4d
 
 /* This reloc identifies a bCC:8 which will have it's condition

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