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