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