gas: Pass max_bytes to TC_FRAG_INIT
[binutils-gdb.git] / gas / config / tc-score.h
index 1f3e0f3b2498d0fa44a070e39b5b3fc648432b5c..34cf5fdcd2aa1bddf92afe47de7c0b2954636f25 100644 (file)
@@ -1,9 +1,10 @@
 /* tc-score.h -- Score specific file for assembler
-   Copyright 2006, 2007 Free Software Foundation, Inc.
-   Contributed by: 
+   Copyright (C) 2006-2019 Free Software Foundation, Inc.
+   Contributed by:
+   Brain.lin (brain.lin@sunplusct.com)
    Mei Ligang (ligang@sunnorth.com.cn)
    Pei-Lin Tsai (pltsai@sunplus.com)
+
    This file is part of GAS, the GNU Assembler.
 
    GAS is free software; you can redistribute it and/or modify
@@ -38,7 +39,7 @@
 #define md_relax_frag(segment, fragp, stretch)  score_relax_frag (segment, fragp, stretch)
 extern int score_relax_frag (asection *, struct frag *, long);
 
-#define md_frag_check(fragp)  score_frag_check (fragp)
+/* #define md_frag_check(fragp)  score_frag_check (fragp) */
 extern void score_frag_check (fragS *);
 
 #define TC_VALIDATE_FIX(FIXP, SEGTYPE, SKIP)  score_validate_fix (FIXP)
@@ -61,7 +62,7 @@ struct score_tc_frag_data
 
 #define TC_FRAG_TYPE struct score_tc_frag_data
 
-#define TC_FRAG_INIT(FRAGP) \
+#define TC_FRAG_INIT(FRAGP, MAX_BYTES) \
   do \
     { \
       (FRAGP)->tc_frag_data.is_insn = (((FRAGP)->fr_type == rs_machine_dependent) ? 1 : 0); \
@@ -74,10 +75,4 @@ struct score_tc_frag_data
 #define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"
 #endif
 
-enum score_pic_level
-{
-  NO_PIC,
-  PIC
-};
-
 #endif /*TC_SCORE */