import gdb-2000-02-02 snapshot
[external/binutils.git] / gas / frags.h
index 2628d2a..b188e33 100644 (file)
@@ -1,5 +1,6 @@
 /* frags.h - Header file for the frag concept.
-   Copyright (C) 1987, 92, 93, 94, 95, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1987, 92, 93, 94, 95, 97, 98, 1999
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -18,6 +19,9 @@
    Software Foundation, 59 Temple Place - Suite 330, Boston, MA
    02111-1307, USA.  */
 
+#ifndef FRAGS_H
+#define FRAGS_H
+
 #ifdef ANSI_PROTOTYPES
 struct obstack;
 #endif
@@ -50,7 +54,7 @@ struct frag
   /* (Variable) number of chars after above.  May be 0. */
   offsetT fr_var;
   /* For variable-length tail. */
-  struct symbol *fr_symbol;
+  symbolS *fr_symbol;
   /* For variable-length tail. */
   offsetT fr_offset;
   /* Points to opcode low addr byte, for relaxation.  */
@@ -67,8 +71,12 @@ struct frag
 #ifdef USING_CGEN
   /* Don't include this unless using CGEN to keep frag size down.  */
   struct {
+    /* CGEN_INSN entry for this instruction.  */
     const struct cgen_insn *insn;
-    unsigned char opindex, opinfo;
+    /* Index into operand table.  */
+    int opindex;
+    /* Target specific data, usually reloc number.  */
+    int opinfo;
   } fr_cgen;
 #endif
 
@@ -92,7 +100,7 @@ struct frag
    however, included in frchain_now.  The fr_fix field is bogus;
    instead, use frag_now_fix ().  */
 COMMON fragS *frag_now;
-extern int frag_now_fix PARAMS ((void));
+extern addressT frag_now_fix PARAMS ((void));
 
 /* For foreign-segment symbol fixups. */
 COMMON fragS zero_address_frag;
@@ -147,4 +155,4 @@ char *frag_var PARAMS ((relax_stateT type,
                        offsetT offset,
                        char *opcode));
 
-/* end of frags.h */
+#endif /* FRAGS_H */