SH64/GAS: Fix a -Wwrite-strings build failure
[deliverable/binutils-gdb.git] / gas / config / tc-xtensa.h
index 91607aff61af7bb07f0a2540c9fd60ec60730c60..2c7b16e554363260d356832a887dcd142c3c7cca 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-xtensa.h -- Header file for tc-xtensa.c.
-   Copyright (C) 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2003-2016 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -107,7 +107,7 @@ enum xtensa_relax_statesE
   /* When the code density option is available, this will generate a
      NOP.N marked RELAX_NARROW.  Otherwise, it will create an rs_fill
      fragment with a NOP in it.  Once a frag has been converted to
-     RELAX_LOOP_END_ADD_NOP, it should never be changed back to 
+     RELAX_LOOP_END_ADD_NOP, it should never be changed back to
      RELAX_LOOP_END.  */
 
   RELAX_LITERAL,
@@ -124,6 +124,7 @@ enum xtensa_relax_statesE
 
   RELAX_LITERAL_POOL_BEGIN,
   RELAX_LITERAL_POOL_END,
+  RELAX_LITERAL_POOL_CANDIDATE_BEGIN,
   /* Technically these are not relaxations at all but mark a location
      to store literals later.  Note that fr_var stores the frchain for
      BEGIN frags and fr_var stores now_seg for END frags.  */
@@ -174,12 +175,17 @@ enum xtensa_relax_statesE
      RELAX_UNREACHABLE frag.  */
 
   RELAX_ORG,
-  /* This marks the location as having previously been an rs_org frag.  
+  /* This marks the location as having previously been an rs_org frag.
      rs_org frags are converted to fill-zero frags immediately after
      relaxation.  However, we need to remember where they were so we can
      prevent the linker from changing the size of any frag between the
      section start and the org frag.  */
 
+  RELAX_TRAMPOLINE,
+  /* Every few thousand frags, we insert one of these, just in case we may
+     need some space for a trampoline (jump to a jump) because the function
+     has gotten too big. If not needed, it disappears. */
+
   RELAX_NONE
 };
 
@@ -263,9 +269,10 @@ struct xtensa_frag_type
   symbolS *slot_symbols[MAX_SLOTS];
   offsetT slot_offsets[MAX_SLOTS];
 
-  /* The global aligner needs to walk backward through the list of
-     frags.  This field is only valid after xtensa_end.  */
-  fragS *fr_prev;
+  /* When marking frags after this one in the chain as no transform,
+     cache the last one in the chain, so that we can skip to the
+     end of the chain.  */
+  fragS *no_transform_end;
 };
 
 
@@ -326,7 +333,7 @@ extern void xtensa_elf_section_change_hook (void);
 extern int xtensa_unrecognized_line (int);
 extern bfd_boolean xtensa_check_inside_bundle (void);
 extern void xtensa_handle_align (fragS *);
-extern char *xtensa_section_rename (char *);
+extern char *xtensa_section_rename (const char *);
 
 #define TARGET_FORMAT                  xtensa_target_format ()
 #define TARGET_ARCH                    bfd_arch_xtensa
This page took 0.02513 seconds and 4 git commands to generate.