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