Fix overflow detection in the Z80 assembler.
[binutils-gdb.git] / gas / config / tc-bfin.h
index 47b585bd3c12bc1ac60a5613f11b1bb3c8266d0c..3a72436ffd627494fc3ac19dafd767af1f91872f 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-bfin.h - header file for tc-bfin.c
-   Copyright (C) 2005-2015 Free Software Foundation, Inc.
+   Copyright (C) 2005-2021 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -38,7 +38,7 @@
 
 #define WORKING_DOT_WORD
 
-extern bfd_boolean bfin_start_label (char *);
+extern bool bfin_start_label (char *);
 
 #define md_number_to_chars     number_to_chars_littleendian
 #define md_convert_frag(b,s,f) as_fatal ("bfin convert_frag\n");
@@ -47,10 +47,10 @@ extern bfd_boolean bfin_start_label (char *);
 #define LEX_BR 6
 
 #define TC_EOL_IN_INSN(PTR) (bfin_eol_in_insn(PTR) ? 1 : 0)
-extern bfd_boolean bfin_eol_in_insn (char *);
+extern bool bfin_eol_in_insn (char *);
 
 /* Almost all instructions of Blackfin contain an = character.  */
-#define TC_EQUAL_IN_INSN(C, NAME) 1
+#define TC_EQUAL_IN_INSN(C, NAME) (NAME[0] != '.' || NAME[1] != 0)
 
 #define NOP_OPCODE 0x0000
 
@@ -61,14 +61,13 @@ extern bfd_boolean bfin_eol_in_insn (char *);
 #define TC_START_LABEL(STR, NUL_CHAR, NEXT_CHAR)       \
   (NEXT_CHAR == ':' && bfin_start_label (STR))
 #define tc_fix_adjustable(FIX) bfin_fix_adjustable (FIX)
-extern bfd_boolean bfin_fix_adjustable (struct fix *);
+extern bool bfin_fix_adjustable (struct fix *);
 
 #define TC_FORCE_RELOCATION(FIX) bfin_force_relocation (FIX)
 extern int bfin_force_relocation (struct fix *);
 
 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
-extern long md_pcrel_from_section (struct fix *, segT);
 
 /* Values passed to md_apply_fix3 don't include symbol values.  */
 #define MD_APPLY_SYM_VALUE(FIX) 0