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