[rfa/d30v] Fix warnings
Andrew Cagney
ac131313@cygnus.com
Mon Jul 3 22:10:00 GMT 2000
Hello,
The attatched fixes a few warnings that occure when compiling d30v-elf.
Ok?
Andrew
Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
* config/tc-d30v.h: Include "write.h" for fixS.
(d30v_start_line, md_pcrel_from_section): Add function prototypes.
Index: config/tc-d30v.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/config/tc-d30v.h,v
retrieving revision 1.7
diff -p -r1.7 tc-d30v.h
*** tc-d30v.h 1999/06/20 17:46:16 1.7
--- tc-d30v.h 2000/07/04 05:03:51
***************
*** 19,24 ****
--- 19,26 ----
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
+ #include "write.h" /* For the definition of fixS. */
+
#define TC_D30V
#ifndef BFD_ASSEMBLER
***************
*** 35,40 ****
--- 37,44 ----
#define MD_APPLY_FIX3
/* call md_pcrel_from_section, not md_pcrel_from */
+
+ extern long md_pcrel_from_section PARAMS ((fixS *fixp, segT sec));
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)
/* Permit temporary numeric labels. */
*************** int d30v_cleanup PARAMS ((int));
*** 51,57 ****
#define md_after_pass_hook() d30v_cleanup (false)
#define md_cleanup() d30v_cleanup (false)
#define TC_START_LABEL(ch, ptr) (ch == ':' && d30v_cleanup (false))
! #define md_start_line_hook() d30v_start_line (false)
void d30v_frob_label PARAMS ((symbolS *));
#define tc_frob_label(sym) d30v_frob_label(sym)
--- 55,62 ----
#define md_after_pass_hook() d30v_cleanup (false)
#define md_cleanup() d30v_cleanup (false)
#define TC_START_LABEL(ch, ptr) (ch == ':' && d30v_cleanup (false))
! void d30v_start_line PARAMS ((void));
! #define md_start_line_hook() d30v_start_line ()
void d30v_frob_label PARAMS ((symbolS *));
#define tc_frob_label(sym) d30v_frob_label(sym)
More information about the Binutils
mailing list