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