diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2003-12-03 03:39:58 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2003-12-03 03:39:58 +0000 |
commit | 24361518917bcfdb764a5cfe6caa7f4ee8d3f81d (patch) | |
tree | 9072477b054637affb48b1baf4f3ead318b77271 /gas/subsegs.c | |
parent | 021d913e2ed9aa3cf3b061152f708d3d40f79dbd (diff) | |
download | binutils-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.zip binutils-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.tar.gz binutils-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.tar.bz2 |
* messages.c: Convert to ISO-C.
* obj.h: Likewise.
* output-file.c: Likewise.
* output-file.h: Likewise.
* sb.c: Likewise.
* sb.h: Likewise.
* stabs.c: Likewise.
* subsegs.c: Likewise.
* subsegs.h: Likewise.
* tc.h: Likewise.
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r-- | gas/subsegs.c | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c index 0fe11e7..b2432e9 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -70,14 +70,14 @@ static segment_info_type *und_seg_info; #endif /* BFD_ASSEMBLER */ -static void subseg_set_rest PARAMS ((segT, subsegT)); +static void subseg_set_rest (segT, subsegT); static fragS dummy_frag; static frchainS absolute_frchain; void -subsegs_begin () +subsegs_begin (void) { /* Check table(s) seg_name[], seg_N_TYPE[] is in correct order */ #if !defined (MANY_SEGMENTS) && !defined (BFD_ASSEMBLER) @@ -146,9 +146,7 @@ subsegs_begin () * segment context correct. */ void -subseg_change (seg, subseg) - register segT seg; - register int subseg; +subseg_change (register segT seg, register int subseg) { now_seg = seg; now_subseg = subseg; @@ -203,9 +201,7 @@ subseg_change (seg, subseg) } static void -subseg_set_rest (seg, subseg) - segT seg; - subsegT subseg; +subseg_set_rest (segT seg, subsegT subseg) { register frchainS *frcP; /* crawl frchain chain */ register frchainS **lastPP; /* address of last pointer */ @@ -401,9 +397,7 @@ subseg_set (seg, subseg) /* begin assembly for a new sub-segment */ #else /* BFD_ASSEMBLER */ segT -subseg_get (segname, force_new) - const char *segname; - int force_new; +subseg_get (const char *segname, int force_new) { segT secptr; segment_info_type *seginfo; @@ -453,9 +447,7 @@ subseg_get (segname, force_new) } segT -subseg_new (segname, subseg) - const char *segname; - subsegT subseg; +subseg_new (const char *segname, subsegT subseg) { segT secptr; segment_info_type *seginfo; @@ -471,9 +463,7 @@ subseg_new (segname, subseg) /* Like subseg_new, except a new section is always created, even if a section with that name already exists. */ segT -subseg_force_new (segname, subseg) - const char *segname; - subsegT subseg; +subseg_force_new (const char *segname, subsegT subseg) { segT secptr; segment_info_type *seginfo; @@ -487,9 +477,7 @@ subseg_force_new (segname, subseg) } void -subseg_set (secptr, subseg) - segT secptr; - subsegT subseg; +subseg_set (segT secptr, subsegT subseg) { if (! (secptr == now_seg && subseg == now_subseg)) subseg_set_rest (secptr, subseg); @@ -503,8 +491,7 @@ subseg_set (secptr, subseg) /* Get the gas information we are storing for a section. */ segment_info_type * -seg_info (sec) - segT sec; +seg_info (segT sec) { if (sec == bfd_abs_section_ptr) return abs_seg_info; @@ -515,8 +502,7 @@ seg_info (sec) } symbolS * -section_symbol (sec) - segT sec; +section_symbol (segT sec) { segment_info_type *seginfo = seg_info (sec); symbolS *s; @@ -581,8 +567,7 @@ const char * const nontext_section_names[] = { #endif /* ! BFD_ASSEMBLER */ int -subseg_text_p (sec) - segT sec; +subseg_text_p (segT sec) { #ifdef BFD_ASSEMBLER return (bfd_get_section_flags (stdoutput, sec) & SEC_CODE) != 0; @@ -609,8 +594,7 @@ subseg_text_p (sec) } void -subsegs_print_statistics (file) - FILE *file; +subsegs_print_statistics (FILE *file) { frchainS *frchp; fprintf (file, "frag chains:\n"); |