diff options
author | Thiemo Seufer <ths@networkno.de> | 2003-03-09 16:16:31 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2003-03-09 16:16:31 +0000 |
commit | 149495708ce19251a0f6c3b33516e2cec8783887 (patch) | |
tree | b07c1e71599bf0f664bde25930e0220c53f38b96 /gas | |
parent | fff371e8600807a4bbe61bd1c01e3b485d0857f7 (diff) | |
download | gdb-149495708ce19251a0f6c3b33516e2cec8783887.zip gdb-149495708ce19251a0f6c3b33516e2cec8783887.tar.gz gdb-149495708ce19251a0f6c3b33516e2cec8783887.tar.bz2 |
* config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
(s_mips_ent): Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 30 |
2 files changed, 7 insertions, 28 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0f2d8d2..b61b4d0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> + + * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case. + (s_mips_ent): Likewise. + 2003-03-04 Dmitry Diky <diwil@mail.ru> * config/tc-msp430.c (mcu_types): Add recently announced x1122 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index c71d330..b014b93 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -14080,7 +14080,6 @@ s_mips_end (x) int x ATTRIBUTE_UNUSED; { symbolS *p; - int maybe_text; /* Following functions need their own .frame and .cprestore directives. */ mips_frame_reg_valid = 0; @@ -14094,19 +14093,7 @@ s_mips_end (x) else p = NULL; -#ifdef BFD_ASSEMBLER - if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) != 0) - maybe_text = 1; - else - maybe_text = 0; -#else - if (now_seg != data_section && now_seg != bss_section) - maybe_text = 1; - else - maybe_text = 0; -#endif - - if (!maybe_text) + if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) == 0) as_warn (_(".end not in text section")); if (!cur_proc_ptr) @@ -14178,7 +14165,6 @@ s_mips_ent (aent) int aent; { symbolS *symbolP; - int maybe_text; symbolP = get_symbol (); if (*input_line_pointer == ',') @@ -14188,19 +14174,7 @@ s_mips_ent (aent) || *input_line_pointer == '-') get_number (); -#ifdef BFD_ASSEMBLER - if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) != 0) - maybe_text = 1; - else - maybe_text = 0; -#else - if (now_seg != data_section && now_seg != bss_section) - maybe_text = 1; - else - maybe_text = 0; -#endif - - if (!maybe_text) + if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) == 0) as_warn (_(".ent or .aent not in text section.")); if (!aent && cur_proc_ptr) |