* as.h: Fix formatting.
* asintl.h: Likewise.
* bit_fix.h: Likewise.
* dwarf2dbg.h: Likewise.
* expr.h: Likewise.
* flonum.h: Likewise.
* frags.h: Likewise.
* itbl-ops.h: Likewise.
* macro.h: Likewise.
* read.h: Likewise.
* sb.h: Likewise.
* struc-symbol.h: Likewise.
* subsegs.h: Likewise.
* symbols.h: Likewise.
* tc.h: Likewise.
* write.h: Likewise.
+2000-09-12 Kazu Hirata <kazu@hxi.com>
+
+ * as.h: Fix formatting.
+ * asintl.h: Likewise.
+ * bit_fix.h: Likewise.
+ * dwarf2dbg.h: Likewise.
+ * expr.h: Likewise.
+ * flonum.h: Likewise.
+ * frags.h: Likewise.
+ * itbl-ops.h: Likewise.
+ * macro.h: Likewise.
+ * read.h: Likewise.
+ * sb.h: Likewise.
+ * struc-symbol.h: Likewise.
+ * subsegs.h: Likewise.
+ * symbols.h: Likewise.
+ * tc.h: Likewise.
+ * write.h: Likewise.
+
2000-09-11 Kazu Hirata <kazu@hxi.com>
* bignum-copy.c: Fix formatting.
/* Now, tend to the rest of the configuration. */
-/* System include files first... */
+/* System include files first... */
#include <stdio.h>
#include <ctype.h>
#ifdef HAVE_STRING_H
#endif
-
-/* Now GNU header files... */
+/* Now GNU header files... */
#include "ansidecl.h"
#ifdef BFD_ASSEMBLER
#include "bfd.h"
#ifndef COMMON
#ifdef TEST
-#define COMMON /* declare our COMMONs storage here. */
+#define COMMON /* declare our COMMONs storage here. */
#else
#define COMMON extern /* our commons live elswhere */
#endif
SEG_ABSOLUTE = 0,
SEG_LIST,
SEG_UNKNOWN,
- SEG_GOOF, /* Only happens if AS has a logic error. */
+ SEG_GOOF, /* Only happens if AS has a logic error. */
/* Invented so we don't crash printing */
- /* error message involving weird segment. */
- SEG_EXPR, /* Intermediate expression values. */
+ /* error message involving weird segment. */
+ SEG_EXPR, /* Intermediate expression values. */
SEG_DEBUG, /* Debug segment */
SEG_NTV, /* Transfert vector preload segment */
SEG_PTV, /* Transfert vector postload segment */
/* What subseg we are accreting now? */
COMMON subsegT now_subseg;
-/* Segment our instructions emit to. */
+/* Segment our instructions emit to. */
COMMON segT now_seg;
#ifdef BFD_ASSEMBLER
{
/* Variable chars to be repeated fr_offset times.
Fr_symbol unused. Used with fr_offset == 0 for a
- constant length frag. */
+ constant length frag. */
rs_fill = 1,
/* Align. The fr_offset field holds the power of 2 to which to
rs_align_code,
/* Org: Fr_offset, fr_symbol: address. 1 variable char: fill
- character. */
+ character. */
rs_org,
#ifndef WORKING_DOT_WORD
are detected. */
COMMON unsigned char flag_always_generate_output; /* -Z */
-/* This is true if the assembler should output time and space usage. */
+/* This is true if the assembler should output time and space usage. */
COMMON unsigned char flag_print_statistics;
/* True if local absolute symbols are to be stripped. */
/* name of file defining extensions to the basic instruction set */
COMMON char *insttbl_file_name;
-/* TRUE if we need a second pass. */
+/* TRUE if we need a second pass. */
COMMON int need_pass_2;
/* TRUE if we should do no relaxing, and
#endif
#endif /* GAS */
-
-/* end of as.h */
/* asintl.h - gas-specific header for gettext code.
- Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Written by Tom Tromey <tromey@cygnus.com>
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ 02111-1307, USA. */
#ifdef HAVE_LOCALE_H
# include <locale.h>
-/* write.h
-
- Copyright (C) 1987, 1992 Free Software Foundation, Inc.
+/* bit_fix.h
+ Copyright (C) 1987, 1992, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
/* The bit_fix was implemented to support machines that need variables
to be inserted in bitfields other than 1, 2 and 4 bytes.
int fx_bit_size; /* Length of bitfield */
int fx_bit_offset; /* Bit offset to bitfield */
long fx_bit_base; /* Where do we apply the bitfix.
- If this is zero, default is assumed. */
+ If this is zero, default is assumed. */
long fx_bit_base_adj; /* Adjustment of base */
long fx_bit_max; /* Signextended max for bitfield */
long fx_bit_min; /* Signextended min for bitfield */
typedef struct bit_fix bit_fixS;
#endif /* __bit_fix_h__ */
-
-/* end of bit_fix.h */
/* dwarf2dbg.h - DWARF2 debug support
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
source information passed in the arguments. ADDR should be the
frag-relative offset of the instruction the information is for and
L is the source information that should be associated with that
- address. */
+ address. */
extern void dwarf2_gen_line_info PARAMS ((addressT addr,
struct dwarf2_line_info *l));
/* expr.h -> header file for expr.c
- Copyright (C) 1987, 92-98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1987, 92-99, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
unsigned short X_md;
} expressionS;
-/* "result" should be type (expressionS *). */
+/* "result" should be type (expressionS *). */
#define expression(result) expr (0, result)
/* If an expression is O_big, look here for its value. These common
- data may be clobbered whenever expr() is called. */
-/* Flonums returned here. Big enough to hold most precise flonum. */
+ data may be clobbered whenever expr() is called. */
+/* Flonums returned here. Big enough to hold most precise flonum. */
extern FLONUM_TYPE generic_floating_point_number;
-/* Bignums returned here. */
+/* Bignums returned here. */
extern LITTLENUM_TYPE generic_bignum[];
-/* Number of littlenums in above. */
+/* Number of littlenums in above. */
#define SIZE_OF_LARGE_NUMBER (20)
typedef char operator_rankT;
extern symbolS *expr_build_unary PARAMS ((operatorT, symbolS *));
extern symbolS *expr_build_binary PARAMS ((operatorT, symbolS *, symbolS *));
extern symbolS *expr_build_dot PARAMS ((void));
-
-/* end of expr.h */
/* flonum.h - Floating point package
-
- Copyright (C) 1987, 90, 91, 92, 94, 95, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1987, 90, 91, 92, 94, 95, 96, 2000
+ Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
typedef struct FLONUM_STRUCT FLONUM_TYPE;
-
/***********************************************************************\
* *
* Since we can (& do) meet with exponents like 10^5000, it *
* *
\***********************************************************************/
-
extern const FLONUM_TYPE flonum_positive_powers_of_ten[];
extern const FLONUM_TYPE flonum_negative_powers_of_ten[];
extern const int table_size_of_flonum_powers_of_ten;
/* Flonum_XXX_powers_of_ten[] table has */
/* legal indices from 0 to */
-/* + this number inclusive. */
-
-
+/* + this number inclusive. */
/***********************************************************************\
* *
\***********************************************************************/
#define ERROR_EXPONENT_OVERFLOW (2)
-
-/* end of flonum.h */
struct frag
{
- /* Object file address (as an octet offset). */
+ /* Object file address (as an octet offset). */
addressT fr_address;
- /* Chain forward; ascending address order. Rooted in frch_root. */
+ /* Chain forward; ascending address order. Rooted in frch_root. */
struct frag *fr_next;
- /* (Fixed) number of octets we know we have. May be 0. */
+ /* (Fixed) number of octets we know we have. May be 0. */
offsetT fr_fix;
/* May be used for (Variable) number of octets after above.
The generic frag handling code no longer makes any use of fr_var. */
offsetT fr_var;
- /* For variable-length tail. */
+ /* For variable-length tail. */
symbolS *fr_symbol;
- /* For variable-length tail. */
+ /* For variable-length tail. */
offsetT fr_offset;
/* Points to opcode low addr byte, for relaxation. */
char *fr_opcode;
#define SIZEOF_STRUCT_FRAG \
((char *)zero_address_frag.fr_literal-(char *)&zero_address_frag)
-/* We want to say fr_literal[0] above. */
+/* We want to say fr_literal[0] above. */
/* Current frag we are building. This frag is incomplete. It is,
however, included in frchain_now. The fr_fix field is bogus;
extern addressT frag_now_fix PARAMS ((void));
extern addressT frag_now_fix_octets PARAMS ((void));
-/* For foreign-segment symbol fixups. */
+/* For foreign-segment symbol fixups. */
COMMON fragS zero_address_frag;
-/* For local common (N_BSS segment) fixups. */
+/* For local common (N_BSS segment) fixups. */
COMMON fragS bss_address_frag;
#if 0
#define FRAG_APPEND_1_CHAR(X) frag_append_1_char (X)
#endif
-
void frag_init PARAMS ((void));
fragS *frag_alloc PARAMS ((struct obstack *));
void frag_grow PARAMS ((unsigned int nchars));
/* itbl-ops.h
- Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
e_invproc /* invalid processor */
} e_processor;
-/* 0 means an instruction table was not specified. */
+/* 0 means an instruction table was not specified. */
extern int itbl_have_entries;
/* These routines are visible to the main part of the assembler */
unsigned long val));
/* These routines are called by the table parser used to build the
- dynamic list of new processor instructions and registers. */
+ dynamic list of new processor instructions and registers. */
struct itbl_entry *itbl_add_reg PARAMS ((int yyproc, int yytype,
char *regname, int regnum));
/* macro.h - header file for macro support for gas and gasp
- Copyright (C) 1994, 95, 96, 97, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1994, 95, 96, 97, 98, 2000 Free Software Foundation, Inc.
Written by Steve and Judy Chamberlain of Cygnus Support,
sac@cygnus.com
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ 02111-1307, USA. */
#ifndef MACRO_H
#include "ansidecl.h"
#include "sb.h"
-/* Structures used to store macros.
+/* Structures used to store macros.
Each macro knows its name and included text. It gets built with a
list of formal arguments, and also keeps a hash table which points
into the list to speed up formal search. Each formal knows its
name and its default value. Each time the macro is expanded, the
- formals get the actual values attatched to them. */
+ formals get the actual values attatched to them. */
/* describe the formal arguments to a macro */
#define NARG_INDEX (-2)
#define LOCAL_INDEX (-3)
-/* describe the macro. */
+/* describe the macro. */
typedef struct macro_struct
{
- sb sub; /* substitution text. */
- int formal_count; /* number of formal args. */
+ sb sub; /* substitution text. */
+ int formal_count; /* number of formal args. */
formal_entry *formals; /* pointer to list of formal_structs */
- struct hash_control *formal_hash; /* hash table of formals. */
+ struct hash_control *formal_hash; /* hash table of formals. */
}
macro_entry;
extern const char *define_macro
PARAMS ((int idx, sb *in, sb *label, int (*get_line) PARAMS ((sb *)),
const char **namep));
-extern int check_macro PARAMS ((const char *, sb *, int, const char **,
+extern int check_macro PARAMS ((const char *, sb *, int, const char **,
macro_entry **));
extern void delete_macro PARAMS ((const char *));
extern const char *expand_irp
/* read.h - of read.c
- Copyright (C) 1986, 90, 92, 93, 94, 95, 96, 1997
+ Copyright (C) 1986, 90, 92, 93, 94, 95, 96, 97, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-extern char *input_line_pointer;/* -> char we are parsing now. */
+extern char *input_line_pointer;/* -> char we are parsing now. */
#define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */
-/* many syntactically unnecessary places. */
+/* many syntactically unnecessary places. */
/* Normally undefined. For compatibility */
-/* with ancient GNU cc. */
+/* with ancient GNU cc. */
/* #undef PERMIT_WHITESPACE */
#ifdef PERMIT_WHITESPACE
#define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
#endif
-
#define LEX_NAME (1) /* may continue a name */
#define LEX_BEGIN_NAME (2) /* may begin a name */
#define LEX_END_NAME (4) /* ends a name */
extern void stringer PARAMS ((int append_zero));
extern void s_xstab PARAMS ((int what));
extern void s_rva PARAMS ((int));
-
-/* end of read.h */
/* sb.h - header file for string buffer manipulation routines
- Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 2000 Free Software Foundation, Inc.
Written by Steve and Judy Chamberlain of Cygnus Support,
sac@cygnus.com
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ 02111-1307, USA. */
#ifndef SB_H
/* structure of an sb */
typedef struct sb
{
- char *ptr; /* points to the current block. */
- int len; /* how much is used. */
+ char *ptr; /* points to the current block. */
+ int len; /* how much is used. */
int pot; /* the maximum length is 1<<pot */
struct le *item;
}
/* struct_symbol.h - Internal symbol structure
- Copyright (C) 1987, 92, 93, 94, 95, 98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1987, 92, 93, 94, 95, 98, 99, 2000
+ Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
/* The (4-origin) position of sy_name in the symbol table of the object
file. This will be 0 for (nameless) .stabd symbols.
- Not used until write_object_file() time. */
+ Not used until write_object_file() time. */
unsigned long sy_name_offset;
/* What we write in .o file (if permitted). */
obj_symbol_type sy_symbol;
- /* The 24 bit symbol number. Symbol numbers start at 0 and are unsigned. */
+ /* The 24 bit symbol number. Symbol numbers start at 0 and are unsigned. */
long sy_number;
#endif
are local and would otherwise not be. */
unsigned int sy_used_in_reloc : 1;
- /* Whether the symbol is used as an operand or in an expression.
+ /* Whether the symbol is used as an operand or in an expression.
NOTE: Not all the backends keep this information accurate;
backends which use this bit are responsible for setting it when
a symbol is used in backend routines. */
#endif /* BFD_ASSEMBLER */
#endif /* __struc_symbol_h__ */
-
-/* end of struc-symbol.h */
/* subsegs.h -> subsegs.c
- Copyright (C) 1987, 92, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1987, 92, 93, 94, 95, 96, 98, 2000
+ Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
struct frag *frch_root; /* 1st struct frag in chain, or NULL */
struct frag *frch_last; /* last struct frag in chain, or NULL */
struct frchain *frch_next; /* next in chain of struct frchain-s */
- segT frch_seg; /* SEG_TEXT or SEG_DATA. */
+ segT frch_seg; /* SEG_TEXT or SEG_DATA. */
subsegT frch_subseg; /* subsegment number of this chain */
#ifdef BFD_ASSEMBLER
fixS *fix_root; /* Root of fixups for this subsegment. */
extern frchainS *frchain_root;
/* Frchain we are assembling into now. That is, the current segment's
- frag chain, even if it contains no (complete) frags. */
+ frag chain, even if it contains no (complete) frags. */
extern frchainS *frchain_now;
-
typedef struct segment_info_struct
{
frchainS *frchainP;
#endif /* ! BFD_ASSEMBLER */
extern void subsegs_print_statistics PARAMS ((FILE *));
-
-/* end of subsegs.h */
/* symbols.h -
- Copyright (C) 1987, 90, 92, 93, 94, 95, 97, 1999
+ Copyright (C) 1987, 90, 92, 93, 94, 95, 97, 99, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
#include "struc-symbol.h"
#endif
-extern struct obstack notes; /* eg FixS live here. */
+extern struct obstack notes; /* eg FixS live here. */
extern struct obstack cond_obstack; /* this is where we track .ifdef/.endif
(if we do that at all). */
TC_SYMFIELD_TYPE *symbol_get_tc PARAMS ((symbolS *));
void symbol_set_tc PARAMS ((symbolS *, TC_SYMFIELD_TYPE *));
#endif
-
-/* end of symbols.h */
extern const pseudo_typeS md_pseudo_table[];
/* JF moved this here from as.h under the theory that nobody except MACHINE.c
- and write.c care about it anyway. */
+ and write.c care about it anyway. */
struct relax_type
{
- /* Forward reach. Signed number. > 0. */
+ /* Forward reach. Signed number. > 0. */
long rlx_forward;
- /* Backward reach. Signed number. < 0. */
+ /* Backward reach. Signed number. < 0. */
long rlx_backward;
- /* Bytes length of this address. */
+ /* Bytes length of this address. */
unsigned char rlx_length;
- /* Next longer relax-state. 0 means there is no 'next' relax-state. */
+ /* Next longer relax-state. 0 means there is no 'next' relax-state. */
relax_substateT rlx_more;
};
/* write.h
- Copyright (C) 1987, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1987, 92, 93, 94, 95, 96, 97, 2000
+ Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
/* Where is the first byte to fix up? */
long fx_where;
- /* NULL or Symbol whose value we add in. */
+ /* NULL or Symbol whose value we add in. */
symbolS *fx_addsy;
- /* NULL or Symbol whose value we subtract. */
+ /* NULL or Symbol whose value we subtract. */
symbolS *fx_subsy;
- /* Absolute number we add in. */
+ /* Absolute number we add in. */
valueT fx_offset;
/* Next fixS in linked list, or NULL. */
extern char *next_object_file_charP;
#ifndef MANY_SEGMENTS
-COMMON fixS *text_fix_root, *text_fix_tail; /* Chains fixSs. */
-COMMON fixS *data_fix_root, *data_fix_tail; /* Chains fixSs. */
-COMMON fixS *bss_fix_root, *bss_fix_tail; /* Chains fixSs. */
-extern struct frag *text_last_frag; /* Last frag in segment. */
-extern struct frag *data_last_frag; /* Last frag in segment. */
+COMMON fixS *text_fix_root, *text_fix_tail; /* Chains fixSs. */
+COMMON fixS *data_fix_root, *data_fix_tail; /* Chains fixSs. */
+COMMON fixS *bss_fix_root, *bss_fix_tail; /* Chains fixSs. */
+extern struct frag *text_last_frag; /* Last frag in segment. */
+extern struct frag *data_last_frag; /* Last frag in segment. */
#endif
-COMMON fixS **seg_fix_rootP, **seg_fix_tailP; /* -> one of above. */
+COMMON fixS **seg_fix_rootP, **seg_fix_tailP; /* -> one of above. */
#endif
extern long string_byte_count;
extern void write_print_statistics PARAMS ((FILE *));
#endif /* __write_h__ */
-/* end of write.h */