* coffdump.c (PROGRAM_VERSION): Delete.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
34105363
L
12001-09-30 H.J. Lu <hjl@gnu.org>
2
3 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
4 and "ams" for compatibility.
5
79ad6e94 62001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
ef17112f
HPN
7
8 * config/tc-sh.c (md_pcrel_from_section): Transformed from
9 md_pcrel_from. Handle pc-relativeness against link-time
10 symbol. Handle relativeness to elsewhere than the fixup.
79ad6e94
HPN
11 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
12 (md_pcrel_from_section): Prototype.
528a2d4a
HPN
13
14 * Makefile.am: Update dependencies with "make dep-am".
15 * Makefile.in: Regenerate.
16
27302d63
SC
172001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
18
19 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
20 (print_opcode_format, skip_whites): Likewise.
21 (convert_branch, m68hc11_new_insn): Likewise.
22 (build_dbranch_insn, build_indexed_byte): Likewise.
23 (build_reg_mode, find, find_opcode): Likewise.
24 (print_insn_format): Fix call to print_opcode_format.
25 (md_assemble): Fix call to build_dbranch_insn.
26
2c20dfb2
NC
272001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
28
29 * config/tc-arm.c: Add missing prototypes.
30
1fd716b9
JJ
312001-09-26 Jeff Johnston <jjohnstn@redhat.com>
32
33 * input-file.c (input_file_open): When reading the
34 first line looking for #NO_APP, prepare for the possibility
35 of finding #APP instead. Also fix algorithm to allow
36 white-space to follow either #NO_APP or #APP directives.
37
97735a42
AM
382001-09-25 Geoff Berry <geoff.berry@bops.com>
39
40 * listing.c (buffer_line): Don't write past the end of `line' when
41 EOF is reached.
42
6e22e505
AO
432001-09-25 Alexandre Oliva <aoliva@redhat.com>
44
45 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
46 relocation for differences between symbols in a section other
47 than the one in which the difference is to be placed; apply
48 the relocation instead.
49
89b57c9a
NC
502001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
51
52 * config/tc-arc.c: Add missing prototype.
53 (md_atof): Change type to int. Add missing prototype.
54 * config/tc-arc.h: Prototype exported functions.
55
a80076a1
NC
562001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
57
58 * as.c: Add missing function prototype.
59 * config/obj-aout.c: Fix compile time warning.
60
7146a6f5
AM
612001-09-21 Bruno Haible <haible@clisp.cons.org>
62
63 * config/tc-openrisc.c: Don't include <ctype.h>.
64
16a419ba
NC
652001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
66
67 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
68
44addf7f
AM
692001-09-19 Alan Modra <amodra@bigpond.net.au>
70
71 * config/tc-i370.c: Fix typo in last change.
72
2d5aaba0
NC
732001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
74
75 * doc/as.texinfo (Symbol Names): Improve documentation on local
76 labels and add documenation about dollar labels.
77
3882b010
L
782001-09-18 Bruno Haible <haible@clisp.cons.org>
79
80 * as.h: Don't include <ctype.h>.
81 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
82 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
83 (atof_generic): Use ISDIGIT instead of isdigit.
84 * config/m68k-parse.y: Include "safe-ctype.h".
85 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
86 * config/obj-elf.c: Include "safe-ctype.h".
87 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
88 * config/obj-vms.c: Include "safe-ctype.h".
89 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
90 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
91 instead of isupper/islower/toupper/tolower.
92 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
93 (insert_sreg): Use TOUPPER instead of islower/toupper.
94 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
95 isalpha/isalnum/isupper/tolower.
96 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
97 isdigit.
98 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
99 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
100 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
101 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
102 (arc_extoper): Use TOLOWER instead of isupper/tolower.
103 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
104 (arm_psr_parse): Use ISALPHA instead of isalpha.
105 (accum0_required_here): Use ISALNUM instead of isalnum.
106 (do_ldrd): Use ISSPACE instead of isspace.
107 (decode_shift): Use ISALPHA instead of isalpha.
108 (insert_reg): Use TOUPPER instead of islower/toupper.
109 (arm_reg_parse): Use ISALPHA instead of isalpha.
110 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
111 isalnum/ispunct/tolower.
112 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
113 (md_parse_option): Use TOLOWER instead of tolower.
114 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
115 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
116 (cris_process_instruction): Use ISLOWER instead of islower.
117 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
118 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
119 (get_flags): Use ISSPACE instead of isspace.
120 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
121 (do_assemble): Use TOLOWER instead of tolower.
122 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
123 (do_assemble): Use TOLOWER instead of tolower.
124 (d30v_start_line): Use ISSPACE instead of isspace.
125 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
126 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
127 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
128 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
129 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
130 (start_label): Use ISALPHA instead of isalpha.
131 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
132 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
133 isupper/islower/tolower.
134 (pa_parse_number): Use ISDIGIT instead of isdigit.
135 (pa_chk_field_selector): Use TOLOWER instead of tolower.
136 (pa_stringer): Use ISDIGIT instead of isdigit.
137 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
138 (register_name): Use ISALPHA instead of isalpha.
139 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
140 isalnum/islower/tolower.
141 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
142 isdigit/isalpha.
143 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
144 isalpha/isxdigit.
145 (md_assemble): Use ISSPACE instead of isspace.
146 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
147 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
148 instead of isdigit/islower/isupper/tolower/isalpha.
149 (output_invalid): Use ISPRINT instead of isprint.
150 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
151 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
152 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
153 (get_args): Use ISALNUM instead of isalnum.
154 * config/tc-ia64.c: Include "safe-ctype.h".
155 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
156 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
157 (ia64_parse_name): Likewise.
158 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
159 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
160 instead of isspace/isalnum/isupper/tolower.
161 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
162 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
163 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
164 (mklower_table): Remove variable.
165 (mklower): Remove macro.
166 (insert_reg): Use TOUPPER instead of islower/toupper.
167 (md_begin): Remove initialization of mklower_table.
168 (s_reg): Use ISALNUM instead of isalnum.
169 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
170 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
171 (build_mri_control_operand): Use TOLOWER instead of tolower.
172 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
173 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
174 (md_assemble): Use ISSPACE instead of isspace.
175 (get_imm16): Use ISALNUM instead of isalnum.
176 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
177 isdigit/isupper/tolower.
178 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
179 instead of isalpha/isupper/tolower.
180 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
181 isdigit/islower/isupper.
182 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
183 (mcore_s_section): Use ISSPACE instead of isspace.
184 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
185 isspace/tolower/isalnum.
186 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
187 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
188 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
189 isspace.
190 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
191 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
192 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
193 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
194 isdigit/tolower.
195 (tc_get_register): Likewise.
196 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
197 (s_mips_ent): Use ISDIGIT instead of isdigit.
198 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
199 (md_assemble): Use ISSPACE instead of isspace.
200 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
201 (md_assemble): Use ISSPACE instead of isspace.
202 * config/tc-ns32k.c: Don't include <ctype.h>.
203 * config/tc-pdp11.c: Include "safe-ctype.h".
204 (mklower): Remove function.
205 (parse_reg): Use TOLOWER instead of mklower.
206 * config/tc-pj.c: Include "safe-ctype.h".
207 (md_assemble): Use ISSPACE instead of isspace.
208 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
209 (register_name): Use ISALPHA instead of isalpha.
210 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
211 isalnum/islower/tolower.
212 (md_assemble): Use ISSPACE instead of isspace.
213 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
214 islower/toupper.
215 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
216 (register_name): Use ISALPHA instead of isalpha.
217 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
218 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
219 isspace.
220 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
221 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
222 isalnum/islower/tolower.
223 (IDENT_CHAR): Use ISALNUM instead of isalnum.
224 (parse_reg): Use TOLOWER instead of tolower.
225 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
226 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
227 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
228 (parse_keyword_arg): Use ISALNUM instead of isalnum.
229 * config/tc-tahoe.c: Include "safe-ctype.h".
230 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
231 (tip_op): Use TOLOWER instead of isupper/tolower.
232 * config/tc-tic30.c: Include "safe-ctype.h".
233 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
234 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
235 (tic30_operand): Use TOLOWER instead of tolower.
236 (tic30_find_parallel_insn): Likewise.
237 (output_invalid): Use ISPRINT instead of isprint.
238 * config/tc-tic54x.c: Include "safe-ctype.h".
239 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
240 (lookup_version): Use TOUPPER instead of toupper.
241 (tic54x_var): Use ISALPHA instead of isalpha.
242 (tic54x_mlib): Use ISSPACE instead of isspace.
243 (subsym_iscons): Use TOUPPER instead of toupper.
244 (get_operands): Use ISSPACE instead of isspace.
245 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
246 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
247 (next_line_shows_parallel): Use ISSPACE instead of isspace.
248 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
249 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
250 ISSPACE instead of isspace.
251 * config/tc-tic80.c: Include "safe-ctype.h".
252 (md_assemble): Use ISSPACE instead of isspace.
253 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
254 (system_register_name): Use ISDIGIT instead of isdigit.
255 (md_assemble): Use ISSPACE instead of isspace.
256 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
257 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
258 isupper/tolower/isdigit.
259 (vip_op): Use TOLOWER instead of isupper/tolower.
260 * config/tc-w65.c: Don't include <ctype.h>.
261 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
262 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
263 (whatreg): Use ISDIGIT instead of isdigit.
264 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
265 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
266 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
267 (integer_constant): Use ISALNUM/TOUPPER instead of
268 isalnum/islower/toupper.
269 (operand): Use TOLOWER instead of isupper/tolower.
270 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
271 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
272 of isdigit.
273 (process_assigns, whatcond): Use TOUPPER instead of toupper.
274 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
275 (main): For gettext, also set the LC_CTYPE locate facet.
276 * hash.c: Include "safe-ctype.h".
277 (main): Use TOLOWER instead of isupper/tolower.
278 * itbl-lex.l: Don't include <ctype.h>.
279 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
280 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
281 omit non-ASCII characters.
282 (debugging_pseudo): Use ISSPACE instead of isspace.
283 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
284 (buffer_and_nest): Use ISALNUM instead of isalnum.
285 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
286 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
287 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
288 instead of isalnum/isdigit/isupper/isalpha.
289 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
290 of isalpha/isalnum/isupper/tolower.
291 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
292 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
293 isupper/tolower/isdigit.
294 (s_mri_common): Use ISDIGIT instead of isdigit.
295 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
296 (s_float_space): Use ISALPHA instead of isalpha.
297 (ignore_rest_of_line): Use ISPRINT instead of isprint.
298 (float_cons): Use ISALPHA instead of isalpha.
299 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
300 isdigit/isxdigit.
301 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
302 (save_symbol_name): Use ISLOWER/TOUPPER instead of
303 islower/toupper.
304 (symbol_find_base): Use TOUPPER instead of islower/toupper.
305 (decode_local_label_name): Use ISDIGIT instead of isdigit.
306
b6849f55
NC
3072001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
308
309 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
310 in 64 bit mode and make format "e" work.
311
0e1a166b
AM
3122001-09-18 Alan Modra <amodra@bigpond.net.au>
313
314 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
315
316 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
317 var to ensure bfd_alloc arg is the right type.
318 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
319 bfd_bwrite.
320
321 * config/obj-coff.c: Replace calls to bfd_write with calls to
322 bfd_bwrite. Cast args of bfd_seek.
323
324 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
325 warning.
326
327 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
328
329 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
330 call to bfd_bread.
331
e08ae979
HPN
3322001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
333
334 * config/tc-sh.h (sh_force_relocation): Prototype.
335 (struct fix): Forward declare.
336 * config/tc-sh.c (type sh_operand_info): Move to top of file.
337 (cons, s_align_bytes): Remove old-type declarations.
338 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
339 get_operands, get_specific, insert, build_relax,
340 insert_loop_bounds, build_Mytes): Prototype.
341 (little): Make static. Prototype.
342 (check, tc_Nout_fix_to_chars): Delete unused functions.
343
920acd62
EC
3442001-09-14 Eric Christopher <echristo@redhat.com>
345
346 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
347 -mgp32/mgp64.
348
056a1d49
NC
3492001-09-14 Kevin Lo <kevlo@openbsd.org>
350
351 * configure.in: Add arm-openbsd target.
352 * configure: Regenerate.
353
4008bd9b
TS
3542001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
355
356 * configure.in: Change machine triplets from mips-*-linux-gnu* to
357 mips*-*-linux*.
358
233b8738
TS
3592001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
360
361 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
362
d61a78a7
RH
3632001-09-11 Richard Henderson <rth@redhat.com>
364
365 * config/tc-alpha.c (alpha_elf_section_letter): New.
366 (alpha_elf_section_flags): New.
367 * config/tc-alpha.h (md_elf_section_letter): New.
368 (md_elf_section_flags): New.
369 * config/tc-ia64.c (ia64_elf_section_letter): New.
370 * config/tc-ia64.h (md_elf_section_letter): New.
371
9469ddf0
JJ
3722001-09-11 Jakub Jelinek <jakub@redhat.com>
373
374 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
375 of 'm', 'S' instead of 's'. Update bad_msg.
376 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
377 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
378
e0890092
AM
3792001-09-09 Alan Modra <amodra@bigpond.net.au>
380
381 * expr.c (expr): Move code setting "retval" to the end of the loop,
382 and rearrange for efficiency. For "PIC code" subtraction, use
383 "rightseg" rather than recalculating. For "symbol OP symbol"
384 subtract, set "retval" to absolute_section if symbols in same
385 section.
386 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
387 O_symbol. Simplify a +/- b code. Allow equality and non-equality
388 comparisons on symbols from any section. Allow other comparison
389 operators as for subtraction.
390 (symbol_equated_reloc_p): New predicate function.
391 * symbols.h (symbol_equated_reloc_p): Declare.
79bcdb56
AM
392 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
393 for expression syms is set correctly.
394 (adjust_reloc_syms): Use symbol_equated_reloc_p.
e0890092
AM
395 (write_relocs): Likewise.
396 (write_object_file): Likewise.
e0890092
AM
397 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
398 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
399 of a complex expression when setting up frag_var.
400
ec8fcf4a
RH
4012001-09-07 Richard Henderson <rth@redhat.com>
402
403 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
404 require_seq and allow_seq. Let !literal omit the sequence number.
405 (tokenize_arguments): Reject sequence numbers of !allow_seq.
406
891937bf
JJ
4072001-09-08 Jakub Jelinek <jakub@redhat.com>
408
409 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
410 section symbols the same way as externs.
411
553178e4
TS
4122001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
413
414 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
415 pseudo-op.
ad58c921 416
cb56d3d3
TS
4172001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
418
419 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
420 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
421 PIC, BFD_RELOC_16_PCREL for the rest.
422 (mips_ip): Likewise.
79bcdb56
AM
423 (md_pcrel_from): return the right offset for the differently shifted
424 pcrel relocs.
cb56d3d3 425 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
ad58c921 426
3969b680
RH
4272001-09-05 Richard Henderson <rth@redhat.com>
428
429 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
430 (pseudo_func): Add @iplt.
431 (pseudo_opcode): Add data16 and data16.ua.
432 (md_begin): Set iplt pseudo.
433 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
434
4352001-09-04 Richard Henderson <rth@redhat.com>
19f78583
RH
436
437 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
438 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
439 (alpha_macros): Remove occurrences of same.
440 (O_lituse_addr, O_gprel): New.
441 (DUMMY_RELOC_LITUSE_*): New.
442 (s_alpha_ucons, s_alpha_arch): Prototype.
443 (alpha_reloc_op): Construct elements via DEF macro.
444 (ALPHA_RELOC_SEQUENCE_OK): Remove.
445 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
446 members to not be literal specific.
447 (next_sequence_num): New.
448 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
449 added/removed BFD relocations.
450 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
451 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
452 (tokenize_arguments): Parse ! relocations properly.
453 (find_macro_match): Delete unused macro argument types.
454 (assemble_insn): Add reloc parameter; emit that instead of the
455 default as appropriate.
456 (get_alpha_reloc_tag): New. Split from ...
457 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
458 (assemble_tokens): Don't search macros if user relocation present.
459 Copy reloc sequence number to insn struct.
460 (emit_ldgp): Remove user reloc handling.
461 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
462 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
463 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
464 * config/tc-alpha.h (tc_adjust_symtab): Always define.
465 (struct alpha_fix_tag): Name members less literal specific.
466
de342d07
JL
467Tue Sep 4 20:01:19 2001 Jeffrey A Law (law@cygnus.com)
468
469 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
470 address of two symbols in different sections.
471
3c02b2ab
EC
4722001-08-31 Eric Christopher <echristo@redhat.com>
473 Jason Eckhardt <jle@redhat.com>
474
475 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
476 5kc, and 20kc. Clean up old entries.
477
36ed2fff
JL
478Fri Aug 31 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
479 Jeff Law <law@redhat.com>
480
3c1ba8a3
JL
481 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
482 offset match H8 ELF spec.
483 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
484 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
485
36ed2fff
JL
486 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
487 (build_bytes): Mark fixups for PCrel branches as signed. For
488 OBJ_ELF, make sure the reloc's offset points to the first byte
489 to be modified.
490 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
491 * tc-h8300.h (relocation mappings): Add.
492
f333765f
JL
493Thu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
494
495 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
496 define for BFD_ASSEMBLER.
497 (tc_reloc_mangle): Likewise.
498 (tc_gen_reloc): New function for BFD_ASSEMBLER.
499
83e20b45
JL
500Wed Aug 29 12:49:58 2001 Jeffrey A Law (law@cygnus.com)
501
3c02b2ab 502 * config/tc-h8300.c (h8300hmode): Record the machine type
83e20b45
JL
503 if BFD_ASSEMBLER is defined.
504 (h8300smode, md_begin): Similarly.
505
f6314f3e
PB
5062001-08-29 Joel Sherrill <joel@OARcorp.com>
507
3c02b2ab 508 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
f6314f3e
PB
509 default from coff to elf.
510 * configure: Regenerate.
511
ccad732d
JL
512Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
513
7e0de7bf
JL
514 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
515 assorted coff relocations to the corresponding elf relocations.
516 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
517
ccad732d
JL
518 * configure.in: Add case for h8300-*-elf.
519 * configure: Regenerate.
520
1262d520
JR
521Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
522
523 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
82f3c9a3 524 documentation to reflect reality.
1262d520 525
7283eb86
TS
5262001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
527
ad58c921 528 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
7283eb86
TS
529 (macro): Reflect change to MAX_GPREL_OFFSET.
530
0baf16f2
AM
5312001-08-27 Torbjorn Granlund <tege@swox.com>
532 Staffan Ulfberg <staffanu@swox.se>
533 Linus Nordberg <linus@swox.se>
534 Alan Modra <amodra@bigpond.net.au>
535
536 * configure.in: Recognise powerpc*le*, not just powerpcle*.
537 * configure: Regenerate.
538 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
539 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
540 (md_assemble): Use them.
541 (ppc_machine): Support stub for ELF64 as well as XCOFF.
542 (md_pseudo_table): Add "llong", "quad".
543 (md_parse_option): Match default_cpu of powerpc*.
544 (ppc_arch): Likewise.
545 (ppc_subseg_align): Only for OBJ_XCOFF.
546 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
547 (md_begin): Select PPC_OPCODE_64 for 64 bit.
548 (ppc_insert_operand): Don't bother testing 'file' before calling
549 as_bad_where. Use as_bad_where for operand->insert errors.
550 (mapping): Add ELF64 relocation modifiers.
551 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
552 expressions with abs_symbol.
553 (ppc_elf_cons): Correct offset for little endian targets.
554 (ppc_elf_frob_symbol): New.
555 (md_assemble): Add support for 64 bit ELF relocs.
556 (ppc_tc): Ensure 8 byte alignment when 64 bit.
557 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
558 ".toc" section for 64 bit ELF.
559 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
560 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
561 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
562 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
563 Expand on comments, error message. Add support for 64 bit relocs,
564 and use PPC_HI etc. macros.
565 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
566 (HANDLE_ALIGN): Define to generate nops in code sections rather
567 than zeros.
568 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
569 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
570 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
571 (ppc_fix_adjustable): Declare.
572 (tc_frob_symbol): Define.
573 (ppc_elf_frob_symbol): Declare.
574
9d654c1c
AJ
5752001-08-26 Andreas Jaeger <aj@suse.de>
576
577 * config/tc-s390.c: Add missing prototypes
578 (md_gather_operands): Make static.
579
e7d556df
TS
5802001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
581
ad58c921
TS
582 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
583 allowed value, not the word beyond maximum.
584 * config/tc-mips.c (macro_build_lui): Code cleanup.
e7d556df
TS
585 (macro): Reflect change to MAX_GPREL_OFFSET.
586 (mips_ip): Check explicitly against S_EX_NONE.
587 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
588 (md_apply_fix): Code cleanup.
589
34f63668
AJ
5902001-08-24 Andreas Jaeger <aj@suse.de>
591
592 * config/tc-ppc.h: Fix prototype declaration.
593
c538998c
JJ
5942001-08-23 Jakub Jelinek <jakub@redhat.com>
595
596 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
597 * config/obj-elf.c (obj_elf_size): When size is constant, free
598 and clear symbol_get_obj(sym)->size if any.
599
1ff54a84
TS
6002001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
601
ad58c921
TS
602 * config/tc-mips.c (md_begin): Warn about incompatibility between
603 -march=FOO and -mipsN option, continue with default ISA.
1ff54a84 604
a6bacc80
TS
6052001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
606
607 * config/tc-mips.c (md_parse_option): #ifdef the
608 traditional/non-traditional names as it is done in mips_target_format.
609
ca3f7695
RH
6102001-08-20 Richard Henderson <rth@redhat.com>
611
612 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
613 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
614 use seg parameter instead of now_seg.
615
e87a0284
L
6162001-08-18 H.J. Lu <hjl@gnu.org>
617
618 * config/tc-mips.c (show): Add the missing prototype.
619
fb1b3232
TS
6202001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
621
622 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
623 return values.
624 (mips_ip): Use the new return values instead of characters. Add
625 support for %higher and %highest.
626 (LP): Remove.
627 (RP): Remove.
628 (my_getSmallExpression): Make parsing case insensitive and more
629 reliable. Add support for %higher and %highest. Further support to
630 parse %gprel and %neg is implemented but currently deactivated.
631
23fe39df
AM
6322001-08-17 Alan Modra <amodra@bigpond.net.au>
633
634 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
635 (ecoff_build_symbols): Likewise.
636 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
637
be00bddd
TS
6382001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
639
640 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
641 for n32 ABI if appropriate.
642
07ae3efa
TS
6432001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
644
645 * config/tc-mips.c (cons_fix_new_mips): Remove.
646 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
647 (cons_fix_new_mips): Remove.
648
c68012fb
JJ
6492001-08-14 Jeff Johnston <jjohnstn@redhat.com>
650
79bcdb56
AM
651 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
652 a label, not a hex constant.
c68012fb 653
5d430f8b
NC
6542001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
655
656 * config/tc-v850.h: Add missing prototypes.
657
198ce79b
AJ
6582001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
659
660 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
661 relocations.
662
4ffadb11
NC
6632001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
664
665 * config/tc-sparc.c (cons_fix_new_sparc): Move
666 `sparc_no_align_cons = 0;' to...
667 (s_uacons): ...here so that sparc_no_align_cons will get
668 cleared properly.
669
f72c8c98
KH
6702001-08-11 Kazu Hirata <kazu@hxi.com>
671
672 * config/tc-mips.c: Fix a comment typo.
673
ea1fb5dc
RS
6742001-08-10 Richard Sandiford <rsandifo@redhat.com>
675
676 * config/tc-mips.c (move_register): New function.
677 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
678 (mips_ip): Likewise.
679 (macro2): Use move_register rather than macro_build for moves.
680 (mips16_macro): Likewise.
681 (macro): Likewise. Handle M_MOVE.
682
0218d1e4
AJ
6832001-08-10 Andreas Jaeger <aj@suse.de>
684
685 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
686 to build warnings.
687 * configure: Regenerate.
688
11b37b7b
AM
6892001-08-10 Alan Modra <amodra@bigpond.net.au>
690
fa6e9318
AM
691 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
692 Comment indentation of #pragma.
693 * macro.c (alloca): Likewise.
694
11b37b7b
AM
695 * config/tc-ppc.c: Revert 2001-08-08.
696
8d28c9d7
AM
6972001-08-09 Alan Modra <amodra@bigpond.net.au>
698
699 * symbols.c: Add missing prototypes.
700 * config/e-i386elf.c: Likewise.
701 * config/e-i386coff.c: Likewise.
702 * config/e-i386aout.c: Likewise.
703 * config/obj-coff.c: Likewise.
704 (def_symbol_in_progress, stack): Move definition.
705 * config/obj-elf.c: Add missing prototypes.
706 (obj_elf_change_section): Make static.
707 (obj_elf_parse_section_letters): Likewise.
708 (obj_elf_section_word): Likewise.
709 (obj_elf_section_type): Likewise.
710
fce3099f
AM
7112001-08-08 Alan Modra <amodra@bigpond.net.au>
712
713 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
714 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
715 determining reloc type with code reading operands->reloc field.
716
d959c450
AM
7172001-08-08 Alan Modra <amodra@bigpond.net.au>
718
8fd3e36b
AM
719 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
720 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
721 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
722 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
723
8a543126
AM
724 * output-file.c (output_file_create): Don't try to open a second
725 time as it's unnecessary. FOPEN_W was undefined too.
d959c450 726
38487616
TS
7272001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
728
ad58c921 729 * config/tc-mips.c (macro_build): Replace magic constants by defines.
38487616
TS
730 (mips_ip): Likewise. Typo.
731
9a41af64
TS
7322001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
733
ad58c921
TS
734 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
735 of 0.
9a41af64
TS
736 (RELAX_ENCODE): Replace bfd_vma by valueT.
737 (load_address): Formatting.
738 (macro): Likewise. Code cleanup. Typo.
739 (macro2): Formatting.
740 (md_parse_option): Typo.
741 (s_mipsset): Reorder cases to look nicer.
742 (md_estimate_size_before_relax): Formatting. Code cleanup.
743 (mips_elf_final_processing): Check against NULL instead of 0.
744 (md_obj_end): Remove ugly `' in message string.
745 (s_mips_ent): Remove ugly `' in message string.
746
6dce9e24
TS
7472001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
748
749 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
750 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
751 mutually exclusive (if they are different).
752 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
753 set more than once.
754
236bd878
RS
7552001-08-03 Richard Sandiford <rsandifo@redhat.com>
756
757 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
758 from GPREL addends.
759
ca4e0257
RS
7602001-08-02 Richard Sandiford <rsandifo@redhat.com>
761
762 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
763 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
764 (md_long_opts): Add -mfp32 option.
765 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
766 (md_show_usage): Show usage for -mfp32 and -mgp32.
767 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
768 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
769 (HAVE_32BIT_ADDRESSES): New macro.
770 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
771 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
772 (s_cprestore, s_cpadd): Likewise.
773 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
774 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
775 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
776 to determine the width of addresses in load, store and jump macros.
777 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
778 used in set instructions; do not check the address size for them.
779 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
780 unaligned load and store macros.
781 (mips_ip): Use the new macros to check the width of a register when
782 processing float constants. Force a constant into memory if it is
783 destined for an FPR and the FPRs are wider than the GPRs. Warn about
784 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
785 than mips_gp32 to select synthetic instructions.
786 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
787 synthetic instructions.
788
28bab82b
NC
7892001-08-01 Christian Groessler <cpg@aladdin.de>
790
791 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
792 "rh", "rr", "rq", or "sp" then don't automatically assume
793 it's a register name. Check whether there is a number
794 following.
795
28f81592
AM
7962001-08-01 Alan Modra <amodra@bigpond.net.au>
797
798 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
799 Don't allocate more space than necessary for the input line copy.
800
0e389e77
AM
8012001-08-01 Alan Modra <amodra@bigpond.net.au>
802
803 * read.c: Standardize error/warning messages - don't capitalise, no
804 final period or newline, don't say "ignored" or "zero assumed" for
805 as_bad messages. In some cases, change the wording to that used
806 elsewhere for similar messages.
807 * app.c: Likewise.
808 * as.c: Likewise.
809 * atof-generic.c: Likewise.
810 * cgen.c: Likewise.
811 * cond.c: Likewise.
812 * depend.c: Likewise.
813 * dwarf2dbg.c: Likewise.
814 * ecoff.c: Likewise.
815 * expr.c: Likewise.
816 * frags.c: Likewise.
817 * input-file.c: Likewise.
818 * input-scrub.c: Likewise.
819 * listing.c: Likewise.
820 * output-file.c: Likewise.
821 * stabs.c: Likewise.
822 * subsegs.c: Likewise.
823 * symbols.c: Likewise.
824 * write.c: Likewise.
825 * ecoff.c (ecoff_directive_end): Test for missing name by
826 comparing input line pointers rather than reading string.
827 (ecoff_directive_ent): Likewise.
828 * read.c (s_set): Likewise.
829 (s_align): Report a warning rather than an error for
830 alignment too large.
831 (s_comm): Check for missing symbol name.
832 (s_lcomm_internal): Likewise.
833 (s_lsym): Likewise.
834 (s_globl): Use is_end_of_line instead of looking for '\n'.
835 (s_lcomm_internal): Likewise.
836 (ignore_rest_of_line): Report a warning rather than an error.
837
e138127a
GK
8382001-07-31 Geoffrey Keating <geoffk@redhat.com>
839
840 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
841 any kind of relocation against a not-loaded section.
842
468cced8
AM
8432001-07-30 Alan Modra <amodra@bigpond.net.au>
844
845 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
846 to include '@' in symbol names when parsing versioned symbols
847 rather than calling get_symbol_end multiple times.
848 * config/tc-i370.c (register_name): Format fixes. Don't call
849 get_symbol_end after parsing number.
850 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
851 code out of conditional.
852 (address_register_name): Likewise.
853 (other_register_name): Likewise.
854 * config/tc-mn10300.c (r_register_name): Likewise.
855 (xr_register_name): Likewise.
856 (data_register_name): Likewise.
857 (address_register_name): Likewise.
858 (other_register_name): Likewise.
859 * config/tc-ppc.c (register_name): Likewise.
860 * config/tc-s390.c (register_name): Likewise.
861
13283e2d
SC
8622001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
863
864 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
865 and bra relax: update fragP->fr_fix after the fixup.
866
409d19c4
AM
8672001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
868
869 * read.c (s_set): Check for missing symbol name.
870
050be34e
AM
8712001-07-26 Alan Modra <amodra@bigpond.net.au>
872
873 * write.c (relax_segment <rs_space>): Account for fr_fix.
874
46bac6de
L
8752001-07-25 H.J. Lu <hjl@gnu.org>
876
877 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
878 we treat weak like extern only for ELF.
879 (mips_fix_adjustable): Make sure we don't adjust extern/weak
880 symbols only for ELF.
881
2f4dcb11
CD
8822001-07-25 Chris Demetriou <cgd@broadcom.com>
883
884 * config/tc-mips.c: Fix spelling error in comment.
885
62f65a7b
DB
8862001-07-25 Dave Brolley <brolley@redhat.com>
887
888 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
889 (IS_PARALLEL_SEPARATOR): New macro.
890 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
891 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
892 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
893 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
894 been seen).
895
3817f222
AM
8962001-07-24 Alan Modra <amodra@bigpond.net.au>
897
898 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
899 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
900 Update dependencies with "make dep-am".
901 * Makefile.in: Regenerate.
902 * doc/Makefile.in: Regenerate.
903
07726851
KH
9042001-07-23 Kazu Hirata <kazu@hxi.com>
905
906 * config/tc-alpha.h: Fix formatting.
907 * config/tc-arc.c: Likewise.
908 * config/tc-d10v.h: Likewise.
909 * config/tc-hppa.c: Likewise.
910 * config/tc-i370.c: Likewise.
911 * config/tc-i386.h: Likewise.
912 * config/tc-i960.h: Likewise.
913 * config/tc-ia64.c: Likewise.
914 * config/tc-ia64.h: Likewise.
915 * config/tc-m32r.c: Likewise.
916 * config/tc-m68k.c: Likewise.
917 * config/tc-m88k.c: Likewise.
918 * config/tc-ns32k.c: Likewise.
919 * config/tc-pdp11.c: Likewise.
920 * config/tc-pj.h: Likewise.
921 * config/tc-s390.c: Likewise.
922 * config/tc-sparc.c: Likewise.
923 * config/tc-sparc.h: Likewise.
924 * config/tc-tic80.c: Likewise.
925 * config/tc-w65.h: Likewise.
926
ac62c346
AM
9272001-07-23 Alan Modra <amodra@bigpond.net.au>
928
929 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
930 symbols specially. Always resolve, adding fr_address to value.
931 * write.c (write_object_file): Don't add fr_address to sym values.
932 (relax_frag): Likewise.
933 (relax_segment): Likewise.
934 * config/obj-ieee.c (do_symbols): Likewise.
935 * config/tc-cris.c (md_convert_frag): Likewise.
936 * config/tc-fr30.c (md_convert_frag): Likewise.
937 * config/tc-i386.c (md_convert_frag): Likewise.
938 * config/tc-m32r.c (md_convert_frag): Likewise.
939 * config/tc-m68hc11.c (md_convert_frag): Likewise.
940 * config/tc-mcore.c (md_convert_frag): Likewise.
941 * config/tc-mips.c (mips16_extended_frag): Likewise.
942 * config/tc-ns32k.c (md_convert_frag): Likewise.
943 * config/tc-m68k.c (md_convert_frag_1): Likewise.
944 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
945 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
946 (md_relax_table): Remove first four entries. Format.
947 (md_estimate_size_before_relax): Remove old_fix. Don't bother
948 setting fr_var. Simplify byte branch checks.
949
677537c1
AM
9502001-07-23 Alan Modra <amodra@bigpond.net.au>
951
952 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
953 "isbranch" param as all calls have it set.
954 (pa_parse_neg_cmpsub_cmpltr): Likewise.
955 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
956 strcasecmp in "nullify" var.
957 (pa_parse_neg_add_cmpltr): Likewise.
958 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
959 functions. Don't print wrong conditions in error messages.
960
c745b67a
AJ
9612001-07-23 Andreas Jaeger <aj@suse.de>
962
963 * config/tc-s390.c (s390_force_relocation): Removed.
964
965 * config/tc-s390.h: Remove double declaration of
966 TC_FORCE_RELOCATION.
967
2b3c5a5d
L
9682001-07-22 H.J. Lu <hjl@gnu.org>
969
970 * config/tc-mips.c (s_mips_end): Remove unused variables.
971 (s_mips_frame): Add ATTRIBUTE_UNUSED.
972
f27a3839
AS
9732001-07-17 Andreas Schwab <schwab@suse.de>
974
975 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
976 .loc.
977 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
978 insn.
979 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
980
5bae9b28
MG
9812001-07-17 matthew green <mrg@eterna.com.au>
982
983 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
984 TE_NetBSD.
985 (line_comment_chars): Set to '/' if TE_NetBSD.
986
7ed28e65
MG
9872001-07-14 matthew green <mrg@eterna.com.au>
988
989 * configure.in (i386-*-netbsdelf*): New target.
92c077a3 990 * configure: Regenerate.
7ed28e65 991
bdbe95c8
NC
9922001-07-10 Mark Elbrecht <snowball3@softhome.net>
993
994 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
995 class of the non-debug symbol is C_NULL.
996
15dcfbc3
NC
9972001-07-10 Anders Norlander <anorland@synergenix.se>
998
999 * doc/as.texinfo (Incbin): Fix grammatical errors.
1000
f740e790
NC
10012001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1002
1003 * depend.c: Use FOPEN_.. macros in calls to fopen().
1004 * input-file.c: As above.
1005 * itbl-ops.c: As above.
1006 * listing.c: As above.
1007 * output-file.c: As above.
1008 * read.c: As above.
1009
7e005732
NC
10102001-07-08 Anders Norlander <anorland@synergenix.se>
1011
1012 * read.c (s_incbin): New .incbin function.
1013 * read.c (potable): Add "incbin" pseudo-op.
1014 * read.h: Add s_incbin prototype.
1015 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1016 * NEWS: Mention new feature.
1017
ae341099
NC
10182001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1019
1020 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1021 DEBUG_UNSPECIFIED.
1022
002de68b
JH
10232001-07-06 John Healy <jhealy@redhat.com>
1024
1025 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1026 set of fixups to be stored.
1027 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1028 restored to be chosen from any that are saved.
1029 (gas_cgen_swap_fixups): Modified to allow the current set of
1030 fixups to be swapped with any other set that has been saved.
1031 (gas_cgen_initialize_saved_fixups_array): New routine.
1032 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1033 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1034 or MAX_SAVED_FIXUP_CHAINS.
1035 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1036 store, swap and restore fuctions to reflect the new interface.
1037
7099f9f9
NC
10382001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1039
1040 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1041 ignore empty, ineffectual alignment frags when deciding if a
1042 branch can be short.
1043
557debba
JW
10442001-07-05 Steve Ellcey <sje@cup.hp.com>
1045
1046 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1047 and SPECIAL_SECTION_FINI_ARRAY.
1048 (special_section_name): Add .init_array and .fini_array.
1049 (md_pseudo_table): Add init_array and fini_array.
1050 (md): Add pointer_size and pointer_size_shift fields.
1051 (setup_unwind_header): New static function.
1052 (output_unw_records): Modify to use setup_unwind_header.
1053 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1054 md.pointer_size_shift.
1055 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1056
4ad09363
BE
10572001-07-05 Ben Elliston <bje@redhat.com>
1058
464bb47c
BE
1059 * README (Supported platforms): m88k no longer suffers bitrot.
1060
4ad09363
BE
1061 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1062
7fb088be
AM
10632001-07-05 Alan Modra <amodra@bigpond.net.au>
1064
1065 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1066 lsy_value. Correct typos in comments.
1067 * symbols.c (local_symbol_make): Update for name change.
1068 (local_symbol_convert): Likewise.
1069 (colon): Likewise.
1070 (S_GET_VALUE): Likewise.
1071 (S_SET_VALUE): Likewise.
1072 (print_symbol_value_1): Likewise.
1073 (resolve_symbol_value): Likewise. Don't divide local sym values
1074 by OCTETS_PER_BYTE twice.
1075
3e37788f
JW
10762001-07-04 Jim Wilson <wilson@redhat.com>
1077
87885043
JW
1078 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
1079
3e37788f
JW
1080 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
1081 sched branches.
1082
81b0b3f1
BE
10832001-07-05 Ben Elliston <bje@redhat.com>
1084
2a1e2a6d
BE
1085 * read.c (s_fill): Correct spelling error in comments.
1086
81b0b3f1
BE
1087 * doc/c-m88k.texi: New file.
1088 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
1089 * doc/Makefile.in: Regenerate.
1090 * doc/all.texi: Set M880X0.
1091 * doc/as.texinfo: Hook in m88k-dependent documentation.
1092
18ae5d72
EC
10932001-07-04 Eric Christopher <echristo@redhat.com>
1094
1095 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
1096
1097 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
1098 and rm5721 as valid cpu strings.
1099 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
1100
7461da6e
RS
11012001-07-04 Richard Sandiford <rsandifo@redhat.com>
1102
1103 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
1104 if it's expected to be non-zero.
1105
87548816
NC
11062001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1107
7bcad3e5
NC
1108 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
1109 fscan->fx_frag.
1110
87548816 1111 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
ac62c346
AM
1112 (write_object_file): Set finalize_syms to
1113 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
1114 called.
87548816 1115
ac62c346 1116 * doc/internals.texi; Document
18ae5d72 1117 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
87548816 1118
99a814a1
AM
11192001-07-02 Alan Modra <amodra@bigpond.net.au>
1120
1121 * config/tc-ppc.c: Formatting fixes.
1122
bd59b34f
BE
11232001-07-01 Ben Elliston <bje@redhat.com>
1124
1125 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
1126 they cause some subtle breakage. Will fix them again later.
1127
e237d851
NC
11282001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
1129
1130 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
1131 outside of a function as a .appline directive.
1132
ec68c924
EC
11332001-06-28 Eric Christopher <echristo@redhat.com>
1134 H.J. Lu <hjl@gnu.org>
1135
551b1d89
BE
1136 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
1137 of mips_cpu for the ISA selection.
1138 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
1139 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
ec68c924
EC
1140 (mips_tune): New. Use mips_tune for scheduling and optimization
1141 issues.
1142 (append_insn): Use mips_tune and mips_arch.
1143 (macro_build): Ditto.
1144 (mips_ip): Ditto.
1145 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
1146 backwards compatability mips_cpu generates arch and tune.
1147 (md_show_usage): Document new behavior.
1148
1149 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
1150 Deprecate -mcpu.
1151
1152 * NEWS: Update.
1153
d8273442
NC
11542001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
1155
38b87a1b
NC
1156 * write.c (write_object_file): Do not set finalize_syms until
1157 after the segments have been sized. Some backends may still
1158 need to access the syms's frags in order to adjust relaxed
1159 frags.
1160
d8273442
NC
1161 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
1162 constants.
1163
1a16aca4
AM
11642001-06-27 Alan Modra <amodra@bigpond.net.au>
1165
1166 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
1167 subtract MD_PCREL_FROM_SECTION for 68k.
1168 (fixup_segment <Difference of 2 syms different seg>): Only fudge
1169 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
1170
d48019e0
AM
11712001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
1172
1173 * write.c (fixup_segment <Difference of 2 syms same seg>): If
1174 pcrel, subtract MD_PCREL_FROM_SECTION value.
1175
37ffda10
BE
11762001-06-24 Ben Elliston <bje@redhat.com>
1177
1178 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
1179
6f112c47
JJ
11802001-06-24 Jakub Jelinek <jakub@redhat.com>
1181
1182 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
1183 section symbols the same way as externs.
1184
a181d81e
BE
11852001-06-24 Ben Elliston <bje@redhat.com>
1186
453520d7
BE
1187 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
1188 (emit_relocations): Ditto.
1189 (s_bss): Ditto.
1190 (md_begin): Reformat comments to conform to the GNU standards.
1191 (md_assemble): Ditto.
1192
e21e484e
BE
1193 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
1194 (md_parse_option): Mark parameters as unused.
1195 (md_show_usage): Ditto.
1196 (calcop): Adjust type of `reg_prefix' to char.
1197 (get_reg): Ditto.
1198 (getval): Adjust type of local `c' to char.
1199 (md_create_short_jump): Mark from_addr, to_addr params as unused.
1200 (md_create_long_jump): Ditto.
1201 (md_estimate_size_before_relax): Mark parameters as unused.
453520d7 1202
a181d81e
BE
1203 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
1204 to allay a possible compiler warning.
1205
dd9b19ab
NC
12062001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
1207
1208 * doc/internals.texi (CPU backend): Document md_atof.
1209
8be31359
NC
12102001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
1211
d48019e0
AM
1212 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
1213 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
1214 architecture.
8be31359 1215
1cac9012
NC
12162001-06-21 Philip Blundell <philb@gnu.org>
1217
1218 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
1219 updated.
1220 (insns): Remove entry for adrl. Add long_flag for adr.
1221 (do_adr): Handle `l' suffix.
1222 (do_adrl): Delete.
1223
b091f402
AM
12242001-06-21 Alan Modra <amodra@bigpond.net.au>
1225
1226 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
1227 (md_apply_fix): Use it here. Replace printf with equivalent
1228 as_bad_where.
1229 (tc_gen_reloc): Use as_bad_where instead of as_bad.
1230 (md_apply_fix): Here too.
1231 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
1232 * config/tc-m68k.c (tc_gen_reloc): Likewise.
1233 (md_convert_frag_1): Likewise.
1234
1ad63b2f
TR
12352000-06-20 Tom Rix <trix@redhat.com>
1236
1237 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
1238
c45021f2
NC
12392001-06-18 H.J. Lu <hjl@gnu.org>
1240
ac62c346
AM
1241 * doc/Makefile.am (info): Depend on $(MANS).
1242 (as.1): Remove the prefix `$(srcdir)/'.
1243 * doc/Makefile.in: Regenerated.
c45021f2 1244
ac62c346 1245 * as.1: Removed.
c45021f2 1246
2172d73b
PB
12472001-06-18 Philip Blundell <philb@gnu.org>
1248
1249 * config/tc-arm.c (do_msr): Remove restriction on usage of
1250 immediate operands.
1251
45c500fa
AM
12522001-06-19 Alan Modra <amodra@bigpond.net.au>
1253
1254 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
1255 line info.
1256
0b317b08
PB
12572001-06-13 Philip Blundell <philb@gnu.org>
1258
1259 * config/tc-arm.c (thumb_shift): Improve wording of error message.
1260 (do_t_arit): Likewise.
1261
07a7a145
NC
12622001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1263
2bc0a128
NC
1264 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
1265 .loc pseudos if the dfwarf2 functions are available.
1266 (md_assemble): Only call dwarf2_emit_insn if it is available.
1267
07a7a145
NC
1268 * expr.c: Fix typo in comment.
1269
b131d4dc
NC
12702001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1271
1272 * doc/as.texinfo (Infix Ops): Document that comparison and
1273 combiner operators can be used as infix operators.
1274
e1f44d10
NC
12752001-06-12 Peter Jakubek <pjak@snafu.de>
1276
8a543126 1277 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
ac62c346
AM
1278 of AND/OR.
1279 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
1280 (reverse_mri_condition): Likewise.
1281 (swap_mri_condition): Issue warning for conditions that can not be
1282 swapped.
1283 (build_mri_control_operand): Fix order of operands (swapped).
1284 (build_mri_control_operand): Allow upper case extension in structured
1285 control directives.
1286 (s_mri_else): Likewise.
1287 (s_mri_next): Likewise.
1288 (s_mri_for): Likewise.
1289 (s_mri_if): Fix handling comment ('*') in mri mode.
1290 (s_mri_while): Likewise.
8a543126 1291 * macro.c (macro_expand): Allow macro invocation with empty
ac62c346 1292 extension.
e1f44d10 1293
3971ce95
NC
12942001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1295
1296 * config/tc-arm.c: Fix test for overlow of literal pool.
1297
63486801
L
12982001-06-11 H.J. Lu <hjl@gnu.org>
1299
1300 * NEWS: Updated for the new -n option for the MIPS assembler.
1301
1302 * config/tc-mips.c (md_show_usage): Add -n.
1303
1304 * doc/as.texinfo: Document the new -n option.
1305 * doc/c-mips.texi: Likewise.
1306 * doc/as.1: Regenerated.
1307
5dd0794d
AM
13082001-06-10 Alan Modra <amodra@bigpond.net.au>
1309
1310 * config/obj-coff.c (obj_coff_section): Formatting fix.
1311
1312 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
1313 ",pn".
1314
39c0a331
L
13152001-06-08 H.J. Lu <hjl@gnu.org>
1316
1317 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
1318 disable warning about all NOPS that the assembler generates.
1319 (macro): Warn NOPS generated only if warn_nops is not 0.
1320 (md_shortopts): Add `n'.
1321 (md_parse_option): Set warn_nops to 1 for `n'.
1322
268f6bed
L
13232001-06-08 H.J. Lu <hjl@gnu.org>
1324
1325 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
1326
ea4ff978
L
13272001-06-08 H.J. Lu <hjl@gnu.org>
1328
1329 * config/tc-mips.c (md_apply_fix): Don't adjust common
1330 extern/weak symbols for ELF.
1331 (md_estimate_size_before_relax): Treat weak like extern for
1332 ELF.
1333 (mips_fix_adjustable): Don't adjust extern/weak symbols for
1334 ELF.
1335
98aa84af
AM
13362001-06-08 Alan Modra <amodra@bigpond.net.au>
1337
1338 * Makefile.am: 'som' is not wrongly spelled 'some'.
1339 * Makefile.in: Regenerate.
1340
1341 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
1342 S_GET_VALUE by using a temp.
c0037ab6 1343 (append_insn): Likewise, and for S_SET_VALUE too.
98aa84af
AM
1344 (mips_emit_delays): Likewise.
1345 (my_getExpression): Likewise.
1346 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
1347 (mips16_extended_frag): Remove code concerned with avoiding
1348 locking in a frag address now that symbols are not finalized until
1349 relaxation is complete. Cater for first relaxation pass having
1350 bogus addresses. Use relax_marker to reliably determine whether a
1351 symbol frag has been reached on the current pass.
1352
f85f789b
L
13532001-06-07 H.J. Lu <hjl@gnu.org>
1354
1355 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
1356 * configure: Regenerate.
1357
df3bcd6f
L
13582001-06-07 H.J. Lu <hjl@gnu.org>
1359
1360 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
1361 ecoff emulation.
1362 * configure: Regenerate.
1363
add56521
L
13642001-06-07 H.J. Lu <hjl@gnu.org>
1365
1366 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
1367 MIPS_STABS_ELF is defined.
1368
6da13e9a
NC
13692001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
1370
1371 * as.c (show_usage): Remove L from listing options. It is not a
1372 generic option.
1373
879db8be
NC
13742001-06-06 Christian Groessler <cpg@aladdin.de>
1375
c0037ab6 1376 * config/tc-z8k.c: Removed many warnings by removing unused
879db8be
NC
1377 variables and tagging unused parameters as such.
1378 (md_begin): Fixed a typo (","instead of ";").
1379 (struct ctrl_table): Add parentheses to initialize array
1380 correctly.
1381 (struct flag_table): Likewise.
1382 (struct intr_table): Likewise.
1383 (struct table): Likewise.
1384 (check_operand): "#if 0"'ed since it doesn't seem to be used.
1385
98b32482
NC
13862001-06-06 Peter Jakubek <pjak@snafu.de>
1387
8a543126 1388 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
98b32482
NC
1389 options to list (e.g. m5206e, m5307, m5407).
1390
6e139bf0
AM
13912001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1392
1393 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
1394 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
1395
cb9401fc
AM
13962001-06-06 Alan Modra <amodra@bigpond.net.au>
1397
1398 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
1399 <JumpByte, JumpDword insn output>: Remove dead code.
1400
3c5cdb54
AM
14012001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1402
1403 * as.c (parse_args): Correct option name "listing-lhs-width2".
1404
92ed29ef
NC
14052001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
1406
1407 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
1408 status.
1409
371b7465
RH
14102001-05-30 Richard Henderson <rth@redhat.com>
1411
1412 * read.c (emit_leb128_expr): Call md_cons_align.
1413
0f2712ed
NC
14142001-05-28 Jeff Sturm <jsturm@one-point.com>
1415
1416 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
1417 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
1418 (tc_gen_reloc): Likewise.
1419 (sparc_cons_align): Don't clear sparc_no_align_cons.
c0037ab6 1420 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
0f2712ed
NC
1421 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
1422
fbe572f9
AM
14232001-05-27 Alan Modra <amodra@one.net.au>
1424
9e40345d
AM
1425 * write.c (relax_segment <rs_space>): Check the section of a
1426 symbol to determine whether it is absolute rather than comparing
1427 its frag against zero_address_frag as listings play tricks with
1428 frags.
1429
fbe572f9
AM
1430 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
1431 allocated in the same chunk as the fixed part.
1432
54d3cad9
AM
14332001-05-26 Alan Modra <amodra@one.net.au>
1434
1435 * write.c (relax_segment <rs_space>): Calculate growth using
1436 addresses before stretch. Prevent repeated error messages.
1437 From Peter Jakubek <pjak@snafu.de>
1438 Use as_bad_where and as_warn_where to pinpoint errors.
1439
766c03c9
AM
14402001-05-25 Alan Modra <amodra@one.net.au>
1441
05bdb37e
AM
1442 * symbols.c (resolve_symbol_value): Always set segment, even when
1443 not finalizing symbol value.
1444
1cd55018
AM
1445 * config/obj-ieee.c (write_object_file): Set finalize_syms.
1446 * config/obj-coff.c (write_object_file): Likewise.
1447 * (size_section): Remove rs_space assert as fr_symbol is no longer
1448 removed.
1449 (fill_section): Likewise.
1450
c709b096
AM
1451 * configure.in: Replace linuxoldld with linux*oldld.
1452 * configure: Regenerate.
1453
b58c9faf
AM
1454 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
1455 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
1456 that have been finalized.
1457
c89c8534
AM
1458 * symbols.c (resolve_symbol_value): Clear sy_resolving before
1459 taking exit_dont_set_value.
1460
54d3cad9
AM
1461 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
1462 relaxing.
766c03c9 1463
6877bb43
TR
14642000-05-24 Tom Rix <trix@redhat.com>
1465
5dd0794d 1466 * config/obj-coff.c (add_lineno): xcoff allows negative line
6877bb43 1467 numbers
5dd0794d 1468 * config/tc-ppc.c (ppc_stabx): fix generated symbol
c0037ab6 1469
e027f3e8
AM
14702001-05-24 Alan Modra <amodra@one.net.au>
1471
1472 * write.c (write_object_file): Set finalize_syms = 1 before
1473 size_seg is called.
1474
d1cf510e
NC
14752001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1476
1477 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
1478 architecture, remove erraneous ISA_MIPS32.
1479 (md_show_usage): Add MIPS r12k support.
1480 (mips_cpu_info_table): Add MIPS r12k support.
c0037ab6 1481
507c8a1a
AM
14822001-05-22 Alan Modra <amodra@one.net.au>
1483
2d0441d9
AM
1484 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
1485 testing for NULs.
1486
6386f3a7
AM
1487 * symbols.c (resolve_symbol_value): Remove "finalize" param,
1488 instead use finalize_syms directly. Don't treat expressions
1489 specially with regard to finalize_syms. Update calls to self.
1490 (resolve_local_symbol): Update call to resolve_symbol_value.
1491 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
1492 !finalize_syms.
1493 * symbols.h (resolve_symbol_value): Update prototype.
1494 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
1495 to resolve_symbol_value.
1496 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
1497 * config/obj-coff.c (do_relocs_for): Likewise.
1498 (yank_symbols): Likewise.
1499 (fixup_segment): Likewise.
1500 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
1501 * config/tc-mips.c (md_convert_frag): Likewise.
1502 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
1503 (ppc_fix_adjustable): Likewise.
1504 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
1505 (dwarf2dbg_convert_frag): Likewise.
1506 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
1507 (eh_frame_convert_frag): Likewise.
1508 * expr.c (make_expr_symbol): Likewise.
1509 * write.c (adjust_reloc_syms): Likewise.
1510 (write_object_file): Likewise.
1511 (relax_segment): Likewise.
1512 (fixup_segment): Likewise.
1513 (finalize_syms): Init to zero, and update comment.
1514 (write_object_file): Set finalize_syms to 1 rather than 2.
1515 * doc/internals.texi (sy_value): Mention finalize_syms.
1516 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
1517
c801568a
AM
1518 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
1519 as relaxable if embedded system, make weak syms non-relaxable.
1520 Move definition..
1521 (tc_m68k_fix_adjustable): ..so it can be used here.
1522 (md_apply_fix_2): Sign extend without conditional.
1523
507c8a1a
AM
1524 * config/tc-v850.c: Update copyright.
1525
aaa4f6d9
JJ
15262001-05-16 Jeff Johnston <jjohnstn@redhat.com>
1527
c0037ab6
AM
1528 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
1529 howto entry is not found.
aaa4f6d9 1530
7e8f4100
AO
15312001-05-15 Alexandre Oliva <aoliva@redhat.com>
1532
1533 * config/tc-mn10300.c (mn10300_force_relocation): Don't
1534 optimize differences between symbols in code sections to
1535 constants.
1536 (mn10300_fix_adjustable): Don't adjust to section+offset
1537 relocations pointing at symbols in code sections.
1538
9fcc94b6
AM
15392001-05-16 Alan Modra <amodra@one.net.au>
1540
1541 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
1542 for 8 byte insns.
1543 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
1544 opcodes are output rather than after. Delete insn_size.
1545 * config/tc-v850.c (md_assemble): Similarly, but delete
1546 total_insn_size.
1547
de1cb007
RH
15482001-05-14 Richard Henderson <rth@redhat.com>
1549
1550 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
1551 last change.
1552
67a659f6
RH
15532001-05-14 Richard Henderson <rth@redhat.com>
1554
1555 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
1556 also collect whether to expect an FDE augmentation.
1557 (check_eh_frame): Rewrite as a state machine. Track where in
1558 an FDE we are located, skip any augmentation.
1559 (eh_frame_estimate_size_before_relax): Get code alignment from
1560 the fragment subtype.
1561 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
1562 * read.c (emit_leb128_expr): Call check_eh_frame.
1563
076dc439
AO
15642001-05-14 Alexandre Oliva <aoliva@redhat.com>
1565
1566 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
1567 before a relaxable insns.
1568
4e75439a
AO
15692001-05-13 Alexandre Oliva <aoliva@redhat.com>
1570
1571 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
1572 between symbols if the base symbol is in the current section;
1573 emit a PC-relative relocation instead.
1574
bcee8eb8
AM
15752001-05-12 Peter Targett <peter.targett@arccores.com>
1576
1577 * config/tc-arc.c: Update copyright and tidy source comments.
1578 (md_pseudo_table): Add directive .cpu back as an alias for
1579 .option. Add .file and .line for dwarf2 support.
1580 (arc_mach_type): Make bfd_mach_arc_6 default.
1581 (md_longopts): Add entry 'pre-v6' representing old command line
1582 option when assembling for 'arc5' core versions.
1583 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
1584 default behaviour.
1585 (arc_code_symbol): Make symbol value for @h30 fixup expression
1586 equal to O_constant.
1587 (md_assemble): Call dwarf2_emit_insn.
1588 Include "dwarf2dbg2.h". Formatting fixes throughout file.
1589 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
bcee8eb8
AM
1590 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
1591
579f31ac
JJ
15922001-05-11 Jakub Jelinek <jakub@redhat.com>
1593
1594 * config/tc-ia64.c (special_linkonce_name): New.
1595 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
1596 .gnu.linkonce.ia64unw{,i}.FOO.
1597 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
1598 (dot_endp): Add comment about it.
1599
15f65ae4
NC
16002001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1601
c0037ab6 1602 * config/tc-arm.c (arm_handle_align): When truncating an aligned
15f65ae4
NC
1603 block, ensure that the low order bits of the alignment are
1604 preserved.
1605
606ab118
AM
16062001-05-10 Alan Modra <amodra@one.net.au>
1607
1608 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
1609 symbol_next.
1610
1611 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
1612 current variable part of frag.
1613 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
1614 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
1615 * config/tc-m68hc11.c (RELAX_STATE): Define.
1616 (RELAX_LENGTH): Define.
1617 (md_estimate_size_before_relax): Handle non-relaxable cases
1618 separately from relaxable cases for clarity, and return correct
1619 size for multi-pass relaxation.
1620 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
1621 (md_estimate_size_before_relax): As for tc-m68hc11.c.
1622 (md_convert_frag): Remove "length_code".
1623 * config/tc-vax.c (RELAX_STATE): Define.
1624 (RELAX_LENGTH): Define.
1625 (md_relax_table): Add missing entry.
1626 (md_estimate_size_before_relax): As for tc-m68hc11.c.
1627 (md_convert_frag): Remove "length_code".
1628 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
1629 don't bother setting fr_var. Return correct size for multi-pass
1630 relaxation.
1631 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
1632 (md_convert_frag): Don't bother clearing fr_var.
1633 (md_pseudo_table): Correct initialization.
1634 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
1635 (md_estimate_size_before_relax): No need to set fr_var.
1636 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
1637 (md_estimate_size_before_relax): No need to set fr_var.
1638
1f23ade4
RH
16392001-05-09 Richard Henderson <rth@redhat.com>
1640
1641 * config/tc-ia64.c (generate_unwind_image): Align the fragment
1642 beginning a function's unwind info block.
1643
96f37af6
AO
16442001-05-09 Alexandre Oliva <aoliva@redhat.com>
1645
1646 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
1647
8390138c
AS
16482001-05-08 Andreas Schwab <schwab@suse.de>
1649
1650 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
1651 fx_pcrel_adjust explicitly sign extend when reading it.
1652
5c65dbc1
AM
16532001-05-08 Alan Modra <amodra@one.net.au>
1654
1655 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
1656 from md_relax_table, and combine some switch cases.
1657
a7c92dae
AO
16582001-05-06 Alexandre Oliva <aoliva@redhat.com>
1659
1660 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
1661 from offset in non-pcrel operands too.
1662
d8708f40
NC
16632001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1664
1665 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1666 * config/tc-arm.c (arm_handle_align): Do not insert more than
1667 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
1668 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
1669
3438adb3
AM
16702001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1671
1672 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
1673 Run "make dep-am".
1674 * Makefile.in: Regenerate.
1675 * configure.in: Remove duplicate mips-*-ecoff* entry.
1676 * configure: Regenerate.
1677
1678 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
1679 (n_names): Cast away type mismatch.
1680 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
1681 (obj_ecoff_frob_symbol): Likewise.
1682 * ecoff.c: (add_file): Add unused attribute.
1683 (ecoff_directive_begin): Likewise.
1684 (ecoff_directive_bend): Likewise.
1685 (ecoff_directive_def): Likewise.
1686 (ecoff_directive_dim): Likewise.
1687 (ecoff_directive_scl): Likewise.
1688 (ecoff_directive_size): Likewise.
1689 (ecoff_directive_type): Likewise.
1690 (ecoff_directive_tag): Likewise.
1691 (ecoff_directive_val): Likewise.
1692 (ecoff_directive_endef): Likewise.
1693 (ecoff_directive_end): Likewise.
1694 (ecoff_directive_ent): Likewise.
1695 (ecoff_directive_extern): Likewise.
1696 (ecoff_directive_file): Likewise.
1697 (ecoff_directive_fmask): Likewise.
1698 (ecoff_directive_frame): Likewise.
1699 (ecoff_directive_mask): Likewise.
1700 (ecoff_directive_loc): Likewise.
1701 (mark_stabs): Likewise.
1702 (ecoff_stab): Likewise.
1703 (ecoff_frob_symbol): Cast away type mismatch.
1704 (ecoff_padding_adjust): Likewise.
1705 (ecoff_build_symbols): Likewise.
1706 (ecoff_build_procs): Likewise.
1707 (ecoff_build_aux): Likewise.
1708 (ecoff_build_strings): Likewise.
1709 (ecoff_build_fdr): Likewise.
1710 (ecoff_build_debug): Likewise.
1711 * itbl-ops.c (itbl_assemble): Variable initialization.
1712
636c26b0
AM
17132001-05-03 Alan Modra <amodra@one.net.au>
1714
1715 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
1716 expressions rather than triggering an assert.
1717
c7e40348
NC
17182001-05-02 Johan Rydberg <jrydberg@opencores.org>
1719
3438adb3
AM
1720 * config/tc-openrisc.c: New file.
1721 * config/tc-openrisc.h: Likewise.
c7e40348 1722
3438adb3
AM
1723 * Makefile.am: Add OpenRISC target.
1724 * Makefile.in: Regenerated.
c7e40348 1725
3438adb3
AM
1726 * configure.in (openrisc-*-*): Add target.
1727 * configure: Regenerated.
c7e40348 1728
5cb1517b
NC
17292001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1730
1731 * config/tc-arm.c (arm_frag_align_code): Change error message to
1732 more explanatory version.
1733
f4ddc5e6
L
17342001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
1735
1736 * config/tc-mips.c (md_parse_option): Also accept
1737 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
1738
fa7fda74
L
17392001-04-27 David Mosberger <davidm@hpl.hp.com>
1740
1741 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
1742 argument passing order: predicate goes last, not first.
1743
87748b32
NC
17442001-04-27 Sean McNeil <sean@mcneil.com>
1745
1746 * configure.in: Add arm-vxworks.
1747 * configure: Regenerate.
1748
16a0c2d4
NC
17492001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
1750
1751 * config/tc-arm.c (arm_handle_align): New Function: Generate
1752 no-op filled alignment frags.
1753 (arm_frag_align_code): New Function: Create a code alignment frag.
1754 (arm_init_frag): New Function: Initialse the target dependent
1755 parts of a frag.
1756
1757 * config/tc-arm.h (TC_FRAG_TYPE): Define.
1758 (TC_FRAG_INIT): Define.
1759 (HANDLE_ALIGN): Define.
1760 (md_do_align): Define.
1761
ea3b9044
NC
17622001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
1763
1764 * config/obj-coff.c (do_linenos_for): Check to see if the filename
1765 symbol has been initialised before extracting its symbol index.
1766
d6d788bd
L
17672001-04-24 H.J. Lu <hjl@gnu.org>
1768
1769 * configure: Regenerated with the right version of autoconf.
1770
6840198f
NC
17712001-04-24 Christian Groessler <cpg@aladdin.de>
1772
1773 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
1774 generate R_CALLR and R_REL16 relocations
1775
1c97d17b
JE
17762000-04-20 Jason Eckhardt <jle@redhat.com>
1777
1778 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
1779 since frag_now can change after d10v_cleanup is called.
1780
1c33f1da
DB
17812001-04-16 David O'Brien <obrien@FreeBSD.org>
1782
1783 * configure.in: Add the em type for FreeBSD targets.
1784 * configure: Regenerate.
1785
eb0dfd58
AO
17862001-04-14 Alexandre Oliva <aoliva@redhat.com>
1787
8c5e1ccd
AO
1788 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
1789 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
1790
eb0dfd58
AO
1791 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
1792 pc-relative relocations not placed at the end of the instruction.
1793
1deb8127
JW
17942001-04-13 Jim Wilson <wilson@redhat.com>
1795
1796 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
1797 excluding br.i.
1798
f5fa8ca2
JJ
17992001-04-13 Jakub Jelinek <jakub@redhat.com>
1800
1801 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
1802 handle SHF_MERGE and SHF_STRINGS.
1803 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
1804 (obj_elf_section): Allow additional argument specifying entity size.
1805 * write.c (adjust_reloc_syms): Keep relocations against local symbols
1806 in SEC_MERGE sections.
1807
fb81275c
JM
18082001-04-12 Jason Merrill <jason_merrill@redhat.com>
1809
1810 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
1811
a8a22e33
AO
18122001-04-12 Alexandre Oliva <aoliva@redhat.com>
1813
1814 * expr.c (operand): Pass &c to md_parse_name().
1815 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
1816
af9539e4
L
18172001-04-07 Steven J. Hill <sjhill@cotw.com>
1818
1819 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
1820
1821 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
1822 * Makefile.in: Regenerated.
1823
1824 * configure.in: Use traditional MIPS targets for Linux/MIPS.
1825 * configure: Regenerated.
1826
4dfea105
AO
18272001-04-06 Alexandre Oliva <aoliva@redhat.com>
1828
1829 * config/tc-mn10300.c (xr_registers): Added `pc'.
1830
e66457fb
AM
18312001-04-05 Alan Modra <alan@linuxcare.com.au>
1832
1833 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
1834 * configure: Regenerate.
1835
1836 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
1837 cases, and always return size based on current fr_subtype.
1838 (md_begin): Move initialization of md_relax_table..
1839 (md_relax_table): ..to static initializer. Set rlx_length for
1840 UNDEF_WORD_DISP cases.
1841 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
1842 (md_begin): Likewise.
1843 (md_relax_table): Likewise.
1844 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
1845 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
1846 Set rlx_backward and rlx_forward to zero for unused states.
1847 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
1848 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
1849 (UNCOND12, UNCOND32): Remove duplicate defines.
1850
aacb5251
HPN
18512001-04-04 Hans-Peter Nilsson <hp@axis.com>
1852
c335d394
HPN
1853 * config/tc-cris.c (md_estimate_size_before_relax) <case
1854 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
1855 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
1856 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
1857 Add cases to cover all relax states.
ed67db7a
HPN
1858 (cris_insn_first_word_frag): New.
1859 (md_assemble): Call cris_insn_first_word_frag to get the first
1860 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
1861 end. Drop variable insn_size.
1862 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
1863 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
1864 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
c335d394 1865
aacb5251
HPN
1866 * write.c (write_object_file): Reset broken word state before
1867 calling relax_seg.
1868
cdbc6895
AM
18692001-03-31 Alan Modra <alan@linuxcare.com.au>
1870
61b96bb4
AM
1871 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
1872 for one line if not already enabled.
1873 * cond.c (s_elseif): Correct conditional assembly listing.
1874 (s_else): Likewise.
1875
cdbc6895
AM
1876 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
1877 Don't abort on NULL current_cframe.
1878
93c2a809
AM
18792001-03-30 Alan Modra <alan@linuxcare.com.au>
1880
0529cb87 1881 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
1a5447b8
AM
1882 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
1883 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
1884 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
1885 * config/obj-coff.c (do_relocs_for): Likewise.
1886 (yank_symbols): Likewise.
1887 (fixup_segment): Likewise.
1888 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
1889 (ppc_fix_adjustable): Likewise.
1890 * config/tc-mips.c (md_convert_frag): Likewise.
1891 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
1892 * ehopt.c (eh_frame_convert_frag): Likewise.
1893 * expr.c (make_expr_symbol): Likewise.
0529cb87 1894
e46d99eb
AM
1895 * frags.h (struct frag): Add last_fr_address. Reorder fields for
1896 better packing.
1897 * symbols.c (resolve_symbol_value): Don't fix expression values
1898 until relaxation is complete.
1899 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
1900 (S_GET_VALUE): Likewise, and return unresolved expression value.
1901 * write.c (finalize_syms): New.
1902 (relax_and_size_seg): Split into..
1903 (relax_seg): New function, returns 1 if anything changed..
1904 (size_seg): And the remainder of relax_and_size_seg.
1905 (fixup_segment): Arrange for final resolution of sym values.
1906 (adjust_reloc_syms): Likewise.
1907 (write_object_file): Likewise, and repeatedly call relax_seg until
1908 nothing more changes.
1909 (relax_segment): Return 1 if anything changed. Use correct types
1910 for rs_org `target' and `after'.
1911 * write.h (finalize_syms): Declare.
1912 (relax_segment): Update prototype.
1913
93c2a809
AM
1914 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
1915 do-nothing cases to switch to avoid abort on a second relaxation
1916 pass, and tidy code a little.
1917 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
1918 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
1919 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
1920 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
1921 (md_relax_table): Remove first four unused entries. Increment
1922 rlx_length by one throughout table, and update comments to suit.
1923 (md_estimate_size_before_relax): Return size of current variable
1924 part of frag to reflect reality when relaxing more than once.
1925 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
1926 (COND32, UNCD32): Rename to DISP32 throughout.
1927 (UNDEF_WORD_DISP): Renumber to 3.
1928 (md_estimate_size_before_relax): Add extra do-nothing cases.
1929 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
1930 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
1931 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
1932 handle word and dword branches.
1933
d551a338
HPN
19342001-03-29 Hans-Peter Nilsson <hp@axis.com>
1935
1936 * config/tc-cris.h (tc_fix_adjustable): Allow only
1937 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
23ec5d03
HPN
1938 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
1939 example in comment to valid type.
d551a338 1940
440ecb38
L
19412001-03-28 H.J. Lu <hjl@gnu.org>
1942
1943 * read.c (equals): Set to local for COFF only if it hasn't been
1944 defined before.
1945
8a238888
AM
19462001-03-28 Alan Modra <alan@linuxcare.com.au>
1947
1948 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
1949 (md_begin): Use it when setting default architecture.
1950
775cf891
NC
19512001-03-27 Nick Papadonis <nick@coelacanth.com>
1952
1953 * read.c (equals): (for COFF) default symbols to being local.
1954
f9c19112
HPN
19552001-03-27 Hans-Peter Nilsson <hp@axis.com>
1956
1957 * configure.in (cris-*-*): Change default emulation to criself.
1958 (cris-*-*aout*): New rule.
1959 * configure: Regenerate.
1960
07855bec
NC
19612001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
1962
1963 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
1964 BFD_RELOC_390_GOTENT.
1965 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
1966 BFD_RELOC_390_GOTENT.
1967
19682001-03-26 Nick Clifton <nickc@redhat.com>
1969
1970 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
1971 * config/tc-s390.c (s390_force_relocation): New function: Force
1972 relocations for VTINHERIT relocs.
1973
0285c67d
NC
19742001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1975
1976 * doc/as.texinfo: Put @c man begin to generate the as man page.
1977 When generating man, define all the variables. Re-organize some
1978 options to obtain better indentation of man page.
1979 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
1980 (as.1): Build from as.texinfo.
1981 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
1982
551c1ca1
AM
19832001-03-25 Alan Modra <alan@linuxcare.com.au>
1984
1985 * config/tc-i386.c (i386_scale): Accept an absolute expression for
1986 scale factor, and return the end of the expression.
1987 (i386_operand): Modify for above.
1988
c3a27914
NC
19892001-03-23 Nick Clifton <nickc@redhat.com>
1990
1991 * doc/as.texinfo: Document --listing-XXX command line switches.
1992 Explain why listings behave differently when -pipe is used.
1993
37006e43
NC
19942001-03-23 Richard Sandiford <rsandifo@redhat.com>
1995
1996 * write.c (fix_new_exp): Print an error if passed a register.
1997
08caf3f8
HPN
19982001-03-23 Hans-Peter Nilsson <hp@axis.com>
1999
2000 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2001 (PIC_SUFFIX_CHAR): New macro.
2002 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2003 (pic): New variable.
2004 (md_longopts): New option --pic.
2005 (OPTION_PIC): Define.
2006 (md_estimate_size_before_relax): Tweak longish comment.
2007 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2008 (md_assemble): Handle a PIC relocation on prefix and normal
2009 instruction operands.
2010 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2011 "complex" operand expressions. Call frag_more outside
2012 gen_cond_branch_32 parameter list.
2013 (cris_process_instruction): Handle PIC relocs on parsed
2014 operand expressions. Validize PIC reloc sizes.
2015 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2016 (gen_bdap): Handle "complex" operand expressions.
2017 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2018 ADD.D offset,PC as jump instruction if generating PIC. Generate
2019 error instead of crashing on complex expressions.
2020 (cris_number_to_imm): Add segT parameter. All callers changed.
2021 Use segT parameter, not now_seg, for segment of fixup. Handle
2022 PCREL relocations but check that they are fully resolved.
2023 (md_parse_option): Handle OPTION_PIC.
2024 (tc_gen_reloc): Handle PIC relocs.
2025 (md_show_usage): Update for --pic.
2026 (md_apply_fix3): Renamed from md_apply_fix.
2027 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2028 (md_cris_force_relocation): Force relocation for PIC relocs.
2029
2030 * config/tc-cris.h: Tweak attribution.
2031 (MD_APPLY_FIX3): Define.
2032 (IS_CRIS_PIC_RELOC): New macro.
2033 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2034 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2035 generating ELF.
8a238888 2036 (tc_frob_symbol): Avoid emitting undefined symbols.
08caf3f8 2037
38686296
AM
20382001-03-20 Alan Modra <alan@linuxcare.com.au>
2039
2040 * frags.h (struct frag): Add relax_marker.
2041 * write.c (is_dnrange): Delete.
2042 (relax_frag): Use correct types for `aim', `target', `address'.
2043 Delete `offset', `was_address'. Test `relax_marker' instead of
2044 using fragile (and slow) address test.
2045 (relax_segment): Init and flip `relax_marker'.
2046
2e98d2de
AM
20472001-03-19 Alan Modra <alan@linuxcare.com.au>
2048
2049 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2050 used register name.
2051
e629c13f
SC
20522001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2053
2054 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2055 with 'Motorola specification for assembly language input standard'.
2056
249e3833
RH
20572001-03-17 Richard Henderson <rth@redhat.com>
2058
2059 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2060 (dwarf2_directive_loc): Don't use them.
2061 (dwarf2_directive_file): Reject duplicate file definitions.
2062 (get_filenum): Zero allocated memory.
2063 (out_file_list): Complain about missing file definitions.
2064
2289f85d
AM
20652001-03-17 Alan Modra <alan@linuxcare.com.au>
2066
2067 * read.c (do_org): Handle complex expressions.
2068 * cgen.c (gas_cgen_finish_insn): Likewise.
2069
4d5a53ff
JW
20702001-03-15 David Mosberger <davidm@hpl.hp.com>
2071
2072 * config/tc-ia64.c (md): New member keep_pending_output.
2073 (ia64_flush_pending_output): Flush only if md.keep_pending_output
2074 is not set.
2075 (dot_xdata): Turn on md.keep_pending_output for the duration of
2076 this function.
2077 (dot_xfloat_cons): Ditto.
2078 (dot_xstringer): Ditto.
2079 (dot_xdata_ua): Ditto.
2080 (dot_xfloat_cons_ua): Ditto.
2081
20822001-03-15 Jim Wilson <wilson@redhat.com>
2083
2084 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
2085 label support.
2086
19c0258a
AO
20872001-03-15 Alexandre Oliva <aoliva@redhat.com>
2088
2089 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
2090
d68d4570
DD
20912001-03-15 DJ Delorie <dj@redhat.com>
2092
2093 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
2094 blindly freeing string if it isn't at the top of the obstack.
2095
f3c180ae
AM
20962001-03-13 Alan Modra <alan@linuxcare.com.au>
2097
2098 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
2099 (NUM_FLAG_CODE): Define.
2100 (lex_got): New function.
2101 (got_reloc): New global var.
2102 (x86_cons_fix_new): New function.
2103 (x86_cons): New function.
2104 (i386_immediate): Use lex_got here, replacing inline code. Change
2105 "ignoring junk.." error message to "junk.."
2106 (i386_displacement): Likewise.
2107 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
2108 (x86_cons): Declare.
2109 (TC_CONS_FIX_NEW): Define.
2110 (x86_cons_fix_new): Declare.
2111
83e7603d
NC
21122001-03-12 Nick Clifton <nickc@redhat.com>
2113
2114 * config/tc-arm.c (md_begin): Always set machine type based on
2115 cpu_variant.
2116
1ae12ab7
AM
21172001-03-07 Alan Modra <alan@linuxcare.com.au>
2118
2119 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
f3c180ae 2120 (md_assemble) <smallest displacement>: Use correct field of i.op[]
1ae12ab7 2121 union.
f3c180ae
AM
2122 <JumpInterSegment output>: Use correct i.disp_reloc[].
2123 <immediate output>: Likewise.
1ae12ab7 2124
4f3c3dbb
NC
21252001-03-06 Nick Clifton <nickc@redhat.com>
2126
2127 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
2128 BLX(1) instruction.
2129
dc84e067
NC
21302001-03-06 Igor Shevlyakov <igor@windriver.com>
2131
2132 * config/tc-m68k.c : Add 5407 to archs[] table.
2133 (HAVE_LONG_BRANCH): Add mcf5407.
2134 (select_control_regs): Recognize 5407.
2135
a8150a88
DB
21362001-03-02 Dave Brolley <brolley@redhat.com>
2137
1ae12ab7
AM
2138 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
2139 than m32r_do_align.
a8150a88 2140
e103941e
NC
21412001-03-02 Richard Sandiford <rsandifo@redhat.com>
2142
2143 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
2144 (gen_to_words): Print warnings if NaNs are found and the target CPU
2145 does not support them. Allow largest exponent to be used in normal
2146 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
2147
7c44d1d3
AJ
21482001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
2149
2150 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
2151 anymore since we use bfd_elf_generic_reloc now.
2152 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
2153
27b7e12d
AM
21542001-02-27 Alan Modra <alan@linuxcare.com.au>
2155
2156 * configure.in (BFD_VERSION): New.
2157 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2158 * configure: Regenerate.
2159 * Makefile.am: Run "make dep-am"
2160 * Makefile.in: Regenerate.
2161 * doc/Makefile.in: Regenerate.
2162
1af96959
NC
21632001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
2164
2165 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
2166 SEC_NEVER_LOAD when the 'n' flag is used.
2167 Add SEC_NEVER_LOAD to matchflags.
2168
d95767bf
SC
21692001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2170
2171 * symbols.c (decode_local_label_name): Initialize message_format
2172 only when an error is reported (perf pb due to I18N).
2173
3737d051
L
21742001-02-23 H.J. Lu <hjl@gnu.org>
2175
2176 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
2177 BFD_ASSEMBLER is not defined.
2178
23fe39df 21792001-02-23 Richard Sandiford <rsandifo@redhat.com>
b653e7f9
NC
2180
2181 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
2182 done if it's against a symbol.
2183
7463c317
TW
21842001-02-22 Timothy Wall <twall@cygnus.com>
2185
2186 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
2187 target formats if applicable.
2188 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
2189 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
2190 * Makefile.in: Regenerated.
2191 * configure.in: Added configuration for ia64-*-aix*.
2192 * configure: Regenerated.
7c44d1d3 2193
87f8eb97
JW
21942001-02-21 David Mosberger <davidm@hpl.hp.com>
2195
2196 * config/tc-ia64.c (enum operand_match_result): New type.
2197 (operand_match): Change return type to operand_match_result.
2198 Fix all returns appropriately, adding support for returning the
2199 out-of-range result.
2200 (parse_operands): New locals result, error_pos, out_of_range_pos,
2201 curr_out_of_range_pos. Rewrite operand matching loop to give better
2202 error messages.
7c44d1d3 2203
33d01f33
JW
22042001-02-21 David Mosberger <davidm@hpl.hp.com>
2205
2206 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
2207 (dot_proc): Clear unwind.prologue_count to zero.
2208 (dot_prologue): Increment unwind.prologue_count.
2209 (dot_restore): If second operand is omitted, use
2210 unwind.prologue_count -1 for "ecount" (# of additional regions to
2211 pop). Decrement unwind.prologue_count by number of regions
2212 popped.
2213
7e84d676
NC
22142001-02-21 Nick Clifton <nickc@redhat.com>
2215
2216 * doc/as.texinfo (Section): Note that some flags to the COFF
2217 version of .section remove attributes rather than setting them.
2218
5cd4edbe
KH
22192001-02-20 Kazu Hirata <kazu@hxi.com>
2220
29184774
NC
2221 * config/tc-pdp11.c: Fix formatting.
2222 * config/tc-pdp11.h: Likewise.
5cd4edbe 2223
80b3ee89
AJ
22242001-02-20 Bo Thorsen <bo@suse.de>
2225
2226 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
2227 entry.
2228
0fde8cc6 22292001-02-18 David O'Brien <obrien@FreeBSD.org>
cac5b87b
DB
2230
2231 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
2232 all FreeBSD platforms should look the same at this level.
2233 * configure: Rebuilt.
2234 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
2235
e135f41b
NC
22362001-02-18 lars brinkhoff <lars@nocrew.org>
2237
2238 * Makefile.am: Add PDP-11 target.
2239 * configure.in: Likewise.
2240 * config/tc-pdp11.c: New file.
2241 * config/tc-pdp11.h: New file.
2242 * doc/Makefile.am: Add PDP-11 documentation.
2243 * doc/all.texi: Likewise.
2244 * doc/as.texinfo: Likewise.
2245 * doc/c-pdp11.texi: New file.
2246
363c574f
MG
22472001-02-16 matthew green <mrg@redhat.com>
2248
5dd0794d 2249 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
363c574f 2250
fa1cb89c
JW
22512001-02-13 Jim Wilson <wilson@redhat.com>
2252
2253 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
2254 reloc instead of a 0 reloc.
2255 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
2256 as done.
2257 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
2258
c842b53a
ILT
22592001-02-13 Ian Lance Taylor <ian@zembu.com>
2260
2261 * write.c (is_dnrange): Stop as soon as the address becomes
2262 larger.
2263 (relax_frag): Add segment parameter. Only call symbol_get_frag
2264 once. Only call is_dnrange if the symbol is in the same segment,
2265 and the symbol address is larger.
2266 (relax_segment): Pass segment to md_relax_frag and relax_frag.
2267 * write.h (relax_frag): Update declaration.
2268 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
2269 it to relax_frag.
2270 * config/tc-m32r.c (m32r_relax_frag): Likewise.
2271 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
2272 (m32r_relax_frag): Update declaration.
2273 * config/tc-mips.h (md_relax_frag): Add segment parameter.
2274 * config/tc-tic54x.h (md_relax_frag): Likewise.
2275 * doc/internals.texi (CPU backend): Update documentation for
2276 md_relax_frag.
2277
6fad6acb
AM
22782001-02-13 Alan Modra <alan@linuxcare.com.au>
2279
fddf5b5b
AM
2280 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
2281 Mention effect of < 386 architectures on jump promotion.
2282 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
2283
2284 * config/tc-i386.c (no_cond_jump_promotion): New.
2285 (set_cpu_arch): Parse "jumps" arch modifier.
2286 (insn_size): Modify usage comment.
2287 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
2288 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
2289 (TYPE_FROM_RELAX_STATE): New define.
2290 (UNCOND_JUMP, COND_JUMP): Renumber.
2291 (md_relax_table): Reorder to suit.
2292 (COND_JUMP86): New define.
2293 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
2294 (md_assemble): Create frag var for jumps of max size, encode relax
2295 state for COND_JUMP86.
2296 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
2297 leave conditional jumps small if no_cond_jump_promotion.
2298 (md_convert_frag): Likewise.
2299
6fad6acb
AM
2300 * expr.c (operator): Don't bump input_line_pointer for two char
2301 operators. Instead return operator size via new param num_chars.
2302 (expr): Use above to parse multi-char operators correctly.
2303
23df1078
JH
2304Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
2305
29184774 2306 * config/tc-i386.c (i386_displacement): Fix handling of
23df1078
JH
2307 BFD_RELOC_X86_64_GOTPCREL.
2308 (i386_validate_fix): Likewise.
2309
b1e2e654
PB
23102001-02-12 Philip Blundell <pb@futuretv.com>
2311
2312 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
2313 ldrt/strt instructions.
2314
9117d219
NC
23152001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2316
2317 * config/tc-mips.c (macro): For M_LA_AB emit a
2318 BFD_RELOC_MIPS_CALL16 relocation or a
2319 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
2320 BFD_RELOC_MIPS_GOT16 and
2321 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
2322 loading the jump register when generating SVR4_PIC code.
2323
97238fbd
CD
23242001-02-10 Chris Demetriou <cgd@broadcom.com>
2325
2326 * configure.in: Make 'mipself' and 'mipsecoff' emulations
2327 map to MIPS-specific files, as they used to do before the
2328 change on 2000-05-21.
2329 * configure: Regerate.
2330
0f074f60
CD
23312001-02-10 Chris Demetriou <cgd@broadcom.com>
2332
2333 * config/tc-mips.c (md_parse_option): Don't try to compile
2334 ELF-only option code if not ELF.
2335
91a2ae2a
RH
23362001-02-08 David Mosberger <davidm@hpl.hp.com>
2337
2338 * config/tc-ia64.h (md_elf_section_type): New macro.
2339 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
2340 (they're now handled via ia64_elf_section_type.
2341
2342 * config/tc-ia64.c (unwind): New members saved_text_seg,
2343 saved_text_subseg, and force_unwind_entry.
2344 (optimize_unw_records): New function to optimize away unnecessary
2345 unwind directives.
2346 (ia64_elf_section_type): New function.
2347 (output_unw_records): Generate unwind info only if the size is
2348 non-zero or if it's forced for some other reason (e.g.,
2349 handlerdata or a personality routine).
2350 (generate_unwind_image): Don't switch back to previous
2351 section---stay inside the unwind info section instead so that
2352 handlerdata that may follow goes into the right place.
2353 (dot_handlerdata): Force generation of unwind entry and save the
2354 current active text segment before generating unwind image.
2355 (dot_unwentry): Force generation of unwind entry.
2356 (dot_personality): Ditto.
2357 (dot_endp): Generate unwind table entry only if there is
2358 some unwind info or the unwind entry was forced.
2359
2360 * config/tc-ia64.c (make_unw_section_name): New macro to form
2361 unwind section name.
2362 (generate_unwind_image): Add "text_name" argument. Use it to
2363 form unwind section name.
2364 (dot_handlerdata): Determine current segment (section) name and
2365 pass it to generate_unwind_image().
2366 (dot_endp): Determine current segment (section) name and use
2367 it to determine the appropriate unwind section name.
2368 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
2369 n, fill, and max arguments.
2370
a85d7ed0
NC
23712001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
2372
2373 * Makefile.am: Add linux target for S/390.
2374 * configure.in: Likewise.
2375 * config/tc-s390.c: New file.
2376 * config/tc-s390.h: New file.
2377
de68de20
AO
23782001-02-09 Alexandre Oliva <aoliva@redhat.com>
2379
2380 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
2381 2byte, 4byte and 8byte.
2382
23fe39df 23832001-02-08 Alan Modra <alan@linuxcare.com.au>
8ea46bbd
AM
2384
2385 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
2386 md_number_to_chars with size > sizeof (valueT).
2387
a99746f4
L
23882001-02-06 H.J. Lu <hjl@gnu.org>
2389
2390 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
2391 there is no relocation.
2392
f4e17b3d
L
23932001-02-06 H.J. Lu <hjl@gnu.org>
2394
2395 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
2396
2397 * config/tc-ia64.c (md_parse_option): Only accept the valid
2398 ia64 options on "-axxx".
2399
3557da92
JW
24002001-02-05 Jim Wilson <wilson@redhat.com>
2401
2402 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
2403 aborting for invalid operands.
2404
da6c73e0
AM
24052001-02-06 Alan Modra <alan@linuxcare.com.au>
2406
2407 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
2408 than via pointer. Update all callers.
2409 (UNWIND_LOW32): Define.
2410 (UNWIND_HIGH32): Define.
2411 (pa_build_unwind_subspace): Use the above macros instead of dumping
2412 bitfields directly. Call frag_more once rather than multiple times.
2413 (md_assemble): Use UNWIND_LOW32.
2414 (pa_entry): Likewise
2415 (pa_procend): Likewise.
2416 (process_exit): Use UNWIND_HIGH32.
2417
986c6f4b
SC
24182001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2419
2420 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
2421 function to select the header according to the cpu.
2422 (md_after_pass_hook, md_do_align): Remove.
2423 (md_cleanup, m68hc11_cleanup): Remove.
2424 (md_pcrel_from_section): Declare.
2425 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
2426 (build_jump_insn, build_insn): Likewise.
2427 (m68hc11_listing_header): New function.
2428 (m68hc11_cleanup): Remove.
2429
dbb8ad49
SC
24302001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2431
328dc123 2432 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
80b3ee89 2433 symbols because there is no support for shared libraries and these
328dc123 2434 symbols can't be overridden (unless they are weak).
dbb8ad49 2435
a987bfc9
RH
24362001-02-01 Momchil Velikov <velco@fadata.bg>
2437
2438 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
2439 for the compilation unit with a zero byte.
2440
22862cde
AM
24412001-01-30 Alan Modra <alan@linuxcare.com.au>
2442
2443 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
2444 destinations. Correct range check for 17 and 22 bit branches.
2445
8ec6253e
NC
24462001-01-25 Nick Clifton <nickc@redhat.com>
2447
2448 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
2449 still set. Issue an error message instead.
2450 (md_estimate_size_before_relax): Delete unused variable
2451 'buffer_address'. Fixup parentheses around if statement.
80b3ee89 2452
43ad3147
KH
24532001-01-23 Kazu Hirata <kazu@hxi.com>
2454
2455 * as.c: Fix formatting.
2456 * ehopt.c: Likewise.
2457 * messages.c: Likewise.
2458 * stabs.c: Likewise.
2459 * symbols.c: Likewise.
2460
015c05c1
AM
24612001-01-23 Ben Elliston <bje@redhat.com>
2462
2463 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
2464
66498417
KH
24652001-01-22 Kazu Hirata <kazu@hxi.com>
2466
2467 * config/tc-alpha.c: Fix formatting.
2468
1aad8cf8
KH
24692001-01-19 Kazu Hirata <kazu@hxi.com>
2470
2471 * config/tc-alpha.c: Fix formatting.
2472
32ff5c2e
KH
24732001-01-18 Kazu Hirata <kazu@hxi.com>
2474
2475 * config/tc-alpha.c: Fix formatting.
2476
cd17328a
NC
24772001-01-18 Nick Clifton <nickc@redhat.com>
2478
2479 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
2480 "da" flags.
2481 (stm_flags): Remove redundant bit from "ed" and "da" flags.
2482
81c425d1
AO
24832001-01-18 Alexandre Oliva <aoliva@redhat.com>
2484
2485 * configure.in (cpu_type, arch): Match i386 too.
2486 * configure: Rebuilt.
2487
e5cb08ac
KH
24882001-01-16 Kazu Hirata <kazu@hxi.com>
2489
2490 * config/tc-i386.c: Fix formatting.
2491
1d3d5051
AM
24922001-01-16 Alan Modra <alan@linuxcare.com.au>
2493
64afeba3
AM
2494 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
2495 relocs for .PARISC.unwind section.
2496
1d3d5051
AM
2497 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
2498 depending on section flags, not just for .text.
2499
b44b1b85
JW
25002001-01-15 Jim Wilson <wilson@redhat.com>
2501
2502 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
2503 not immediately followed by an instruction.
2504
098f2ec3
KH
25052001-01-15 Kazu Hirata <kazu@hxi.com>
2506
2507 * config/tc-m68hc11.c: Fix formatting.
2508
d4887adc
NC
25092001-01-15 Nick Clifton <nickc@redhat.com>
2510
2511 * symbols.c (colon): Change 'already defined symbol' from a
2512 fatal error to an ordinary error. There is no reason why this
2513 error should be fatal.
2514
2515 * message.c (as_fatal): Delete output file, if one has been
015c05c1 2516 created.
d4887adc 2517
fcfd4916
AM
25182001-01-14 Alan Modra <alan@linuxcare.com.au>
2519
2520 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
2521
bfb32b52
KH
25222001-01-14 Kazu Hirata <kazu@hxi.com>
2523
2524 * config/tc-alpha.c: Fix formatting.
2525 * config/tc-arc.c: Likewise.
2526 * config/tc-arc.h: Likewise.
2527 * config/tc-d10v.c: Likewise.
2528 * config/tc-i370.c: Likewise.
2529 * config/tc-i386.c: Likewise.
2530 * config/tc-i960.c: Likewise.
2531 * config/tc-m68k.c: Likewise.
2532 * config/tc-ppc.c: Likewise.
2533 * config/tc-sparc.c: Likewise.
2534 * config/tc-tahoe.c: Likewise.
2535 * config/tc-vax.c: Likewise.
2536
1e07b820
KH
2537 * config/tc-arc.c: Fix formatting.
2538
19203624
KH
2539 * config/tc-arc.c: Fix formatting.
2540
1328dc98
AM
25412001-01-14 Alan Modra <alan@linuxcare.com.au>
2542
c46b7515
AM
2543 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
2544 both 32 and 64 bit ELF.
2545
1328dc98
AM
2546 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
2547 and don't bother storing `m' for "ce" completer. Tidy handling of
2548 'J' and 'K' operands to suit. Handle '<' and '>' operands.
2549
b9d79e03
JH
2550Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
2551
29184774 2552 * config/tc-i386.h (TARGET_MACH): New macro.
b9d79e03 2553 (i386_mach): Declare.
29184774 2554 * config/tc-i386.c (i386_mach): New function.
b9d79e03 2555
a349d9dd
PB
25562001-01-13 Philip Blundell <philb@gnu.org>
2557
2558 * doc/as.texinfo: Fix spelling and cross-references.
2559
2560 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
2561 character for all systems, not just GNU/Linux. Make it explicit
2562 that `-k' doesn't affect code generation, just ELF flags.
2563
e2914f48
JH
2564Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
2565
2566 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
2567 instructions.
2568
272d76e0
FCE
25692001-01-12 Frank Ch. Eigler <fche@redhat.com>
2570
2571 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
2572
d0398d6a
NC
25732001-01-12 Nick Clifton <nickc@redhat.com>
2574
2575 * as.c (print_args): Update copyright date to 2001.
2576
2d73a4ca
NC
25772001-01-12 Peter Targett <peter.targett@arccores.com>
2578
2579 * doc/c-arc.texi: New file.
2580 Some sections to be expanded.
2581
6e0b89ee
AM
25822001-01-12 Alan Modra <alan@linuxcare.com.au>
2583
2584 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
2585 (md_parse_option): Always accept "--32".
2586
0d2bcfaf
NC
25872001-01-11 Peter Targett <peter.targett@arccores.com>
2588
2589 * as.h (TC_ARC): Ensure struc-symbol.h included.
2590 * as.c (dwarf2dbg.h): Include to remove implicit declaration
2591 warnings.
2592 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
2593 (TARGET_SYMBOL_FIELDS) added.
2594
2595 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
2596 * doc/c-arc.texi: New file.
2597 Some sections to be expanded.
2598 * doc/as.texinfo: Update command-line options.
2599 Removed outdated text for ARC dependant features, instead include
2600 text from above file.
2601
2602 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
2603 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
2604 (targ-cpu.h) header.
2605 * config/tc-arc.h:
2606 * config/tc-arc.c: New updated configuration for
2607 ARC, including selection of core variants, and extensibility of
2608 instructions, registers etc. through directives.
2609
2610 * config/tc-arc.c (arc_extinst): Minor corrections for
2611 error messages.
2612 (arc_common) Likewise. Make alignment argument optional for local
2613 symbols also, with default of zero.
2614
88051039
SC
26152001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2616
2617 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
2618 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
2619 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
2620 and fix_new_exp() instead.
2621 (md_convert_frag): For indexed post byte use the symbol value
2622 rather than the displacement.
2623 (md_relax_table): Fix indexed offset relax.
2624
d8273f3b
SC
26252001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2626
2627 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
2628 relax weak symbols.
015c05c1 2629 (relaxable_symbol): New function.
d8273f3b 2630
eea2ad45
AJ
26312001-01-11 Andreas Jaeger <aj@suse.de>
2632
2633 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
2634 not used anywhere.
2635
7a91e76a
NC
26362001-01-10 Nick Clifton <nickc@redhat.com>
2637
2638 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
2639 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
2640
aa257fcd
NC
26412001-01-10 Nick Clifton <nickc@redhat.com>
2642
2643 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
2644 character used to dollar local symbols.
2645 (LOCAL_LABEL_CHAR): New constant - the magic character used to
2646 local label symbols.
2647 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
2648 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
2649 if defined.
2650 Use LOCAL_LABEL_CHAR.
2651 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
2652 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
2653 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
2654
b77a7acd
AJ
26552001-01-08 Bo Thorsen <bo@suse.de>
2656
015c05c1
AM
2657 * config/tc-i386.c (i386_immediate, i386_displacement):
2658 GOTPCREL check fix.
b77a7acd 2659
5c2bd011
ILT
26602001-01-07 Ian Lance Taylor <ian@zembu.com>
2661
2662 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
2663 in last change.
2664
46a04e3a
PB
26652001-01-07 Philip Blundell <philb@gnu.org>
2666
2667 * doc/as.texinfo (Bug Reporting): Update email address for
2668 reports.
2669 * README: Likewise.
2670
b96d3a20
JH
2671Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
2672
2673 * configure.in: Define DEFAULT_ARCH for i386.
29184774 2674 * config/tc-i386.c (md_assemble): Return after the error message;
b96d3a20
JH
2675 move testing for 64bit operands to proper place.
2676
55b62671
AJ
26772001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
2678
2679 * doc/as.texinfo: Document '#' as comment character for i386 and
2680 x86_64. Add AMD x86-64 into menu of machine dependent information.
2681
2682 * doc/c-i386.texi: Document x86_64 extensions.
2683
7bc70a8e
JH
2684Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
2685
29184774 2686 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
7bc70a8e 2687
a167610d
JH
2688Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
2689
29184774 2690 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
a167610d
JH
2691 * NEWS: Add note about Pentium4 support.
2692
09f131f2
JH
2693Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
2694
29184774 2695 * config/tc-i387.c (pi, pte, pt): Update.
09f131f2
JH
2696 (type_names): Add new types.
2697
6f8c0c4c
JH
2698Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
2699
29184774 2700 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
6f8c0c4c
JH
2701 CpuUnknown): Renumber
2702 (CpuP4, CpuSSE2): New.
2703 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
2704
b96ed59a
PB
27052001-01-03 Philip Blundell <pb@futuretv.com>
2706
2707 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
2708 relocs.
2709 (alpha_fix_adjustable): Likewise.
2710 (md_apply_fix): Likewise.
2711
a735d1cd
L
27122000-12-31 H.J. Lu <hjl@gnu.org>
2713
2714 * listing.c (listing_message): Allocate string only if it is
2715 used.
2716
2717 * configure: Rebuild.
2718
67db5ab4
HPN
27192000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
2720
2721 * doc/internals.texi (Relaxing with a table) <after relaxation>:
2722 Point out caveats with generating fixups for the opcode in a frag.
2723
c0d8940f
JH
2724Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
2725
2726 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
2727 * NEWS: Add x86_64.
2728
087f563c
L
27292000-12-29 H.J. Lu <hjl@gnu.org>
2730
2731 * listing.c (calc_hex): Print the variable part only if the
2732 fragment type is rs_fill.
2733
8108ad8e
HPN
27342000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2735
2736 * doc/internals.texi (tc_conditional_pseudoop,
2737 TC_LINKRELAX_FIXUP): Fix typos.
2738
799051fc
RH
27392000-12-28 Richard Henderson <rth@redhat.com>
2740
2741 * write.c (subsegs_finish): Fix thinko last change -- don't
2742 "optimize" the alignment == 0 case.
2743
0a9ef439
RH
27442000-12-28 Richard Henderson <rth@redhat.com>
2745
2746 * as.h (rs_align_test): New.
2747 * frags.c (NOP_OPCODE): Move default from read.c.
2748 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
2749 (frag_align_code): New.
2750 * frags.h (frag_align_code): Declare.
2751 * read.c (NOP_OPCODE): Remove.
2752 (do_align): Use frag_align_code.
2753 * write.c (NOP_OPCODE): Remove.
2754 (get_recorded_alignment): New.
2755 (cvt_frag_to_fill): Handle rs_align_test.
2756 (relax_segment): Likewise.
2757 (subsegs_finish): Align last subseg in section to the
2758 section alignment. Use frag_align_code.
2759 * write.h (get_recorded_alignment): Declare.
2760 * config/obj-coff.c (size_section): Handle rs_align_test.
2761 (fill_section, fixup_mdeps): Likewise.
2762 (write_object_file): Use frag_align_code.
2763
2764 * config/tc-alpha.c (alpha_align): Use frag_align_code.
2765 (alpha_handle_align): New.
2766 * config/tc-alpha.h (HANDLE_ALIGN): New.
2767 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2768
2769 * config/tc-i386.h (md_do_align): Use frag_align_code.
2770 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2771
2772 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
2773 (ia64_handle_align): New.
2774 * config/tc-ia64.h (HANDLE_ALIGN): New.
2775 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2776
2777 * config/tc-m32r.c (m32r_do_align): Remove.
2778 (m32r_handle_align): New.
2779 (fill_insn): Use frag_align_code.
2780 * config/tc-m32r.h (md_do_align): Remove.
2781 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
2782 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
2783 * config/tc-mips.c, config/tc-mips.h: Similarly.
2784
2785 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
2786 (sh_handle_align): Likewise. Handle rs_align_code.
2787 (sh_do_align): Remove.
2788 * config/tc-sh.h (md_do_align): Remove.
2789 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2790
2791 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
2792 (sparc_handle_align): Likewise. Handle rs_align_code.
2793 * config/tc-sparc.h (md_do_align): Remove.
2794 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2795
3cd4dda7
DD
27962000-12-22 DJ Delorie <dj@redhat.com>
2797
2798 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
2799 when we assemble the first half of a pair.
2800
ec56dfb4
L
28012000-12-22 H.J. Lu <hjl@gnu.org>
2802
2803 * config/tc-i386.c (reloc): Update the macro for non-bfd
2804 assembler.
2805 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
2806
ad1172d4
L
28072000-12-22 H.J. Lu <hjl@gnu.org>
2808
2809 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
2810
3e73aa7c
JH
2811Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
2812
29184774 2813 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3e73aa7c
JH
2814 (QWORD_MNEM_SUFFIX): New macro.
2815 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
2816 New macros
2817 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
2818 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
2819 ImmExt): Renumber.
2820 (Size64, No_qSuf, NoRex64, Rex64): New macros.
2821 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
2822 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
2823 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
2824 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
2825 Renumber.
2826 (Reg, WordReg): Add Reg64.
2827 (Imm): Add Imm32S and Imm64.
2828 (EncImm): New.
2829 (Disp): Add Disp64 and Disp32S.
2830 (AnyMem): Add Disp32S.
2831 (RegRex, RegRex64): New macros.
2832 (rex_byte): New type.
29184774 2833 * config/tc-i386.c (set_16bit_code_flag): Kill.
3e73aa7c
JH
2834 (fits_in_unsigned_long, fits_in_signed_long): New functions.
2835 (reloc): New parameter "signed"; support x86_64.
2836 (set_code_flag): New.
2837 (DEFAULT_ARCH): New macro; default to "i386".
2838 (default_arch): New static variable.
2839 (struct _i386_insn): New fields Operand_PCrel; rex.
2840 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
2841 (flag_code): New enum and static variable.
2842 (use_rela_relocations): New static variable.
2843 (flag_code_names): New static variable.
2844 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
2845 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
2846 K6 and Athlon.
2847 (i386_align_code): Return plain "nop" for x86_64.
2848 (mode_from_disp_size): Support Disp32S.
2849 (smallest_imm_type): Support Imm32S and Imm64.
2850 (offset_in_range): Support size of 8.
2851 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
2852 (md_pseudo_table): Add "code64"; use set_code_flat.
2853 (md_begin): Emit sane error message on hash failure.
2854 (tc_i386_fix_adjustable): Support x86_64 relocations.
2855 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
2856 instructions supported on particular arch just partially,
2857 output of 64bit immediates, handling of Imm32S and Disp32S type.
2858 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
2859 (i386_displacement): Likewise.
2860 (i386_index_check): Cleanup; support 64bit addresses.
2861 (md_apply_fix3): Support x86_64 relocation and rela.
2862 (md_longopts): Add "32" and "64".
2863 (md_parse_option): Add OPTION_32 and OPTION_64.
2864 (i386_target_format): Call even for ELFs; choose between
2865 elf64-x86-64 and elf32-i386.
2866 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
2867 (tc_gen_reloc): Support rela relocations and x86_64.
2868 (intel_e09_1): Support QWORD.
2869
21d6c4af
DN
28702000-12-15 Diego Novillo <dnovillo@redhat.com>
2871
2872 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
55b62671 2873 it's not an offset expression.
21d6c4af
DN
2874 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
2875 keep the braces '[' and ']' in the output string.
2876 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
2877 != FLAT. There is no such op_modifier.
2878
6717891c
NC
28792000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2880
2881 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
2882 if we have it.
2883
ee515fb7
KH
28842000-12-13 Kazu Hirata <kazu@hxi.com>
2885
2886 * as.h: Fix formatting.
2887 * cgen.h: Likewise.
2888 * dwarf2dbg.c: Likewise.
2889 * input-scrub.c: Likewise.
2890 * read.h: Likewise.
2891
349a994c
DD
28922000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
2893
2894 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
2895 configure: Regenerate.
2896
42dbf88c
NC
28972000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2898
2899 * dwarf2dbg.c: #include <limits.h> only if it exists.
2900
0485cba3
AM
29012000-12-13 Rodney Brown <RodneyBrown@mynd.com>
2902
2903 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
2904 (md_apply_fix): Here too.
2905
514829c3
JW
29062000-12-12 Jim Wilson <wilson@redhat.com>
2907
2908 * config/tc-ia64.h (ia64_init): Add prototype.
2909
92eb7b32
L
29102000-12-12 H.J. Lu <hjl@gnu.org>
2911
2912 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
2913
2914 * read.h (outputting_stabs_line_debug): Change it to int.
2915 * stabs.c (outputting_stabs_line_debug): Likewise.
2916
8141c27d
GK
29172000-12-12 Geoffrey Keating <geoffk@redhat.com>
2918
2919 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
2920 the address of a function result.
2921
5d6f4f16
GK
29222000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2923
2924 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
2925 (md_assemble): Call dwarf2_emit_insn.
2926 (shlib): Fix typo SHILB -> SHLIB.
2927 (md_parse_option): Likewise.
2928 (ppc_elf_validate_fix): Likewise:
2929 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2930
d4c0c039
NC
29312000-12-12 Nick Clifton <nickc@redhat.com>
2932
2933 * cgen.h: Fix formatting.
2934 * input-scrub.c: Fix formatting.
2935 * macro.c: Fix formatting.
e972090a 2936 * config/tc-mips.c: Fix formatting.
584da044 2937 * doc/c-mips.texi: Fix formatting.
55b62671 2938
f16b83df
JH
2939Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
2940
29184774 2941 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
f16b83df
JH
2942 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
2943 references.
2944 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
2945 otherwise.
29184774 2946 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
f16b83df
JH
2947 (No_dSuf): Kill.
2948
2949 * i386.h (*_Suf): Remove No_dSuf.
2950 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
2951 Remove.
2952 (i386_optab): Remove 'd' in the suffixes.
2953
50705ef4
AM
29542000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2955
2956 * config/tc-i386.c (T_SHORT): Undefine before defining.
2957
beae10d5
KH
29582000-12-05 Kazu Hirata <kazu@hxi.com>
2959
2960 * config/tc-mips.c: Fix formatting.
2961
bccba5f0 29622000-12-04 Matthew Hiller <hiller@redhat.com>
50705ef4
AM
2963
2964 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
2965 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
2966 (md_show_usage): Ditto.
2967 (md_parse_option): Ditto.
2968 (d10v_cleanup): Writes pending instruction only if
2969 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
bccba5f0 2970 Fix compile time warning messages.
50705ef4
AM
2971
2972 * doc/c-d10v.texi: Documents new options.
bccba5f0
NC
2973
29742000-12-04 Matthew Hiller <hiller@redhat.com>
2975
50705ef4 2976 * stabs.c (outputting_stabs_line_debug): New variable.
bccba5f0
NC
2977 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
2978 function entry and unset at function exit.
2979
50705ef4 2980 * read.h (outputting_stabs_line_debug): New extern declaration.
bccba5f0
NC
2981
2982 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
2983
2984 * dwarf2dbg.c: Fix compile time warning messages.
2985
bc805888
KH
29862000-12-03 Kazu Hirata <kazu@hxi.com>
2987
2988 * config/tc-a29k.c: Fix formatting.
2989 * config/tc-alpha.c: Likewise.
2990 * config/tc-arm.c: Likewise.
2991 * config/tc-cris.c: Likewise.
2992 * config/tc-hppa.c: Likewise.
2993 * config/tc-i370.c: Likewise.
2994 * config/tc-i386.c: Likewise.
2995 * config/tc-i860.c: Likewise.
2996 * config/tc-i960.c: Likewise.
2997 * config/tc-ia64.c: Likewise.
2998 * config/tc-m68hc11.c: Likewise.
2999 * config/tc-m68k.c: Likewise.
3000 * config/tc-m88k.c: Likewise.
3001 * config/tc-pj.c: Likewise.
3002 * config/tc-ppc.c: Likewise.
3003 * config/tc-sh.c: Likewise.
3004 * config/tc-sparc.c: Likewise.
3005 * config/tc-tahoe.c: Likewise.
3006 * config/tc-vax.c: Likewise.
3007
3dacdf2e
NC
30082000-12-01 Chris Demetriou <cgd@sibyte.com>
3009
50705ef4
AM
3010 * config/tc-mips.c (mips_ip): When calculating offsets,
3011 don't accept as constant the difference between the
3012 addresses of symbols in two different sections.
3013
3014 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3015 specifiers.
3016 (validate_mips_insn): Likewise. Also, update 'B' operand
3017 specifier to use OP_*_CODE20 constants and delete 'm' operand
3018 specifier.
3019 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3020 operand specifiers. Change warning generated by 'B' operand
3021 specifier to reflect its new multi-purpose usage.
3022
3023 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3024 -1, and update comment.
3025 (file_mips_isa): Likewise.
3026 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3027 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3028 ISA_* constants rather than hard-coded numbers.
3029 (mips_cpu_info): New structure.
3030 (mips_cpu_info_table): New table describing CPU and ISA names
3031 and numbers.
3032 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3033 mips_cpu_info_from_cpu): New functions.
3034 (mips_isa_to_str): New function to get string for ISA name.
3035 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3036 return const char *.
3037 (md_begin): Redo CPU and ISA selection logic, using
3038 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3039 than hard-coded numbers.
3040 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3041 ISA_* constants rather than hard-coded numbers.
3042 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3043 (md_longopts): Delete OPTION_NO_MIPS32.
3044 (md_parse_option): Convert to use ISA_* constants rather than
3045 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3046 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3047 to use strcasecmp to recognize "default" and to use
3048 mips_cpu_info_from_name to get CPU numbers from argument.
3049 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3050 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3051 mips32-4k.
3052 (s_mipsset): Accept ISA value 32.
3053 * doc/as.texinfo: Clean up MIPS options summary slightly,
3054 remove -no-mips32. Add note about -mips4 and -mips32
3055 specifying those ISA levels. Delete -mips32 and -no-mips32
3056 cpu flag descriptions.
3057 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3058 up the supported CPU switch list, and replace 4Kc, 4Km, and
3059 4Kp entries with a single mips32-4k entry. Note that you can
3060 use ".set mips32".
3061
29184774 3062 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
50705ef4
AM
3063 ISA_MIPS64.
3064 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3065 -mips5 and -mips64.
3066 (md_parse_option): Add cases for OPTION_MIPS5 and
3067 OPTION_MIPS64.
3068 (md_show_usage): Mention -mips5 and -mips64 arguments.
3069 (s_mipsset): Add cases for MIPS5 and MIPS64.
3070 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
3071 and pseudo-CPUs.
3072 * doc/as.texinfo: Mention -mips5 and -mips64 options
3073 and their meanings.
3074 * doc/c-mips.texi: Likewise. Also update introduction
3075 and ".set" usage information.
3076
3077 * config/tc-mips.c (md_show_usage): Add "sb1" to the
3078 CPU list.
3079 (mips_cpu_info_table): Add SB-1 entries.
3080 * doc/c-mips.texi: Add "sb1" to the list of CPUs
3081 known to the -mcpu option.
3082
3083 * doc/as.texinfo: Correct description of MIPS -mcpu
3084 option, by copying some of the text from doc/c-mips.texi.
c6c98b38 3085
23fe39df 30862000-12-01 Joel Sherrill <joel@OARcorp.com>
5f68c319 3087
3dacdf2e
NC
3088 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3089 New targets.
3090 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3091 (sparc*-*-rtems*): Switched from a.out to ELF.
5f68c319
NC
3092 * configure: Regenerate.
3093 * config.in: Regenerate.
3094 * Makefile.in: Regenerate.
3095 * aclocal.m4: Regenerate.
3096 * po/gas.pot: Regenerate.
50705ef4 3097
4ce3447c
PB
30982000-11-30 Philip Blundell <pb@futuretv.com>
3099
3100 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
3101 even in non BFD_ASSEMBLER case.
3102
76a0ddac
DN
31032000-11-30 Diego Novillo <dnovillo@redhat.com>
3104
29184774 3105 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
76a0ddac
DN
3106 syntax.
3107
220e750f
RH
31082000-11-29 Richard Henderson <rth@redhat.com>
3109
3110 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
3111 until dwarf2_finish; use relaxation to get cross-fragment offsets;
3112 thread multiple subsegments properly; handle multiple code
3113 sections properly; emit proper compilation unit info for assembler
3114 generated debugging.
3115
3116 * as.h (enum _relax_state): Add rs_dwarf2dbg.
3117 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
3118 (dwarf2dbg_estimate_size_before_relax): Declare.
3119 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
3120 * write.c: Include dwarf2dbg.h.
3121 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
3122 (relax_segment): Likewise.
3123
99b222b4
HPN
31242000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
3125
3126 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
3127 jump>: Use as_bad_where instead of as_bad. Tweak error message
3128 accordingly. Stabilize frag by updating fix part and resetting
3129 variant part.
3130 <undefined symbol, unconditional jump>: Ditto.
dda5ecfc
HPN
3131 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
3132 indexing is_end_of_line[].
3133 (md_assemble): Initialize size to 0.
3134 (md_section_align): Mark parameter seg as unused.
e46fee70 3135 (parse_reg): Parse names case-insensitively.
99b222b4 3136
814f6641
KH
31372000-11-28 Kazu Hirata <kazu@hxi.com>
3138
3139 * config/obj-aout.h: Fix formatting.
3140 * config/obj-bout.h: Likewise.
3141 * config/obj-coff.c: Likewise.
3142 * config/obj-coff.h: Likewise.
3143 * config/obj-elf.h: Likewise.
3144 * config/obj-som.h: Likewise.
3145 * config/obj-vms.c: Likewise.
3146 * config/obj-vms.h: Likewise.
3147 * config/tc-h8300.h: Likewise.
3148 * config/tc-ns32k.h: Likewise.
3149 * config/tc-sparc.h: Likewise.
3150 * config/tc-tic54x.h: Likewise.
3151 * config/tc-z8k.h: Likewise.
3152
e47b9e39
NC
31532000-11-28 Nick Clifton <nickc@redhat.com>
3154
3155 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
3156 License is present in the sources, but not the output, and
3157 also available from the GNU website.
3158 (GNU Free Documentation License): Comment out this section.
3159
fcdc20a4
HPN
31602000-11-28 Hans-Peter Nilsson <hp@axis.com>
3161
43c34dee
HPN
3162 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
3163 targets. Remove i860 from valid a.out targets.
3164 * Makefile.in: Regenerate.
3165
fcdc20a4 3166 * config/tc-cris.c: Include dwarf2dbg.h.
50705ef4 3167 (md_pseudo_table): Add .file and .loc.
fcdc20a4
HPN
3168 (md_assemble): Call dwarf2_emit_insn if generating ELF.
3169 (s_cris_file, s_cris_loc): New.
3170 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3171 * Makefile.am: Regenerate dependencies.
3172 * Makefile.in: Regenerate.
3173
16887944
AM
31742000-11-28 Alan Modra <alan@linuxcare.com.au>
3175
3176 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
3177 (MRI_MUL_PRECEDENCE): Likewise.
3178 (op_rank): Fix a comment typo.
3179
ae3e85dd
SC
31802000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3181
3182 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
3183 the error message.
3184 (get_operand): Fix analysis for movw/movb instructions.
3185
077b8428
NC
31862000-11-24 Nick Clifton <nickc@redhat.com>
3187
3188 * configure.in (xscale-elf): Add target.
3189 (xscale-coff): Add target.
3190 * configure: Regenerate.
3191
3192 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
3193 extenstion.
3194 (ARM_EXT_XSCALE): New ARM architecture extension.
3195 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
3196 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
3197 (ARM_THUMB): Rename to ARM_EXT_THUMB.
3198 (ARM_ARCH_V4): Remove processor from architecture.
3199 (ARM_ARCH_3M): New architecutre definition.
3200 (ARM_ARCH_V5TE): New architecutre definition.
3201 (ARM_ARCH_XSCALE): New architecutre definition.
3202 (CPU_DEFAULT): Allow to be defaulted to XScale.
3203 (atpcs): New boolean variable.
3204 (ldr_flags): Support 'd' flag for double word loads.
3205 (str_flags): Support 'd' flag for double word stored.
3206 (do_mia): New function.
3207 (do_mar): New function.
3208 (do_mra): New function.
3209 (do_pld): New function.
3210 (do_ldrd): New function.
3211 (do_blx): New function.
3212 (do_bkpt): New function.
3213 (do_clz): New function.
3214 (do_lstc2): New function.
3215 (do_cdp2): New function.
3216 (do_t_blx): New function.
3217 (do_t_bkpt): New function.
3218 (do_smla): New function.
3219 (do_smlal): New function.
3220 (do_smul): New function.
3221 (do_qadd): New function.
3222 (do_co_reg2c): New function.
3223 (LONGEST_INSN): Redefine to 7.
3224
3225 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
3226 command line switches.
3227
2434f565
JW
32282000-11-22 Jim Wilson <wilson@redhat.com>
3229
3230 * config/tc-ia64.c (pseudo_func): Add missing initializers.
3231 (struct rsrc): Make line unsigned.
3232 (gr_values): Add missing initializer.
3233 (SLOT_NUM_NOT_SET): Add unsigned cast.
3234 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
3235 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
3236 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
3237 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
3238 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
3239 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
3240 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
3241 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
3242 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
3243 Add ATTRIBUTE_UNUSED to unused parameters.
3244 (convert_expr_to_ab_reg): Add parens.
3245 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
3246 (dot_prologue): Initialize grsave when declared.
3247 (md_pseudo_table): Add missing initializers.
3248 (operand_match): Add casts to bfd_vma.
3249 (emit_one_bundle): Delete unused local prev. Make required_template
3250 unsigned.
3251 (specify_resource): Cast i to unsigned.
3252 (note_register_values): Use fprintf_vma.
3253 (print_dependency): Likewise.
3254
5a080f89
JW
32552000-11-21 Jim Wilson <wilson@redhat.com>
3256
5e7474a7
JW
3257 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
3258 for unwind info section.
3259 (dot_endp): Likewise for unwind section.
3260
5a080f89
JW
3261 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
3262 fix_new_exp.
3263
732d96b6
JJ
32642000-11-21 Jakub Jelinek <jakub@redhat.com>
3265
3266 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
3267 (output_insn): Call dwarf2_emit_insn.
b8e904dc 3268 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
732d96b6 3269
6d2cf69f
RH
32702000-11-17 Richard Henderson <rth@redhat.com>
3271
3272 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
3273 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
3274 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
3275
8179bd9b
NC
32762000-11-17 Nick Clifton <nickc@redhat.com>
3277
3278 * config/tc-arm.c (md_pseudo_table): Add support for .line and
3279 .file pseudo ops.
3280
316e2c05
RH
32812000-11-17 Richard Henderson <rth@redhat.com>
3282
3283 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
3284
a8316fe2
RH
32852000-11-17 Richard Henderson <rth@redhat.com>
3286
3287 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
50705ef4 3288 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
a8316fe2
RH
3289 tri-state definition of alpha_flag_mdebug.
3290 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
3291 (s_alpha_file): Store first .file directive.
3292 (s_alpha_stab): New.
3293 (md_pseudo_table): Add stabs and stabn.
3294
e346e481
RH
32952000-11-17 Richard Henderson <rth@redhat.com>
3296
3297 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
3298
4dc7ead9
RH
32992000-11-17 Richard Henderson <rth@redhat.com>
3300
3301 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
39bb5fe6 3302 (main): Call dwarf2_finish.
4dc7ead9
RH
3303 * as.h (debug_type): Clarify documentation of the meaning
3304 of this variable.
3305 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
3306 (print_stats): Fix parenthesis problem.
3307 (now_subseg_size): New.
3308 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
3309 (dwarf2_directive_file): Don't set debug_type.
3310 (dwarf2_where): Honor DEBUG_DWARF2 first.
3311 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
3312 do nothing if not emitting dwarf2 debug info, or no work.
3313 * dwarf2dbg.h (dwarf2_emit_insn): Update.
3314 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
3315 (ecoff_new_file): Likewise.
3316 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
3317 commentary wrt dwarf2.
3318
3319 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
3320 ATTRIBUTE_UNUSED as needed.
3321 (emit_insn): Call dwarf2_emit_insn.
3322 (s_alpha_file): New.
3323 (s_alpha_loc): New.
3324 (s_alpha_coff_wrapper): Don't handle them.
3325 (md_pseudo_table): Update for .file and .loc.
3326 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3327
3328 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
3329 don't protect with debug_type.
3330 * config/tc-hppa.c (md_assemble): Likewise.
3331 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
3332 * config/tc-mn10300.c (md_assemble): Likewise.
3333 * config/tc-sh.c (md_assemble): Likewise.
3334 * config/tc-v850.c (md_assemble): Likewise.
3335
3336 * config/tc-arm.c (arm_end_of_source): Remove.
3337 * config/tc-hppa.c (pa_end_of_source): Remove.
3338 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
3339 * config/tc-mn10300.c (mn10300_finalize): Remove.
3340 * config/tc-sh.c (sh_finalize): Remove.
3341 * config/tc-v850.c (sh_finalize): Remove.
3342
3343 * config/tc-arm.h (md_end): Remove.
3344 * config/tc-hppa.h (md_end): Remove.
3345 (DWARF2_LINE_MIN_INSN_LENGTH): New.
3346 * config/tc-m68hc11.h (md_end): Remove.
3347 * config/tc-mn10300.h (md_end): Remove.
3348 * config/tc-sh.h (md_end): Remove.
3349 * config/tc-v850.h (md_end): Remove.
3350
3351 * config/tc-ia64.c (emit_one_bundle): Don't protect
3352 dwarf2 bits with debug_type.
3353 (md_assemble): Likewise.
3354 (ia64_end_of_source): Don't call dwarf2_finish.
3355
ca683b78
JW
33562000-11-16 Jim Wilson <wilson@redhat.com>
3357
3358 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
3359 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
3360 > 16.
3361
6f620856
L
33622000-11-16 H.J. Lu <hjl@gnu.org>
3363
3364 * config/obj-elf.c (obj_elf_symver): Don't check the missing
3365 version name.
3366
19d63e5d
KH
33672000-11-15 Kazu Hirata <kazu@hxi.com>
3368
3369 * config/tc-tic30.c: Fix formatting.
3370 * config/tc-tic80.c: Likewise.
3371 * config/tc-v850.c: Likewise.
3372 * config/tc-vax.c: Likewise.
3373 * config/tc-w65.c: Likewise.
3374 * config/tc-z8k.c: Likewise.
3375
a8761a19
DD
33762000-11-14 DJ Delorie <dj@redhat.com>
3377
3378 * config/tc-v850.c: Support dwarf2.
3379 * config/tc-v850.h: Ditto.
3380
3381 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
3382 parse_cons_expression_v850 to initialize hold_cons_reloc.
50705ef4 3383
88be23ec
BS
33842000-11-15 Bernd Schmidt <bernds@redhat.com>
3385
29184774 3386 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
88be23ec
BS
3387 (errata_nops_necessary_p): New function.
3388 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
3389 md.
3390
72a76794
JW
33912000-11-14 Jim Wilson <wilson@redhat.com>
3392
3393 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
3394 return little endian bfd formats.
3395
4a1805b1
KH
33962000-11-14 Kazu Hirata <kazu@hxi.com>
3397
3398 * config/aout_gnu.h: Fix formatting.
3399 * config/atof-vax.c: Likewise.
3400 * config/m68k-parse.h: Likewise.
3401 * config/m88k-opcode.h: Likewise.
3402 * config/obj-elf.c: Likewise.
3403 * config/tc-arm.c: Likewise.
3404 * config/tc-cris.c: Likewise.
3405 * config/tc-i386.c: Likewise.
3406 * config/tc-ia64.c: Likewise.
3407 * config/tc-mn10300.c: Likewise.
3408 * config/te-386bsd.h: Likewise.
3409 * config/te-hppa.h: Likewise.
3410 * config/te-nbsd.h: Likewise.
3411 * config/te-ppcnw.h: Likewise.
3412 * config/te-sparcaout.h: Likewise.
3413 * config/te-tmips.h: Likewise.
3414 * config/vax-inst.h: Likewise.
3415 * config/vms-conf.h: Likewise.
3416
c810873d
JJ
34172000-11-14 Jakub Jelinek <jakub@redhat.com>
3418
3419 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
3420
79082ff0
L
34212000-11-13 H.J. Lu <hjl@gnu.org>
3422
3423 * config/obj-elf.c (elf_frob_symbol): Support
3424 ".symver name,name2@@@nodename".
3425 (elf_frob_file_before_adjust): Likewise.
3426
3427 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
3428 and ".symver name,name2@@@nodename".
3429 Fix a typo.
3430
1da00eb4
L
34312000-11-12 H.J. Lu (hjl@gnu.org)
3432
3433 * config/obj-elf.c (obj_elf_symver): Check missing version
3434 name.
3435
f585997b
L
34362000-11-12 H.J. Lu (hjl@gnu.org)
3437
3438 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
3439 instead of bfd_vma for non-bfd assemblers.
3440
ef5c4bfc
KH
34412000-11-09 Kazu Hirata <kazu@hxi.com>
3442
3443 * itbl-ops.c: Fix comment typos.
3444
f5a30c2e
JW
34452000-11-08 Jim Wilson <wilson@redhat.com>
3446
3447 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
3448 (struct unwind): Add next_slot_frag field.
3449 (slot_index): New parameters slot_frag and first_frag. Add code
3450 to add in frag sizes when different. Add comments.
3451 (fixup_unw_records): New locals first_frag and last_frag. Pass new
3452 arguments to slot_index.
3453 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
3454 loop end. Set next_slot_frag field.
3455
339681c0
L
34562000-11-07 H.J. Lu <hjl@gnu.org>
3457
3458 * doc/as.texinfo (.symver): Updated for versioned symbol
3459 reference.
3460
3461 * obj.h (format_ops): Add the frob_file_before_adjust field.
3462
3463 * config/obj-aout.c (aout_format_ops): Set the
3464 frob_file_before_adjust field to 0.
3465 * config/obj-coff.c (coff_format_ops): Likewise.
3466 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
3467
3468 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
3469 name.
3470 (elf_frob_file_before_adjust): New function to remove unneeded
3471 versioned symbols from the symbol table.
3472 (elf_format_ops): Set the frob_file_before_adjust field to
3473 elf_frob_file_before_adjust.
3474
3475 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
3476 not defined.
3477
3478 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
3479
4a314ec8
NC
34802000-11-07 Peter Targett <peter.targett@arccores.com>
3481
8a543126 3482 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4a314ec8 3483 BIG_ENDIAN macros.
8a543126 3484 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4a314ec8 3485 Fix compile time warning messages.
50705ef4 3486
604d524f
NC
34872000-11-07 Nick Clifton <nickc@redhat.com>
3488
3489 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
3490 buffer in order to avoid buffer overflows.
3491
44f5c83a
JW
34922000-11-06 Steve Ellcey <sje@cup.hp.com>
3493
3494 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
3495 Change M to m for -milp32 or -mlp64 to match gcc.
3496 (dot_endp): Use bytes_per_address instead of 8.
3497 (emit_one_bundle): Use number_to_chars_littleendian instead of
3498 md_number_to_chars.
3499 (fix_insn): Likewise.
3500 (ia64_init): New function.
3501 (ia64_target_format): New function.
3502 (md_begin): Set endianness, arch, and machine as appropriate.
3503 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
3504 Make these macros depend on TE_HPUX macro.
3505 (TARGET_FORMAT): Define.
3506 (HOST_SPECIAL_INIT): Define.
3507 * config/te-hpux.h: New file.
3508 * configure.in: Add "ia64-*-hpux*" target to configure.
3509 * configure: Regenerate.
50705ef4 3510
7152f1dc
KH
35112000-11-06 Kazu Hirata <kazu@hxi.com>
3512
ef99799a
KH
3513 * as.c: Fix formatting.
3514 * dwarf2dbg.c: Likewise.
3515 * input-file.c: Likewise.
7152f1dc
KH
3516 * input-file.h: Likewise.
3517 * input-scrub.c: Likewise.
ef99799a
KH
3518 * itbl-ops.c: Likewise.
3519 * listing.c: Likewise.
3520 * macro.h: Likewise.
3521 * messages.c: Likewise.
3522 * read.c: Likewise.
3523 * subsegs.c: Likewise.
3524 * subsegs.h: Likewise.
3525 * write.c: Likewise.
7152f1dc 3526
cf055d54
NC
35272000-11-06 Nick Clifton <nickc@redhat.com>
3528
3529 * doc/as.texinfo: Add GNU Free Documentation License.
3530 * doc/gasp.texi: Add GNU Free Documentation License.
3531 * doc/as.1: Add GNU Free Documentation License.
3532
8d6b5c8e
NC
35332000-11-05 Nick Clifton <nickc@redhat.com>
3534
3535 * config/tc-arm.c: Add include of "dwarf2dbg.h"
3536
59ff2774
NC
35372000-11-02 Per Lundberg <plundis@chaosdev.org>
3538
3539 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
3540 * configure: Regenerate.
3541
37d8bb27
NC
35422000-11-01 Nick Clifton <nickc@redhat.com>
3543
3544 * read.c (original_case_string): New global variable.
3545 (read_a_source_file): Copy opcode string into
3546 original_case_string if clobbering the case of the opcode.
3547 * read.h: Export the definition of original_case_string.
3548 * config/tc-arm.c (md_assembler): When parsing a .req
3549 directive use the original opcode string, not the case
3550 clobbered version.
3551
d75bb8cf
NC
35522000-11-02 Nick Clifton <nickc@redhat.com>
3553
3554 * config/tc-mn10300.c (debug_line): Remove this static
37d8bb27 3555 variable.
d75bb8cf
NC
3556 (md_assemble): Call dwarf2_generate_asm_lineno instead of
3557 dwarf2_where and dwarf2_gen_line_info.
3558
6c17cfe4
PB
35592000-11-02 Theo Honohan <th@futuretv.com>
3560
50705ef4 3561 * config/tc-arm.c (do_msr): Improve error message.
6c17cfe4 3562
c51ce5f0
EC
35632000-10-31 Eric Christopher <echristo@redhat.com>
3564
3565 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
3566 or pc-relative, else use fx_offset.
3567
f1bcba5b
JW
35682000-10-31 Jim Wilson <wilson@redhat.com>
3569
3570 * config/tc-ia64.c (struct md): New field tag_fixups.
3571 (ia64_flush_insns): Handle tag_fixups. Error if dangling
3572 qualifying predicate.
3573 (emit_one_bundle): Delete spurious multiplication by one. Handle
3574 tag_fixups.
3575 (ia64_start_line): Error if dangling qualifying predicate.
3576 (defining_tag): New static variable.
3577 (ia64_unrecognized_line, case '['): Parse tags.
3578 (ia64_frob_label): Create tag_fixups.
3579 (md_assemble): Reset md.qp.X_op after using it.
c51ce5f0 3580
8637c045
AM
35812000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3582
3583 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
3584
ebeeafe6
BS
35852000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
3586
29184774 3587 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
ebeeafe6 3588
b041f888
KH
35892000-10-30 Kazu Hirata <kazu@hxi.com>
3590
3591 * expr.c: Fix formatting.
3592 * flonum-copy.c: Likewise.
3593 * flonum.h: Likewise.
3594 * gasp.c: Likewise.
3595 * hash.c: Likewise.
3596
d8374dcd
HPN
35972000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3598
3599 * as.h (OPTION_MD_BASE): Bump to 190.
3600 * as.c (parse_args) <std_longopts>: Add comment about the need to
3601 check OPTION_MD_BASE in as.h.
3602
1308f14c
HPN
3603 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
3604 for weak symbols.
3605
6f6ef0fa
NC
36062000-10-27 Nick Clifton <nickc@redhat.com>
3607
3608 * configure.in (emulations): Add m68hc12.
3609 * configure: Regenerate.
3610 * po/gas.pot: Regenerate.
c51ce5f0 3611
bf1b5881
AH
36122000-10-27 Aldy Hernandez <aldyh@redhat.com>
3613
50705ef4
AM
3614 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
3615 cpsr*.
3616 (arm_psr_parse): Handle lowercase CPSR and SPSR.
bf1b5881 3617
85a39694
NC
36182000-10-25 Nick Clifton <nickc@redhat.com>
3619
3620 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
3621 a DWARF2 line number information sequence.
3622
3623 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
3624
3625 * read.c (generate_lineno_debug): Update comment describing why
3626 DWARF2 line number debug information is not generated
3627 automatically by this function.
3628
3629 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
3630 not all.
c51ce5f0 3631
85a39694
NC
3632 * config/tc-arm.h (md_end): Define.
3633 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
c51ce5f0 3634
85a39694
NC
3635 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
3636 if generating DWARF2 line numbers.
3637 (arm_end_of_source): New function. Call dwarf2_finish if
3638 necessary.
3639
3640 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
3641 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
3642 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
c51ce5f0 3643
cce0cbdc
DN
36442000-10-25 Diego Novillo <dnovillo@cygnus.com>
3645
29184774 3646 * config/tc-i386.c: Fix prototype declarations for functions taking no
cce0cbdc
DN
3647 arguments.
3648
64a0c779
DN
36492000-10-24 Diego Novillo <dnovillo@cygnus.com>
3650
29184774 3651 * config/tc-i386.c (i386_operand_modifier): Remove.
64a0c779
DN
3652 (build_displacement_string): Remove.
3653 (i386_parse_seg): Remove.
3654 (i386_intel_memory_operand): Remove.
3655 (i386_intel_operand): Re-write using recursive descent parser based
3656 on MASM documentation.
3657 (struct intel_parser_s): New structure.
3658 (intel_parser): New static variable.
3659 (struct intel_token): New structure.
3660 (cur_token, prev_token): New static variables.
3661 (T_NIL): Define.
3662 (T_CONST): Define.
3663 (T_REG): Define.
3664 (T_BYTE): Define.
3665 (T_WORD): Define.
3666 (T_DWORD): Define.
3667 (T_QWORD): Define.
3668 (T_XWORD): Define.
3669 (T_SHORT): Define.
3670 (T_OFFSET): Define.
3671 (T_PTR): Define.
3672 (T_ID): Define.
3673 (intel_match_token): New function.
3674 (intel_get_token): New function.
3675 (intel_putback_token): New function.
3676 (intel_expr): New function.
3677 (intel_e05): New function.
3678 (intel_e05_1): New function.
3679 (intel_e06): New function.
3680 (intel_e06_1): New function.
3681 (intel_e09): New function.
3682 (intel_e09_1): New function.
3683 (intel_e10): New function.
3684 (intel_e10_1): New function.
3685 (intel_e11): New function.
3686
19f7b010
JJ
36872000-10-20 Jakub Jelinek <jakub@redhat.com>
3688
3689 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
3690 instructions to loose any special insn->architecture mask.
3691
3692 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
3693 (sparc_md_end, sparc_arch_types, sparc_arch,
3694 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
3695 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
3696 request v9b architecture if they are used).
3697
3ae647a0
NC
36982000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3699
3700 * config/tc-m68k.c: Fix the previous misapplied patch.
3701
5cbdaa77
NC
37022000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3703
50705ef4
AM
3704 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
3705 BFD_ASSEMBLER and !BFD_ASSEMBLER.
3706 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
3707 BFD_RELOC_*.
5cbdaa77 3708
e6c774b4
KH
37092000-10-17 Kazu Hirata <kazu@hxi.com>
3710
3711 * debug.c: Fix formatting.
3712 * depend.c: Likewise.
3713 * dwarf2dbg.c: Likewise.
3714 * dwarf2dbg.h: Likewise.
3715 * ecoff.c: Likewise.
3716 * expr.c: Likewise.
3717 * expr.h: Likewise.
3718 * flonum-konst.c: Likewise.
3719 * frags.h: Likewise.
3720
ea20a7da
CC
37212000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3722
3723 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
3724 options.
3725 * doc/as.texinfo: Added notes about this new option.
3726
266cb5f1
HPN
37272000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
3728
3729 * config/tc-sh.c (JREG): Remove.
3730 (md_convert_frag): Remove #if 0:d code using JREG.
3731
6588847e
DN
37322000-10-15 Diego Novillo <dnovillo@cygnus.com>
3733
3734 * config/tc-i386.c (i386_operand_modifier): Only match
3735 modifiers SHORT and FLAT if they are followed by a space.
3736 (parse_register): When `allow_naked_reg' is set, do not confuse
3737 identifiers that start with a register name with a register.
3738
30a2b4ef
KH
37392000-10-12 Kazu Hirata <kazu@hxi.com>
3740
3741 * app.c: Fix formatting.
3742 * as.c: Likewise.
3743 * as.h: Likewise.
3744 * bit_fix.h: Likewise.
3745 * cgen.c: Likewise.
3746 * cgen.h: Likewise.
3747 * cond.c: Likewise.
3748
d01e2a23
AM
37492000-10-11 Alan Modra <alan@linuxcare.com.au>
3750
3751 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
3752
44852b19
AM
37532000-10-07 Alan Modra <alan@linuxcare.com.au>
3754
dc1fc56b
AM
3755 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
3756 Re-arrange function a little and improve error message.
3757
44852b19
AM
3758 * write.c (write_relocs): Fix a comment.
3759
3760 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
3761 link-once sections.
3762
afa680f8
JW
37632000-10-05 Jim Wilson <wilson@cygnus.com>
3764
3765 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
3766
ce8a8b2f
AM
37672000-10-05 Alan Modra <alan@linuxcare.com.au>
3768
3769 * config/tc-i386.c: Delete some useless comments, reformat others.
3770
3771 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
3772 non-global syms in linkonce sections.
3773
56d27c17
AM
37742000-10-04 Ralf Baechle <ralf@gnu.org>
3775
3776 * config/tc-ia64.c (operand_match): Don't use // style comments.
3777 * config/tc-i370.c: Likewise.
3778
7b15d668
HPN
37792000-09-29 Hans-Peter Nilsson <hp@axis.com>
3780
3781 Changes to handle varying register prefix and user symbol prefix.
3782 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
3783 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
3784 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
3785 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
3786 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
3787 (demand_register_prefix): New variable.
3788 (md_pseudo_table): New pseudo ".syntax".
3789 (md_longopts): New options --no-underscore and --underscore.
3790 (cris_target_format): Return elf32-us-cris or elf32-cris depending
3791 on symbols_have_leading_underscore.
3792 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
3793 (get_spec_reg): Ditto.
3794 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
3795 Fix formatting.
3796 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
3797 --help.
3798 <case OPTION_NO_US, case OPTION_US>: New.
3799 (md_show_usage): Be brief and reformat to match continuation of
3800 --help.
3801 * po/gas.pot: Regenerate.
3802
27df9f40
AM
38032000-09-28 Alan Modra <alan@linuxcare.com.au>
3804
3805 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
3806 force relocs for 12 bit branches.
3807 (md_apply_fix): Similarly, adjust logic here.
3808
5506e1a5
AM
38092000-09-28 Alan Modra <alan@linuxcare.com.au>
3810
3811 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
3812 adjust for external and weak syms as we will use a reloc. Allow
3813 for +8 offset when calculating limits of branches.
3814 (hppa_fix_adjustable): Undo 2000-09-23 change.
3815 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
3816 Correct distance calculation.
47d89dba
AM
3817 (tc_gen_reloc): Print the file name and line number if we can't
3818 handle a fixup.
5506e1a5
AM
3819
3820 From John David Anglin <dave@hiauly1.hia.nrc.ca>
3821 * config/tc-hppa.c (nonzero_dibits): Define.
3822 (arg_reloc_stub_needed): Check each arg and return value
3823 separately for zero case.
3824 (pa_align): Declare argument `bytes'.
3825
81d4177b
KH
38262000-09-25 Kazu Hirata <kazu@hxi.com>
3827
3828 * config/tc-cris.c: Fix formatting.
3829 * config/tc-d10v.h: Likewise.
3830 * config/tc-d30v.c: Likewise.
3831 * config/tc-d30v.h: Likewise.
3832 * config/tc-fr30.c: Likewise.
3833 * config/tc-fr30.h: Likewise.
3834 * config/tc-m68k.c: Likewise.
3835 * config/tc-m68k.h: Likewise.
3836 * config/tc-pj.h: Likewise.
3837 * config/tc-ppc.c: Likewise.
3838 * config/tc-ppc.h: Likewise.
3839 * config/tc-sh.c: Likewise.
3840 * config/tc-sh.h: Likewise.
3841 * config/tc-sparc.c: Likewise.
3842 * config/tc-v850.h: Likewise.
3843 * config/tc-vax.h: Likewise.
3844 * config/tc-w65.h: Likewise.
3845 * config/tc-z8k.h: Likewise.
3846
959ee541
AM
38472000-09-23 Alan Modra <alan@linuxcare.com.au>
3848
3849 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
3850 checks only for ELF.
3851 (hppa_force_relocation): Likewise.
3852
139368c9
JW
38532000-09-22 Jim Wilson <wilson@cygnus.com>
3854
3855 * config/tc-ia64.c (dv_sem): Add "stop".
3856 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
3857 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
3858 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
3859 match above.
3860 (mark_resources): Check IA64_RS_PRr.
3861
151337e8
NC
38622000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3863
56d27c17 3864 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
151337e8
NC
3865 md_estimate_size_before_relax): Redesign and clean up the
3866 relaxation mechanism.
3867
0b7410c4
KH
38682000-09-21 Kazu Hirata <kazu@hxi.com>
3869
3870 * config/tc-ns32k.c: Fix formatting.
3871 * config/tc-ns32k.h: Likewise.
3872
a4d24084
KH
38732000-09-20 Kazu Hirata <kazu@hxi.com>
3874
82efde3a
KH
3875 * config/tc-m32r.c: Fix formatting.
3876 * config/tc-m32r.h: Likewise.
3877 * config/tc-m68851.h: Likewise.
3878 * config/tc-m68hc11.c: Likewise.
3879 * config/tc-m68hc11.h: Likewise.
3880 * config/tc-m88k.c: Likewise.
3881 * config/tc-mcore.c: Likewise.
a75214e5 3882 * config/tc-mcore.h: Likewise.
82efde3a
KH
3883 * config/tc-mips.c: Likewise.
3884 * config/tc-mips.h: Likewise.
3885 * config/tc-mn10200.h: Likewise.
3886 * config/tc-mn10300.h: Likewise.
a75214e5 3887 * config/tc-tahoe.c: Likewise.
a4d24084
KH
3888 * config/tc-tahoe.h: Likewise.
3889
4844386e 38902000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a05388f4
NC
3891
3892 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
3893 Likewise in relaxation description comments.
3894
9e754211
AM
38952000-09-18 Alan Modra <alan@linuxcare.com.au>
3896
3897 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
3898 subtraction of two syms without emitting a relocation.
3899
3900 From David Huggins-Daines <dhd@linuxcare.com>
3901 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
3902 global or weak symbols.
3903
4a4f25cf
KH
39042000-09-15 Kazu Hirata <kazu@hxi.com>
3905
3906 * config/tc-h8300.h: Fix formatting.
3907 * config/tc-h8500.c: Likewise.
3908 * config/tc-h8500.h: Likewise.
3909 * config/tc-hppa.h: Likewise.
3910 * config/tc-i370.h: Likewise.
3911 * config/tc-i386.h: Likewise.
3912 * config/tc-i860.c: Likewise.
3913 * config/tc-i860.h: Likewise.
3914 * config/tc-i960.h: Likewise.
3915 * config/tc-ia64.c: Likewise.
3916 * config/tc-ia64.h: Likewise.
3917
1dab94dd
KH
39182000-09-14 Kazu Hirata <kazu@hxi.com>
3919
3920 * config/tc-a29k.c: Fix formatting.
3921 * config/tc-alpha.c: Likewise.
3922 * config/tc-arc.c: Likewise.
3923 * config/tc-arc.h: Likewise.
3924 * config/tc-arm.c: Likewise.
3925 * config/tc-arm.h: Likewise.
3926 * config/tc-avr.c: Likewise.
3927 * config/tc-avr.h: Likewise.
3928 * config/tc-tic30.c: Likewise.
3929 * config/tc-tic30.h: Likewise.
3930 * config/tc-tic54x.c: Likewise.
3931 * config/tc-tic54x.h: Likewise.
3932 * config/tc-tic80.c: Likewise.
3933 * config/tc-tic80.h: Likewise.
3934
7484b8e6
TW
39352000-09-14 Timothy Wall <twall@cygnus.com>
3936
3937 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
3938 parallel comparisons for later use.
3939 (struct rsrc): Add parallel comparison type.
3940 (resources_match): Skip special cases of PR usage (non-conflicting
3941 parallel compares).
56d27c17 3942
bf514e21
KH
39432000-09-13 Kazu Hirata <kazu@hxi.com>
3944
3945 * config/obj-ecoff.c: Fix formatting.
3946 * config/obj-elf.c: Likewise.
3947 * config/obj-elf.h: Likewise.
3948 * config/obj-evax.h: Likewise.
3949 * config/obj-generic.h: Likewise.
3950 * config/obj-hp300.c: Likewise.
3951 * config/obj-hp300.h: Likewise.
3952 * config/obj-ieee.h: Likewise.
3953 * config/obj-vms.c: Likewise.
3954 * config/obj-vms.h: Likewise.
3955
156c2f8b 39562000-09-13 Anders Norlander <anorland@acc.umu.se>
56d27c17 3957
50705ef4
AM
3958 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
3959 (md_parse_option): Ditto.
3960 (md_longopts): Add -mips32 option.
3961 (md_show_usage): Document new options.
3962 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
3963 (mips_ip): Assemble mfc0 with a sub-selection code.
3964 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
156c2f8b
NC
3965 (mips_cpu_to_str): New function.
3966 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
3967 Use CPU_* defines instead of hardcoded numbers.
3968
50705ef4
AM
3969 * doc/as.texinfo: Document new options.
3970 * doc/c-mips.texi: Ditto.
156c2f8b 3971
a01b9fa4
KH
39722000-09-12 Kazu Hirata <kazu@hxi.com>
3973
3974 * as.h: Fix formatting.
3975 * asintl.h: Likewise.
3976 * bit_fix.h: Likewise.
dcd619be
KH
3977 * config/obj-aout.c: Likewise.
3978 * config/obj-aout.h: Likewise.
3979 * config/obj-bout.c: Likewise.
3980 * config/obj-bout.h: Likewise.
3981 * config/obj-coff.c: Likewise.
3982 * config/obj-coff.h: Likewise.
a01b9fa4
KH
3983 * dwarf2dbg.h: Likewise.
3984 * expr.h: Likewise.
3985 * flonum.h: Likewise.
3986 * frags.h: Likewise.
3987 * itbl-ops.h: Likewise.
3988 * macro.h: Likewise.
3989 * read.h: Likewise.
3990 * sb.h: Likewise.
3991 * struc-symbol.h: Likewise.
3992 * subsegs.h: Likewise.
3993 * symbols.h: Likewise.
3994 * tc.h: Likewise.
3995 * write.h: Likewise.
3996
92774660
KH
39972000-09-11 Kazu Hirata <kazu@hxi.com>
3998
f0e652b4
KH
3999 * bignum-copy.c: Fix formatting.
4000 * config/tc-i370.c: Likewise.
92774660
KH
4001 * config/tc-i960.c: Likewise.
4002 * config/tc-m68k.c: Likewise.
f0e652b4
KH
4003 * ehopt.c: Likewise.
4004 * flonum-copy.c: Likewise.
4005 * flonum-konst.c: Likewise.
4006 * flonum-mult.c: Likewise.
4007 * literal.c: Likewise.
4008 * read.c: Likewise.
4009 * sb.c: Likewise.
4010 * stabs.c: Likewise.
4011 * subsegs.c: Likewise.
92774660 4012
222f8079
PB
40132000-09-09 Philip Blundell <philb@gnu.org>
4014
4015 * configure.in (arm*-*-uclinux*): New target.
4016 * configure: Regenerate.
4017
c488923f
KH
40182000-09-09 Kazu Hirata <kazu@hxi.com>
4019
4020 * input-file.c: Fix formatting.
4021 * itbl-ops.c: Likewise.
4022 * messages.c: Likewise.
4023
e0e3ecca
PB
40242000-09-08 Philip Blundell <philb@gnu.org>
4025
4026 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4027 offset is negative.
4028
5d64ca4e
L
40292000-09-07 H.J. Lu <hjl@gnu.org>
4030
4031 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4032 * configure: Rebuild.
4033
bdaaa2e1
KH
40342000-09-07 Kazu Hirata <kazu@hxi.com>
4035
e49bc11e
KH
4036 * atof-generic.c: Fix formatting.
4037 * config/tc-mips.c: Likewise.
e13b337a
KH
4038 * config/tc-vax.c: Likewise.
4039 * input-scrub.c: Likewise.
bdaaa2e1 4040
d07ed2cd
AO
40412000-09-07 Alexandre Oliva <aoliva@redhat.com>
4042
4043 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4044 * configure.in (sh-*-linux*): Added.
4045 * configure: Rebuilt.
4046
86905619
KH
40472000-09-06 Kazu Hirata <kazu@hxi.com>
4048
a28a3ccf
JL
4049 * config/tc-hppa.c: Fix formatting.
4050
86905619
KH
4051 * ecoff.c: Fix formatting.
4052
58cccadb
AO
40532000-09-06 Alexandre Oliva <aoliva@redhat.com>
4054
4055 * configure: Rebuilt with new libtool.m4.
4056
542d6675
KH
40572000-09-05 Kazu Hirata <kazu@hxi.com>
4058
4059 * cgen.c: Fix formatting.
4060 * config/tc-ia64.c: Likewise.
4061
5b343f5a
NC
40622000-09-05 Nick Clifton <nickc@redhat.com>
4063
4064 * aclocal.m4: Regenerate.
4065 * config.in: Regenerate.
4066 * configure: Regenerate.
4067 * po/gas.pot: Regenerate.
50bbae35 4068
07e90ad5
HPN
40692000-09-05 Hans-Peter Nilsson <hp@axis.com>
4070
4071 * config/tc-cris.c: Correct comment typos.
4072
1485d400
EC
40732000-09-05 Eric Christopher <echristo@cygnus.com>
4074
4075 * config/tc-mn10300.c: Cleanup.
4076 (md_pcrel_from): Enable.
4077
904a31bf
AM
40782000-09-05 Alan Modra <alan@linuxcare.com.au>
4079
927781e2
AM
4080 * expr.c (operand): Fix a comment typo.
4081 * write.c (write_relocs): Fix a signed/unsigned warning.
4082
ecacdc7a
AM
4083 * config/tc-hppa.c (fudge_reg_expressions): New
4084 (hppa_force_reg_syms_absolute): New.
4085 (pa_equ): Allow reg_section expressions.
4086 * config/tc-hppa.c (md_optimize_expr): Define.
4087 (hppa_force_reg_syms_absolute): Prototype.
4088
4089 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
4090 (pa_parse_number): Pass in arg to select fp reg parsing.
4091 Return 1 to indicate format checks pass. If strict, then only
4092 accept a register or register symbol. Return value in...
4093 (pa_number): New static for pa_parse_number.
4094 (FP_REG_BASE): Define.
4095 (FP_REG_RSEL): Define.
4096 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
4097 appropriate. White space changes.
4098 (need_pa11_opcode): Don't bother passing any params, get them from
4099 globals instead.
4100 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
4101 Remove extraneous check in case 'Q'.
4102 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
4103 reg, set section of resulting symbol to reg_section.
4104 (pa_parse_space_stmt): Modify call to pa_parse_number.
4105 (pa_space): Likewise.
4106
904a31bf
AM
4107 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
4108 (hppa_force_relocation): Handle vtable relocs.
4109 (pa_vtable_entry): New.
4110 (pa_vtable_inherit): New.
4111 (md_pseudo_table): Add entries for vtable pseudos.
4112 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
4113 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
4114 against weak syms.
4115 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
4116 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
4117 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
4118 millicode import.
4119 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
4120 specify a symbol type.
4121
4122 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
4123 dependent things together.
4124 (md_elf_symbol_type): Define.
4125
4126 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
4127 symbol.
4128 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
4129
4130 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
4131 (obj_elf_vtable_entry): Declare.
4132
4133 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
4134 and export function.
4135 (obj_elf_vtable_entry): Similarly.
4136 (elf_pseudo_table): Fix the damage with a cast.
4137
a47cf567 41382000-09-03 Richard Henderson <rth@cygnus.com>
032efc85
RH
4139
4140 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
4141 for template selection when a label is needed.
4142
197865e8
KH
41432000-09-02 Kazu Hirata <kazu@hxi.com>
4144
4145 * config/tc-ia64.c: Fix formatting.
4146
18e03609
NC
41472000-09-02 Nick Clifton <nickc@redhat.com>
4148
4149 * configure.in: Increase version number to 2.10.91.
4150 * configure: Regenerate.
4151 * aclocal.m4: Regenerate.
4152 * config.in: Regenerate.
4153 * po/gas.pot: Regenerate.
4154 * Makefile.in: Regenerate.
1485d400 4155
a1cc9221
AO
41562000-09-01 Alexandre Oliva <aoliva@redhat.com>
4157
4158 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
4159 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
4160 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
4161 similar relocs.
4162 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
4163 branches.
4164
41652000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4166
4167 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
4168 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
4169 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
4170 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
4171 (GOT_symbol): New variable.
4172 (md_undefined_symbol): Set it.
4173
44576e1f
RH
41742000-09-01 Richard Henderson <rth@cygnus.com>
4175
4176 * config/tc-ia64.c (match): Don't inline.
4177 (extra_goodness): New.
4178 (md_begin): Prefer nop.f and nop.b for best_template.
4179
29f8404c
KH
41802000-08-31 Kazu Hirata <kazu@hxi.com>
4181
76b0a8c0
KH
4182 * as.c: Fix formatting.
4183 * cond.c: Likewise.
4184 * frags.c: Likewise.
29f8404c
KH
4185 * macro.c: Likewise.
4186
b4c1ea07
EC
41872000-08-31 Eric Christopher <echristo@cygnus.com>
4188
4189 * config/tc-mn10300.c: Cleanup and fix warnings.
4190 (md_pseudo_table): Add initializers.
4191 (md_show_usage): Cleanup.
4192 (md_parse_option): Fix warnings.
4193 (md_undefined_symbol): Fix warnings.
4194 (md_conver_frag): Fix warnings.
4195 (tc_gen_reloc): Fix warnings.
4196 (md_apply_fix3): Fix warnings.
4197 (check_operand): Fix warnings.
4198
ac48eca1
AO
41992000-08-31 Alexandre Oliva <aoliva@redhat.com>
4200
4201 * acinclude.m4: Include libtool and gettext macros from the
4202 top level.
4203 * aclocal.m4, configure: Rebuilt.
4204
e0c21649
GK
42052000-08-30 Mark Hatle <mhatle@mvista.com>
4206
4207 * config/tc-ppc.c (md_parse_option): Recognize -m405.
4208
cf39a089
KH
42092000-08-31 Kazu Hirata <kazu@hxi.com>
4210
4211 * listing.c: Fix formatting.
4212
3ee4defc
KH
42132000-08-29 Kazu Hirata <kazu@hxi.com>
4214
4215 * app.c: Fix a comment typo. Fix formatting.
4216
1e8d20f4
NC
42172000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4218
29184774 4219 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
50bbae35
AM
4220 offset of the target destination for jmp instructions.
4221 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
1e8d20f4 4222
5bcac8a4
HPN
42232000-08-24 Hans-Peter Nilsson <hp@axis.com>
4224
4225 * NEWS: Mention support for CRIS.
4226
46547ecc
DC
4227Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
4228
4229 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
4230 Sets `.lcomm' alignment to zero.
4231
4b853faa
AO
42322000-08-23 Alexandre Oliva <aoliva@redhat.com>
4233
29184774
NC
4234 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
4235 TC_FIX_ADJUSTABLE): Define.
4b853faa 4236
efcc5914
JW
42372000-08-23 Jim Wilson <wilson@cygnus.com>
4238
4239 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
4240 unwind.personality_routine is set.
4241
aca719bf
AO
42422000-08-23 H.J. Lu <hjl@gnu.org>
4243
4244 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
4245
a3da4de1
AO
42462000-08-23 Alexandre Oliva <aoliva@redhat.com>
4247
4248 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
4249 environment is pe.
4250
56385375
L
42512000-08-22 H.J. Lu <hjl@gnu.org>
4252
4253 * config.in (STRICTCOFF): New for strict COFF.
4254
4255 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
4256 i386-*-go32* and i386-go32-rtems*.
4257 * configure: Rebuilt.
4258
4259 * config/obj-coff.c (obj_coff_endef): Follow the historical
4260 behavior if STRICTCOFF is not defined.
4261
4262 * doc/internals.texi: Document STRICTCOFF.
4263
8f36cd18
AO
42642000-08-22 Alexandre Oliva <aoliva@redhat.com>
4265
4266 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
4267 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
4268 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
4269 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
4270 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
4271 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
4272 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
4273 Likewise.
4274
58a77e41
EC
42752000-08-22 Eric Christopher <echristo@cygnus.com>
4276
4277 * config/tc-mn10300.c: (md_apply_fix): New function.
4278 (mn10300_force_relocation): New function.
4279 (mn10300_fix_adjustable): New function.
4280
4281 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
4282 (TC_HANDLES_FX_DONE): Define.
4283 (obj_fix_adjustable): Define.
4284 (MD_APPLY_FIX3): Define.
4285 (TC_LINKRELAX_FIXUP): Define.
4286
4287 * write.c: (TC_LINKRELAX_FIXUP): Define if not
4288 previously defined.
4289 (fixup_segment): Use TC_LINKRELAX_FIXUP.
4290
4291 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
4292
ded0649c
JE
42932000-08-21 Jason Eckhardt <jle@cygnus.com>
4294
4295 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
4296 if the fixup resulted in a relocation.
4297
66102fe2
NC
42982000-08-18 Nick Clifton <nickc@redhat.com>
4299
4300 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
4301 Make reference to first element of shift_names explicit.
4302
02198638
AO
43032000-08-18 Alexandre Oliva <aoliva@redhat.com>
4304
4305 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
4306 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
4307 add a symbol's address. Removed all target-specific #ifdefs that
4308 used to accomplished the same.
4309 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4310 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4311 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4312 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4313 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
4314
353e2c69
KH
43152000-08-17 Kazu Hirata <kazu@hxi.com>
4316
4317 * dwarf2dbg.c: Fix formatting.
4318
4fb7971f
NC
43192000-08-17 Nick Clifton <nickc@redhat.com>
4320
4321 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
4322 to be recoded as logical shift lefts by zero.
4323
50b81f19
JW
43242000-08-16 Jim Wilson <wilson@cygnus.com>
4325
4326 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
4327 postincrement modified registers. Handle IA64_OPND_R3_2 addl
4328 source registers.
4329 (note_register_values): Handle IA64_OPND_R3_2 operands.
4330
f869cfc6
JE
43312000-08-16 Jason Eckhardt <jle@cygnus.com>
4332
50bbae35 4333 * config/tc-i860.c (md_operand): Silly typo fixed.
f869cfc6 4334
8cb8bcba
NC
43352000-08-16 Nick Clifton <nickc@redhat.com>
4336
4337 * config/tc-arm.c (struct asm_shift): Delete.
4338 (shift[]): Delete.
4339 (enum asm_shift_index): New.
4340 (struct asm_shift_properties): New.
4341 (struct asm_shift_name): New.
4342 (shift_properties[]); New.
4343 (shift_names[]); New.
4344
4345 (decode_shift): Use new structures.
4346 Issue a warning is "ROR #0" is used.
4347 Issue a warning if "ASR #0" or "LSR #0" is used.
4348
4349 (md_begin): Initialise arm_shift_hsh table from new
4350 asm_shift_name array.
4351
c2158c24
JJ
43522000-08-16 Jakub Jelinek <jakub@redhat.com>
4353
4354 * config/tc-sparc.c: Kill all warnings.
4355 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
4356 in -xarch= as well.
4357 (md_show_usage): Update usage text.
4358
70485b5c
NC
43592000-08-16 Nick Clifton <nickc@redhat.com>
4360
c2158c24 4361 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
70485b5c
NC
4362 useful.
4363
a47cf567 43642000-08-15 Will Cohen <wcohen@redhat.com>
0d10e182
JL
4365
4366 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
4367
4368 * config/tc-sh.c (md_assemble): Changed so debug_type
4369 test performed for ppi_assemble
4370 * config/tc-sh.c: Included dwarf2dbg.h.
4371 (debug_line): Defined.
4372 (md_assemble): Generates dwarf2 line info.
4373 (sh_finalize): New function. Finalize dwarf2 info.
4374 (assemble_ppi): Returns size of code generated.
4375 (build_Mytes): Returns size of code generated.
4376 (md_pseudo_table): Added "file" and "loc" psuedo ops.
4377 * config/tc-sh.h (md_end): Defined.
4378 (sh_finalize): Declared.
4379
1db77c8e
AO
43802000-08-15 Alexandre Oliva <aoliva@redhat.com>
4381
4382 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
4383 md_number_to_chars.
4384
046b3b54
NC
43852000-08-14 Nick Clifton <nickc@redhat.com>
4386
4387 * config/tc-arm.c (do_bx): Allow "bx pc".
4388
c43c2cc5
JW
43892000-08-14 Jim Wilson <wilson@cygnus.com>
4390
4391 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
4392 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
4393 (md_begin): Change assignment to md.flag to OR in the new bit.
4394
d1d8ba22
NC
43952000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
4396
4397 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
50705ef4
AM
4398 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
4399 C_MOU, and C_EOS.
d1d8ba22 4400
22b36938
JE
44012000-08-14 Jason Eckhardt <jle@cygnus.com>
4402
4403 * NEWS: Mention i860 support.
4404
c0bd0db2
JL
4405Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
4406
4407 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4408
0ac658b8
AS
44092000-08-14 Andreas Schwab <schwab@suse.de>
4410
4411 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
4412
9fc2dda2
JE
44132000-08-11 Andreas Schwab <schwab@suse.de>
4414
4415 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
4416 argument.
4417
bc4466dc
KH
44182000-08-11 Kazu Hirata <kazu@hxi.com>
4419
4420 * expr.c: Fix formatting.
351aa9f6 4421 * config/obj-bout.c: Likewise.
bc4466dc 4422
a9c99419
JE
44232000-08-10 Jason Eckhardt <jle@cygnus.com>
4424
4425 * doc/c-i860.texi: Flesh out the i860 section more.
4426
7c743825
KH
44272000-08-10 Kazu Hirata <kazu@hxi.com>
4428
4429 * symbols.c: Fix formatting.
929b12bc 4430 * expr.c: Likewise.
7c743825 4431
fa2255cb
DN
4432Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
4433
29184774
NC
4434 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
4435 modifier has the IgnoreSize bit set.
fa2255cb 4436
fc997f4b
AM
44372000-08-09 Alan Modra <alan@linuxcare.com.au>
4438
4439 From Rodney Brown <RodneyBrown@mynd.com>
4440 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
4441 * configure: Regenerate.
4442
a47cf567
NC
44432000-08-09 Kazu Hirata <kazu@hxi.com>
4444
4445 * hash.c: Fix formatting.
4446 * gasp.c: Likewise.
4447
305d537e
JE
44482000-08-08 Jason Eckhardt <jle@cygnus.com>
4449
4450 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
4451 (i860_fix_info): New enum.
4452 (MD_APPLY_FIX3): Define.
4453 (WORKING_DOT_WORD): Define.
4454 (TC_HANDLES_FX_DONE): Define.
4455 (DIFF_EXPR_OK): Define.
4456 (LISTING_HEADER): Define.
4457 (TARGET_FORMAT): Select target format based on endian flag.
4458 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
4459 (target_big_endian): Add external declaration.
4460
4461 * config/tc-i860.c: All existing code reworked completely. Other
4462 new code shown below.
4463 (SYNTAX_SVR4): Define.
4464 (target_warn_expand): New variable.
4465 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
4466 (md_longopts): Declare and define with new options (-EL, -EB,
4467 and -mwarn-expand).
4468 (md_show_usage): New function.
4469 (md_operand): New function.
4470 (obtain_reloc_for_imm16): New function.
4471 (md_apply_fix3): New function.
4472 (tc_gen_reloc): New function.
4473
df86943d
NC
44742000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4475
4476 * config/tc-m68hc11.c (build_jump_insn): Make sure the
4477 2 bytes of the jump address are in the same frag.
4478 (find): Accept 68hc12 register indirect modes.
4479
4480 * NEWS: Mention 68HC11 & 68HC12 support.
58a77e41 4481
30d25259
RH
44822000-08-07 Richard Henderson <rth@cygnus.com>
4483
4484 * config/tc-ia64.c (unwind): Add prologue_mask member.
4485 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
4486 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
4487 (dot_body): Clear unwind.prologue_mask.
4488 (dot_prologue): Set it. Accept a register second argument.
4489
2d484c7f
KH
44902000-08-07 Kazu Hirata <kazu@hxi.com>
4491
4492 * config/atof-ieee.c: Fix formatting.
4493 * config/atof-tahoe.c: Likewise.
4494
a47cf567 44952000-08-06 Nick Clifton <nickc@cygnus.com>
1485d400 4496
3d4ae3c0
NC
4497 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
4498 work.
4499
c91d2e08
NC
4500 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
4501 of .popsection, .previous, .pushsection, .subsection,
4502 .version, .vtable_entry, .vtable_inherit and .weak.
4503
47926f60
KH
45042000-08-05 Kazu Hirata <kazu@hxi.com>
4505
4506 * config/tc-cris.c: Fix formatting.
4507 * config/tc-i386.c: Likewise.
4508 * config/tc-sparc.c (sparc_ip): Simplify the code.
4509
ab3e48dc
KH
45102000-08-04 Kazu Hirata <kazu@hxi.com>
4511
4512 * config/tc-cris.c: Rearrange code for readability.
4513 * config/tc-d10v.c: Fix formatting.
4514 * config/tc-m32r.c: Likewise.
4515 * config/tc-sparc.c: Likewise.
4516
3d56ab85
JW
45172000-08-02 Jim Wilson <wilson@cygnus.com>
4518
4519 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
4520 before ia64_find_opcode.
4521 (md_assemble): Likewise.
4522
3f9dfb2c
NC
45232000-08-01 Nick Clifton <nickc@cygnus.com>
4524
a47cf567 4525 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
d78c7dca 4526 Undo some formatting fixes.
3f9dfb2c 4527
28e4f854
KH
45282000-08-01 Kazu Hirata <kazu@hxi.com>
4529
4530 * config/obj-som.c: Fix formatting.
4531 * config/obj-ieee.c: Likewise.
4532 * config/tc-arm.c: Likewise.
4533 * config/tc-v850.c: Likewise.
4534
a570e639
NC
45352000-08-01 Nick Clifton <nickc@redhat.com>
4536
4537 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
4538 index by command line option.
58a77e41 4539
a570e639
NC
45402000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4541
4542 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
4543 (@node M68K-Branch): Rewrite to match the reality.
4544
e3308d0d
JE
45452000-07-31 Jason Eckhardt <jle@cygnus.com>
4546
4547 * doc/c-i860.texi: New file.
4548 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
4549 * doc/Makefile.in: Regenerate.
4550 * doc/all.texi: Add I860 as relevant architecture.
4551 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
4552
2fd5405a
NC
45532000-07-31 Kazu Hirata <kazu@hxi.com>
4554
4555 * config/tc-d30v.c: Fix formatting.
4556
28e7409f
NC
45572000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4558
50bbae35
AM
4559 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
4560 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
4561 long emit a long branch if available instead of an absolute jump, never
4562 emit absolute jumps for anything with --pcrel.
28e7409f
NC
4563
4564 * doc/c-m68k.texi: Document new command line option.
58a77e41 4565
a47cf567
NC
45662000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
4567
4568 * config/tc-avr.c: Use PARAMS macro in function declarations.
4569 Don't declare md_pcrel_from_section (already in tc-avr.h).
4570 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
4571 (avr_operand): Don't set (unsigned) op_mask to -1.
4572
534022ea
JE
45732000-07-28 Jason Eckhardt <jle@cygnus.com>
4574
50bbae35
AM
4575 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
4576 * configure: Regenerated.
4577 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
4578 of operand to the .type directive (.e.g, "type").
534022ea 4579
4c400d5e
AM
45802000-07-28 Alan Modra <alan@linuxcare.com.au>
4581
4582 * as.h (warn_comment, found_comment, found_comment_file): Declare.
4583 * app.c (do_scrub_chars): Record where first comment found.
4584 * read.c (read_a_source_file): Init found_comment on entry, and
4585 notify whether comments found on exit.
4586 * config/tc-hppa.c (md_shortopts): Add "c".
4587 (md_longopts): Add warn-comment.
4588 (md_parse_option): Handle it.
4589 (md_show_usage): Show available options.
4590 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
4591
0aa529cb
AC
4592Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
4593
4594 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
4595 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
50bbae35 4596 sym_ptr_ptr
0aa529cb
AC
4597 (md_estimate_size_before_relax): Don't fall off end of function.
4598
c6a7ab1f
NC
45992000-07-27 Kazu Hirata <kazu@hxi.com>
4600
4601 * config/tc-avr.c: Fix formatting.
4602 * config/tc-ns32k.c: Likewise.
4603
e0c6ed95
AM
46042000-07-27 Alan Modra <alan@linuxcare.com.au>
4605
4606 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
4607
46082000-07-27 Kazu Hirata <kazu@hxi.com>
4609
4610 * config/tc-d10v.c: Fix formatting.
4611 * config/tc-z8k.c: Likewise.
4612 * config/tc-sparc.c: Likewise.
4613
6883dc5e 46142000-07-26 Dave Brolley <brolley@redhat.com>
eabed1c0
DB
4615
4616 * cgen.c (queue_fixup): Declare opinfo.
4617 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
4618 (gas_cgen_md_operand): Ditto.
4619 (gas_cgen_md_apply_fix3): Ditto.
4620
39da8128
DD
46212000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
4622
4623 * config/obj-coff.c (obj_frob_symbol): Don't merge
4624 labels. Don't merge if the symbol isn't constant. Return
4625 immediately if a symbol is merged.
4626
65e68b04
AM
46272000-07-22 Alan Modra <alan@linuxcare.com.au>
4628
4629 * frags.c (frag_align): Correct absolute section alignment.
4630
5e0d736c
DD
46312000-07-20 DJ Delorie <dj@redhat.com>
4632
4633 * config/obj-coff.c (obj_frob_symbol): revert previous change,
4634 it breaks linking against DLLs.
4635
3bcbcc3d
HPN
46362000-07-20 Hans-Peter Nilsson <hp@axis.com>
4637
4638 * configure.in: Add CRIS support.
4639 * configure: Regenerate.
4640 * Makefile.am: (CPU_TYPES): Add cris.
4641 (CPU_OBJ_VALID) [aout]: Add cris.
4642 (MULTI_CPU_TYPES): Add cris.
4643 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
50bbae35 4644 [coff]: Only i386 and mips are valid.
3bcbcc3d
HPN
4645 (TARGET_CPU_CFILES): Add config/tc-cris.c.
4646 (TARGET_CPU_HFILES): Add config/tc-cris.h.
4647 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
4648 Regenerate dependencies.
4649 * Makefile.in: Regenerate.
4650 * aclocal.m4: Regenerate.
4651 * as.c: Declare crisaout, criself.
4652 * config/tc-cris.h, config/tc-cris.c: New.
4653 * config/e-criself.c, config/e-crisaout.c: New.
4654 * po/POTFILES.in, po/gas.pot: Regenerate.
4655
041ff4dd 46562000-07-20 Kazu Hirata <kazu@hxi.com>
58a77e41 4657
041ff4dd 4658 * read.c: Fix formatting.
efaf0ba4 4659 * write.c: Fix formatting.
041ff4dd 4660
f980ada0
L
46612000-07-19 H.J. Lu <hjl@gnu.org>
4662
4663 * sb.c: Include <stdlib.h> if exists for abort ().
4664
25a8b250
AM
46652000-07-19 Alan Modra <alan@linuxcare.com.au>
4666
4667 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
4668 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
4669 (pa_type_args): Same here.
4670
7a9aaf92
NC
46712000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
4672
4673 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
4674 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
4675 the storage class is already set.
4676
8098403c
NC
46772000-07-17 Kazu Hirata <kazu@hxi.com>
4678
fafb6d17 4679 * config/tc-m68hc11.c: Fix formatting.
ff5a4f04
KH
4680 * config/tc-mn10200.c: Likewise.
4681 * config/tc-mn10300.c: Likewise.
4682 * config/tc-pj.c: Likewise.
4683 * config/tc-tic80.c: Likewise.
4684 * config/tc-w65.c: Likewise.
8098403c 4685
977e771a
FCE
46862000-07-17 Frank Ch. Eigler <fche@redhat.com>
4687
4688 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
4689 is defined.
4690
63bf5651
ILT
46912000-07-15 Ian Lance Taylor <ian@zembu.com>
4692
4693 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
4694 @code.
4695
1cd1c99b
AM
46962000-07-15 Alan Modra <alan@linuxcare.com.au>
4697
4698 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
4699 ELF as are used for SOM (except the 32-bit reloc one) to decide
4700 whether a symbol can be reduced to a section symbol. Expand on
4701 the comment for symbols involved in LR% and RR% expressions.
4702
119d663a
NC
47032000-07-14 Nick Clifton <nickc@cygnus.com>
4704
4705 * config/tc-mips.c (mips_disable_float_construction): New
4706 static variable. Set to true if doubles should not be
4707 constructed by loading two single width fp registers with
4708 halves of the value.
4709 (mips_ip): Test mips_disable_float_construction.
4710 (md_longopts): Add command line switches --construct-floats
4711 and --no-construct-floats.
4712 (md_parse_option): Parse new command line options.
4713 (md_show_usage): Describe new command line options.
4714
4715 * doc/c-mips.texi: Document new command line options.
4716
906fac54
AM
47172000-07-13 Koundinya K <kk@ddeorg.soft.net>
4718
4719 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
4720 * configure: Regenerate.
4721
47222000-07-13 Hans-Peter Nilsson <hp@axis.com>
4723
4724 * configure.in (DEFAULT_EMULATION setting): Revert part of
4725 2000-07-01 change that set te_multi=multi unless set to tmips.
4726 * configure: Regenerate.
4727
7f788821
NC
47282000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4729
4730 * config/obj-coff.c (coff_frob_section): Add padding to the last
50705ef4 4731 section when aligning it increases its size.
7f788821 4732
9a736b6b
NC
47332000-07-11 Kazu Hirata <kazu@hxi.com>
4734
4735 * config/tc-tic54x.c: Fix formatting.
4736
3dd5103b
NC
47372000-07-10 Kazu Hirata <kazu@hxi.com>
4738
4739 * config/tc-h8500.c: Fix formatting.
1aea3bb8 4740 * config/tc-tic54x.c: Fix formatting.
3dd5103b 4741
46b85d42
AM
47422000-07-10 Alan Modra <alan@linuxcare.com.au>
4743
4744 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
4745 displacements correctly.
4746
4747 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
4748
47492000-07-10 Ryan Bradetich <rbradetich@uswest.net>
4750
4751 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
4752 warning.
4753 (hash_jam): Ditto.
4754
ad1079af
AM
47552000-07-09 Alan Modra <alan@linuxcare.com.au>
4756
4757 From David Huggins-Daines <dhd@linuxcare.com>
4758 * config/te-hppalinux64.h: Add a new emulation.
4759 * configure.in (emulations): Add configure bits to support the
4760 64-bit Linux/parisc target.
4761 * configure: Regenerate.
4762
4763 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
4764 (md_shortopts): Add `V' for ELF.
4765
4766 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
4767 when SOM or ELF_ARG_RELOC are defined.
4768 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
4769 ELF_ARG_RELOC are defined.
4770 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
4771 (pa_stringer): ..Do it here instead. Fix comment typos.
4772 (hppa_force_relocation): Cast enums to int before comparing with
4773 ints.
4774
4775 From Ryan Bradetich <rbradetich@uswest.net>
4776 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
4777 redifinition warning.
4778 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
4779 (hppa_force_relocation): ditto
ad1079af
AM
4780 (md_apply_fix): Added cast to buf to fix warnings.
4781
4782 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
4783 cons_fix_new_hppa, hppa_force_relocation): Prototype.
4784
4785 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
4786 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
4787 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
4788 reloc_type** to avoid warnings in switch.
4789 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
4790 little earlier instead.
4791
4792 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
4793 and elf.
4794 (pa_type_args): Use symbol_arg_reloc_info.
4795 (struct pa_it): Make arg_reloc unsigned int.
4796 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
4797 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
4798 (pa_code): Delete. pa_text duplicates this function.
4799 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
4800 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
4801 int.
4802 (cons_fix_new_hppa): Actually change selector to e_fsel when
4803 warning about assuming so.
4804 (tc_gen_reloc): More example elf arg reloc code.
4805 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
4806 (hppa_force_relocation): Likewise.
4807
4808 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
4809 files.
4810 (pa_end_of_source): Prototype.
4811 (hppa_fix_adjustable): Prototype.
4812 (LABELS_WITHOUT_COLONS): Move it..
4813 * config/te-hppa.h: To here.
4814
4815 * config/te-hppa64.h: New file.
4816
4817 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
4818 type.
4819 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
4820 format -10, -16, 16 relocs.
4821 (hppa_elf_mark_end_of_function): Test for null
4822 last_call_info->start_symbol
4823
4824 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
4825 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
4826 re_assesmble_* functions. Delete extraneous statements. Fix
4827 typos in comments.
4828 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
4829 insn to re_assemble_*.
4830
623aa224
UC
48312000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
4832
4833 * doc/internals.texi (Expressions): Fix typo.
58a77e41 4834
c4aa876b
NC
48352000-07-08 Kazu Hirata <kazu@hxi.com>
4836
4837 * config/tc-sh.c: Fix formatting.
d0313fb7 4838 * config/tc-tic54x.c: Fix formatting.
f851444e
NC
4839 * depend.c: Fix formatting.
4840 * flonum-konst.c: Likewise.
4841 * flonum-mult.c: Likewise.
c4aa876b 4842
6b31947e
NC
48432000-07-07 Kazu Hirata <kazu@hxi.com>
4844
a5bfe8c9 4845 * config/tc-sh.c: Fix comments.
bc0d738a
NC
4846 * config/obj-vms.c: Fix comments.
4847 * config/tc-a29k.c: Likewise.
4848 * config/tc-alpha.c: Likewise.
4849 * config/tc-h8300.c: Likewise.
4850 * config/tc-h8500.c: Likewise.
4851 * config/tc-i370.c: Likewise.
4852 * config/tc-ia64.c: Likewise.
4853 * config/tc-m68hc11.c: Likewise.
4854 * config/tc-m68k.c: Likewise.
4855 * config/tc-mips.c: Likewise.
4856 * config/tc-ns32k.c: Likewise.
4857 * config/tc-ppc.c: Likewise.
4858 * config/tc-z8k.c: Likewise.
6b31947e 4859
b8a9dcab
NC
48602000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
4861
4862 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
4863 Default to '(SEC_LOAD | SEC_DATA)'.
4864 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
4865
4866 * doc/internals.texi (CPU Backend): Describe
4867 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
4868
beb2de9b
AC
4869Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
4870
4871 * as.c (parse_args): NULL terminate the long option list.
4872
24ddb296
AC
4873Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
4874
4875 * config/tc-d30v.h: Include "write.h" for fixS.
50bbae35 4876 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
24ddb296 4877
1fe72011
NC
48782000-07-05 Nick Clifton <nickc@cygnus.com>
4879
4880 * config/tc-d30v.c (write_2_short): Further changes to warning
4881 messages produced when combining EITHER_BUT_PREFER_MU attributed
4882 opcodes.
4883
a5bfe8c9 48842000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4885
4886 * MAINTAINERS: new
4887
8de8f17e
AO
48882000-07-04 Alexandre Oliva <aoliva@redhat.com>
4889
4890 * config/tc-arm.c (psrs): Accept combinations of flags.
4891
00d2865b
NC
48922000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4893
4894 * config/tc-avr.c: Change _ () to _() around all strings marked
4895 for translation (exception from the usual coding style).
4896 (avr_opt): New struct variable, how the new switches are set.
4897 (OPTION_MMCU): Define as 'm' and actually use.
4898 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
4899 (show_mcu_list): New function, display the list of known MCUs.
4900 (md_show_usage): Document the new switches. Call show_mcu_list.
4901 (avr_set_arch): Change 'm' to OPTION_MMCU.
4902 (md_parse_option): Call show_mcu_list if unknown MCU specified.
4903 Handle the new switches.
4904 (avr_operands): Disable warnings for undefined combinations of
4905 operands if -mall-opcodes. Disable warnings for skipping two-word
4906 instructions if enhanced core or -mno-skip-bug.
4907 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
4908 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
4909 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
4910 (avr_ldi_expression): Warn about implicit lo8().
4911 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
4912
54588503
UC
49132000-07-01 Koundinya K <kk@ddeorg.soft.net>
4914
50bbae35
AM
4915 * configure.in: Add entry for mips-*-sysv4*MP*
4916 * configure: Rebuild
4917 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
4918 elf32-tradlittlemips for traditional mips targets.
4919 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
4920 test for Link Once sections as in adjust_reloc_syms.
4921 * config/te-tmips.h: New file for traditional mips targets. Define
4922 TE_TMIPS.
58a77e41 4923
c9900432
NC
49242000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4925
4926 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
4927 flags argument is not present, don't change an existing section's
4928 section's attributes. If the flags argument is present, warn if the
4929 attributes don't match the section's current attributes. When
4930 long section names are supported, set SEC_LINK_ONCE and
4931 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
4932
9d87310a
HPN
4933Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
4934
4935 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
4936 symbols; create them.
4937
dbddefbf
NC
49382000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4939
4940 * write.c (set_segment_vma): New: Set vma and lma for a segment.
6aa4f516 4941 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
dbddefbf 4942
2ae7e77b
AH
49432000-06-27 Aldy Hernandez <aldyh@redhat.com>
4944
4945 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
a47cf567
NC
4946 expressions. Ignore the problem when handling 16 bit signed
4947 immediates, because the assembler will take care of the relocation
4948 later.
2ae7e77b 4949
6b2539e3
NC
49502000-06-27 Nick Clifton <nickc@cygnus.com>
4951
4952 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
58a77e41 4953 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
6b2539e3
NC
4954 sequential order, and emit warning messages if the input source
4955 code contains constructs like that, or parallel constructs
4956 containing such opcodes.
4957
65aa24b6
NC
49582000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4959
4960 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
4961 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
4962 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
4963 (md_show_usage): Update usage message.
4964 (md_parse_option): Allow redefinition of MCU type within the
4965 same avr[1-5] bfd machine type. Show both old and new MCU type
4966 in the error message.
4967 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
4968 Simplify 8K wrap code.
4969
f0c56b90
NC
49702000-06-25 Kazu Hirata <kazu@hxi.com>
4971
50bbae35
AM
4972 * config/obj-aout.c: Remove all uses of DEFUN.
4973 * config/obj-ieee.c: Likewise.
4974 * config/tc-sh.c: Fix comment typos.
4975 * config/tc-tahoe.c: Likewise.
4976 * config/tc-vax.c: Likewise.
4977 * config/tc-w65.c: Likewise.
4978 * config/tc-z8k.c: Likewise.
f0c56b90
NC
4979 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
4980
6d249963
DD
49812000-06-24 DJ Delorie <dj@cygnus.com>
4982
4983 * config/tc-i386.c (md_estimate_size_before_relax): Revert
4984 more changes from Sept 1999
4985 (tc_i386_fix_adjustable): ditto
4986 (md_apply_fix3): ditto
4987
680d2857 49882000-06-24 Frank Ch. Eigler <fche@redhat.com>
58a77e41 4989
680d2857
FCE
4990 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
4991 (gas_cgen_parse_operand): Set it around expression() call.
4992 (gas_cgen_md_operand): Test for it before longjmp().
4993
e7b305a2
AM
49942000-06-24 Kazu Hirata <kazu@hxi.com>
4995
c0fecd35
AM
4996 * config/tc-h8500.c: Remove all uses of DEFUN.
4997 * config/tc-sh.c: Likewise.
4998 * config/tc-w65.c: Likewise.
4999 * config/tc-z8k.c: Likewise.
5000
e7b305a2
AM
5001 * config/tc-h8500.c: Fix typos in comments.
5002
ed6d6fd3
FCE
50032000-06-23 Frank Ch. Eigler <fche@redhat.com>
5004
5005 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5006 is defined.
5007
f7c88872
AM
50082000-06-23 matthew green <mrg@redhat.com>
5009
5010 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
50bbae35 5011 defined. Fix error message for `[' grouping.
f7c88872 5012
70d6ecf3
AM
50132000-06-22 Kazu Hirata <kazu@hxi.com>
5014
5015 * config/tc-h8300.c: Fix formatting and comment typos.
5016
e9718fe1
TW
50172000-06-22 Timothy Wall <twall@cygnus.com>
5018
5019 * config/tc-ia64.c (note_register_values): Move premature QP
5020 notation clearing into the appropriate place.
5021
45288df1
AM
50222000-06-22 Alan Modra <alan@linuxcare.com.au>
5023
1581f8c9
AM
5024 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5025 first before anything else. Add bin-bugs.h, emul.h and progress.h
5026 Sort list of files as for $(OBJS) in Makefile.am.
5027
5028 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5029 find one. Remake dependencies.
5030 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5031 * Makefile.in: Regenerate.
5032 * doc/Makefile.in: Regenerate.
5033
45288df1
AM
5034 * config/tc-i386.c (i386_displacement): Don't assume a constant
5035 displacement is necessarily 16 bits when in 16 bit code mode.
5036 (md_assemble): Instead size the displacement here after we know
5037 for sure that a .code16gcc operand hasn't automatically added
5038 operand size prefixes.
5039
01580992
L
50402000-06-21 H.J. Lu <hjl@gnu.org>
5041
5042 * Makefile.am: Rebuild dependency.
5043 * Makefile.in: Rebuild.
5044
40f09f82
JL
50452000-06-21 Kazu Hirata <kazu@hxi.com>
5046
5047 * config/tc-h8300.c (parse_reg): Make the function static.
5048 (parse_exp): Likewise.
5049
78295804
DD
50502000-06-20 DJ Delorie <dj@cygnus.com>
5051
5052 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5053 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5054 for cygwin import libraries to work properly.
5055
45f85b08
L
50562000-06-20 H.J. Lu <hjl@gnu.org>
5057
5058 * Makefile.am: Rebuild dependency.
5059 * Makefile.in: Rebuild.
5060 * configure: Likewise.
5061 * doc/Makefile.in: Likewise.
5062
39bec121
TW
50632000-06-20 Timothy Wall <twall@cygnus.com>
5064
5065 * doc/internals.texi (CPU backend): Add @itemx for
3e87a760 5066 TC_START_LABEL_WITHOUT_COLON.
39bec121
TW
5067 * doc/c-tic54x.texi: New.
5068 * doc/as.texinfo: Add tic54x features and include primary tic54x
3e87a760 5069 documentation file.
39bec121 5070 * doc/all.texi: Add C54X.
3e87a760 5071 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
39bec121
TW
5072 * doc/Makefile.in: Regenerate.
5073 * configure.in: Add tic54x and define LIBM for tic54x.
5074 * configure: Regenrate.
5075 * config/tc-tic54x.[ch]: New.
5076 * config/obj-coff.h: Add tic54x.
5077 * Makefile.am: (CPU_TYPES): Add tic54x.
5078 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
5079 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
5080 (as_new_LDADD): Add $(LIBM).
5081 * Makefile.in: Regenerate.
3e87a760 5082
60bcf0fa
NC
50832000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5084
5085 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
5086 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
5087 * doc/as.texinfo: Likewise.
5088
5089 * configure, Makefile.in: Regenerate.
5090 * configure.in (emulations): Recognize m6811 and m6812.
5091 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
5092 Added files for 68hc11 and 68hc12 assembler.
5093 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
5094 * config/tc-m68hc11.h: Header definition for that assembler.
5095
ec05f674
NC
50962000-06-18 Nick Clifton <nickc@redhat.com>
5097
24ef8152
NC
5098 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
5099 instead of OCTETS_PER_BYTE.
5100
ec05f674 5101 * config/tc-v850.c: Fix compile time warnings.
5480ccf3 5102 * config/tc-ppc.c: Fix compile time warnings.
ec05f674 5103
119caedd
L
51042000-06-18 H.J. Lu <hjl@gnu.org>
5105
5106 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
5107 * configure: Rebuild.
5108
607723e4
NC
51092000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
5110
3e87a760
AM
5111 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
5112 to BFD_ASSEMBLER.
607723e4 5113
b946ec34
NC
51142000-06-16 Nick Clifton <nickc@cygnus.com>
5115
5116 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
5117 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
5118
5119 * doc/c-mips.texi: Document newly accepted cpu variants.
5120
37ce37b1
UC
51212000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5122
5123 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
5124
c06ae4f2
UC
51252000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
5126
5127 * macro.c (getstring): Make it possible to escape the quote
5128 character.
5129
20348649
JL
5130Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
5131
5132 * config/tc-hppa.c (pa_export): Weak symbols can be global.
5133
bcef29e6
L
51342000-06-13 H.J. Lu <hjl@gnu.org>
5135
5136 * configure: Regenerate.
5137
63a0b638
AM
51382000-06-09 Alan Modra <alan@linuxcare.com.au>
5139
5140 * app.c (do_scrub_begin): Don't default lex[';'] as a line
5141 separator.
5142 * doc/internals.texi (line_separator_chars): Semicolon is no
5143 longer a default. Mention null and newline as defaults.
5144
5145 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
5146
5147 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
5148 * config/tc-i860.h (line_separator_chars): Likewise.
5149 * config/tc-h8300.c (line_separator_chars): Likewise.
5150 * config/tc-i960.c (line_separator_chars): Likewise.
5151 * config/tc-m68k.c (line_separator_chars): Likewise.
5152 * config/tc-mips.c (line_separator_chars): Likewise.
5153 * config/tc-ns32k.c (line_separator_chars): Likewise.
5154 * config/tc-sparc.c (line_separator_chars): Likewise.
5155 * config/tc-vax.c (line_separator_chars): Likewise.
5156
5157 * config/tc-h8300.c (comment_chars): Use string initialiser.
5158 * config/tc-i960.c (line_comment_chars): Likewise.
5159 * config/tc-z8k.c (comment_chars, line_comment_chars,
5160 line_separator_chars): Likewise.
5161
5162 * config/tc-arm.c (line_separator_chars): Always use `;', not just
5163 for TE_LINUX.
5164
9bab9349
NC
51652000-06-08 Nick Clifton <nickc@cygnus.com>
5166
5167 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
5168 for size 1 fixes.
5169
946efd95
DB
51702000-06-08 David O'Brien <obrien@FreeBSD.org>
5171
5172 * configure.in (VERSION): Update to show this is the CVS mainline.
5173
6480b79a
DB
51742000-06-08 Matthew Jacob <mjacob@feral.com>
5175
5176 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
5177 $at is the integer register $r28, vs. both $r28 and the floating
5178 point register $f28.
5179
10850f29
JW
51802000-06-08 James E. Wilson <wilson@cygnus.com>
5181
5182 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
5183 (dot_endp): Don't call ia64_flush_insns.
5184 (emit_one_bundle): Don't delete prologue/body records from
5185 unwind_record list in first loop. Rewrite second loop to account for
5186 this.
5187
150f24a2
JW
51882000-06-07 David Mosberger <davidm@hpl.hp.com>
5189
5190 * config/tc-ia64.c: Add missing prototypes.
5191 (generate_unwind_image): Cast argument to output_unw_records call.
5192
e38c9cc2
DC
5193Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
5194
46b85d42 5195 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
e38c9cc2 5196
1188e082
DC
5197Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
5198
5199 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
5200 (REGISTER_P): likewise.
5201 (avr_opcodes): uses include/opcode/avr.h
5202 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
3e87a760 5203
ac743b2c
AM
52042000-06-04 Alan Modra <alan@linuxcare.com.au>
5205
0b545448
AM
5206 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
5207 initializers too.
ac743b2c 5208
969e1a7b
L
52092000-06-03 H.J. Lu <hjl@gnu.org>
5210
5211 * read.c (is_end_of_line): Put back `;'.
5212
65172ab8
AM
52132000-06-03 Alan Modra <alan@linuxcare.com.au>
5214
5215 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
5216
b75c0c92
AM
52172000-06-01 Alan Modra <alan@linuxcare.com.au>
5218
5219 * expr.c (operand): Test is_end_of_line outside switch to catch
5220 line separator chars that are also operators.
5221 (operator): Return O_illegal for line separator chars.
5222
5223 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
5224 entry (or `!' entry for TC_HPPA).
5225
5226 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
5227 before indexing is_end_of_line. Remove redundant check for '\0'.
5228 (fp_op2): Likewise.
5229 * config/tc-h8500.c (md_assemble): Likewise.
5230 * config/tc-mcore.c (md_assemble): Likewise.
5231 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5232 (md_atof): Likewise
5233
5234 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
5235 is_end_of_line.
5236 * config/tc-mcore.c (mcore_cons): Likewise.
5237 (mcore_float_cons): Likewise.
5238 (mcore_stringer): Likewise.
5239 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
5240
a6836251
SB
52412000-06-01 Scott Bambrough <scottb@netwinder.org>
5242
5243 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
5244
43841e91
NC
52452000-05-29 Nick Clifton <nickc@cygnus.com>
5246
5247 * config/tc-sh.c: Fix compile time warning messages.
5248
5249 * config/tc-mips.c: Fix compile time warning messages.
5250
a057431b
PB
52512000-05-29 Philip Blundell <philb@gnu.org>
5252
5253 * doc/as.texinfo: Update copyright dates.
a81d9f0c 5254 (Local Labels): Delete misplaced mention of ARM.
a057431b
PB
5255 * NEWS: Mention ARM ELF support.
5256
3c07fb76
AO
52572000-05-27 Alexandre Oliva <aoliva@cygnus.com>
5258
5259 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
5260 it is modified, and use the real_size to compute the frag address
5261 for dwarf2 line info.
5262
ad4d6ccf
AM
52632000-05-27 Alan Modra <alan@linuxcare.com.au>
5264
5265 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
5266 line-matching scheme to cope with automake moving variables around.
5267 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
5268 * Makefile.in: Regenerate.
5269
6faf3d66
JJ
52702000-05-26 Jakub Jelinek <jakub@redhat.com>
5271
5272 * config/tc-sparc.c (sparc_relax): New.
5273 (md_longopts): Add -relax and -no-relax options.
5274 (md_parse_options, md_show_usage): Likewise.
5275 (md_apply_fix3): Optimize tail call into branch always if possible.
5276
0a44c2b1
DL
5277Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
5278
5279 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
5280 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
5281 rules, with warning when a GAS statement specifies a packing that
5282 will result in an instruction being squashed.
3e87a760
AM
5283 Added typdef packing_type and enumerals, changed various integer
5284 literals to use the enumerals.
0a44c2b1 5285
e0c9811a
JW
52862000-05-24 David Mosberger <davidm@hpl.hp.com>
5287
5288 * config/tc-ia64.c (dot_restorereg_p): New function.
5289 (md_pseudo_table): Add restorereg.p.
5290 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
5291 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
5292
5293 * config/tc-ia64.h (unw_record_type): Add unwabi.
5294 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
5295 called MASK with members for imask, and the masks produced by
5296 fr_mem, gr_mem, br_mem, and frgr_mem.
5297 (unw_p_record): Add members ABI and CONTEXT.
5298 (unw_x_record): Add member AB.
5299 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
5300 as pseudo-register for use during unwind info generation.
5301 (AR_PFS, AR_LC): New macros.
5302 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
5303 whose names start with an at sign (as in "@priunat").
5304 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
5305 register.
5306 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
5307 proc_end, unwind_info, personality_routine): Consolidate into
5308 "unwind" structure to reduce offset-table use. Add member
5309 NEXT_SLOT_NUMBER to track the slot number for the next instruction
5310 to be emitted.
5311 (output_R1_format, output_R3_format, output_P3_format,
5312 output_P6_format): Initialize R with zero to reduce compiler warnings.
5313 (output_P7_format): Ditto. Add `default' branch to switch
5314 statement to reduce compiler warnings.
5315 (output_P8_format, output_B1_format, output_B4_format): Ditto.
5316 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
5317 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
5318 into single argument.
5319 (output_X1_format, output_X3_format): Initialize R with zero to reduce
5320 compiler warnings. Merge A and B args into single argument.
5321 (output_X2_format, output_X4_format): Remove unused variable R. Merge
5322 A and B args into single argument.
5323 (free_record): Removed (wasn't used).
5324 (free_list_records): Also free imasks in prologue records.
5325 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
5326 (output_spill_mask): Remove.
5327 (output_unwabi): New function.
5328 (output_epilogue, output_label_state, output_copy_state): Call
5329 alloc_record.
5330 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
5331 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
5332 argument.
5333 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
5334 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
5335 as part of handling the prologue records. Emit region's imask if
5336 we have one. Handle unwabi, epilogue, label_state, copy_state,
5337 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
5338 spill_sprel_p, and spill_reg_p records.
5339 (set_imask, count_bits, slot_index): New function.
5340 (fixup_unw_records): Fix region size computation. Handle
5341 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
5342 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
5343 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
5344 set_imask accordingly. Update imask for gr_gr, and br_gr records.
5345 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
5346 (dot_save): Use manifest constants for applicaton registers.
5347 Handle REG_PR and REG_PRIUNAT.
5348 (dot_restore): Don't just ignore it.
5349 (dot_restorereg): New function..
5350 (generate_unwind_image): Ensure unwind info is a multiple of eight
5351 bytes, not just four bytes.
5352 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
5353 (dot_altrp): Don't just ignore it.
5354 (dot_savemem): New function. Replaces dot_savesp() and
5355 dot_savepsp(). Use manifest constants for applicaton registers.
5356 Handle REG_PR and REG_PRIUNAT.
5357 (dot_savef): Simplify.
5358 (dot_saveb): Support generation of br_gr.
5359 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
5360 dot_label_state, dot_copy_state): New function.
5361 (dot_unwabi): Don't just ignore it.
5362 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
3e87a760 5363 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
e0c9811a
JW
5364 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
5365 (emit_one_bundle): Set slot number for prologue/body records
5366 *before* emitting the first insn.
5367 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
5368 (md_begin): Declare "psp" pseudo-register.
5369 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
5370 so we don't get segfault.
5371 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
5372 counts as required per SW Conventions manual
5373 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
5374 output_preds_psprel, output_preds_sprel, output_spill_base,
5375 output_unat_psprel, output_unat_sprel, output_lc_psprel,
5376 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
5377 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
5378 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
5379 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
5380 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
5381 (dot_vframe): Implement.
5382 (dot_vframesp, dot_vframepsp): New function.
5383
f98fd99f
HPN
5384Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
5385
5386 * configure.in (i386-*-freebsd a.out entry): Quote properly.
4c8d9ec6 5387 * configure: Regenerate.
f98fd99f 5388
ee7fcc42
AM
53892000-05-23 Alan Modra <alan@linuxcare.com.au>
5390
5391 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
5392 (md_estimate_size_before_relax): so we can use it here instead of
5393 old kludges. Localise vars to blocks. Comment.
5394
5395 * frags.c (frag_new): Update fr_var comments.
5396 * frags.h (struct frag): Ditto.
5397
c67e42c9
RH
53982000-05-22 Richard Henderson <rth@cygnus.com>
5399
5400 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
5401 (pseudo_func): Add pcrel.
5402 (operand_match): Handle IA64_OPND_TGT64.
5403 (build_insn): Likewise.
5404 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
5405 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
5406 (fix_insn): Handle all three 64-bit relocation types.
5407
5110c57e
HPN
5408Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
5409
5410 * obj.h (struct format_ops): New members begin, app_file,
5411 s_set_other, s_set_desc, s_get_type, s_set_type,
5412 separate_stab_sections, init_stab_section.
5413
5414 * config/obj-multi.h: Update GPL notice to v2.
5415 (obj_begin): New.
5416 (obj_app_file): New.
5417 (S_SET_SIZE): Test s_set_size for NULL before calling.
5418 (S_SET_ALIGN): Similar for s_set_align.
5419 (S_SET_OTHER): New.
5420 (S_SET_DESC): New.
5421 (S_GET_TYPE): New.
5422 (S_SET_TYPE): New.
5423 (SEPARATE_STAB_SECTIONS): New.
5424 (INIT_STAB_SECTION): New.
5425 (EMIT_SECTION_SYMBOLS): New.
5426 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
5427
5428 * config/obj-elf.h: Update GPL notice to v2.
5429 Mention that this file is included from obj-multi.h.
5430 (obj_begin): Wrap definition in ifndef.
5431 (elf_file_symbol): Constify declaration.
5432 (obj_app_file): Ditto.
5433 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
5434 Wrap in ifndef SEPARATE_STAB_SECTIONS.
5435
5436 * config/obj-elf.c (elf_s_set_other): New.
5437 (elf_file_symbol): Constify argument.
5438 (elf_separate_stab_sections): New.
5439 (elf_init_stab_section): New.
5440 (elf_format_ops): Add new members. Remove comma at end.
5441
5442 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
5443 (ecoff_format_ops): Add new fields. Remove comma at end.
5444 Mention inconsistency for emit_section_symbols.
5445
5446 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
5447
5448 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
5449 (coff_separate_stab_sections): New.
5450 (coff_format_ops): Add new members.
5451
5452 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
5453 (obj_aout_s_set_other): New.
5454 (obj_aout_s_set_desc): New.
5455 (obj_aout_s_get_type): New.
5456 (obj_aout_s_set_type): New.
5457 (obj_aout_separate_stab_sections): New.
5458 (aout_format_ops): New members added. Use obj_aout_process_stab,
5459 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
5460 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
5461 appropriate.
5462 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
5463
b98ef147
AM
54642000-05-22 Alan Modra <alan@linuxcare.com.au>
5465
5466 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
5467 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
5468 (md_estimate_size_before_relax): Ensure jumps to weak and
5469 externally visible symbols are relocatable.
5470
0aa5d426
HPN
5471Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
5472
5473 * stabs.c (aout_process_stab): Make global.
5474 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
5475 * read.h (aout_process_stab): Declare.
5476
5477 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
5478 Generalize to *aout, *coff *elf.
5479 * configure: Regenerated.
5480
5481 * doc/internals.texi (Object format backend): Say
5482 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
b8166459
HPN
5483
5484 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
5485 * Makefile.in: Regenerated.
5486
7c3dc350
CM
54872000-05-19 Catherine Moore <clm@cygnus.com>
5488
5489 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
5490
b3b6a3fe
JL
54912000-05-18 Alan Modra <alan@linuxcare.com.au>
5492
5493 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
5494 instruction to reflect change in re_assemble_*.
5495
c9e10a08
JL
5496Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
5497
5498 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
5499 build PA64 ELF tools.
5500 * configure: Rebuilt.
5501
3043679f
AM
55022000-05-17 Alan Modra <alan@linuxcare.com.au>
5503
5504 * Makefile.am: Regenerate dependencies.
5505 * Makefile.in: Regenerate.
5506
322f2c45
NC
55072000-05-15 Nick Clifton <nickc@cygnus.com>
5508
5509 * config/tc-arm.c (struct asm_psr): Add boolean field
5510 distinguishing between CSPR and SPSR. Rename 'number' field
5511 to 'field'.
5512 (psrs): Rearrange contents to match new asm_psr structure.
5513 (arm_psr_parse): Move next to psr_required_here. Make it
5514 return an asm_psr structure.
5515 (psr_required_here): Use asm_psr structure returned by
5516 arm_psr_parse.
5517 (do_msr): Reorganise to allow psr_required_here to be called
5518 only once.
5519 (md_undefined_name): Mark 'name' parameter as unused, since
5520 the COFF target does not use it.
322f2c45 5521
5e6cbf41
PB
55222000-05-14 David O'Brien <obrien@FreeBSD.org>
5523
5524 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
5525 standards.
5526 * config/te-aux.h: Likewise.
5527 * config/te-dpx2.h: Likewise.
5528 * config/te-go32.h: Likewise.
5529 * config/te-hp300.h: Likewise.
5530 * config/te-hppa.h: Likewise.
5531 * config/te-i386aix.h: Likewise.
5532 * config/te-ic960.h: Likewise.
5533 * config/te-interix.h: Likewise.
5534 * config/te-nbsd532.h: Likewise.
5535 * config/te-pc532mach.h: Likewise.
5536 * config/te-ppcnw.h: Likewise.
5537 * config/te-psos.h: Likewise.
5538 * config/te-sparcaout.h: Likewise.
5539 * config/te-sun3.h: Likewise.
5540 * config/te-sysv32.h: Likewise.
5541
4132022d
AM
55422000-05-14 Alan Modra <alan@linuxcare.com.au>
5543
5544 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
5545 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
5546 and sign extend without an if statement.
5547 (build_bytes): Likewise.
5548
55492000-05-14 Kazu Hirata <kazu@hxi.com>
5550
5551 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
5552 X_add_symbol L_32 case.
5553
b4fd930a
AM
55542000-05-14 David O'Brien <obrien@FreeBSD.org>
5555
5556 * config/te-freebsd.h: New file.
5557
a38cf1db
AM
55582000-05-13 Alan Modra <alan@linuxcare.com.au>
5559
897083bd
AM
5560 * asintl.h (gettext, dgettext, dcgettext, textdomain,
5561 bindtextdomain): Replace defines with those from intl/libgettext.h
5562 to quieten gcc warnings.
5563
a38cf1db
AM
5564 * NEWS: Mention x86 .arch and -q.
5565
5566 * config/tc-i386.c (quiet_warnings): New.
5567 (md_assemble): Use quiet_warnings.
5568 (md_parse_option): Set quiet_warnings from -q.
5569 (md_show_usage): Mention -q, delete -m.
5570 (flag_do_long_jump): Delete.
5571 (md_parse_option): Remove -m.
5572 (md_show_usage): Remove -m.
5573 (md_create_long_jump): Remove useless flag_do_long_jump code.
5574
5575 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
5576 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
5577
e413e4e9
AM
55782000-05-13 Alan Modra <alan@linuxcare.com.au>
5579 Alexander Sokolov <robocop@netlink.ru>
5580
5581 * doc/c-i386.texi (i386-Arch): New section.
5582 (i386-Syntax): Mention .intel_syntax and .att_syntax.
5583
5584 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
5585 (smallest_imm_type): Use smallest opcode for shift by one if cpu
5586 architecture has been given and is not 486.
5587 (set_cpu_arch): New.
5588 (md_pseudo_table): Add .arch.
5589 (md_assemble): Warn if cpu architecture has been given and an
5590 unsupported instruction.
5591
5592 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
5593 Move operand_types bit defines after relevant template field.
5594 (template): Add cpu_flags.
5595 (Cpu*): Define.
5596 (arch_entry): New.
5597
e8b1cae5
AO
55982000-05-12 Alexandre Oliva <aoliva@cygnus.com>
5599
5600 * config/tc-mn10300.h (md_end): Define.
5601 (mn10300_finalize): Declare.
5602 * config/tc-mn10300.c: Include dwarf2dbg.h.
5603 (debug_line): Define.
5604 (md_assemble): Generate dwarf2 line info.
5605 (mn10300_finalize): New function. Finalize dwarf2 info.
5606
426b0403
AM
56072000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
5608
5609 * config/tc-mips.c (md_estimate_size_before_relax): Use the
5610 external version of the relocation for weak symbols.
5611
e4c58b25
JW
56122000-05-08 David Mosberger <davidm@hpl.hp.com>
5613
5614 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
5615 frame size in units of 16 bytes, as required per SW Conventions manual.
5616 (output_unw_records): Output info-block header as a dword to get
5617 byte-order right.
5618
8fce3f5e
AM
56192000-05-08 Alan Modra <alan@linuxcare.com.au>
5620
5621 * as.h: #include "file", not <file> on files from ../include.
5622 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
5623 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
5624 (md_convert_frag): Add ATTRIBUTE_UNUSED.
5625 (tc_coff_symbol_emit_hook): Ditto.
5626 (OPTCOUNT): Cast to int to avoid compiler warning.
5627 (md_begin): Fix signed/unsigned warnings.
5628
56292000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5630
5631 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
5632 ABRANCH LONG case for a conditional branch on a 68000.
5633 (md_estimate_size_before_relax): Likewise. Also handle
5634 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
5635 (m68k-ip: case ABSL): Relax absolute references to 16-bit
5636 PC-relative on all CPUs.
5637 (md_estimate_size_before_relax): Likewise.
5638
fb166ee3
AM
56392000-05-04 Alan Modra <alan@linuxcare.com.au>
5640
5641 * as.c (parse_args): Just mention current year in printed
5642 copyright message.
5643
7a899fff
C
56442000-05-03 J.T. Conklin <jtc@redback.com>
5645
5646 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
3e87a760 5647 unit registers.
7a899fff
C
5648 (md_parse_option): Recognize -m7400.
5649
44877466
ILT
56502000-05-03 Ian Lance Taylor <ian@zembu.com>
5651
5652 * config/atof-ieee.c (gen_to_words): When adding carry back in,
5653 don't permit lp to become less than the words array.
5654
eaa15ab8
NC
56552000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5656
5657 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
5658 Fix little-endian case.
5659
7c4f6a03
AM
56602000-05-03 David O'Brien <obrien@NUXI.com>
5661
5662 * as.c (parse_args): Update copyright.
5663
da5d444c
AM
56642000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5665
8a543126 5666 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
da5d444c
AM
5667 for the .bss section too.
5668
3f9b03b5
AM
56692000-05-02 Alan Modra <alan@linuxcare.com.au>
5670
5671 * configure.in: Set em=linux for hppa-*-linux.
5672 * configure: Regenerate.
5673 * doc/Makefile.in: Regenerate with correct automake.
5674
5675 * frags.c (frag_grow): Sanity check chunk_size.
5676
5677 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
5678 * config/obj-som.h: Likewise.
5679 * config/obj-ieee.h: Likewise.
5680
5681 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
5682
5683 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
5684 (md_pseudo_table): Fully initialise OBJ_ELF cases.
5685 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
5686 (pa_ip): low_sign_unext now returns via function value. Use
5687 re_assemble_* instead of dis_assemble_* and
5688 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
5689 unnecessarily.
5690 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
5691 (md_section_align, md_parse_option, md_show_usage,
5692 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
5693 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
5694 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
5695 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
5696 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
5697 pa_text): Likewise.
5698 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
5699 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
5700 outside of switch. Correct mask and shifting errors in case 10
5701 and case -11. In case 21, compare against signed range to suit
5702 hppa_field_adjust changes. In case 12, use re_assemble_12. In
5703 case 17 and case 22, use offsetT variable to properly check range.
5704 Use re_assemble_* here too.
5705 (evaluate_absolute): Change type of value to offsetT. Call
5706 hppa_field_adjust to do the work for us.
5707 (pa_parse_cmpb_64_cmpltr): Delete save_s.
5708 (pa_parse_cmpib_64_cmpltr): Ditto.
5709 (pa_build_unwind_subspace): Delete unused var subseg. Change type
5710 of i to unsigned int.
5711 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
5712 (pa_end_of_source): Return type is void.
5713
a2984248
CM
5714Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
5715
5716 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
5717
df136245
DC
5718Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
5719
5720 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
5721 More comments added.
5722 (md_begin): Removed "construct symbols for each register name".
5723 Because register names conflicts with GCC generated function
5724 names.
5725 (avr_operand): Now constant numbers can be used as a register
5726 identifiers (0 as r0, 31 as r31).
5727 (md_assemble): use skip_space () before parsing instruction
5728 operands.
5729
c1e73230
AM
57302000-05-01 Alan Modra <alan@linuxcare.com.au>
5731
5732 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
5733 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
5734 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
5735 * configure: Regenerate.
5736
a1934524
AM
57372000-04-29 Andreas Jaeger <aj@suse.de>
5738
5739 * as.h: Correctly check GCC version.
5740
d9b7d820
AM
57412000-04-26 David O'Brien <obrien@FreeBSD.org>
5742
5743 * doc/as.1: Fix unbalanced brackets.
5744
5745 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
5746 TE_FreeBSD.
5747 (line_comment_chars): Set to '/' if TE_FreeBSD.
5748
cea1ab94
JL
5749Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
5750
5751 * configure.in: Configury support for PA64 (currently disabled).
5752 * configure: Rebuilt.
5753
e799a695
AM
57542000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
5755
3e87a760 5756 * config/tc-mips.c (s_change_sec): Use record_alignment, not
e799a695
AM
5757 bfd_set_section_alignment.
5758
3b0ec529
AM
57592000-04-25 Alan Modra <alan@linuxcare.com.au>
5760
5761 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
5762 than 32.
5763
adcf07e6
NC
57642000-04-24 Nick Clifton <nickc@cygnus.com>
5765
5766 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
5767 * doc/as.texinfo (Align): Include arm and strongarm in list of
5768 targets that have the second form of the behaviour of the .align
3e87a760 5769 directive.
adcf07e6 5770
5047a41f
JL
57712000-04-24 Mark Klein <mklein@dis.com>
5772
29184774 5773 * config/obj-som.c: Terminate obj_pseudo_table.
5047a41f 5774
a47cf567
NC
5775Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
5776
5777 * as.c (parse_args): Allow md_parse_option to override -a listing
5778 option.
5779 * config/obj-coff.c (add_lineno): Change type of offset parameter
5780 from "int" to "bfd_vma."
5781 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
5782 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
5783 (ppc_change_csect): Align correctly for XCOFF64.
5784 (ppc_machine): New function, which discards "ppc_machine" line.
5785 (ppc_tc): Cons for 8 when code is 64 bit.
5786 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
5787 relocations.
5788 (md_parse_option): Handle -a64 and -a32.
5789 (ppc_xcoff64): New.
5790 * config/tc-ppc.h (TARGET_MACH): Define.
5791 (TARGET_FORMAT): Move to function.
5792 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
5793
5794Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
5795
5796 * config/tc-avr.c: New AVR_ISA_ defined.
5797 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
5798 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
5799 for `fmul', `movw' and `lpm R,Z' instructions.
5800 (avr_operands): Warn if current opcode is a two-word instruction
5801 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
5802 (avr_opcodes): New commands added.
5803 (REGISTER_P): Check 'a' and 'v' constraint letters.
5804 (mcu_types): New MCU added.
5805
bf3ca999
TW
58062000-04-22 Timothy Wall <twall@cygnus.com>
5807
5808 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
5809 to "natval".
5810 (operand_match): Conditionally insert default bit values for IMMU9.
5811
98e5953c
JL
58122000-04-14 Matthew Green <mrg@cygnus.com>
5813
5814 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
5815 * configure: Rebuilt.
5816
a02fab7e
JL
5817Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
5818 Jason Eckhardt <jle@cygnus.com>
5819
c67e42c9 5820 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
a02fab7e
JL
5821
5822 * config/tc-hppa.c (CHECK_ALIGN): New macro.
5823 Added handling of new operand types l,y,&,fe,fE,fx.
5824
800eeca4
JW
5825Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5826 David Mosberger <davidm@hpl.hp.com>
5827 Timothy Wall <twall@cygnus.com>
5828 Andrew MacLeod <amacleod@cygnus.com>
5829 Jim Wilson <wilson@cygnus.com>
5830
5831 * Makefile.am (CPU_TYPES): Add ia64.
39bec121 5832 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
800eeca4
JW
5833 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
5834 * Makefile.in: Rebuild.
5835 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
5836 * configure: Rebuild.
5837 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
5838 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
5839 * expr.c (expr): Handle md_optimize_expr.
5840 * read.c (LEX_HASH): Add comment.
5841 * config/tc-ia64.c, config/tc-ia64.h: New files.
3e87a760 5842
66778679
RH
58432000-04-21 Richard Henderson <rth@cygnus.com>
5844
5845 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
5846 bundling a non-delayed branch type instruction.
5847
aa15f6f7
AO
58482000-04-20 Alexandre Oliva <aoliva@cygnus.com>
5849
5850 * config/tc-mn10300.c (HAVE_AM30): Define.
5851 (md_assemble): Use it.
5852
16adf844
AM
58532000-04-19 Alan Modra <alan@linuxcare.com.au>
5854
742f45cf
AM
5855 * config/obj-elf.c (obj_elf_change_section): Check for changed
5856 section attributes.
5857
16adf844
AM
5858 * Makefile.am: (CPU_MULTI_VALID): Remove.
5859 (MULTI_CPU_TYPES): Define.
5860 (MULTI_CPU_OBJ_VALID): Define.
5861 (DEPTC): Use the above.
5862 (DEPOBJ): Same here.
5863 (DEP2): And here.
5864 Regenerate dependencies.
5865 * Makefile.in: Regenerate.
5866
9c46fb1b
AM
58672000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5868
742f45cf 5869 * Makefile.am (YACC, LEX): Get them from configure.
9c46fb1b 5870
508866be
L
58712000-04-18 H.J. Lu (hjl@gnu.org)
5872
5873 * config/tc-i386.c (offset_in_range): Use addressT instead of
9c46fb1b 5874 bfd_vma for non-bfd assemblers.
508866be 5875
ba2adb93
AM
58762000-04-17 Alan Modra <alan@linuxcare.com.au>
5877
5878 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
5879 doesn't give spurious errors.
5880
12ff5d56
AM
58812000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5882
66778679 5883 * as.h (SEEK_SET): Define if undefined.
12ff5d56 5884
fc633e5b
AM
58852000-04-13 Alan Modra <alan@linuxcare.com.au>
5886
5887 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
5888 constants, and don't assume offsetT is 32 bits.
5889
1ed18ec1
NC
58902000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
5891
5892 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
5893 (md_pcrel_from_section): Add prototype.
5894 (d10v_fix_adjustable): Add prototype.
5895 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
5896
5897 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
5898
3db10f32
NC
58992000-04-12 Nick Clifton <nickc@cygnus.com>
5900
5901 * config/tc-d10v.c (find_opcode): Correctly calculate position of
5902 symbol in frag chain.
5903
847f7ad4
AM
59042000-04-10 Alan Modra <alan@linuxcare.com.au>
5905
5906 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
5907 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
5908 (fits_in_signed_word, smallest_imm_type): Ditto.
5909 (md_assemble): Use an offsetT var to hold offsetT values, not a
5910 long.
5911 (offset_in_range): New.
5912 (md_assemble): Use it.
5913 (md_convert_frag): Change type of target_address, opcode_address,
5914 and displacement_from_opcode_start to offsetT.
5915 (md_create_short_jump): Change type of offset to offsetT.
5916 (md_create_long_jump): Ditto.
5917 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
5918 (md_chars_to_number): Remove.
5919 (output_invalid): Remove duplicate prototype.
5920
ec694b89
NC
59212000-04-09 Nick Clifton <nickc@cygnus.com>
5922
5923 * Makefile.am (CPU_TYPES): Add 'avr'.
5924 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
5925 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
5926
16adf844 5927 * Makefile.in: Regenerate.
ec694b89
NC
5928
5929 * doc/as.texinfo: Add M32R documentation.
5930
a2d91340 5931Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3e87a760 5932
a2d91340 5933 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3e87a760 5934 --enable-build-warnings option.
a2d91340
AC
5935 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5936 * Makefile.in, configure: Re-generate.
5937
d92b1a8a
NC
59382000-04-07 Nick Clifton <nickc@cygnus.com>
5939
5940 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
5941 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
5942 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
5943 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
5944 (arm_force_relocation): Force relocations for
5945 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
5946
52ccafd0
JR
5947Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5948
5949 * config/tc-sh.c (get_operands): There's no third operand if the
5950 first operand is an immediate.
5951
015551fc
JR
5952Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5953
5954 * config/tc-sh.c (immediate): Delete.
5955 (sh_operand_info): Add immediate member.
5956 (parse_reg): Use A_PC for pc.
5957 (parse_exp): Add second argument 'op'. All callers changed.
5958 (parse_at): Expect pc to be coded as A_PC.
5959 Use immediate field in *op.
5960 (insert): Add fourth argument 'op'. All callers changed.
5961 (build_relax): Add second argument 'op'. All callers changed.
5962 (insert_loop_bounds): New function.
5963 (build_Mytes): Remove DISP_4.
5964 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
5965 (assemble_ppi): Use immediate field in *operand.
5966 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
5967 (md_apply_fix): Likewise.
5968 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
5969
79bd78be
AO
5970Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5971
5972 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
5973
e30e5a6a
HPN
5974Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
5975
5976 * internals.texi (CPU backend): Document
5977 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
5978
41b49281
AM
59792000-04-04 Alan Modra <alan@linuxcare.com.au>
5980
8ad3436c
AM
5981 * po/gas.pot: Regenerate.
5982
5983 * as.c (show_usage): Restore translated part of bug string.
5984 * gasp.c (show_usage): Likewise.
5985
41b49281
AM
5986 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
5987 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
5988 than move-if-change.
5989 (DEP1): Modify for "gcc -MM".
5990 (DEPTC): Likewise.
5991 (DEPOBJ): Likewise.
5992 (DEP2): Likewise.
5993 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
5994 Update dependencies.
5995 * Makefile.in: Regenerate.
5996
0a727238
AO
59972000-04-03 Alexandre Oliva <aoliva@cygnus.com>
5998
5999 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6000 (md_begin): Likewise.
6001 (HAVE_AM33): New macro.
6002 (md_assemble): Use it. Match r_regs and xr_regs only if
6003 HAVE_AM33.
6004
c20f4f8c
AM
60052000-04-03 Alan Modra <alan@linuxcare.com.au>
6006
6007 * as.h: #include "bin-bugs.h"
6008 * as.c (show_usage): Use REPORT_BUGS_TO.
6009 * gasp.c: #include "bin-bugs.h"
6010 (show_usage): Use REPORT_BUGS_TO.
6011
6012 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6013
753f6b12
HPN
6014Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
6015
6016 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6017 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6018 adjustments.
6019
726c5dcd
AM
60202000-04-03 Alan Modra <alan@linuxcare.com.au>
6021
6022 * config/tc-i386.c (i386_immediate): Don't assume a constant
6023 immediate is necessarily 16 bits when in 16 bit code mode.
6024 (md_assemble): Instead set guess_suffix here after we have checked
6025 registers.
6026
bf80011a
RH
60272000-04-02 Richard Henderson <rth@cygnus.com>
6028
6029 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6030 quantities. Correct right shift sign extension.
6031 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6032 32-bit value when shifting into place.
6033
92161534
ILT
60342000-04-01 Ian Lance Taylor <ian@zembu.com>
6035
6036 * app.c: Add ATTRIBUTE_UNUSED as needed.
6037 * config/tc-ppc.c: Likewise.
6038 (ppc_size): Make unsigned long.
6039 (ppc_insert_operand): Add casts to avoid warnings.
6040
447f3982
NC
60412000-03-31 Nick Clifton <nickc@cygnus.com>
6042
6043 * config/tc-d10v.h (md_flush_pending_output): Define.
6044
21d75ec2
NC
60452000-03-29 Nick Clifton <nickc@cygnus.com>
6046
6047 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6048 segment. Works for both BFD_ASSEMBLER and others.
6049 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6050
d1a1bf19
NC
60512000-03-29 Nick Clifton <nickc@cygnus.com
6052
6053 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6054
224de7a5
AM
60552000-03-28 Alan Modra <alan@linuxcare.com.au>
6056
6057 * listing.c (LISTING_LHS_WIDTH): Default depends on
6058 LISTING_WORD_SIZE.
6059 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6060
5b8274e3
ILT
60612000-03-27 Ian Lance Taylor <ian@zembu.com>
6062
6063 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6064 string literal.
6065
224de7a5 60662000-03-27 Alan Modra <alan@linuxcare.com.au>
adde6300
AM
6067
6068 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6069
6070 * config/tc-avr.c (mcu_types): Add missing initialiser.
6071 (md_pcrel_from_section): Add prototype.
6072 (avr_operand): Remove redundant test of unsigned < 0.
6073 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
6074
60752000-03-27 Denis Chertykov <denisc@overta.ru>
6076
6077 * config/tc-avr.c: New file for AVR support.
6078 * config/tc-avr.h: Likewise.
6079 * configure.in: Add AVR support.
6080 * configure: Regenerate.
6081
9f10757c
TW
60822000-03-26 Timothy Wall <twall@cygnus.com>
6083
6084 * gasp.c (macro_op): Add new argument to check_macro call.
6085 Macro structure definitions moved to macro.h
6086 * sb.h: Add argument to prototype for input_scrub_include_sb.
6087 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
6088 nesting checks with an additional flag.
6089 (struct input_save): Add flag to indicate whether current sb
6090 should be checked for proper macro/conditional nesting.
6091 (input_scrub_push/pop): Save/restore nest check flag.
6092 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
3e87a760 6093 defined.
9f10757c
TW
6094 * macro.c (check_macro): Allow caller to retrieve parsed macro
6095 information if a pointer is provided. This information may be
6096 used by the new macro hooks.
6097 * macro.h: Update prototype for check_macro. Macro struct
6098 definitions moved here from macro.c/gasp.c.
6099 * read.c (read_a_source_file): Add parameter to check_macro call,
6100 and pass macro info to the macro hook, if defined.
6101 (input_scrub_insert_line): New. Allow insertion of a line of
6102 characters into the input stream.
6103 (input_scrub_insert_file): New. Allow insertion of an arbitrary
6104 file into the input stream.
6105 (s_include): Use input_scrub_insert_file.
6106 * internals.texi: Document new macro hooks.
6107 * as.h: New prototypes added.
3e87a760 6108
224de7a5 61092000-03-26 Alan Modra <alan@linuxcare.com.au>
d0b47220
AM
6110
6111 * config/tc-i386.c: Don't start any as_bad or as_warn message with
6112 an initial capital letter.
6113 (i386_index_check): Reindent.
6114
11424155
NC
61152000-03-19 Nick Clifton <nickc@cygnus.com>
6116
eaa15ab8 6117 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
11424155
NC
6118 relative branches.
6119
43f05576
NC
61202000-03-17 Thomas de Lellis <tdel@windriver.com>
6121
66778679
RH
6122 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
6123 instruction operand bad if Rd > 7 when generating
6124 thumb instructions. Prevents for example,
6125 "adr r12,label" from silently failing and generating
6126 the wrong instruction.
3e87a760 6127
67231402
NC
61282000-03-17 Nick Clifton <nickc@cygnus.com>
6129
6130 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
6131 that have a destingation >= 0x400000.
3e87a760 6132 Fix compile time warning messages.
67231402 6133
a37c8f88
JR
6134Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6135
6136 * config/tc-sh.c (md_begin): When encountering insn that are
6137 not supported by the current arch, only change the name if
6138 its contents are the same as prev_name.
6139 (get_specific): If the the architecture doesn't match, fail.
6140
dead1419
JR
6141Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6142
6143 * config/tc-sh.c (IDENT_CHAR): Define.
6144 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
6145 matching back where it came from.
6146
182e89d3
JR
6147Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6148
6149 * config/tc-sh.c (md_show_usage): Add description of -dsp.
6150
84f73d89
NC
61512000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
6152
6153 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
6154 normal operands.
6155
dbbc7809
JL
61562000-03-15 Kazu Hirata <kazu@hxi.com>
6157
6158 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
6159
271bb601
HPN
6160Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
6161
6162 * expr.c (operand) [case 'f']: When testing if '0f' can start a
6163 floating-point-number, make sure 'f' is in FLT_CHARS.
6164
8684e216
HPN
6165Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
6166
6167 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
6168 (s_lcomm_internal): Use it.
6169 * doc/internals.texi (CPU backend): Document it.
6170 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
6171 bytes.
6172
bb2d6cd7
GK
61732000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6174
6175 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
6176 when embedded-pic.
6177
6178 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
3e87a760
AM
6179 implementation doesn't have special handling for switch
6180 statements.
bb2d6cd7
GK
6181 (macro_build): Allow for code in sections other than .text.
6182 (macro): Likewise.
6183 (mips_ip): Likewise.
6184 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
3e87a760 6185 Don't perform relocs if we will be outputting them.
bb2d6cd7 6186 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
3e87a760
AM
6187 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
6188 embedded-pic.
bb2d6cd7 6189
5c86cbc7 61902000-03-09 Catherine Moore <clm@cygnus.com>
3e87a760 6191
66778679
RH
6192 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
6193 relocation type based on the entry in the fixup structure.
a47cf567 6194 Put S_IS_EXTERN processing back in.
5c86cbc7 6195
f8c827e9
L
61962000-03-08 H.J. Lu (hjl@gnu.org)
6197
6198 * Makefile.am (install-exec-tooldir): Depend on
6199 install-exec-bindir for parallel make.
6200 * Makefile.in: Regenerated.
6201
8ad9e709
NC
62022000-03-06 Nick Clifton <nickc@cygnus.com>
6203
6204 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
6205 switch.
6206 (md_parse_option): Parse -m32r command line switch - disable m32rx
6207 compatability.
ded0aeb7
NC
6208 (md_show_usage): Document new option.
6209
6210 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
6211 * doc/Makefile.in: Regenerate.
6212 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
8ad9e709 6213
b7b8f327
MM
62142000-03-02 Michael Meissner <meissner@redhat.com>
6215
6216 * config/tc-d30v.c (check_range): Remove code that incorrectly
6217 sign extended values where bits < 32.
6218
15886821
L
62192000-03-02 H.J. Lu (hjl@gnu.org)
6220
6221 * configure.in: Support --enable-targets=all on ia32.
6222 * configure: Regenerated.
6223
8bf950bf
NC
62242000-03-01 Nick Clifton <nickc@cygnus.com>
6225
6226 * gasp.c (do_align): Remove bogus check of alignment value.
6227
c5e54cc2
ILT
62282000-02-27 Thomas de Lellis <tdel@windriver.com>
6229
6230 * config/obj-elf.c (elf_frob_symbol): Remove code which when
6231 TC_PPC was defined forced the type of a symbol with no other type
6232 to be BSF_OBJECT.
6233
65fd87bc
ILT
62342000-02-27 Hans-Peter Nilsson <hp@axis.com>
6235
6236 * doc/internals.texi (CPU backend): Mention that
6237 line_separator_chars do not break up comments. Fix typos for
6238 LEX_AT and LEX_NAME descriptions. Document operands for
6239 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
6240 description of md_create_short_jump usage. Document argument for
6241 md_undefined_symbol.
6242
a25fe906
ILT
62432000-02-27 Jakub Jelinek <jakub@redhat.com>
6244
6245 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
6246 (md_parse_option): Handle it.
6247 (md_show_usage): Document it.
6248
21b10511
ILT
62492000-02-27 Ian Lance Taylor <ian@zembu.com>
6250
6251 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
6252 opcode, for the instruction `pal19'. From Andrea Arcangeli
6253 <andrea@suse.de>.
6254
773f551c
AM
62552000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
6256
6257 * config/tc-i386.c (i386_immediate): Move constant operand sizing
6258 from here..
6259 (md_assemble): To here, before template operands are matched.
6260 Also ensure a constant immediate is sign extended when we know the
6261 size is at most 16 bits. This is to catch cases like "add
6262 $0xffc0,%ax" where we don't know the size, and thus that the
6263 immediate can be represented as Imm8S until after parsing the
6264 register operand.
6265 (i386_displacement): Similarly sign extend 16 bit constant
6266 displacements.
6267 (md_assemble): Relax 16-bit jump constant range check to suit sign
6268 extended displacements.
6269
28d33191
JL
62702000-02-26 Andreas Jaeger <aj@suse.de>
6271
6272 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
6273
cc5ca5ce
AM
62742000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
6275
6276 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
6277 call operands when intel_syntax.
6278 (intel_float_operand): Return 2 for "fi...".
6279 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
6280 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
6281 earlier "SHORT" change.
6282 (md_assemble): When determining suffix from Regs, exclude
6283 InOutPortReg.
6284
056350c6
NC
62852000-02-24 Nick Clifton <nickc@cygnus.com>
6286
6287 * configure: Add arm-wince, mips-pe and sh-pe targets.
6288 * configure: Regenerate.
6289
6290 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
6291 sh-pe targets.
6292 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
6293 "pe-mips" for the mips-pe target.
6294
6295 * config/tc-arm.c (insns): Change displacement encoded in BL
6296 and B instructions if the target port is arm-wince.
6297 (do_ldst): Do not bias the relocation offset if the target
6298 port is arm-wince.
6299 (md_pcrel_from): Add in missing relocation offset bias if the
6300 target os arm-wince.
6301
6302 * config/tc-mips.c (mips_target_format): Support COFF flavour.
6303 (md_begin): Disable -G support for mips-pe target.
6304 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
6305 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
6306 COFF flavour.
6307
6308 * config/tc-sh.c (md_begin): sh-pe target is little endian.
6309 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
6310 assembler, just set the alignment to 4.
6311
6312 * config/te-wince-pe.h: New file for WinCE targets. Define
6313 TE_WINCE.
6314
36bf8ab9
AM
63152000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
6316
6317 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
6318 string instructions.
6319 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
6320 (i386_intel_memory_operand): After finding a segment override,
6321 check again for no `[' before looking for a displacement. Bomb if
6322 more than one displacement rather than silently discarding the
6323 second and subsequent ones. Free strings malloc'd by
6324 build_displacement_string.
6325
f5795b08
CM
63262000-02-24 Catherine Moore <clm@cygnus.com>
6327
6328 * config/obj-som.c (obj_pseudo_table): Add "weak".
6329 (obj_som_weak): New routine.
6330
abd63a32
AM
63312000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
6332
520dc8e8
AM
6333 * config/tc-i386.c (union i386_op): New.
6334 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
6335 Throughout file replace occurences of disps[n], imms[n], regs[n]
6336 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
6337 intel mode operand swapping. Add assert in regKludge and
6338 fake_zero_displacement code. Test i.types[n] when outputting
6339 displacements and immediates. Combine output of Disp16 with
6340 Disp32.
7f3f1ea2
AM
6341 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
6342 when in intel mode by (not) reversing fsub and fdiv operands
6343 before the template search. This fails for single operand
6344 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
6345 undefined. Instead fix the base_opcode after we've found the
6346 template. Move base_opcode xor with found_reverse_match from
6347 opcode output code to before this fix so we test for the correct
6348 opcodes.
6349 (md_assemble): Don't use strcmp when deciding to ignore the suffix
6350 check in intel mode. Instead compare opcodes.
520dc8e8
AM
6351
6352 * config/tc-i386.h (TC_RELOC): Delete.
6353 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
6354 with equivalent call to reloc.
6355
abd63a32
AM
6356 * as.h (flag_m68k_mri): Move declaration after target include, and
6357 only declare when TC_M68K defined. Define as zero otherwise.
6358 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
6359 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
6360 Define as zero otherwise.
6361 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
6362 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
6363 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
6364 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
6365 testing whether defined.
6366 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
6367 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
6368 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
6369 rather than testing whether defined.
6370 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
6371 (parse_mri_cons): Declare and use only when TC_M68K.
6372 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
6373 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
6374 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
6375
6376 * NEWS: Mention IBM 370 support.
6377
7e052742
RH
63782000-02-23 Richard Henderson <rth@cygnus.com>
6379
6380 * config/tc-i386.c (md_assemble): When swapping operands for
6381 intel_syntax, assume everything that's not Imm or Disp is a
6382 register.
6383
5b93d8bb
AM
63842000-02-23 Linas Vepstas <linas@linas.org>
6385
6386 * config/tc-i370.c, config/tc-i370.h: New files.
6387 * Makefile.am: Add support for Linux/IBM 370.
6388 * configure.in: Likewise.
6389 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
6390 * config/obj-elf.c: Include elf/i370.h
6391 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
6392
6393 * Makefile.in: Regenerate.
6394 * configure: Regenerate.
6395
6396 * doc/c-i370.texi: New file.
6397 * doc/all.texi: Include it.
6398 * doc/as.texinfo: And here.
3e87a760 6399 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
5b93d8bb
AM
6400 * doc/Makefile.in: Regenerate.
6401
25f2196d
CC
64022000-02-19 Michael Meissner <meissner@redhat.com>
6403
6404 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
6405 determine if an instruction can be used in parallel with an ADDppp
6406 or SUBppp instruction.
6407
6349b5f4
AH
64082000-02-22 Andrew Haley <aph@cygnus.com>
6409
6410 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
6411
2f6d2f85 64122000-02-22 Andrew Haley <aph@cygnus.com>
c97ef257
AH
6413
6414 * config/tc-mips.c (mips_gp32): New variable.
6415 (macro_build) Use mips_gp32.
6416 (mips_ip): Ditto.
6417 (md_longopts): Add "-mgp32" and "-mgp64".
6418 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
3e87a760 6419
a47cf567
NC
6420 (OPTION_M7900): Change offset
6421 (OPTION_NO_M7900): Ditto.
6422
b985eaa8
ILT
64232000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6424
6425 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
6426 warning, and bump it to 1.
6427
52454417
ILT
64282000-02-22 Ian Lance Taylor <ian@zembu.com>
6429
6430 From Brad Lucier <lucier@math.purdue.edu>:
6431 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
6432 match format.
6433
6b76fefe
CM
64342000-02-21 Catherine Moore <clm@cygnus.com>
6435
6436 * config/tc-mips.c (MF_HILO_INSN): Define.
6437 (mips_7000_hilo_fix): Declare.
6438 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
6439 (md_parse_option): Check for 7000_HILO_FIX options.
6440 (OPTION_M7000_HILO_FIX): Define.
6441 (OPTION_NO_M7000_HILO_FIX): Define.
6442 * doc/c-mips.texi (-mfix7000): Describe.
6443
f6af82bd
AM
64442000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6445
6446 * listing.c (print_lines): Remove unused variable `end'.
6447
6448 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
6449 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
3e87a760 6450 reloc_type when BFD_ASSEMBLER.
f6af82bd
AM
6451 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
6452 reloc_type when BFD_ASSEMBLER. Move common code out of switch
3e87a760 6453 statement and quell signed vs. unsigned comparison warning.
f6af82bd 6454
8c8281f4
NC
64552000-02-18 Nick Clifton <nickc@cygnus.com>
6456
6457 * config/tc-d10v.c (find_opcode): Add a symbol's value to
6458 the computed frag offset, rather than overwriting it.
6459
d4845d57
JR
6460Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6461
6462 * config/tc-sh.c ("elf/sh.h"): Include.
6463 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
6464 (md.begin): Initialize target_arch.
6465 Only include opcodes in has table that match selected architecture.
6466 (parse_reg): Recognize register names for sh-dsp.
6467 (parse_at): Recognize post-modify addressing.
6468 (get_operands): The leading space is now optional.
6469 (get_specific): Remove FDREG_N support. Add support for sh-dsp
6470 arguments. Update valid_arch.
6471 (build_Mytes): Add support for SDT_REG_N.
6472 (find_cooked_opcode): New function, broken out of md_assemble.
6473 (assemble_ppi, sh_elf_final_processing): New functions.
6474 (md_assemble): Use find_cooked_opcode and assemble_ppi.
6475 (md_longopts, md_parse_option): New option: -dsp.
6476 * config/tc-sh.h (elf_tc_final_processing): Define.
6477 (sh_elf_final_processing): Declare.
6478
c97305a1
JL
6479Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
6480
6481 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
6482 the unwinder subspace. Save the current seg/subseg before creating
6483 the new seg/subseg.
6484
bec50466
NC
64852000-02-10 Nick Clifton <nickc@cygnus.com>
6486
6487 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
66778679 6488 little endian targets.
bec50466 6489 (INST_BYTE1): Redefine to handle big and little endian
66778679 6490 targets.
bec50466
NC
6491 (cpu_type): New type: Select between M340 and M210.
6492 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
66778679 6493 instructions of the M340.
bec50466 6494 (md_assemble): Add support for the MULSH and OPSR classes of
66778679 6495 instructions.
bec50466
NC
6496 (md_atof): Add support for little endian targets.
6497 (md_parse_option): Add support for -EL, -EB and -mcpu command
66778679 6498 line switches.
bec50466
NC
6499 (md_convert_frag): Add support for little endian targets.
6500 (md_apply_fix3): Add support for little endian targets.
6501 (md_number_to_chars): Add support for little endian targets.
6502
a25c045a
TW
65032000-02-10 Timothy Wall <twall@redhat.com>
6504
6505 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
6506 defined, use it to verify the symbol just read should be a label.
6507
f28e8eb3
TW
65082000-02-10 Timothy Wall <twall@redhat.com>
6509
6510 * app.c (do_scrub_chars): Handle "||" for parallel instructions
6511 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
6512 around colons when KEEP_WHITE_AROUND_COLON is defined.
6513 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
6514 and KEEP_WHITE_AROUND_COLON.
6515
6dc19fc4
TW
65162000-02-08 Timothy Wall <twall@redhat.com>
6517
6518 * read.c (s_rept): Call do_repeat, which abstracts the repeat
3e87a760 6519 logic.
6dc19fc4 6520 (do_repeat): New. Abstract repeat logic so that a "break" can be
3e87a760 6521 implemented.
6dc19fc4
TW
6522 (end_repeat): New. Provide support for a "break" out of the
6523 repeat loop.
6524 * read.h: Add prototypes for new functions.
3e87a760 6525
f805106c
TW
65262000-02-08 Timothy Wall <twall@redhat.com>
6527
6528 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
6529 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
6530 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
3e87a760
AM
6531 non-zero.
6532
4469be0f
TW
65332000-02-08 Timothy Wall <twall@redhat.com>
6534
6535 * read.c: Added elseif to directives table.
6536 * read.h: Added prototype for s_elseif.
6537 * doc/as.texinfo: Added description for elseif.
6538 * cond.c (s_elseif): New function
3e87a760 6539
24a17b6c
TW
65402000-02-04 Timothy Wall <twall@redhat.com>
6541
6542 * listing.c (print_lines): Remove conditionals causing bug in
3e87a760 6543 listings.
24a17b6c 6544
bea9907b 65452000-02-03 Timothy Wall <twall@cygnus.com>
3e87a760 6546
bea9907b
TW
6547 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
6548 default values.
6549 * frags.c (frag_new): Calculate fr_fix in octets
6550 (frag_now_fix) Return offset as target address offset (bytes).
6551 (frag_now_fix_octets) New - Return offset in octets (8-bit
3e87a760 6552 quantities).
bea9907b
TW
6553 * frags.h: Added prototype for frag_now_fix_octets().
6554 Distinguish between octets and bytes in field descriptions.
6555 * listing.c (calc_hex): Account for octets vs bytes when
6556 printing addresses/offsets.
6557 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
6558 target is little-endian, print the octets in a word in big-endian
6559 order so that the display looks like a proper hexadecimal number,
6560 instead of having the octets reversed.
6561 * read.c (do_align): When recording alignment, alignment power
6562 should be in terms of target bytes (minimum addressible unit)
6563 instead of octets.
6564 (do_org) Convert ORG target address (byte) argument into an
6565 octet offset when generating a variable fragment.
6566 * symbols.c (resolve_symbol_value): Symbol final value
6567 converted to a target address offset (bytes) from its octet offset.
6568 * config/obj-coff.c (coff_frob_symbol): Symbol target address
6569 offset (bytes) is adjusted by the frag offset (octets) converted
6570 to bytes.
6571 (coff_frob_section) Section alignment power is in terms of bytes;
6572 convert it to an octet alignment power when calculating size (and
6573 size mask) in octets. Don't modify the section size in order to
6574 "align" it for TI COFF, since that format has a different method
6575 for storing alignment information.
3e87a760 6576
210dcc61
TW
65772000-02-01 Timothy Wall <twall@cygnus.com>
6578
6579 * stabs.c (generate_asm_file): Escape backslashes in stabs file
6580 entries, matching the way GCC generates them. If not escaped, the
6581 filename is encoded incorrectly.
6582
557537a5 65832000-01-31 Nick Clifton <nickc@cygnus.com>
eaa15ab8 6584
557537a5
NC
6585 * config/tc-arm.c (reg_table): Add support for ATPCS register
6586 naming conventions.
2c1c4c62 6587
557537a5 65882000-01-31 Geoff Keating <geoffk@cygnus.com>
3e87a760 6589
2c1c4c62
GK
6590 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
6591 already defined.
3e87a760 6592 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
2c1c4c62
GK
6593 New macro.
6594 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
6595 of a symbol when we really care about its value.
6596
23fe39df 65972000-01-19 Chandra Chavva <cchavva@cygnus.com>
2d473ce9
NC
6598
6599 * config/tc-mcore.c (md_assemble): Give warning message if
6600 operands passes to instruction are more than the spec.
6601
2f0ca46a
NC
66022000-01-27 Thomas de Lellis <tdel@windriver.com>
6603
66778679 6604 * config/tc-arm.c (armadjust_symtab): If the assembler is in
2f0ca46a 6605 Thumb mode but the label seen was not declared as '.thumb_func'
23fe39df 6606 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
3e87a760 6607 correct disassembly of Thumb code bounded by non function labels.
2f0ca46a 6608
4c63da97
AM
66092000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6610
6611 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
6612 Add dependencies for e-i386aout.o. Fix 2 comment lines.
6613
6614 * Makefile.in: Same here.
6615 Update copyright.
6616
6617 * configure.in: Set bfd_gas for i386-aout when primary target
6618 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
6619 we may need the primary te_file. Remove incorrect comment.
6620
6621 * configure: Regenerate.
6622
6623 * config/e-i386aout.c: New file.
6624
6625 * as.c (USE_EMULATIONS): Move to before print_version_id.
6626 (struct emulation): Add i386aout.
6627 (show_usage): Split text strings. Reformat -a text. Add --em
6628 help.
6629 Update copyright.
6630
6631 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
6632 (aout_format_ops): New.
6633 Update copyright.
6634
6635 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
6636 preprocessor conditional and add aout USE_EMULATIONS tests.
6637 (read_a_source_file): Don't pass error strings to printf as
6638 format arg.
6639 Update copyright.
6640
6641 * gasp.c (exp_get_abs): Don't pass error strings to printf as
6642 format arg.
6643 (do_data): Same here.
6644 (process_file): And here.
6645 Update copyright.
6646
6647 * symbols.c (colon): Rewrite "already defined" fatal message
6648 code for aout with USE_EMULATIONS.
6649 Update copyright.
6650
6651 * config/obj-aout.c (OBJ_HEADER): Define.
6652 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
3e87a760 6653 fields of sentinel.
4c63da97
AM
6654 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
6655 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
6656 forms here.
6657 (obj_aout_type): Expand S_SET_OTHER here too.
6658 (obj_read_begin_hook): Remove.
6659 (aout_pop_insert): New.
6660 (obj_aout_s_get_other): New.
6661 (obj_aout_s_get_desc): New.
6662 (aout_format_ops): New.
6663 Update copyright.
6664
6665 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
6666 gets aout_pseudo_table.
6667 (aout_pseudo_table): Declare.
6668 (obj_read_begin_hook): Define.
6669 Update copyright.
6670
6671 * config/obj-coff.c (obj_pseudo_table): Rename to
6672 coff_pseudo_table.
6673 (coff_pop_insert): Use coff_pseudo_table.
6674 (coff_sec_sym_ok_for_reloc): Remove.
6675 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
6676 and comment all zero entries and remove #if 0 code.
6677 Update copyright.
6678
6679 * config/obj-coff.h (obj_pop_insert): Define.
6680 (coff_pseudo_table): Declare.
6681 Update copyright.
6682
6683 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
6684 s_get_size, s_set_size. Comment all zero entries.
6685 Update copyright.
6686
6687 * config/obj-elf.c (elf_s_get_other): New function.
6688 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
6689 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
6690 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
6691 comment.
6692 (obj_elf_parse_section_letters): Don't pass error strings to
6693 printf as format arg.
6694 Update copyright.
6695
6696 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
6697 OBJ_MAYBE_ECOFF.
6698 (elf_s_get_other): Declare.
6699 (S_GET_OTHER) Define as elf_s_get_other if not already
6700 defined.
6701 (S_SET_OTHER): Only define when not already defined.
6702 (elf_obj_read_begin_hook): Declare.
6703 (obj_read_begin_hook): Define.
6704 (elf_obj_symbol_new_hook): Declare.
6705 (obj_symbol_new_hook): Define.
6706 Update copyright.
6707
6708 * config/obj-multi.h: Add copyright header and protect against
6709 multiple inclusion. Add * to all function pointers.
6710 (OBJ_HEADER): If defined, include it rather than other defines
6711 in this file.
6712 (obj_frob_file_after_relocs): Test for NULL.
6713 (obj_symbol_new_hook): Here too.
6714 (obj_sec_sym_ok_for_reloc): And here.
6715 (S_GET_OTHER): Define.
6716 (S_GET_DESC): Define.
6717 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
6718 (OBJ_MAYBE_ELF): Update comment.
6719
6720 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
6721 OBJ_AOUT preprocessor conditional and handle emulation by
6722 testing OUTPUT_FLAVOR.
6723 (i386_displacement): Here too.
6724 (md_section_align): Similarly here.
6725 (i386_target_format): Conditionally compile when more than one
6726 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
6727 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
6728 (i386_displacement): Here too.
6729 Update copyright.
6730
6731 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
6732 Define TARGET_FORMAT for aout only when not multi.
6733 Update copyright.
6734
6735 * config/te-multi.h: Delete file as it's identical to te-generic.h
6736
add0c677
AM
67372000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
6738
6739 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
6740 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
6741 LONG_MNEM_SUFFIX.
6742
6743 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
6744 DWORD_MNEM_SUFFIX.
6745 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
6746 comments.
6747
a19d8eb0
CP
67482000-01-13 Clinton Popetz <cpopetz@cygnus.com>
6749
66778679
RH
6750 * config/tc-mips.c (mips_do_align): New function.
6751 * config/tc-mips.h (md_do_align): Define.
a19d8eb0 6752
550262c4
NC
67532000-01-10 Philip Blundell <philb@gnu.org>
6754
6755 * doc/c-arm.texi (ARM Options): Fix typo.
3e87a760 6756 (ARM-Chars): Correct description of `#'. Mention that `;' is a
550262c4
NC
6757 line separator for Linux.
6758 * doc/as.texinfo (Comments): Mention the ARM.
6759
0decc840
NC
67602000-01-10 Philip Blundell <pb@futuretv.com>
6761
6762 * configure.in (arm*-*-conix*): New target.
6763 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
6764 armv*-*-linux-gnu.
6765 * configure: Regenerate.
6766
2e13b764
NC
67672000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6768
6769 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
6770 (obj_elf_visibility): New function.
3e87a760 6771
2e13b764
NC
6772 * doc/as.texinfo (Visibility): New node: document visibility
6773 pseudo ops.
6774
2f6d2f85 6775For older changes see ChangeLog-9899
This page took 0.457641 seconds and 4 git commands to generate.