Fix build failure on macOS
[deliverable/binutils-gdb.git] / gas / config / tc-microblaze.h
index 06510400380b3e7bda1c44971627ed454327de6c..ca9dbb861ff7d339806755a698053b1c10857f12 100644 (file)
@@ -1,6 +1,6 @@
 /* tc-microblaze.h -- Header file for tc-microblaze.c.
 
-   Copyright 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009-2019 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
    relocs for such expressions as -relax in linker can change the value
    of such expressions */
 #define TC_CONS_FIX_NEW cons_fix_new_microblaze
-#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) parse_cons_expression_microblaze (EXP, NBYTES)
-extern void parse_cons_expression_microblaze PARAMS ((expressionS *, int));
+#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \
+  parse_cons_expression_microblaze (EXP, NBYTES)
+extern bfd_reloc_code_real_type parse_cons_expression_microblaze
+  (expressionS *, int);
 
 #define TC_FORCE_RELOCATION_SECTION(FIXP,SEG) 1
 #define UNDEFINED_DIFFERENCE_OK 1
 
-#define TC_FORCE_RELOCATION_LOCAL(FIX) \
-  (!(FIX)->fx_pcrel                    \
-   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_64_GOT  \
-   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_64_PLT  \
+#define TC_FORCE_RELOCATION_LOCAL(FIX)                         \
+  (GENERIC_FORCE_RELOCATION_LOCAL (FIX)                                \
+   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_64_GOT          \
+   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_64_PLT          \
    || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_64_GOTOFF       \
-   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_32_GOTOFF       \
-   || TC_FORCE_RELOCATION (FIX))
+   || (FIX)->fx_r_type == BFD_RELOC_MICROBLAZE_32_GOTOFF)
 
 #define tc_fix_adjustable(X)  tc_microblaze_fix_adjustable(X)
 extern int tc_microblaze_fix_adjustable (struct fix *);
@@ -66,7 +67,7 @@ extern const struct relax_type md_relax_table[];
 
 /* We want local label support.  */
 #define LOCAL_LABELS_FB 1
-     
+
 /* Want the section information too... */
 #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
 
@@ -94,12 +95,10 @@ extern const struct relax_type md_relax_table[];
 #endif
 
 #include "write.h"        /* For definition of fixS */
-  
+
 extern void      md_begin            (void);
 extern void      md_assemble         (char *);
 extern symbolS * md_undefined_symbol (char *);
-extern char *    md_atof             (int, char *, int *);
-extern int       md_parse_option     (int, char *);
 extern void      md_show_usage       (FILE *);
 extern void      md_convert_frag               (bfd *, segT, fragS *);
 extern void      md_operand                    (expressionS *);
@@ -108,7 +107,9 @@ extern void      md_number_to_chars            (char *, valueT, int);
 extern valueT    md_section_align              (segT, valueT);
 extern long      md_pcrel_from_section         (fixS *, segT);
 extern arelent * tc_gen_reloc                  (asection *, fixS *);
-extern void     cons_fix_new_microblaze       (fragS *, int, int, expressionS *);
+extern void     cons_fix_new_microblaze       (fragS *, int, int,
+                                               expressionS *,
+                                               bfd_reloc_code_real_type);
 extern void     md_apply_fix3                 (fixS *, valueT *, segT);
 
 #define EXTERN_FORCE_RELOC -1
This page took 0.025048 seconds and 4 git commands to generate.