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