From: Ian Lance Taylor Date: Thu, 27 Jun 1996 18:57:21 +0000 (+0000) Subject: * as.h (struct frag): Remove unused align_mask and align_offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e027ce6c2174249e4c1ddb4f7225f2668550cb2;p=binutils-gdb.git * as.h (struct frag): Remove unused align_mask and align_offset fields. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 130613febd7..5bd6c4fde97 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Thu Jun 27 12:18:26 1996 Ian Lance Taylor + * as.h (struct frag): Remove unused align_mask and align_offset + fields. + * listing.c (calc_hex): Offset by fr_fix when examining fr_var. From . diff --git a/gas/as.h b/gas/as.h index dc1ff28bbda..7ae19514b6d 100644 --- a/gas/as.h +++ b/gas/as.h @@ -92,13 +92,6 @@ void *alloca (); #include #endif -/* Some systems do declare this, but this seems to be the universal - declaration, though the parameter type varies. (It ought to use - `const' but many systems prototype it without.) Include it here - for systems that don't declare it. If conflicts arise, just add - another autoconf test... */ -extern char *strdup (/* const char * */); - #include /* The first getopt value for machine-independent long options. 150 isn't special; it's just an arbitrary non-ASCII char value. */ @@ -281,12 +274,16 @@ typedef addressT valueT; #ifdef MANY_SEGMENTS #include "bfd.h" -#define N_SEGMENTS 10 -#define SEG_NORMAL(x) ((x) >= SEG_E0 && (x) <= SEG_E9) -#define SEG_LIST SEG_E0,SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9 +#define N_SEGMENTS 40 +#define SEG_NORMAL(x) ((x) >= SEG_E0 && (x) <= SEG_E39) +#define SEG_LIST SEG_E0,SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9,\ + SEG_E10,SEG_E11,SEG_E12,SEG_E13,SEG_E14,SEG_E15,SEG_E16,SEG_E17,SEG_E18,SEG_E19,\ + SEG_E20,SEG_E21,SEG_E22,SEG_E23,SEG_E24,SEG_E25,SEG_E26,SEG_E27,SEG_E28,SEG_E29,\ + SEG_E30,SEG_E31,SEG_E32,SEG_E33,SEG_E34,SEG_E35,SEG_E36,SEG_E37,SEG_E38,SEG_E39 #define SEG_TEXT SEG_E0 #define SEG_DATA SEG_E1 #define SEG_BSS SEG_E2 +#define SEG_LAST SEG_E39 #else #define N_SEGMENTS 3 #define SEG_NORMAL(x) ((x) == SEG_TEXT || (x) == SEG_DATA || (x) == SEG_BSS) @@ -440,11 +437,6 @@ struct frag relax_stateT fr_type; relax_substateT fr_subtype; - /* Track the alignment and offset of the current frag. With this, - sometimes we can avoid creating new frags for .align directives. */ - unsigned short align_mask; - unsigned short align_offset; - /* These are needed only on the NS32K machines. But since we don't include targ-cpu.h until after this structure has been defined, we can't really conditionalize it. This code should be @@ -606,7 +598,7 @@ void as_howmuch PARAMS ((FILE * stream)); void as_perror PARAMS ((const char *gripe, const char *filename)); void as_where PARAMS ((char **namep, unsigned int *linep)); void bump_line_counters PARAMS ((void)); -void do_scrub_begin PARAMS ((void)); +void do_scrub_begin PARAMS ((int)); void input_scrub_begin PARAMS ((void)); void input_scrub_close PARAMS ((void)); void input_scrub_end PARAMS ((void));